// function adsense_init () { // if (document.all) { //ie // var el = document.getElementsByTagName("iframe"); // for(var i = 0; i < el.length; i++) { // if((el[i].src.indexOf('googlesyndication') > -1) || (el[i].src.indexOf('googleads') > -1)) { // adUnit = i+1; // adunitsize = el[i].width + "x" + el[i].height; // browser = "IE"; // el[i].onfocus = trackAdsense; // } // } // } else { // firefox // window.addEventListener('beforeunload', doPageExit, false); // window.addEventListener('mousemove', getMouse, true); // } // } // function trackAdsense() { // var path = 'http://www.bloguez.com/adsense_log.php'; // path += "?unit="+escape(adUnit); // path += "&size="+escape(adunitsize); // path += "&u=nainsformations"; // path += "&action=log"; // path += "&from="+escape(self.location); // imgtrack = new Image(); // imgtrack.src = path; // } // var px; // var py; // var adUnit = ""; // var browser = ""; // var adunitsize = ""; // function getMouse(e) { // px=e.pageX; // py=e.clientY; // } // function findY(obj) { // var y = 0; // while (obj) { // y += obj.offsetTop; // obj = obj.offsetParent; // } // return(y); // } // function findX(obj) { // var x = 0; // while (obj) { // x += obj.offsetLeft; // obj = obj.offsetParent; // } // return(x); // } // function doPageExit(e) { // ad = document.getElementsByTagName("iframe"); // for (i=0; i (adLeft - 10) && px < (parseInt(adLeft) + parseInt(ad[i].width) + 15)); // var inFrameY = (py > (adTop - 10) && py < (parseInt(adTop) + parseInt(ad[i].height) + 10)); // if (inFrameY && inFrameX) { // adUnit = i+1; // browser = "Firefox"; // adunitsize = ad[i].width + "x" + ad[i].height; // trackAdsense(); // } // } // } // adsense_init();