function DL_resemblesLink(txt) { // Workaround for IE bug involving links whose text resembles a URL return txt.indexOf('@') != -1 || txt.indexOf('www.') == 0 || txt.indexOf('http://') == 0 || txt.indexOf('https://') == 0 || txt.indexOf('ftp://') == 0; } function DL_click(e) { var o; if (e.srcElement) o = e.srcElement; else if (e.target) o = e.target; else return true; while (o.tagName != 'A' && o.parentElement) o = o.parentElement; if (o.tagName != 'A') return true; document.location.href = 'http://amch.questionmarket.com/surveyf/?survey_server=survey.questionmarket.com&survey_num=186434&from_node=4642&frame=0&lang=&dl_logo=nyt-775x100-1l-eng-nul.jpg&dl_invite=generic_nonincentive&dl_autoskip=40000&link='+escape(o.href)+"&orig="+escape(window.location.href); if (!e.preventDefault) { e.returnValue = false; e.cancelBubble = true; } else { e.preventDefault(); e.stopPrapagation(); } return true; } function DL_dlinker() { var doc = top.document; //alert(doc.links.length); for (var i=0; i -1 && httpidx < doc.links[i].href.indexOf(':') && doc.links[i].href.indexOf('#') < 0 && !excludes.test(doc.links[i].href) && (! (doc.links[i].innerText && DL_resemblesLink(doc.links[i].innerText) ) ) ){ if (doc.links[i].attachEvent) { doc.links[i].attachEvent("onclick", DL_click); } else if (doc.links[i].addEventListener) { doc.links[i].addEventListener("click", DL_click, false ); } } } } var DL_already_ran; if (!DL_already_ran) { setTimeout(DL_dlinker, 3000); DL_already_ran = 1; }