function ast_mouseover(e){ ast_mouseoverurl = e.target.src; } function ast_mouseout(){ ast_mouseoverurl = null; } function ast_docunload(e){ if(ast_mouseoverurl){ ast_createBug(1,ast_mouseoverurl); } } function ast_logclick(){ ast_mouseoverurl = event.srcElement.src; ast_createBug(1,ast_mouseoverurl); document.body.focus(); } function ast_createBug(clk, d){ img = new Image(); img.src = 'http://www.jonathanleger.com/ast2/at.php?c=' + clk + '&d=' + escape(d) + '&r=' + escape(document.location.href) + '&dt='+ new Date().valueOf(); } var ast_mouseoverad = null; var ast_mouseoverurl = null; var elements; var agnt = navigator.userAgent.toLowerCase(); var ast_altclicks = (document.layers | agnt.indexOf("firefox")>-1 | agnt.indexOf("mozilla")>-1) && agnt.indexOf("msie")==-1; if(ast_altclicks){ if(document.layers){ window.captureEvents(Events.ONUNLOAD); } window.onunload = ast_docunload; } elements = document.getElementsByTagName("iframe"); gpage = false; cpage = false; lpage = false; ypage = false; spage = false; for(var i=0;i-1 | isy>-1){ if(document.layers){ elements[i].captureEvents(Events.ONFOCUS); elements[i].captureEvents(Events.ONMOUSEOVER); elements[i].captureEvents(Events.ONMOUSEOUT); } if(ast_altclicks){ elements[i].onmouseover = ast_mouseover; elements[i].onmouseout = ast_mouseout; } else{ elements[i].onfocus = ast_logclick; elements[i].onmouseout = ast_mouseout; } if((isg>-1 && !gpage) | (iscpa>-1 && !cpage) | (isal>-1 && !lpage) | (isy>-1 && !ypage)){ ast_createBug(0,elements[i].src); if(isg>-1){ gpage = true; } if(iscpa>-1){ cpage = true; } if(isal>-1){ lpage = true; } if(isy>-1){ ypage = true; } } } }