var w2;var h2;
var w=(screen.width-296);var h=w/1.55; //1618
var z=screen.width/screen.height
if(z>(4/3)){h=(4*h)/(3*z);w=(4*w)/(3*z);}

function jump(targ,selObj,restore){  
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function oyun(url) {
	if(w2>0){w=w2;h=h2;} 
	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+'">');
	document.write('<param name="movie" value="'+url+'">');
	document.write('<param name="quality" VALUE="high">');
	document.write('<param name="scale" VALUE="exactfit">');
	document.write('<param name="menu" VALUE="true">');
	document.write('<embed name="mov" src="'+url+'" 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 oyun3d(url){
	if(w2>0){w=w2;h=h2;}
	document.write('<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=11,0,0,0" id="oyunlar1com_net" width="'+w+'" height="'+h+'">');
	document.write('<param name="src" value="'+url+'">');
	document.write('<param name="sw1" value="'+url+'">');
	document.write('<param name="swStretchStyle" value="fill">');
	document.write('<param name="swRemote" value="swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\'">');
	document.write('<embed src="'+url+'" sw1="'+url+'" width="'+w+'" height="'+h+'" swRemote=" swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\'" swStretchStyle="fill" type="application/x-director" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/"><\/embed><\/object>');
}

function out(f){document.write('<iframe src="' + f + '" width="' + w + '" height="' + h + '" frameborder="0"  scrolling="no"></iframe>');}

function menu(l,c){document.write("-<option value='" + l + ".html'>" + c + "</option>");}
function menutr(l,c){document.write("-<option value='" + l + "-oyunlari.html'>" + c + "</option>");}
function menuen(l,c){document.write("-<option value='" + l + "-games.html'>" + c + "</option>");}
function menues(l,c){document.write("-<option value='" + l + "-juegos.html'>" + c + "</option>");}
function menude(l,c){document.write("-<option value='" + l + "-spiele.html'>" + c + "</option>");}

	function refreshProgress() {
	var bar1 = document.getElementById("bar1");
	var yuzde = document.getElementById("yuzde");
	var genislik = document.getElementById("genislik");
	var bar = document.getElementById("bar");
	var movie = getFlashMovieObject("mov");	
	
if(movie){
	if(movie.PercentLoaded()<100) {
	bar1.innerHTML="<h2> % " + movie.PercentLoaded() + " &nbsp; </h2> ";
	yuzde.innerHTML="% " + movie.PercentLoaded() + " &nbsp;";
	}else{
	bar1.innerHTML="";
	yuzde.innerHTML="";
	}
 bar.style.width=movie.PercentLoaded()+"px";
 genislik.style.width=movie.PercentLoaded()*3+"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
  {
    return document.getElementById(movieName);

  } 
}	

setInterval("refreshProgress()",50)

