resim = new Array(6);
resim[0] = "http://site.mynet.com/eldoradoo/reklamlar/msn.gif";
resim[1] = "http://site.mynet.com/eldoradoo/reklamlar/msn.gif";
resim[2] = "http://site.mynet.com/eldoradoo/reklamlar/msn.gif";
resim[3] = "http://site.mynet.com/eldoradoo/reklamlar/msn.gif";
resim[4] = "http://site.mynet.com/eldoradoo/reklamlar/msn.gif";
resim[5] = "http://site.mynet.com/eldoradoo/reklamlar/msn.gif";
ana = Math.floor(Math.random() * resim.length);
resim = resim[ana];

var pub = '<div id="popupWin" style="right: 0px; margin-right:8px; bottom: 0px; display: none; z-index: 9999; position: absolute; height: 121px"><div id="popupWin_content" style="padding:2px; display: none; overflow: hidden; width: 214px; height: 121px; position: absolute;"><a href="'+adres+'" target="'+target+'"><img id="msnPopupImg" src="'+resim+'" width="214" height="121" border="0" alt="" /></a></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='214px';
    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='';
	SesCal();
    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 SesCal() {

var player	= 'msnplayer.swf';
var mp3_file = 'msn.mp3';
var mp3html = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
		mp3html += 'width="1" height="1" ';
		mp3html += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">';
		mp3html += '<param name="movie" value="'+ player +'?';
		mp3html += 'showDownload=false&file=' + mp3_file + '&autoStart=true';
		mp3html += '&backColor=ffffff&frontColor=ffffff';
		mp3html += '&repeatPlay=false&songVolume=80" />';
		mp3html += '<param name="wmode" value="transparent" />';
		mp3html += '<embed wmode="transparent" width="1" height="1" ';
		mp3html += 'src="' + player + '?'
		mp3html += 'showDownload=false&file=' + mp3_file + '&autoStart=true';
		mp3html += '&backColor=ffffff&frontColor=ffffff';
		mp3html += '&repeatPlay=false&songVolume=50" ';
		mp3html += 'type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';

		mp3html += '</object>';
document.getElementById('popupWin').innerHTML +=mp3html;
return;
}

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();

