function Insert_Panel($kod,$panelname,$width,$height) 
{
	$kodpanela="<OBJECT id='"+$panelname+"2' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width="+$width+" height="+$height+"><param name='swliveconnect' value='true'> <PARAM NAME=movie VALUE='"+$kod+"'> <param name=wmode value=transparent><PARAM NAME=quality VALUE=high> <param name=allowFullScreen value=true> <EMBED wmode=transparent allowFullScreen=true src='"+$kod+"' width="+$width+" height="+$height+" quality=high NAME='"+$panelname+"2' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer' swliveconnect='true'></EMBED></OBJECT>";
    document.write('<DIV id="'+$panelname+'" style="height:1px; overflow:hidden"></DIV>');
	
	if (window.document.getElementById) {
		var $panel = window.document.getElementById($panelname);
		if ($panel.style) {
			$panel.innerHTML = $kodpanela;
			$panel.style.width = $width;
			$panel.style.display = "";
		}
	}
}
oldid = 0;
function graj(id)
{ 
  if (navigator.appName.indexOf("Microsoft Internet")==-1) {
	  if (oldid != 0) {
        document.getElementById(oldid+"player").style.height='1px';
	    document.embeds[oldid+"player2"].SetVariable("stop", id);
	  } 
      document.getElementById(id+"player").style.height='29px';
	  document.embeds[id+"player2"].SetVariable("graj", id); 
  }
  else {
    if (oldid != 0) {
      document.getElementById(oldid+"player").style.height='1px';
	  document.getElementById(oldid+"player2").SetVariable("stop", id);
	}
      document.getElementById(id+"player").style.height='29px';
    document.getElementById(id+"player2").SetVariable("graj", id);
  }
  oldid = id;
}

