var bWin32IE;
if ((navigator.userAgent.indexOf("IE")
    > -1) && (navigator.platform == "Win32")) {
     bWin32IE = true;
} else {
     bWin32IE = false;
}

function baslat(){
   if (bWin32IE == true) {
   WMPlay.ShowControls = 0;
   WMPlay.CurrentPosition = 0;
   WMPlay.play();
   } else {
   document.WMPlay.ShowControls(0);
   document.WMPlay.SetCurrentPosition(0);
   document.WMPlay.Play(); 
   }
}

function durdur(){
   if (bWin32IE == true) {
      WMPlay.stop();
   } else {
      document.WMPlay.Stop();
      document.WMPlay.SetCurrentPosition(0);
   }
}


function sesac(){
         if (document.WMPlay.Volume <= -300) {
               document.WMPlay.Volume = document.WMPlay.Volume + 300;
         }
}

function seskis(){
         if (document.WMPlay.Volume >= -8000) {
            document.WMPlay.Volume = document.WMPlay.Volume - 300;
         }
}

function tamekran(){
   if (bWin32IE == true) {
      WMPlay.DisplaySize=3;
   } else {
      document.WMPlay.DisplaySize=3;
   }
}

function sesikapat() {
document.sesform.durum.value='kapali';
document.getElementById('sesbuton').style.backgroundImage="url(sesiac.gif)";
   if (bWin32IE == true) {
      WMPlay.mute=true;
   } else {
      document.WMPlay.mute=true;
   }
}

function sesiac() {
document.sesform.durum.value='acik';
document.getElementById('sesbuton').style.backgroundImage="url(seskapat.gif)";
   if (bWin32IE == true) {
      WMPlay.mute=false;
   } else {
      document.WMPlay.mute=false;
   }
}

function oynatintro() {
document.getElementById('introm').style.display='none';
document.getElementById('reklamim').style.display='inline';
document.getElementById('bekleyiniz').style.display='inline';
reklamgoster();
sesikapat();
}

function oynatreklam() {
document.getElementById('reklamim').style.display='none';
document.getElementById('bekleyiniz').style.display='none';
document.getElementById('playerim').style.display='inline';
sesiac();
}

function reklamgoster() {
setTimeout("oynatreklam()",10000);
}

setTimeout("oynatintro()",8000);

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

function acPen(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=450,height=400');");
}