function ast_aslog1(e){ ast_aslog(e, ast_iframeObj1); } function ast_aslog2(e){ ast_aslog(e, ast_iframeObj2); } function ast_aslog3(e){ ast_aslog(e, ast_iframeObj3); } function ast_aslog(e, o) { window.focus(); if (window.status && (window.status != lastStatus)) { lastStatus = window.status; var bug = new Image(); bug.src = 'http://www.back2college.com/astracker/at.php' + '?ref=' + escape(document.location.href) + '&url=' + escape(window.status) + '&w=' + google_ad_width + '&h=' + google_ad_height + '&f=' + ast_getVariable(o, 'format') + '&cb=' + ast_getVariable(o, 'color_border') + '&cbg=' + ast_getVariable(o, 'color_bg') + '&cl=' + ast_getVariable(o, 'color_link') + '&cu=' + ast_getVariable(o, 'color_url') + '&ct=' + ast_getVariable(o, 'color_text') + '&ch=' + ast_getVariable(o, 'channel') + '&cch=null' + '&r=' + escape(document.referrer) + '&cv=c' + '&dt=' + new Date().valueOf(); } } function ast_logsearch(e) { var bug = new Image(); if (ast_formObj.sitesearch) { var sd = (ast_formObj.sitesearch[0].checked)?"web":escape(ast_formObj.domains.value); } else { var sd = ''; } bug.src = 'http://www.back2college.com/astracker/at.php' + '?ref=' + escape(document.location.href) + '&q=' + escape(ast_formObj.q.value) + '&sd=' + sd + '&cch=null' + '&r=' + escape(document.referrer) + '&cv=s' + '&dt=' + new Date().valueOf(); } var lastStatus = ''; var ast_iframeObj1; var ast_iframeObj2; var ast_iframeObj3; var elements; elements = document.getElementsByTagName("iframe"); c = 0; 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); } switch(c){ case 0: elements[i].onfocus = ast_aslog1; ast_iframeObj1 = elements[i]; break; case 1: elements[i].onfocus = ast_aslog2; ast_iframeObj2 = elements[i]; break; case 2: elements[i].onfocus = ast_aslog3; ast_iframeObj3 = elements[i]; break; } c++; } } var ast_formObj; elements = document.getElementsByTagName("form"); for (var i = 0; i < elements.length; i++) { if(elements[i].action.indexOf('www.google.com/custom') > -1) { if (document.layers) { elements[i].captureEvents(Events.ONSUBMIT); } elements[i].onsubmit = ast_logsearch; ast_formObj = elements[i]; } } function ast_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 ast_trackView1(){ ast_trackView(ast_iframeObj1); } function ast_trackView2(){ ast_trackView(ast_iframeObj2); } function ast_trackView3(){ ast_trackView(ast_iframeObj3); } function ast_trackView(o){ var asUrl = 'http://www.back2college.com/astracker/at.php' + '?ref=' + escape(document.location.href) + '&cv=v' + '&w=' + google_ad_width + '&url=' + '&h=' + google_ad_height + '&f=' + ast_getVariable(o, 'format') + '&cb=' + ast_getVariable(o, 'color_border') + '&cbg=' + ast_getVariable(o, 'color_bg') + '&cl=' + ast_getVariable(o, 'color_link') + '&cu=' + ast_getVariable(o, 'color_url') + '&ct=' + ast_getVariable(o, 'color_text') + '&ch=' + ast_getVariable(o, 'channel') + '&cch=null' + '&r=' + escape(document.referrer) + '&dt=' + new Date().valueOf(); var bug = new Image(); bug.src = asUrl; } for(i=1;i<4;i++){ o = eval("ast_iframeObj" + i); if(o) { setTimeout("ast_trackView" + i + "()", (i-1) * 500); } }