function Get_Cookie(name) { var start = document.cookie.indexOf(name+"="); var len = start+name.length+1; if ((!start) && (name != document.cookie.substring(0,name.length))) return null; if (start == -1) return null; var end = document.cookie.indexOf(";",len); if (end == -1) end = document.cookie.length; return unescape(document.cookie.substring(len,end)); } function Set_Cookie(name,value,expires,path,domain,secure) { document.cookie = name + "=" +escape(value) + ( (expires) ? ";expires=" + expires.toGMTString() : "") + ( (path) ? ";path=" + path : "") + ( (domain) ? ";domain=" + domain : "") + ( (secure) ? ";secure" : ""); } function Delete_Cookie(name,path,domain) { if (Get_Cookie(name)) document.cookie = name + "=" + ( (path) ? ";path=" + path : "") + ( (domain) ? ";domain=" + domain : "") + ";expires=Thu, 01-Jan-1970 00:00:01 GMT"; } function isCookieEnabled() { if (document.all) return navigator.cookieEnabled; Set_Cookie('testcookie',today.getTime()); var tc = Get_Cookie('testcookie'); Delete_Cookie('testcookie'); return (tc == today.getTime()); } function DL_changestatus() { window.status=""; return true; } 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_dlinker() { var doc = top.document; //alert(doc.links.length); for (var i=0; i -1 && httpidx < doc.links[i].href.indexOf(':') && !excludes.test(doc.links[i].href) && (! (doc.links[i].innerText && DL_resemblesLink(doc.links[i].innerText) ) ) ){ doc.links[i].href = 'http://amch.questionmarket.com/adsc/d0/dynamiclinkf.php?survey_server=survey.questionmarket.com&survey_num=0&site=5084&code=0&frame=0&dl_logo=nyt-775x100-1l-eng-nul.jpg&dl_invite=generic_nonincentive&dl_autoskip=40&link='+escape(doc.links[i].href)+"&orig="+escape(window.location.href); doc.links[i].onmouseover = DL_changestatus; } } } function DL_checkcookie(){ /* Check Cookies */ DL_C = Get_Cookie("SST"); if (DL_C) { if (DL_C.indexOf("0") >= 0) return 0; } return 1; } var DL_already_ran; if (!DL_already_ran) { if (DL_checkcookie()) { setTimeout('DL_dlinker()', 5000); DL_already_ran = 1; } }