/* document.write(''); */ window.onload = FloatAD_Start; /* window.onscroll = FloatAD_Reposition; window.onresize = FloatAD_Reposition; window.onerror = function(){} var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0; function parseInt1(intstr,radix) { var ttt = parseInt(intstr.substring(0,intstr.length-2),radix); return ttt; } */ function FloatAD_Start() { setTimeout("startff();",30000); } /* if(getCookie('floatwindow')!='done') { try{ divTop = parseInt1(document.getElementById("FloatAD").style.top,10) divLeft = parseInt1(document.getElementById("FloatAD").style.left,10) divHeight = parseInt(document.getElementById("FloatAD").offsetHeight,10) divWidth = parseInt(document.getElementById("FloatAD").offsetWidth,10) docWidth = document.documentElement.clientWidth; docHeight = document.documentElement.clientHeight; document.getElementById("FloatAD").style.top = (parseInt(document.documentElement.scrollTop,10) + docHeight + 10) + 'px'; document.getElementById("FloatAD").style.left = (parseInt(document.documentElement.scrollLeft,10) + docWidth - divWidth-16) + 'px'; document.getElementById("FloatAD").style.visibility="visible"} catch(e){} objTimer = window.setInterval("FloatAD_MoveDiv()",10) } } function FloatAD_Reposition() { try{ divHeight = parseInt(document.getElementById("FloatAD").offsetHeight,10) divWidth = parseInt(document.getElementById("FloatAD").offsetWidth,10) docWidth = document.documentElement.clientWidth; docHeight = document.documentElement.clientHeight; document.getElementById("FloatAD").style.top = (docHeight - divHeight + parseInt(document.documentElement.scrollTop,10))+'px'; document.getElementById("FloatAD").style.left = (docWidth - divWidth + parseInt(document.documentElement.scrollLeft,10)-16)+'px';} catch(e){} } function FloatAD_MoveDiv() { try{ if(parseInt1(document.getElementById("FloatAD").style.top,10) <= (docHeight - divHeight + parseInt(document.documentElement.scrollTop,10))) {window.clearInterval(objTimer)} document.getElementById("FloatAD").style.top = (parseInt1(document.getElementById("FloatAD").style.top,10) - 1)+'px';} catch(e){} } function FloatAD_CloseDiv() { document.getElementById('FloatAD').innerHTML=''; document.getElementById('FloatAD').style.visibility='hidden'; SetCookie("floatwindow", "done"); if(objTimer) window.clearInterval(objTimer) } function SetCookie(name,value) { var Seconds = 60*60*24; var exp = new Date(); exp.setTime(exp.getTime() + Seconds*1000); document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString(); } function getCookie(name) { var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)")); if(arr != null) return unescape(arr[2]); return null; } function delCookie(name) { var exp = new Date(); exp.setTime(exp.getTime() - 1); var cval=getCookie(name); if(cval!=null) document.cookie= name + "="+cval+";expires="+exp.toGMTString(); } */ function startff() { setInterval ( "homepage_flush()", 900000 ); } function homepage_flush() { var xmlobj=null; if(xmlobj!=null&&xmlobj.readyState!=0&&xmlobj.readyState!=4){ xmlobj.abort(); } try{ xmlobj=new XMLHttpRequest(); } catch(e){ try{ xmlobj=new ActiveXObject('Microsoft.XMLHTTP'); } catch(e){ xmlobj=null; return false; } } xmlobj.open('GET','homepage_flush.php',true); xmlobj.send(null); }