
var w2;var h2;
var w=748;var h=w/1.43;
var z=screen.width/screen.height
if(z>(4/3)){h=(4*h)/(3*z);w=(4*w)/(3*z);}

function game(f)
{
if(w2>0){w=w2;h=h2;}
var s="http://84.16.242.249/242249/" + f + ".swf";
document.write('<object id="mov" codeBase=http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0 classid=CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000 width="' + w + '" height="' + h + '" id="movie" ><param name="movie" value="' + s +  '"> <PARAM NAME="quality" VALUE="high"><PARAM NAME="scale" VALUE="exactfit"><PARAM NAME="menu" VALUE="true"><embed name="mov" src="' + s +  '" width="' + w + '" height="' + h + '" quality="high"  swLiveConnect="false" scale="exactfit" menu="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object>');
} 
	function refreshProgress()
{var l=location.href.split('/')[2];

var bar1 = document.getElementById("bar1");var bar = document.getElementById("bar");
var movie = getFlashMovieObject("mov");	
	
if(movie){
	if(movie.PercentLoaded()<100){bar1.innerHTML="<h3> % " + movie.PercentLoaded() + " &nbsp; </h3> "}
  else{bar1.innerHTML="";}

 bar.style.width=2*(movie.PercentLoaded())+"px";
 }
}

function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
      return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  } 
}	
setInterval("refreshProgress()",50)

//bookmark
function bookmark(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");

else if(document.all)// ie
	window.external.AddFavorite(url, title);
}