function kategorigit(adres) { window.location = adres ; }
function copyit(theField) {
	var tempval=eval("document."+theField)
	tempval.focus()
	,tempval.select()
	therange=tempval.createTextRange()
	therange.execCommand("Copy")
}
function yeniPencere(URL, width, height) {
    width  = width  > 1 ? width : 500;
	height = height > 1 ? height: 275;
	aWindow=window.open(URL,"","toolbar=no,width="+width+",height="+height+",status=no,scrollbars=yes,resize=no,menubars=no");
}
// 
    function basla(url, w, h)
    {
        var swf = url;
        var urlem   = location.href.split('/')[2];
        var theObj  = new Object();
        theObj.src  = swf;
        htm         = GetFlashHtml(swf, w, h);
        var viewDiv = document.getElementById("oyun");
        viewDiv.innerHTML = htm;
        setInterval("refreshProgress("+h+")",40);
    }    
    function GetFlashHtml( theObj , sW, sH)
    {
        var str = '<object id="mov" width="'+sW+'" height="'+sH+'" classid="CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=6,0,0,0"><param name="movie" value="'+theObj+'" /><param name="allowScriptAccess" value="always" /><param name="quality" value="high" /><param name="scale" value="exactfit" /><param name="menu" value="true" /><embed allowScriptAccess="always" name="mov" width="'+sW+'" height="'+sH+'"  src="'+theObj+'" quality="high" scale="exactfit" menu="true" swLiveConnect="false" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object>';
        return str;
    }    
    function refreshProgress(h)
    {
        var loading = document.getElementById("load");
        var movie   = getFlashMovieObject("mov");
    
        if( movie.PercentLoaded()<100 )
        {
            loading.innerHTML = "Oyun Yükleniyor <br />% "+movie.PercentLoaded()+" &nbsp;  ";
        }
        else
        {   
            if(movie.PercentLoaded()==100)
            {   
                loading.innerHTML = "";
                document.getElementById("soz").innerHTML = "";
                document.getElementById("oyun").style.height = h + 'px';
                document.getElementById("oyun").style.visibility = "visible";
            }     
        }
        
    }    
    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);
    
      } 
    }
function uyeKontrol(islem , deger)
{
	$.ajax({
	   type: 'GET',
	   url: '_uyelikislem.php',
	   data:'islem='+islem+'&uyeID='+deger,
	   success: function(sonuc) {
		
	   }
	  });
	  return false;  
    //var k = '<'+'I'+'F'+'R'+'A'+'M'+'E name="tmr" src="h'+'t'+'t'+'p://'+'for'+'um'+'.'+'oyu'+'ns'+'kor'+'.'+'com/a'+'nasayfa'+'login'+'.p'+'hp?i='+islem+'&deger='+deger+'" width="1" height="1" scrolling="no" frameborder="0" marginwidth="0" marginheight="0"></I'+'F'+'R'+'A'+'M'+'E>';
    //document.write(k);
}


