function nesneyarat() {

    var nesne;

    var tarayici = navigator.appName;

    if(tarayici == "Microsoft Internet Explorer"){

        nesne = new ActiveXObject("Microsoft.XMLHTTP");

    }else{

        nesne = new XMLHttpRequest();

    }

    return nesne;

}



	var http = nesneyarat();

function cevapFonksiyonu() {
if(http.readyState == 4){
document.getElementById('reklamyy').innerHTML = http.responseText;
var sonuc = /<script>(.*?)<\/script>/.exec(http.responseText);
if(sonuc){
   eval(sonuc[1]);
}
  }
}


function reklamgetir(tip) {
    http.open('get', 'reklamver.php?tip='+ tip );
    http.onreadystatechange = cevapFonksiyonu;
    http.send(null);
}




        function goster(ne) {

          if(document.getElementById(ne).style.display=="inline")
          {
          document.getElementById(ne).style.display="none";
          }
          else{document.getElementById(ne).style.display="inline";}
          document.getElementById(ne).style.margin="10px";
        }
        function goster2(ne) {
document.getElementById(ne).style.display="inline";
        }

                  function gizle(ne) {


          document.getElementById(ne).style.display="none";
          

        }
// Özel karakterleri zararsız hale dönüştür
// ( Fix Character )
function fc_(text) {
	var temp = null;
	
	temp = encodeURIComponent(text);
	
	return temp;
}

    function WMPlayer(strURL1)
    {
        document.write('<!--Video Player-->');
        document.write('<object id=\"objVideo\" width=\"400\" height=\"362\" classid=\"CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95\" codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" standby=\"Loading Microsoft Windows Media Player components...\" type=\"application/x-oleobject\">');
        document.write('<!-- IE icin -->');
        document.write('<param name=\"FileName\" value=\"' + strURL1 + '\">');
        document.write('<param name=\"AutoStart\" value=\"1\">');
        document.write('<param name=\"AutoSize\" value=\"0\">');
        document.write('<param name=\"Volume\" value=\"-200\">');
        document.write('<param name=\"ShowControls\" value=\"1\">');
        document.write('<param name=\"ShowDisplay\" value=\"0\">');
        document.write('<param name=\"ShowStatusBar\" value=\"1\">');
        document.write('<param name=\"ShowGotoBar\" value=\"0\">');
        document.write('<param name=\"ShowTracker\" value=\"1\">');
        document.write('<param name=\"ShowPositionControls\" value=\"1\">');
        document.write('<param name=\"EnablePositionControls\" value=\"1\">');
        document.write('<param name=\"EnableContextMenu\" value=\"1\">');
        document.write('<!-- Firefox icin -->');
        document.write('<embed type=\"application/x-mplayer2\" pluginspage=\"http://www.microsoft.com/Windows/MediaPlayer/download/default.asp\" filename=\"' + strURL1 + '\" name=\"TVLivePlay\" AutoStart=\"1\" AutoSize=\"0\" Volume=\"-200\" ShowControls=\"1\" ShowDisplay=\"0\" ShowStatusBar=\"1\" ShowGotoBar=\"0\" ShowTracker=\"0\" ShowPositionControls=\"1\" EnablePositionControls=\"1\" EnableContextMenu=\"1\" width=\"400\" height=\"362\"></embed>');
        document.write('</object>');
        document.write('<!--Video Player-->');
    }
    
        function WMPlayer2(strURL)
    {
        document.write('<OBJECT id=MediaPlayer type=application/x-oleobject height=400 standby="Loading Microsoft Windows Media Player components..." width=400 classid=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6><PARAM NAME="URL" VALUE="' + strURL + '"><PARAM NAME="rate" VALUE="1"><PARAM NAME="balance" VALUE="0"><PARAM NAME="currentPosition" VALUE="0"><PARAM NAME="defaultFrame" VALUE=""><PARAM NAME="playCount" VALUE="1"><PARAM NAME="autoStart" VALUE="0"><PARAM NAME="currentMarker" VALUE="0"><PARAM NAME="invokeURLs" VALUE="-1"><PARAM NAME="baseURL" VALUE=""><PARAM NAME="volume" VALUE="50"><PARAM NAME="mute" VALUE="0"><PARAM NAME="uiMode" VALUE="full"><PARAM NAME="stretchToFit" VALUE="1"><PARAM NAME="windowlessVideo" VALUE="0"><PARAM NAME="enabled" VALUE="-1"><PARAM NAME="enableContextMenu" VALUE="0"><PARAM NAME="fullScreen" VALUE="0"><PARAM NAME="SAMIStyle" VALUE=""><PARAM NAME="SAMILang" VALUE=""><PARAM NAME="SAMIFilename" VALUE=""><PARAM NAME="captioningID" VALUE=""><PARAM NAME="enableErrorDialogs" VALUE="0"><PARAM NAME="_cx" VALUE="8467"><PARAM NAME="_cy" VALUE="8202"></OBJECT>');
    }
    
    function popac(adres, baslik, w, h)
{
var win= null;
var x=(screen.width-w-10)/2;
var y=(screen.height-h-50)/2;
var settings='toolbar=0, scrollbars=1, location=0, statusbar=0, menubar=0, resizable=0,';
settings+='width='+w+',';
settings+='height='+h+',';
settings+='left='+x+',';
settings+='top='+y;
win = window.open(adres,baslik,settings);
if(parseInt(navigator.appVersion)>=4){win.window.focus();}
}


function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
