if(document.getElementById("popwincodeflg")) { document.writeln('popWin:Repeat code is not allowed!'); }else if(window.parent != window.self) { document.writeln('popWIn:Not place code in iframe tag!'); }else { document.writeln(''); if (un_userid == null || un_userid == '') un_userid = 0; if (un_subid == null || un_subid == '') un_subid = 0; if (un_t == null || un_t == '') un_t = 86400; if (un_exid == null || un_exid == '') un_exid = 0; var ref = document.referrer; var popUrl = 'http://pop.heima8.com/pv/popshow.htm?pt=pof&userid='+un_userid+'&subid='+un_subid+'&ts='+un_t+'&mt=1268199924.24&mid=7befd723fe824c5753a791e84d890a37&sign='+un_sign+'&ref='+escape(ref); document.write(''); var windowWidth, windowHeight, i = 0; var divWidth = '614', divHeight = '460'; function popAd() { i = 0; var oDiv = document.getElementById("pMeng"); var pNode = oDiv.parentNode; if (typeof(pNode)!="undefined") { pNode.style.display = 'block'; pNode.style.visibility = 'visible'; } var evt = arguments[0]||window.event; var mx = evt.clientX, my = evt.clientY; popUrl += '&mx='+mx+'&my='+my; oDiv.innerHTML = '
'; //oDiv.style.width = divWidth + 'px'; //oDiv.style.height = divHeight + 'px'; windowWidth = ((document.documentElement.clientHeight==0)?document.body.clientWidth:document.documentElement.clientWidth); windowHeight = ((document.documentElement.clientHeight==0)?document.body.clientHeight:document.documentElement.clientHeight); var topPos = Math.abs(windowHeight - divHeight); var leftPos = Math.abs(windowWidth - divWidth); oDiv.style.top = topPos/2 + 'px'; oDiv.style.left = leftPos/2 + 'px'; oDiv.style.display = "block"; } function moveDiv() { var oDiv = document.getElementById("pMeng"); i+=1 if(i>6800) closeDiv(); windowHeight = ((document.documentElement.clientHeight==0)?document.body.clientHeight:document.documentElement.clientHeight); var docTop = parseInt((document.documentElement.clientHeight==0)?document.body.scrollTop:document.documentElement.scrollTop,10); oDiv.style.top =docTop + (windowHeight - divHeight)/2 + 'px'; } function resizeDiv() { var oDiv = document.getElementById("pMeng"); i+=1 if(i>6800) closeDiv(); windowWidth = ((document.documentElement.clientHeight==0)?document.body.clientWidth:document.documentElement.clientWidth); windowHeight = ((document.documentElement.clientHeight==0)?document.body.clientHeight:document.documentElement.clientHeight); oDiv.style.top = Math.abs(windowHeight - divHeight)/2 + 'px'; oDiv.style.left = Math.abs(windowWidth - divWidth)/2 + 'px'; } function closeDiv() { var oDiv = document.getElementById("pMeng"); oDiv.style.display='none'; } window.onload = popAd; window.onscroll = moveDiv; window.onresize = resizeDiv; }