var phpAds_adSenseDeliveryDone; var phpAds_adSensePx; var phpAds_adSensePy; function phpAds_adSenseClick(_1, _2) { var _3 = "__"; var cb = new String(Math.random()); cb = cb.substring(2, 11); var i = new Image(); i.src = _1 + "/ck.php?" + _2 + _3 + "trackonly=1" + _3 + "cb=" + cb + _3 + "oadest="; } function phpAds_adSenseLog(_6) { var _7 = "__"; var _8; if (_8 = _6.src.match(/^(.*)\/afr\.php\?n=([a-z0-9]+)/i)) { phpAds_adSenseClick(_8[1], "oaparams=" + _7.length + _7 + "n=" + _8[2]); } else { if (typeof _6.parentNode != "undefined") { var t = _6.parentNode.innerHTML; if (_8 = t.match(/\/\* openads=([^ ]*) bannerid=([^ ]*) zoneid=([^ ]*) source=([^ ]*) \*\//)) { phpAds_adSenseClick(_8[1], "oaparams=" + _7.length + _7 + "bannerid=" + _8[2] + _7 + "zoneid=" + _8[3] + _7 + "source=" + _8[4]); } } } } function phpAds_adSenseGetMouse(e) { if (typeof e.pageX == "number") { phpAds_adSensePx = e.pageX; phpAds_adSensePy = e.pageY; } else { if (typeof e.clientX == "number") { phpAds_adSensePx = e.clientX; phpAds_adSensePy = e.clientY; if (document.body && (document.body.scrollLeft || document.body.scrollTop)) { phpAds_adSensePx += document.body.scrollLeft; phpAds_adSensePy += document.body.scrollTop; } else { if (document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) { phpAds_adSensePx += document.documentElement.scrollLeft; phpAds_adSensePy += document.documentElement.scrollTop; } } } } } function phpAds_adSenseFindX(_b) { var x = 0; while (_b) { x += _b.offsetLeft; _b = _b.offsetParent; } return x; } function phpAds_adSenseFindY(_d) { var y = 0; while (_d) { y += _d.offsetTop; _d = _d.offsetParent; } return y; } function phpAds_adSensePageExit(e) { var ad = document.getElementsByTagName("iframe"); if (typeof phpAds_adSensePx == "undefined") { return; } for (var i = 0; i < ad.length; i++) { var _12 = phpAds_adSenseFindX(ad[i]); var _13 = phpAds_adSenseFindY(ad[i]); var _14 = parseInt(_12) + parseInt(ad[i].width) + 15; var _15 = parseInt(_13) + parseInt(ad[i].height) + 10; var _16 = (phpAds_adSensePx > (_12 - 10) && phpAds_adSensePx < _14); var _17 = (phpAds_adSensePy > (_13 - 10) && phpAds_adSensePy < _15); if (_17 && _16) { if (ad[i].src.match(/googlesyndication\.com|ypn-js\.overture\.com/) || ad[i].src.indexOf("afr.php?") > -1) { phpAds_adSenseLog(ad[i]); } } } } function phpAds_adSenseInit() { if (document.all && typeof window.opera == "undefined") { var el = document.getElementsByTagName("iframe"); for (var i = 0; i < el.length; i++) { if (el[i].src.match(/googlesyndication\.com|ypn-js\.overture\.com/)) { el[i].onfocus = function () { phpAds_adSenseLog(this); }; } } } else { if (typeof window.addEventListener != "undefined") { window.addEventListener("unload", phpAds_adSensePageExit, false); window.addEventListener("mousemove", phpAds_adSenseGetMouse, true); } } } function phpAds_adSenseDelivery() { if (typeof phpAds_adSenseDeliveryDone != "undefined" && phpAds_adSenseDeliveryDone) { return; } phpAds_adSenseDeliveryDone = true; if (typeof window.addEventListener != "undefined") { window.addEventListener("load", phpAds_adSenseInit, false); } else { if (typeof document.addEventListener != "undefined") { document.addEventListener("load", phpAds_adSenseInit, false); } else { if (typeof window.attachEvent != "undefined") { window.attachEvent("onload", phpAds_adSenseInit); } else { if (typeof window.onload == "function") { var _1a = onload; window.onload = function () { _1a(); phpAds_adSenseInit(); }; } else { window.onload = phpAds_adSenseInit; } } } } } phpAds_adSenseDelivery();