var phpAds_adSenseDeliveryDone;var phpAds_adSensePx;var phpAds_adSensePy;function phpAds_adSenseClick(a,b){var c='__';var d=new String(Math.random());d=d.substring(2,11);var i=new Image();i.src=a+'/ck.php?'+b+c+'trackonly=1'+c+'cb='+d+c+'oadest='}function phpAds_adSenseLog(a){var b='__';var c;if(c=a.src.match(/^(.*)\/afr\.php\?n=([a-z0-9]+)/i)){phpAds_adSenseClick(c[1],'oaparams='+b.length+b+'n='+c[2])}else{while(typeof a.parentNode!='undefined'){if(a=a.parentNode){var t=a.innerHTML;if(c=t.match(/\/\* openads=([^ ]*) bannerid=([^ ]*) zoneid=([^ ]*) source=([^ ]*) (.*)\*\//)){var d='oaparams='+b.length+b+'bannerid='+c[2]+b+'zoneid='+c[3]+b+'source='+c[4];var e=c[5].split(' ');for(i=0;i<e.length;i++){data=e[i].split('=');if(data[0]!=''&&typeof(data[1])!='undefined'){d+=b+data[0]+'='+data[1]}}phpAds_adSenseClick(c[1],d);break}}}}}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(a){var x=0;while(a){x+=a.offsetLeft;a=a.offsetParent}return x}function phpAds_adSenseFindY(a){var y=0;while(a){y+=a.offsetTop;a=a.offsetParent}return y}function phpAds_adSensePageExit(e){var a=document.getElementsByTagName("iframe");if(typeof phpAds_adSensePx=='undefined')return;for(var i=0;i<a.length;i++){var b=phpAds_adSenseFindX(a[i]);var c=phpAds_adSenseFindY(a[i]);var d=parseInt(b)+parseInt(a[i].width)+15;var f=parseInt(c)+parseInt(a[i].height)+10;var g=(phpAds_adSensePx>(b-10)&&phpAds_adSensePx<d);var h=(phpAds_adSensePy>(c-10)&&phpAds_adSensePy<f);if(h&&g){if(a[i].src.match(/googlesyndication\.com|ypn-js\.overture\.com|googleads\.g\.doubleclick\.net/)||a[i].src.indexOf('afr.php?')>-1)phpAds_adSenseLog(a[i])}}}function phpAds_adSenseInit(){if(document.all&&typeof window.opera=='undefined'){var a=document.getElementsByTagName("iframe");for(var i=0;i<a.length;i++){if(a[i].src.match(/googlesyndication\.com|ypn-js\.overture\.com|googleads\.g\.doubleclick\.net/)){a[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 a=onload;window.onload=function(){a();phpAds_adSenseInit()}}else{window.onload=phpAds_adSenseInit}}}phpAds_adSenseDelivery();