if (document.all){ document.write('
'); StillShow=true; var styleRef = "document.all."; var leftRef = ".style.pixelLeft"; var topRef = ".style.pixelTop"; var heightRef = "document.body.clientHeight"; var widthRef = "document.body.clientWidth"; var visRef = "'hidden'"; var leftMove = 0; var topMove = 0; var max = 2; var which = "left"; var leftOperator = "+"; var topOperator = "+"; } function changeOperator(x) { if (eval(x + "Operator == '+'")) { eval(x + "Operator = '-'"); } else eval(x + "Operator = '+'"); } function mover(what) { if(StillShow){ var randomNum = Math.random(); if (randomNum > 0.98) { changeOperator(which); } if (which == "left") { leftMove = eval(leftMove + leftOperator + randomNum); if (leftMove > max) leftMove = max; if (leftMove < -max) leftMove = -max; if (eval(styleRef + what + leftRef + " < 0")) leftOperator = "+"; else if (eval(styleRef + what + leftRef + " > " + widthRef)) leftOperator = "-"; eval(styleRef + what + leftRef + " += " + leftMove); which = "top"; } else { topMove = eval(topMove + topOperator + randomNum); if (topMove > max) topMove = max; if (topMove < -max) topMove = -max; if (eval(styleRef + what + topRef + " < 0")) topOperator = "+"; else if (eval(styleRef + what + topRef + " > " + heightRef)) topOperator = "-"; eval(styleRef + what + topRef + " += " + topMove); which = "left"; } setTimeout("eval(\"mover('" + what + "')\")", 10) }else{ if(document.all){ floatingoffer.style.visibility="hidden"; }else{ document.floatingoffer.visibility="hide"; } } } // The Cookie Functions follow.... var exp = new Date(); exp.setTime(exp.getTime() + (60*60*1000)); function GetCookie (popup) { var arg = popup + "="; 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 getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (popup, value) { var argv = SetCookie.arguments; var argc = SetCookie.arguments.length; var expires = null; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; document.cookie = popup + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } function getCookieVal(offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function StartFloatChip(){ if (document.all){ var CookieName = 'FloatingBanner'; var count = GetCookie(CookieName); if (count == null) { count=1; SetCookie(CookieName, count, exp); floatingoffer.style.visibility="visible"; setTimeout("StillShow=false", 40000); mover('floatingoffer'); } } } if (document.all) StartFloatChip();