function trace_mouseover1(e){ trace_mouseoverad = "a1"; } function trace_mouseover2(e){ trace_mouseoverad = "a2"; } function trace_mouseover3(e){ trace_mouseoverad = "a3"; } function trace_mouseover4(e){ trace_mouseoverad = "a4"; } function trace_mouseout(e){ trace_mouseoverad = null; } function ypn_mouseover1(e){ trace_mouseoverad = "y1"; } function ypn_mouseover2(e){ trace_mouseoverad = "y2"; } function ypn_mouseover3(e){ trace_mouseoverad = "y3"; } function ypn_mouseover4(e){ trace_mouseoverad = "y4"; } function ypn_mouseout(e){ trace_mouseoverad = null; } function trace_docunload(e){ if(trace_mouseoverad=="a1"){ trace_aslog1(e); } else if(trace_mouseoverad=="a2"){ trace_aslog2(e); } else if(trace_mouseoverad=="a3"){ trace_aslog3(e); } else if(trace_mouseoverad=="a4"){ trace_aslog4(e); } else if(trace_mouseoverad=="y1"){ ypn_aslog1(e); } else if(trace_mouseoverad=="y2"){ ypn_aslog2(e); } else if(trace_mouseoverad=="y3"){ ypn_aslog3(e); } else if(trace_mouseoverad=="y4"){ ypn_aslog4(e); } } function trace_aslog1(e){ trace_aslog(e, trace_iframeObj1); } function trace_aslog2(e){ trace_aslog(e, trace_iframeObj2); } function trace_aslog3(e){ trace_aslog(e, trace_iframeObj3); } function trace_aslog4(e){ trace_aslog(e, trace_iframeObj4); } function trace_aslog(e, o) { window.focus(); trackit = 0; if(window.status && (window.status != lastStatus)){ trackit = 1; lastStatus = window.status; } else if(trace_mozilla){ trackit = 1; lastStatus = "(Unknown/Mozilla)"; } if (trackit) { var bug = new Image(); bug.src = 'http://yukinyan.net/tracerjp/tracer_2.php' + '?reference=' + escape(document.location.href) + '&siteurl=' + escape(lastStatus) + '&width=' + google_ad_width + '&height=' + google_ad_height + '&format=' + trace_getVariable(o, 'format') + '&colorborder=' + trace_getVariable(o, 'color_border') + '&colorbg=' + trace_getVariable(o, 'color_bg') + '&colorlink=' + trace_getVariable(o, 'color_link') + '&colorurl=' + trace_getVariable(o, 'color_url') + '&colortext=' + trace_getVariable(o, 'color_text') + '&channel=' + trace_getVariable(o, 'channel') + '&cchannel=null' + '&r=' + escape(document.referrer) + '&cv=c' + '&dt=' + new Date().valueOf(); } } function ypn_aslog1(e){ trace_ypnlog(e, ypn_iframeObj1); } function ypn_aslog2(e){ trace_ypnlog(e, ypn_iframeObj2); } function ypn_aslog3(e){ trace_ypnlog(e, ypn_iframeObj3); } function ypn_aslog4(e){ trace_ypnlog(e, ypn_iframeObj4); } function trace_ypnlog(e, o) { trackit = 0; if(window.status && (window.status != lastStatus)){ trackit = 1; lastStatus = window.status; } else if(trace_mozilla){ trackit = 1; lastStatus = "(Unknown/Mozilla)"; } if (trackit) { var bug = new Image(); bug.src = 'http://yukinyan.net/tracerjp/tracer_2.php' + '?reference=' + escape(document.location.href) + '&siteurl=' + escape(lastStatus) + '&width=' + trace_getVariable(o, 'adwd') + '&height=' + trace_getVariable(o, 'adht') + '&format=' + trace_getVariable(o, 'format') + '&colorborder=' + trace_getVariable(o, 'bc') + '&colorbg=' + trace_getVariable(o, 'cc') + '&colorlink=' + trace_getVariable(o, 'lc') + '&colorurl=' + trace_getVariable(o, 'uc') + '&colortext=' + trace_getVariable(o, 'tc') + '&channel=' + trace_getVariable(o, 'type') + '&cchannel=null' + '&r=' + escape(document.referrer) + '&cv=yc' + '&dt=' + new Date().valueOf(); } } function trace_logsearch(e) { var bug = new Image(); if (trace_formObj.sitesearch) { var sd = (trace_formObj.sitesearch[0].checked)?"web":escape(trace_formObj.domains.value); } else { var sd = ''; } bug.src = 'http://yukinyan.net/tracerjp/tracer_2.php' + '?reference=' + escape(document.location.href) + '&q=' + escape(trace_formObj.q.value) + '&sd=' + sd + '&cchannel=null' + '&r=' + escape(document.referrer) + '&cv=s' + '&dt=' + new Date().valueOf(); var now = new Date(); var exitTime = now.getTime() + 250; while (true) { now = new Date(); if (now.getTime() > exitTime) return; } } var lastStatus = ''; var trace_iframeObj1; var trace_iframeObj2; var trace_iframeObj3; var trace_iframeObj4; var ypn_iframeObj1; var ypn_iframeObj2; var ypn_iframeObj3; var ypn_iframeObj4; var trace_mouseoverad = null; var trace_mozilla = false; var elements; elements = document.getElementsByTagName("iframe"); c = 0; y = 0; var agnt = navigator.userAgent.toLowerCase(); var trace_altclicks = (document.layers | agnt.indexOf("firefox")>-1 | agnt.indexOf("mozilla")>-1) && agnt.indexOf("msie")==-1; if (trace_altclicks){ if(document.layers){ window.captureEvents(Events.ONUNLOAD); } window.onunload = trace_docunload; trace_mozilla = true; } for (var i = 0; i < elements.length; i++) { if(elements[i].src.indexOf('googlesyndication.com') > -1) { if (document.layers) { elements[i].captureEvents(Events.ONFOCUS); elements[i].captureEvents(Events.ONMOUSEOVER); elements[i].captureEvents(Events.ONMOUSEOUT); } switch(c){ case 0: if (trace_altclicks) { elements[i].onmouseover = trace_mouseover1; elements[i].onmouseout = trace_mouseout; } else{ elements[i].onfocus = trace_aslog1; } trace_iframeObj1 = elements[i]; break; case 1: if (trace_altclicks) { elements[i].onmouseover = trace_mouseover2; elements[i].onmouseout = trace_mouseout; } else{ elements[i].onfocus = trace_aslog2; } trace_iframeObj2 = elements[i]; break; case 2: if (trace_altclicks) { elements[i].onmouseover = trace_mouseover3; elements[i].onmouseout = trace_mouseout; } else{ elements[i].onfocus = trace_aslog3; } trace_iframeObj3 = elements[i]; break; case 3: if (trace_altclicks) { elements[i].onmouseover = trace_mouseover4; elements[i].onmouseout = trace_mouseout; } else{ elements[i].onfocus = trace_aslog4; } trace_iframeObj4 = elements[i]; break; } c++; } else if(elements[i].src.indexOf('ypn-js.overture.com') > -1){ switch(y){ case 0: if (trace_altclicks) { elements[i].onmouseover = ypn_mouseover1; elements[i].onmouseout = ypn_mouseout; } else{ elements[i].onfocus = ypn_aslog1; } ypn_iframeObj1 = elements[i]; break; case 1: if (trace_altclicks) { elements[i].onmouseover = ypn_mouseover2; elements[i].onmouseout = ypn_mouseout; } else{ elements[i].onfocus = ypn_aslog2; } ypn_iframeObj2 = elements[i]; break; case 2: if (trace_altclicks) { elements[i].onmouseover = ypn_mouseover3; elements[i].onmouseout = ypn_mouseout; } else{ elements[i].onfocus = ypn_aslog3; } ypn_iframeObj3 = elements[i]; break; case 3: if (trace_altclicks) { elements[i].onmouseover = ypn_mouseover4; elements[i].onmouseout = ypn_mouseout; } else{ elements[i].onfocus = ypn_aslog4; } ypn_iframeObj4 = elements[i]; break; } y++; } } var trace_formObj; elements = document.getElementsByTagName("form"); for (var i = 0; i < elements.length; i++) { if(elements[i].action.indexOf){ if(elements[i].action.indexOf('www.google.com/custom') > -1) { if (document.layers) { elements[i].captureEvents(Events.ONSUBMIT); } elements[i].onsubmit = trace_logsearch; trace_formObj = elements[i]; } } } function trace_getVariable(o, name) { var dc = o.src; var prefix = name + "="; var begin = dc.indexOf("&" + prefix); if (begin == -1) { begin = dc.indexOf("?" + prefix); if (begin == -1) return null; } else begin += 1; var end = o.src.indexOf("&", begin); if (end == -1) end = dc.length; return unescape(dc.substring(begin + prefix.length, end)); } function trace_trackView1(){ trace_trackView(trace_iframeObj1); } function trace_trackView2(){ trace_trackView(trace_iframeObj2); } function trace_trackView3(){ trace_trackView(trace_iframeObj3); } function trace_trackView4(){ trace_trackView(trace_iframeObj4); } function trace_trackView(o){ var asUrl = 'http://yukinyan.net/tracerjp/tracer_2.php' + '?reference=' + escape(document.location.href) + '&cv=v' + '&width=' + google_ad_width + '&siteurl=' + '&height=' + google_ad_height + '&format=' + trace_getVariable(o, 'format') + '&colorborder=' + trace_getVariable(o, 'color_border') + '&colorbg=' + trace_getVariable(o, 'color_bg') + '&colorlink=' + trace_getVariable(o, 'color_link') + '&colorurl=' + trace_getVariable(o, 'color_url') + '&colortext=' + trace_getVariable(o, 'color_text') + '&channel=' + trace_getVariable(o, 'channel') + '&cchannel=null' + '&r=' + escape(document.referrer) + '&dt=' + new Date().valueOf(); var bug = new Image(); bug.src = asUrl; } function ypn_trackView1(){ ypn_trackView(ypn_iframeObj1); } function ypn_trackView2(){ ypn_trackView(ypn_iframeObj2); } function ypn_trackView3(){ ypn_trackView(ypn_iframeObj3); } function ypn_trackView4(){ ypn_trackView(ypn_iframeObj4); }function ypn_trackView(o){ var asUrl = 'http://yukinyan.net/tracerjp/tracer_2.php' + '?reference=' + escape(document.location.href) + '&cv=yv' + '&width=' + trace_getVariable(o, 'adwd') + '&siteurl=' + '&height=' + trace_getVariable(o, 'adht') + '&format=' + trace_getVariable(o, 'format') + '&colorborder=' + trace_getVariable(o, 'bc') + '&colorbg=' + trace_getVariable(o, 'cc') + '&colorlink=' + trace_getVariable(o, 'lc') + '&colorurl=' + trace_getVariable(o, 'uc') + '&colortext=' + trace_getVariable(o, 'tc') + '&channel=' + trace_getVariable(o, 'type') + '&cchannel=null' + '&r=' + escape(document.referrer) + '&dt=' + new Date().valueOf(); var bug = new Image(); bug.src = asUrl; } for(i=1;i<5;i++){ o = eval("trace_iframeObj" + i); if(o) { setTimeout("trace_trackView" + i + "()", (i-1) * 500); } yo = eval("ypn_iframeObj" + i); if(yo) { setTimeout("ypn_trackView" + i + "()", (i-1) * 500); } }