
var sitedomain="http://www.yayinda.com/";
function goself(adres){
adres = sitedomain+'radyokontrol.php?id=' + adres;
x=window.screenLeft-3;
y=window.screenTop-22;
pencere = window.open(adres,'pencere','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizeable=no,resize=no,width=458,height=90,screenX=0,resize=no,screenY=0,top=200,left=200')
if (window.pencere) pencere.focus();
}

function goselftv(adres){
adres = sitedomain+'tvkontrol.php?id=' + adres;
x=window.screenLeft-3;
y=window.screenTop-22;
pencere = window.open(adres,'pencere','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizeable=no,resize=no,width=458,height=90,screenX=0,resize=no,screenY=0,top=200,left=200')
if (window.pencere) pencere.focus();
}

function goselftvmms(adres){
adres = sitedomain+'tvkontrol.php?id=' + adres;
x=window.screenLeft-3;
y=window.screenTop-22;
pencere = window.open(adres,'pencere','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizeable=no,resize=no,width=458,height=90,screenX=0,resize=no,screenY=0,top=200,left=200')
if (window.pencere) pencere.focus();
}
function goselflistenpls(adres){
adres = sitedomain+'listenpls.php?id=' + adres;
x=window.screenLeft-3;
y=window.screenTop-22;
pencere = window.open(adres,'pencere','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizeable=no,resize=no,width=458,height=90,screenX=0,resize=no,screenY=0,top=200,left=200')
if (window.pencere) pencere.focus();
}
function goselflistenplstv(adres){
adres = sitedomain+'listenplstv.php?id=' + adres;
x=window.screenLeft-3;
y=window.screenTop-22;
pencere = window.open(adres,'pencere','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizeable=no,resize=no,width=458,height=90,screenX=0,resize=no,screenY=0,top=200,left=200')
if (window.pencere) pencere.focus();
}





function CerezYaz(name, value, days) {
//Fix Days
if(days==null || days=="")days=365;

// Set Date
var d=new Date(); 
d.setTime(d.getTime()+(days*24*60*60*1000)); 
var expires="; expires="+d.toGMTString(); 

// Write Cookie
document.cookie = name+"="+value+expires+"; path=/"; 
}

function CerezOku(name){ // by .fm
var c=document.cookie ; 
if (c.indexOf(name)!=-1) { 
pos1=c.indexOf("=", c.indexOf(name))+1; 
pos2=c.indexOf(";",pos1); 
// If last cookie
if(pos2==-1) pos2=c.length;;

data=c.substring(pos1,pos2); 

return data;
}
}


function AcSayfa(URL) {

pencere = window.open(sitedomain+URL,"test","width=400,height=300,left = 440,top = 312");
}

function gotv(){
if (document.selecter2.select2.options[document.selecter2.select2.selectedIndex].value != "none") {
AcSayfa(document.selecter2.select2.options[document.selecter2.select2.selectedIndex].value);
                }
        }

function goradyo(){
if (document.selecter1.select1.options[document.selecter1.select1.selectedIndex].value != "none") {
AcSayfa(document.selecter1.select1.options[document.selecter1.select1.selectedIndex].value);
                }
        }


function collapse(x){ 

var oTemp="text_"+x; 
var oClick="click_"+x; 

      if(document.getElementById(oTemp).style.display=="block"){ 
            document.getElementById(oTemp).style.display="none"; 
			CerezYaz("text_"+x,"kapali");
            document.getElementById(oClick).innerHTML="<img src=resimler/yankapali.gif>"; 
      } 
      else{ 
            document.getElementById(oTemp).style.display="block"; 
CerezYaz("text_"+x,"acik");
           document.getElementById(oClick).innerHTML="<img src=resimler/yanacik.gif>"; 
      } 
} 




function baslat(i)
{

{
	if(CerezOku("text_"+i)=="kapali"){
	document.getElementById("text_"+i).style.display="none";
	document.getElementById("click_"+i).innerHTML="<img src=resimler/yankapali.gif>";
	}
		else {
		document.getElementById("text_"+i).style.display="block";
		document.getElementById("click_"+i).innerHTML="<img src=resimler/yanacik.gif>"; 
		}
}}

