var ov = false; function GetCookieDJVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookieDJ (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return GetCookieDJVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookiePop (name, value) { var argv = SetCookiePop.arguments; var argc = SetCookiePop.arguments.length; var expires = (argc > 2) ? argv[2] : null; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } function DJ_popup() { day = new Date(); window.focus(); document.getElementById('DJ_popup_divMenu').style.display = 'none'; pathname = "/"; myDomain = "/"; var largeExpDate = new Date (); largeExpDate.setTime(largeExpDate.getTime() + (24 * 3600 * 1000)); //SetCookiePop('DJ_popup_ge','1',largeExpDate, "/"); } function DJ_banner(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open('http://popup.geolobs.com/click/banner.php?id=3246&ids=2743', '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=600,height=300,left = 276,top = 132');"); window.focus(); document.getElementById('DJ_popup_divMenu').style.display = 'none'; pathname = "/"; myDomain = "/"; var largeExpDate = new Date (); largeExpDate.setTime(largeExpDate.getTime() + (24 * 3600 * 1000)); SetCookiePop('DJ_popup_ge','1',largeExpDate, "/"); } DJ_popup_ge = GetCookieDJ('DJ_popup_ge'); if (DJ_popup_ge == null){ document.write(''); document.getElementById('DJ_popup_divMenu').style.visibility='visible'; if (document.getElementById('DJ_popup_divMenu').style) window.setInterval("MovePopupWinDJ()", 10); window.onerror=null; document.body.scrollTop=10; function MovePopupWinDJ() { if (document.body.scrollTop==0) document.getElementById('DJ_popup_divMenu').style.top=document.documentElement.scrollTop+300; else document.getElementById('DJ_popup_divMenu').style.top=document.body.scrollTop+300; } } var om_height=0; var om_width=0; var z=0; var b=0; var om_width_start=0; var om_height_start=0; var dhi=5; function om_dhpop(){ if (dhi > 1){ dhi--; if (dh < 1){ if (document.getElementById("DJ_popup_ge1").offsetHeight > 0){ dh = document.getElementById("DJ_popup_ge1").offsetHeight; clearInterval(omdh); om_startpop(); } }else { clearInterval(omdh); om_startpop(); } } else { clearInterval(omdh); dh=400; om_startpop(); } } function om_startpop(){ z=wh-dh; if (z<0)z=0; document.getElementById("DJ_popup_ge1").style.top=z; om_height=z; document.getElementById("DJ_popup_ge1").style.left=0; om_width=0; ommove=setInterval("om_movepop()",20); } function om_movepop(){ if(document.all){ydiff=om_height_start-document.body.scrollTop; xdiff=om_width_start-document.body.scrollLeft} else{ydiff=om_height_start-window.pageYOffset; xdiff=om_width_start-window.pageXOffset} if(ydiff!=0){movey=Math.round(ydiff/10);om_height_start-=movey} if(xdiff!=0){movex=Math.round(xdiff/10);om_width_start-=movex} if(document.getElementById("DJ_popup_ge1")){document.getElementById("DJ_popup_ge1").style.top=om_height_start+om_height;document.getElementById("DJ_popup_ge1").style.left=om_width_start+om_width} } if (document.body.clientWidth < document.body.offsetWidth){ if (document.body.clientWidth > 0) var ww=document.body.clientWidth; else var ww=document.body.offsetWidth; } else { if (document.body.offsetWidth > 0) var ww=document.body.offsetWidth - 2; else var ww=document.body.clientWidth; } var wh=document.body.clientHeight; document.getElementById("DJ_popup_ge1").style.width=ww*0.2; var dw=document.getElementById("DJ_popup_ge1").offsetWidth; if (dw < 1)dw=200; var dh=document.getElementById("DJ_popup_ge1").offsetHeight; if (dh < 1){ omdh=setInterval("om_dhpop()",200); } else { om_startpop(); }