function tipy(a,b) 
{
  var re1=new RegExp(".*swf$"); //regularni vyraz
  var tip_p=document.getElementById('tip_obr_s');
  var tip_o = document.getElementById('tip_obr');

  if (re1.test(a)) //pomoci funkce test - otestovani reg. vyrazu
  {//alert ("a");
    //var domena='http://www.ludor.b2.cz';
    string1='<div id="a1">';
    string1+='<object id="fl1" type="application/x-shockwave-flash" data="'+a+'" width="520" height="441">'
    +'<param name="wmode" value="transparent" /> '
    +'<param name="movie" value="'+a+'" />'
    +'</object>'
    +'</div>';
    myspan=document.getElementById("div_tip_obr");
    myspan.style.width = '100%';
    myspan.style.display = 'block';
    myspan.innerHTML=string1;
    //alert (string1);

    //tip_p.style.display='block';
    //tip_p.style.width='470px';
    //tip_p.style.border='1px solid red';
    //tip_p.style.fontSize='1px'; tip_p.style.height='1px';
    //tip_o.src=a;
    //tip_p.style.clear='both';
  }
  else if (document.getElementById('tip_obr').src==a)
  {
    tip_o.src=b;
    tip_p.style.display='inline';
    tip_p.style.fontSize='11px';
    tip_p.style.clear='none';
  }

  else
  {
    tip_p.style.display='block';
    tip_p.style.width='470px';
    tip_p.style.fontSize='1px'; tip_p.style.height='1px';
    tip_o.src=a;
    tip_p.style.clear='both';
  }
}