bplist00j_WebSubresources_WebMainResource !%)-159@DHLQUY]ae _WebResourceResponse_WebResourceData^WebResourceURL_WebResourceMIMETypeObplist00 Y$archiverX$versionT$topX$objects_NSKeyedArchiver _WebResourceResponse )/078?JUZNS.objectsWNS.keys@ABCDEFGHIKLMNOPQRST VServerTVary]Last-Modified]Accept-Ranges_Content-EncodingTDate^Content-LengthZConnectionTEtag\Content-Type_Sun-ONE-Web-Server/6.1_Accept-Encoding_Thu, 25 Oct 2007 18:05:32 GMTUbytesTgzip_Mon, 21 Apr 2008 12:49:55 GMTT2524Zkeep-alive_"20f1-4720daec"12jkkl6_NSMutableDictionary\NSDictionary12noo6_NSHTTPURLResponseInternal12qrrs6_NSHTTPURLResponse]NSURLResponse$)2DILbd  %1357chq|  $2@SXgrw !%;HMPlqutO /* $Id: common.js,v 1.13 2007/10/16 14:42:34 cookn Exp $ (c) 2006-2007 The New York Times Company */ function nameIt() { window.name = 'nytimesmain'; if ((navigator.appName == "Microsoft Internet Explorer") && (document.all.globalsearchform)){ document.all.globalsearchform.style.visibility = "visible"; } } function pop_me_up(pURL,features){ new_window = window.open(pURL, "popup_window", features); new_window.focus(); } function pop_me_up2(pURL,name,features){ new_window = window.open(pURL,name,features); new_window.focus(); } function changeImage(image_name,image_src) { document.images[image_name].src = image_src; } function goToURL(obj){ var f = (obj.section) ? obj : obj.form; var selected = f.section.selectedIndex; var URL = f.section.options[selected].value; if (URL != "") document.location = URL; return false; } function goToURL2(sel){ // This version only works for onChange events from select objects // but the select object can have any name, unlike goToURL() which requires // the select object to be named "section" var selected = sel.selectedIndex; var url = sel.options[selected].value; if (url != "") document.location = url; return false; } if (window.self != window.top) { top.location.replace(window.location.pathname); } //begin functions for Travel flash slideshows function writeFlashSlideShow(xmlFile){ var swfFile = "/slideshow/swf/slideshow.swf?XMLfile=/slideshow/xml/travel/" + xmlFile; var HTMLstr = ""; HTMLstr += ""; HTMLstr += ""; HTMLstr += ""; HTMLstr += ""; HTMLstr += ""; HTMLstr += ""; HTMLstr += ""; return HTMLstr; } function showFirstSlide(imgName, photoCredit, photoCaption){ var HTMLstr = ""; HTMLstr += ""; HTMLstr += "\"photo\""; HTMLstr += ""; HTMLstr += "
" + photoCredit + "
"; HTMLstr += "
" + photoCaption + "
"; return HTMLstr; } //end functions for Travel flash slideshows //begin functions for Global flash slideshows function writeEmbeddedFlashSlideShow(xmlFile){ var swfFile = "/slideshow/swf/slideshow.swf?XMLfile=/slideshow/xml/" + xmlFile; var HTMLstr = ""; HTMLstr += ""; HTMLstr += ""; HTMLstr += ""; HTMLstr += ""; HTMLstr += ""; HTMLstr += ""; HTMLstr += ""; return HTMLstr; } function showFirstEmbeddedSlide(imgName, photoCredit, photoCaption){ var HTMLstr = ""; HTMLstr += ""; HTMLstr += "\"photo\""; HTMLstr += ""; HTMLstr += "
" + photoCredit + "
"; HTMLstr += "
" + photoCaption + "
"; return HTMLstr; } //end functions for Global flash slideshows function preloadNavImages(imageNames, imagePath){ var loadedImages = new Array(); if (document.images) { for (var i=0; i < imageNames.length; i++){ loadedImages[i] = new Image(); loadedImages[i].src = imagePath + "nav_" + imageNames[i] + "_off.gif"; } } } function readCookie(value){ var allCookieVals = document.cookie.split(";"); for (var i=0; i < allCookieVals.length; i++){ //loop through all cookies if (allCookieVals[i].indexOf(value) != -1) { //find target cookie var cookieVal = allCookieVals[i].split("="); //split name/value pair return cookieVal[1]; //return target cookie value } } } function expandMultimediaWindow(){ if (window.resizeTo && window.moveTo) { window.resizeTo(screen.availWidth, screen.availHeight); window.moveTo(0,0); } } function shrinkMultimediaWindow(w,h){ if (window.resizeTo) window.resizeTo(w,h); if (window.moveTo) { var winX = ((screen.availWidth/2) - (w/2)); var winY = ((screen.availHeight/2) - (h/2)); window.moveTo(winX,winY); } } function ieXLiquidWidth() { if (document.body.clientWidth < 774) { return "768px"; } else if (document.body.clientWidth > 984) { return "980px"; } else { return "auto"; } } function setClientSizeCookies() { var client_w = document.body.clientWidth; var path = "/"; var domain = "nytimes.com"; document.cookie = "client_w=" + client_w + "; path= " + path + "; domain=" + domain; } // Function for Classifieds and Most Popular modules function Accordian(target) { typeof target == "object" ? this.element = target : this.element = document.getElementById(target); if (!this.element) return false; this.ul = this.element.getElementsByTagName("ul")[0]; this.tabs = this.ul.getElementsByTagName("li"); this.tabContent = this.getTabContent(); this.bind(); } Accordian.prototype.getTabContent = function() { tabContent= new Array(); this.divs = this.element.getElementsByTagName("div"); for(var i = 0; i < this.divs.length; i++) { if (/tabContent/i.test(this.divs[i].className)) { tabContent.push(this.divs[i]); } } return tabContent; } Accordian.prototype.bind = function() { var o = this; for(var i = 0; i < this.tabs.length; i++) { this.tabs[i].onclick = function() { if (this.className != 'selected') { o.open(this); return false; var a = this.getElementsByTagName("a")[0]; if (a) a.onclick = function() { return false; } } } } } Accordian.prototype.open = function(caller) { for(var i = 0; i < this.tabs.length; i++) { var tab = this.tabs[i]; if (tab == caller) { this.collapse(); tab.className = "selected" this.tabContent[i].style.display = "block"; } } } Accordian.prototype.collapse = function() { for(var i = 0; i < this.tabs.length; i++) { this.tabs[i].className = ""; this.tabContent[i].style.display = "none"; } } //Function for Google ads links function linkbox(url, winName) { window.open(url, winName, "location=yes,directories=yes,menubar=yes,toolbar=yes,status=yes,resizable=yes,scrollbars=yes"); } function enhanceAccordians() { var divs = document.getElementsByTagName('div'); for (var i = 0; i < divs.length; i++) { var element = divs[i]; if (/accordian/i.test(element.className)) { new Accordian(element); } } } getMetaTagValue = function(name){ if (document.getElementsByTagName) { var meta = document.getElementsByTagName("meta"); for (var i=0; i < meta.length; i++) { if (meta[i].name == name) return meta[i].content; } } } _)http://graphics8.nytimes.com/js/common.js_application/x-javascript Obplist00 Y$archiverX$versionT$topX$objects_NSKeyedArchiver _WebResourceResponse! )/078?KWZNS.objectsWNS.keys@ABCDEFGHIJLMNOPQRSTUV VServer_Content-Encoding]Last-Modified]Accept-Ranges]Cache-ControlTDate^Content-LengthZConnectionTVaryTEtag\Content-Type_Sun-ONE-Web-Server/6.1Tgzip_Thu, 03 Apr 2008 16:50:43 GMTUbytes_private, max-age=530941_Wed, 23 Apr 2008 14:23:14 GMTT3009Zkeep-alive_Accept-Encoding_"25ba-47f50ae3"12noop6_NSMutableDictionary\NSDictionary12rss6_NSHTTPURLResponseInternal12uvvw6_NSHTTPURLResponse]NSURLResponse$)2DILbd  '3579sx  "$&(*,.5HVdrw&+6HZ_cyxO%// $Id: articleShare.js,v 1.29 2008/04/01 18:25:20 prichardk Exp $ function showHideSwap (id1, id2) { if (document.getElementById) { if (document.getElementById(id1).className == 'hide' && document.getElementById(id2).className == 'post') { document.getElementById(id1).className = 'show'; document.getElementById(id2).className = 'postFrame'; } else { document.getElementById(id1).className = 'hide'; document.getElementById(id2).className = 'post'; } } } function articleShare(site) { var popUpUrl; var title = getShareHeadline(); var description = getShareDescription(); switch (site) { case "newsvine": popUpUrl = generatePasskeyURL('newsvine'); var keywords = getShareSection(); if(typeof(getShareSubSection) == 'function') { if(getShareSubSection() != '') { keywords = keywords + ',' + getShareSubSection(); } } if (getShareKeywords() != '') { keywords = keywords + ',' + getShareKeywords(); } postPopUp('http://www.newsvine.com/_wine/save?ver=2&popoff=0&aff=nytimes&t=' + keywords + '&e=' + description + '&h=' + title + '&u=' + popUpUrl, 'newsvine', 'toolbar=0,status=0,height=445,width=650,scrollbars=yes,resizable=yes'); s_code_linktrack('Article-Tool-Share-Newsvine'); break; case "facebook": popUpUrl = generatePasskeyURL('facebook'); postPopUp('http://www.facebook.com/sharer.php?u=' + popUpUrl + '&t=' + title, 'facebook', 'toolbar=0,status=0,height=436,width=646,scrollbars=yes,resizable=yes'); s_code_linktrack('Article-Tool-Share-Facebook'); break; case "digg": popUpUrl = generatePasskeyURL('digg'); var topic = getShareSection(); postPopUp('http://digg.com/remote-submit?phase=2&url=' + popUpUrl + '&title=' + title + '&bodytext=' + description, 'digg', 'toolbar=0,status=0,height=450,width=650,scrollbars=yes,resizable=yes'); s_code_linktrack('Article-Tool-Share-Digg'); break; case "permalink": popUpUrl = generatePasskeyURL('permalink'); var section = getShareSectionDisplay(); var byline = getShareByline(); var pubdate = getSharePubdate(); postPopUp('http://www.nytimes.com/export_html/common/new_article_post.html?url=' + popUpUrl + '&title=' + title+ '&summary=' + description + '§ion=' + section + '&pubdate=' + pubdate + '&byline=' + byline, 'permalink', 'toolbar=0,status=0,height=410,width=490,scrollbars=yes,resizable=no'); s_code_linktrack('Article-Tool-Share-Permalink'); break; case "delicious": popUpUrl = generatePasskeyURL('delicious'); postPopUp('http://del.icio.us/post?v=4&partner=nyt&noui&jump=close&url=' + popUpUrl + '&title=' + title + '&bodytext=' + description, 'delicious', 'toolbar=0,status=0,height=400,width=700,scrollbars=yes,resizable=no'); s_code_linktrack('Article-Tool-Share-Delicious'); break; case "yahoobuzz": // fall-back behavior. At least it'll just open the page in a new window/tab, but not downsized. postPopUp( 'http://buzz.yahoo.com/article/new_york_times/' + encodeURIComponent(getShareURL()), 'yahoobuzz', 'scrollbars=yes,resizable=yes' ); s_code_linktrack('Article-Tool-Share-YahooBuzz'); break; case "mixx": try { var popUpUrl = getShareURL(); var passKey = encodeURIComponent( '?' + getSharePasskey() ); var otherParams = '&title=' + getShareHeadline() + '&description=' + getShareDescription() + '&tags=' + getShareKeywords() + '&partner=' + 'NYT'; postPopUp( 'http://mini.mixx.com/submit/story' + '?page_url=' + getShareURL() + passKey + otherParams, 'mixx', 'toolbar=0,status=0,height=550,width=700,scrollbars=yes,resizable=no' ); } catch(e) { postPopUp( 'http://mini.mixx.com/submit/story' + '?page_url=' + getShareURL() + '&title=' + getShareHeadline() + '&partner=' + 'NYT' , 'mixx', 'toolbar=0,status=0,height=550,width=700,scrollbars=yes,resizable=no' ); } s_code_linktrack('Article-Tool-Share-Mixx'); break; } } function generatePasskeyURL(tracker) { if(document.getElementById) { var passkey = getSharePasskey(); // make sure passkey exists if(passkey != '') { if (decodeURIComponent(getShareURL()).indexOf('?') > 0) { return getShareURL() + encodeURIComponent('&' + passkey + '&partner=' + tracker + '&exprod=' + tracker); } else { return getShareURL() + encodeURIComponent('?' + passkey + '&partner=' + tracker + '&exprod=' + tracker); } } else { if (decodeURIComponent(getShareURL()).indexOf('?') > 0) { return getShareURL() + encodeURIComponent('&partner=' + tracker + '&exprod=' + tracker); } else { return getShareURL() + encodeURIComponent('?partner=' + tracker + '&exprod=' + tracker); } } } } function postPopUp(url, name, params) { var win = window.open(url, name, params); } function addPostItem(parentElement, style, post_link, text) { if( document.createElement ){ if( typeof(window.shareToolsExcludeList)!='undefined' && typeof(window.shareToolsExcludeList[style])!='undefined' ) { return; } var postItem = document.createElement("LI"); postItem.className = style; var itemLink = document.createElement("A"); itemLink.setAttribute("href", post_link); itemLink.innerHTML = text; postItem.appendChild(itemLink); parentElement.appendChild(postItem); } } function writePost(excludeList) { if( document.createElement ){ var parentElement = document.getElementById('toolsList'); //create post li var postElement = document.createElement( "LI"); postElement.className = "post"; postElement.setAttribute("id", "post"); // create post link var postLink = document.createElement("A"); postLink.setAttribute("href", "#"); //postLink.setAttribute("onClick", "showHideSwap(\'postList\', \'post\'); return false;"); postLink.onclick = function () { showHideSwap('postList', 'post'); return false; }; postLink.innerHTML = " Share"; postElement.appendChild(postLink); // create unordered list for post items var postList = document.createElement("UL"); postList.setAttribute("id","postList"); postList.className = "hide"; // If excludeList is supplied, it's a hash keyed on vendor names // (CSS class names for the vendor links, actually) if(typeof(excludeList)!='undefined') { window.shareToolsExcludeList = excludeList; } //add post links addPosts(postList); postElement.appendChild(postList); parentElement.appendChild(postElement); instrumentYahooBuzzBadge(); } } function createYahooBuzzOnLoad() { // An event listener is attached once the badge is loaded so that // function itself is separated from the dom ref via a closure to prevent IE 6 memory leakage. window.yahooBuzzOnLoad = function () { var onclick = function () { // this is the onclick handler that gets attached to the badge. s_code_linktrack('Article-Tool-Share-YahooBuzz'); }; return function () { if(typeof(window['yahooBuzzOnLoad'])!='function') { window.yahooBuzzOnLoad=null; // clean up the global. } var badge = document.getElementById('yahooBuzzBadge-form'); if ( badge ) { if ( badge.addEventListener ) { badge.addEventListener('click', onclick, true); } else if ( badge.attachEvent ) { badge.attachEvent('click', onclick); } else { // can't put an onclick directly, or it'll break the badge. // This is an edge case, so losing non-mousers is not very significant. badge.onmousedown = onclick; } } } }(); }; function instrumentYahooBuzzBadge() { if ( document.getElementById('yahooBuzzBadge') ) { // already instrumented. Abort. return; } var list = document.getElementById('postList'); if ( !list ) { // haven't created the list yet. Abort. return; } createYahooBuzzOnLoad(); var postLinks = list.getElementsByTagName('a'); for ( var i = 0, l = postLinks.length; i < l; i ++ ) { var href = postLinks[i].href; href = href.toLowerCase(); if ( href.indexOf('buzz') !== -1 && href.indexOf('yahoo') !== -1 ) { // works whether it's the real URL or the javascript: with yahoobuzz in the call. var badge = postLinks[i]; badge.id = 'yahooBuzzBadge'; } } // Y! Buzz requires its own script be included dynamically like this ... var artUriYahoo = decodeURIComponent(getShareURL()); document.write( '' ); } function addPosts(shareList) { if(document.getElementById) { var sList; if(typeof(shareList)=='string') { sList = document.getElementById(shareList); } else if(typeof(shareList)=='object') { sList = shareList; } else { return false; } // Note: delicious and newsvine deleted intentionally, per Marko. addPostItem(sList, "digg", "javascript:articleShare('digg');", "Digg"); addPostItem(sList, "facebook", "javascript:articleShare('facebook');", "Facebook"); addPostItem(sList, "mixx", "javascript:articleShare('mixx');", "Mixx"); addPostItem(sList, "yahoobuzz", "javascript:articleShare('yahoobuzz');", "Yahoo! Buzz"); addPostItem(sList, "permalink", "javascript:articleShare('permalink');", "Permalink"); } } _7http://graphics8.nytimes.com/js/article/articleShare.js Obplist00 Y$archiverX$versionT$topX$objects_NSKeyedArchiver _WebResourceResponse )/078?JUZNS.objectsWNS.keys@ABCDEFGHIKLMNOPQRST VServerTVary]Last-Modified]Accept-Ranges_Content-EncodingTDate^Content-LengthZConnectionTEtag\Content-Type_Sun-ONE-Web-Server/6.1_Accept-Encoding_Thu, 04 Oct 2007 15:45:27 GMTUbytesTgzip_Mon, 21 Apr 2008 12:49:54 GMTS741Zkeep-alive^"80b-47050a97"12jkkl6_NSMutableDictionary\NSDictionary12noo6_NSHTTPURLResponseInternal12qrrs6_NSHTTPURLResponse]NSURLResponse$)2DILbd  %1357rw!#%'.3AObgv  ',0FSX[w|tO var Tacoda_AMS_DDC_snippet_version = "1.3a"; var Tacoda_AMD_DDC_snippet_date = "011905"; var Tacoda_AMS_DDC_clist = new Array("TID","RMID","nyt-d"); var Tacoda_AMS_DDC_clist_notset = null; var Tacoda_AMS_DDC_keys = new Array(); var Tacoda_AMS_DDC_values = new Array(); var Tacoda_AMS_DDC_vars_num = 0; function Tacoda_AMS_DDC_getCookie(name) { var cname = name + "="; var dc = document.cookie; if (dc.length > 0) { for(var begin = dc.indexOf(cname); begin != -1; begin = dc.indexOf(cname, begin)) { if((begin != 0) && (dc.charAt(begin - 1) != ' ')) { begin++; continue; } begin += cname.length; var end = dc.indexOf(";", begin); if (end == -1) end = dc.length; return unescape(dc.substring(begin, end)); } } return Tacoda_AMS_DDC_clist_notset; } function Tacoda_AMS_DDC_addPair(key, value) { Tacoda_AMS_DDC_keys[Tacoda_AMS_DDC_vars_num] = key; Tacoda_AMS_DDC_values[Tacoda_AMS_DDC_vars_num] = value; Tacoda_AMS_DDC_vars_num++; } function Tacoda_AMS_DDC_collect_vars() { var Tacoda_AMS_DDC_vars_as_string = ""; for(var i = 0; i < Tacoda_AMS_DDC_vars_num; i++) { Tacoda_AMS_DDC_vars_as_string += "&var_" + escape( Tacoda_AMS_DDC_keys[i] ) + "=" + escape( Tacoda_AMS_DDC_values[i] ) ; } return Tacoda_AMS_DDC_vars_as_string; } function Tacoda_AMS_DDC(Tacoda_AMS_DDC_img_url, Tacoda_AMS_DDC_js) { Tacoda_AMS_DDC_js = parseFloat(Tacoda_AMS_DDC_js); Tacoda_AMS_DDC_args = "?" + Math.random() + "&snippet_version=" + Tacoda_AMS_DDC_snippet_version + "&referrer=" + escape(document.referrer) + "&page=" + escape(window.location.href); Tacoda_AMS_DDC_args += "&timezone=" + (new Date()).getTimezoneOffset(); for(var i = 0; i < Tacoda_AMS_DDC_clist.length; i++) { var clist_name = Tacoda_AMS_DDC_clist[i]; var clist_value = Tacoda_AMS_DDC_getCookie(clist_name); if(clist_value != null) { Tacoda_AMS_DDC_args += "&clist_" + escape(clist_name) + "=" + escape(clist_value); } } Tacoda_AMS_DDC_args += Tacoda_AMS_DDC_collect_vars(); document.write(''); } _8http://graphics8.nytimes.com/js/Tacoda_AMS_DDC_Header.js Obplist00 Y$archiverX$versionT$topX$objects_NSKeyedArchiver _WebResourceResponse )/078?JUZNS.objectsWNS.keys@ABCDEFGHIKLMNOPQRST VServerTVary]Last-Modified]Accept-Ranges_Content-EncodingTDate^Content-LengthZConnectionTEtag\Content-Type_Sun-ONE-Web-Server/6.1_Accept-Encoding_Thu, 04 Oct 2007 15:45:47 GMTUbytesTgzip_Mon, 21 Apr 2008 12:49:55 GMTT1159Zkeep-alive^"fb3-47050aab"12jkkl6_NSMutableDictionary\NSDictionary12noo6_NSHTTPURLResponseInternal12qrrs6_NSHTTPURLResponse]NSURLResponse$)2DILbd  %1357chq|  $2@SXgrw "8EJMinrtO// function furlIt(title, url, clip, referrer, partner) { // var furlit=window.open(buildURL(title, url, clip, referrer, partner, true),'myfurlwindow','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'); // furlit.focus(); // return false; // } /** * This function is now exclusively Article Tools Save, * The SAVE link included within each article * */ function furlItNoPop(title, url, clip, referrer, partner) { articleToolsSave(title, url, clip, referrer, partner); } /** * Article tools save * 1-click with simple confirmation * */ function articleToolsSave(title, url, clip, referrer, partner) { saveArticle(buildURL(title, url, clip, referrer, partner, "articleToolsSave")); return false; } function dropDownToolsSave(title, url, clip, referrer, partner) { document.location.href = buildURL(title, url, clip, referrer, partner, "normal"); return false; } function buildURL(title, url, clip, referrer, partner, type) { var d = document; pop = "p=1"; if (!title) { title = ""; } else { title = "&t=" + encodeIt(title); } if (!url) { url= "&u="; } else { url = "&u=" + escape(url); } if (!referrer) { referrer = d.referrer; if (!referrer) { referrer = "&r="; } } else { referrer = "&r=" + escape(referrer); } if (partner && partner != "") { partner = "&source=" + partner; } else { partner = ""; } if (!clip) { d.selection?(d.selection.type!="None"?d.selection.createRange().text:""):(d.getSelection?d.getSelection():""); if (document.selection) { if (d.selection.type != "None") { clip = d.selection.createRange().text; } } else if (d.getSelection) { clip = d.getSelection(); } else if (getSelection) { clip = getSelection(); } if (!clip) { clip = ""; } } clip = "&c=" + encodeIt(clip); if(typeof(getShareSection) != "undefined") { shareSection = "&dt=" + getShareSection(); } else { shareSection = ""; } if(type == "normal") { return "http://timesfile.nytimes.com/storeIt.jsp?" + pop + title + url + referrer + partner + clip + shareSection; } else if(type == "articleToolsSave") { store = "&store=nytOneClick"; return "http://timesfile.nytimes.com/store?" + pop + title + url + referrer + partner + store + clip + shareSection; } else { store = "&store=mostPopularOneClick"; if(days) { days = "&days=" + days; } if(mppg) { page = "&page" + mppg; } //prompt("MP One Click Save URL", "http://timesfile.nytimes.com/store?" + pop + title + url + referrer + partner + store + clip + shareSection + page + days); return "http://timesfile.nytimes.com/store?" + pop + title + url + referrer + partner + store + clip + shareSection + page + days; } } function encodeIt(strToEncode) { if (typeof(encodeURIComponent) != 'function') { retVal = escape(strToEncode); } else { retVal = encodeURIComponent(strToEncode); } return retVal; } function decodeIt(strToDecode) { if (typeof(decodeURIComponent) != 'function') { retVal = unescape(strToEncode); } else { retVal = decodeURIComponent(strToDecode); } return retVal; } function saveArticle(url) { var int_windowLeft = (screen.width - 420) / 2; var int_windowTop = (screen.height - 370) / 2; var str_windowProperties = ',top=' + int_windowTop + ',left=' + int_windowLeft ; new_window = window.open(url,"save","width=420,height=370,scrollbars=0,statusbar=0,resizable=1,toolbar=0,location=0,menubar=0"+str_windowProperties); new_window.focus(); }_)http://graphics8.nytimes.com/js/fileit.js Obplist00 Y$archiverX$versionT$topX$objects_NSKeyedArchiver _WebResourceResponse )/078?JUZNS.objectsWNS.keys@ABCDEFGHIKLMNOPQRST VServerTVary]Last-Modified]Accept-Ranges_Content-EncodingTDate^Content-LengthZConnectionTEtag\Content-Type_Sun-ONE-Web-Server/6.1_Accept-Encoding_Thu, 04 Oct 2007 15:45:35 GMTUbytesTgzip_Mon, 21 Apr 2008 12:49:54 GMTS541Zkeep-alive^"5bd-47050a9f"12jkkl6_NSMutableDictionary\NSDictionary12noo6_NSHTTPURLResponseInternal12qrrs6_NSHTTPURLResponse]NSURLResponse$)2DILbd  %1357sx "$&(/4BPchw (-1GTY\x}tOfunction DropDown( dropDownId ){ if( window.dropDowns && window.dropDowns[dropDownId] ){ // already registered return window.dropDowns[dropDownId]; } else { // unregistered this.elementId = dropDownId; this.mouseOver = false; this.timeoutID; var ddObj = this.getElement(); // if( ddObj.className != "dropDown" ) throw new Error( this.elementId + " is not a valid DropDown. Please make sure you have provided it a CSS class of 'dropDown'." ); //register if( !window.dropDowns ) window.dropDowns = new Object(); window.dropDowns[this.dropDownId] = this; } } DropDown.prototype.show = function(){ ddObj = this.getElement(); ddObj.style.visibility = "visible"; ddObj.onmouseout = function( event ){ window.dropDowns[this.elementId].mouseOver = false; this.timeoutID = window.setTimeout( "window.dropDowns['" + this.elementId + "'].checkOver();" , 500 ); } ddObj.onmouseover = function( event ){ window.dropDowns[this.elementId].mouseOver = true; window.clearTimeout(this.timeoutID); } } DropDown.prototype.TimeOut = function(){ var ddObj = this; this.timeoutID = window.setTimeout( function(){ddObj.checkOver();} , 500 ); } DropDown.prototype.hide = function(){ this.getElement().style.visibility = "hidden"; } DropDown.prototype.getElement = function(){ return document.getElementById( this.elementId ); } DropDown.prototype.checkOver = function(){ if( this.mouseOver == false ) this.hide(); } _9http://graphics8.nytimes.com/js/common/screen/DropDown.js Obplist00 Y$archiverX$versionT$topX$objects_NSKeyedArchiver _WebResourceResponse! )/078?KWZNS.objectsWNS.keys@ABCDEFGHIJLMNOPQRSTUV VServer_Content-Encoding]Last-Modified]Accept-Ranges]Cache-ControlTDate^Content-LengthZConnectionTVaryTEtag\Content-Type_Sun-ONE-Web-Server/6.1Tgzip_Thu, 04 Oct 2007 15:45:37 GMTUbytes_private, max-age=193312_Wed, 23 Apr 2008 14:23:14 GMTS521Zkeep-alive_Accept-Encoding^"502-47050aa1"12noop6_NSMutableDictionary\NSDictionary12rss6_NSHTTPURLResponseInternal12uvvw6_NSHTTPURLResponse]NSURLResponse$)2DILbd  '3579   ')+-/13579;=?FYgu7;FXglpxOfunction modifyNavigationDisplay(){ if(document.createElement && document.getElementById( "navigation")) { var navDiv = document.getElementById( "navigation" ); var navList = evalChildNodes( navDiv , ["nodeName.toLowerCase() == 'ul'" , "className == 'tabs'"] ); var selectedItem = evalChildNodes ( navList , ["className == 'selected'" , "nodeName.toLowerCase() == 'li'"] ); if (!selectedItem) return false; var subNavList = evalChildNodes( selectedItem , ["nodeName.toLowerCase() == 'ul'"] ); if(subNavList) { subNavList.id = "sub" + selectedItem.id; var subNavDiv = document.createElement( "DIV" ); subNavDiv.id = "subNavigation"; navDiv.appendChild( subNavDiv ); selectedItem.removeChild( subNavList ); subNavDiv.appendChild( subNavList ); } } } function evalChildNodes( parentObj , evalStatementArray ){ var evalStatement = new String(); try{ for( iESA=0 ; iESA < evalStatementArray.length ; iESA++ ){ if( iESA != 0 ) evalStatement += " && "; evalStatement += " parentObj.childNodes[iECN]." + evalStatementArray[iESA] + " "; } for( iECN=0 ; iECN < parentObj.childNodes.length ; iECN++ ){ if( eval( evalStatement ) ){ return parentObj.childNodes[iECN]; } } return null; } catch( e ){ return null; } }_Hhttp://graphics8.nytimes.com/js/common/screen/modifyNavigationDisplay.js"#$ Obplist00 Y$archiverX$versionT$topX$objects_NSKeyedArchiver _WebResourceResponse! )/078?KWZNS.objectsWNS.keys@ABCDEFGHIJLMNOPQRSTUV VServer_Content-Encoding]Last-Modified]Accept-Ranges]Cache-ControlTDate^Content-LengthZConnectionTVaryTEtag\Content-Type_Sun-ONE-Web-Server/6.1Tgzip_Thu, 04 Oct 2007 15:45:36 GMTUbytes_private, max-age=566498_Wed, 23 Apr 2008 14:23:14 GMTT2322Zkeep-alive_Accept-Encoding_"1f2c-47050aa0"12noop6_NSMutableDictionary\NSDictionary12rss6_NSHTTPURLResponseInternal12uvvw6_NSHTTPURLResponse]NSURLResponse$)2DILbd  '3579}   "$&(*,.02468?R`n|05@RdimxO,/* modified version of original answers_embed1.js * points to nytimes.com Reference/Answers.com search * answers_embed1.js -- enables alt-click inside document and call Answers.com query * Disclaimer: This is a beta version. * Copyright (c) Answers Corporation 1999-2006. All rights reserved. */ var openBlockedPopupsInline=false; var ANSW_Trigger_trigger="dblclick"; var ANSW_Trigger_triggerModKey=""; if (typeof ANSW_Trigger_trigger == "undefined") ANSW_Trigger_trigger = "click"; // or dblclick if (typeof ANSW_Trigger_triggerModKey == "undefined") ANSW_Trigger_triggerModKey = "altKey"; var moz=false; var isOpera = navigator.userAgent.toLowerCase().indexOf("opera") != -1; if (document.all == null && document.getElementById != null && document.layers == null) { moz = true; document.addEventListener(ANSW_Trigger_trigger, function (e) { window.event = e;}, true); // using capture } function ActivateAnswers() { if (typeof ANSW_Trigger_triggerModKey != "undefined" && ANSW_Trigger_triggerModKey == "altKey") ANSW_Trigger_triggerModCond = event.altKey; else ANSW_Trigger_triggerModCond = true; if (!moz && window.event && ANSW_Trigger_triggerModCond && document && document.body) { if (document.readyState != "complete" || event.srcElement.getAttribute('noAnswerTip') || ANSW_Trigger_trigger=="dblclick" && ANSW_Trigger_triggerModKey == "" && event.srcElement.tagName == "A") return false; //exit function for IE browsers var wordsRange = 4; var rng; rng = document.selection.createRange(); rng.collapse(); rng.expand("word"); if (rng.text.length == 0 || document.selection.type == "None") { if (event && event.srcElement && event.srcElement.isTextEdit) { rng=event.srcElement.createTextRange(); } else { var el = event.srcElement.parentTextEdit; rng = el.createTextRange(); } rng.moveToPoint(event.clientX, event.clientY); } originalRng = rng.duplicate(); rng.expand("word"); var str = ""; var iStartWord = -1; var bFirstWord, bLastWord; var afterWordsCount = 0; var beforeWordsCount = 0; // move back while (!bFirstWord && rng.text && beforeWordsCount<=wordsRange) { if (-1 != rng.text.search(/\S/) ) { str = rng.text + str; if (rng.text.search(/\s/) > -1 || iStartWord==-1) { beforeWordsCount++; iStartWord++; } } if (rng.move("word", -1)) rng.expand("word"); else bFirstWord = true; } // move forward rng = originalRng; if (rng.move("word", 1)) rng.expand("word"); else bLastWord = true; while (!bLastWord && rng.text && afterWordsCount 0 && iStartWord >= 0) LaunchWBQuery(str,iStartWord, null); event.returnValue = false; return false; } else if (ANSW_Trigger_triggerModCond && event.rangeParent && event.rangeParent.nodeType == document.TEXT_NODE) { if (event.target.getAttribute('noAnswerTip') || ANSW_Trigger_trigger=="dblclick" && ANSW_Trigger_triggerModKey == "" && event.target.tagName == "A") return false; //exit function if mozilla browser var rangeOffset = event.rangeOffset; var range = document.createRange(); range.selectNode(event.rangeParent); var rngstr = range.toString(); range.detach(); // remove leading white space var nonWS = rngstr.search(/\S/); rngstr = rngstr.substr(nonWS).replace(/(\r|\n)/, " "); rangeOffset -= nonWS; // which word is the focus word - i.e. which word the rangeOffset is in var startstr = rngstr.substring(0, rangeOffset); var endstr = rngstr.substring(rangeOffset, rngstr.length); var wordlist = startstr.split(/\s+/); var wordlist2 = endstr.split(/\s+/); if (wordlist.length > 4) wordlist = wordlist.slice(wordlist.length-4); if (wordlist2.length > 5) wordlist2 = wordlist2.slice(0, 4); rngstr = wordlist.join(" ") + wordlist2.join(" "); var iStartWord = wordlist.length - 1; if (rngstr.length > 0 && iStartWord >= 0) { LaunchWBQuery(rngstr, iStartWord, null); } event.preventDefault(); event.stopPropagation(); } } function LaunchWBQuery(s, fw, myobj) { if (typeof fw == "undefined") fw = ''; if (typeof answersURL == "undefined" || answersURL == "") { if (location.host == "lac") answersURL = "http://lac/"; else answersURL = "http://query.nytimes.com/search/query?srchst=ref&query="; } if (typeof s == "undefined" || s == null) { if (typeof myobj != "undefined" && myobj != null && typeof myobj.s != "undefined") s = myobj.s.value; else s = ""; } if (s != "") { if (typeof ANSW != "undefined" && typeof (ANSW.b5) != "undefined") { if (document.documentElement && document.documentElement.scrollTop) theTop = document.documentElement.scrollTop; else if (document.body) theTop = document.body.scrollTop if (document.documentElement && document.documentElement.scrollLeft) theX = document.documentElement.scrollLeft; else if (document.body) theX = document.body.scrollLeft y = theTop + event.clientY; x = theX = event.clientX; if (typeof (ANSW.nafid) != "undefined") ANSW.b5.FireQuery(s,y,x,fw,ANSW.nafid); else ANSW.b5.FireQuery(s,y,x,fw); } else { var s_esc = ""; for (var i = 0; i< s.length;i++){ var c = s.charCodeAt(i); if (c==8216||c==8217) s_esc += "'" else if (c==8220||c==8221)s_esc+='"' else if (c==8211||c==8212)s_esc+='-' else s_esc += s.charAt(i); } var sep = answersURL.indexOf("?")<0 ? "?" : "&"; var newurl = answersURL + s_esc + sep + "fw=" + fw; var newwin = window.open(newurl,'GuruWnd','height=450,width=800,location,menubar,toolbar,status,resizable,scrollbars'); if (newwin) newwin.focus(); else if (openBlockedPopupsInline)location.href = newurl; } } else return false; } function noSelect() { if (event && event.ctrlKey && event.altKey) return false; } if (document.addEventListener) document.addEventListener(ANSW_Trigger_trigger, ActivateAnswers, true); else if (document.all) { if (ANSW_Trigger_trigger == "dblclick") document.ondblclick = ActivateAnswers; else if (ANSW_Trigger_trigger == "click"){ document.onclick = ActivateAnswers; document.onselectstart = noSelect; } } _Ahttp://graphics8.nytimes.com/js/common/screen/altClickToSearch.js&'( Obplist00 Y$archiverX$versionT$topX$objects_NSKeyedArchiver _WebResourceResponse )/078?JUZNS.objectsWNS.keys@ABCDEFGHIKLMNOPQRST VServer_Content-Encoding]Last-Modified]Accept-RangesZConnectionTDate^Content-LengthTVaryTEtag\Content-Type_Sun-ONE-Web-Server/6.1Tgzip_Thu, 25 Oct 2007 18:05:33 GMTUbytesZkeep-alive_Wed, 23 Apr 2008 14:23:14 GMTS812_Accept-Encoding^"8c9-4720daed"12jkkl6_NSMutableDictionary\NSDictionary12noo6_NSHTTPURLResponseInternal12qrrs6_NSHTTPURLResponse]NSURLResponse$)2DILbd  %1357inw  %8FT_dsx}#'=JORnswtO/* $Id: tooltip.js,v 1.2 2007/10/22 19:26:44 cookn Exp $ (c)2006 - 2007 The New York Times Company */ function tooltip() { this.container = null; this.content = null; this.miliseconds = 5000; this.timeoutId = null; this.topOffset = 0; this.leftOffset = 65; this.coords = []; return this; } tooltip.prototype.write = function(){ this.container = document.createElement("div"); this.container.setAttribute("id", "toolTip"); this.container.setAttribute("class","show"); closeButton = document.createElement("div"); closeButton.setAttribute("id", "button"); A = document.createElement("a"); A.setAttribute("href", "javascript:tooltip.hide();"); A.appendChild(document.createTextNode("close window")); closeButton.appendChild(A); this.container.appendChild(closeButton); this.content = document.createElement("div"); this.content.setAttribute("id", "content"); this.content.appendChild(document.createTextNode("this is the toolbar")); this.container.appendChild(this.content); document.body.appendChild(this.container); } tooltip.prototype.stop = function(){ if (this.timeoutId != null) window.clearTimeout(this.timeoutId); } tooltip.prototype.findPos = function(obj) { var curleft = curtop = 0; if (obj.offsetParent) { curleft = obj.offsetLeft curtop = obj.offsetTop while (obj = obj.offsetParent) { curleft += obj.offsetLeft curtop += obj.offsetTop } } this.coords = [curleft,curtop]; } tooltip.prototype.show = function(obj, text) { this.stop(); //initialize tooltip div if (this.container == null) { this.write(); } this.findPos(obj); topOffset = (arguments[2]) ? arguments[2] : this.topOffset; //use custom value for top if available leftOffset = (arguments[3]) ? arguments[3] : this.leftOffset; //use custom value for left if available this.container.style.top = (this.coords[1] + topOffset) + 'px'; this.container.style.left = (this.coords[0] + leftOffset) + 'px'; this.container.style.display = "block"; this.content.innerHTML = text; } tooltip.prototype.rollout = function(){ this.timeoutId = window.setTimeout("tooltip.hide()", this.miliseconds); } tooltip.prototype.hide = function() { this.stop(); this.container.style.display = "none"; } tooltip = new tooltip(); _/http://graphics8.nytimes.com/js/util/tooltip.js*+, Obplist00 Y$archiverX$versionT$topX$objects_NSKeyedArchiver _WebResourceResponse! )/078?KWZNS.objectsWNS.keys@ABCDEFGHIJLMNOPQRSTUV VServer_Content-Encoding]Last-Modified]Accept-Ranges]Cache-ControlTDate^Content-LengthZConnectionTVaryTEtag\Content-Type_Sun-ONE-Web-Server/6.1Tgzip_Tue, 25 Mar 2008 20:33:17 GMTUbytes_private, max-age=323205_Wed, 23 Apr 2008 14:23:15 GMTS731Zkeep-alive_Accept-Encoding^"5ec-47e9618d"12noop6_NSMutableDictionary\NSDictionary12rss6_NSHTTPURLResponseInternal12uvvw6_NSHTTPURLResponse]NSURLResponse$)2DILbd  '3579w|   "$&(*,.029LZhv{ *.9KZ_cyxO/* $Id: crnrXHR.js,v 1.3 2008/03/25 15:52:53 abehrens Exp $ (c)2006 - 2007 The New York Times Company */ function crnrXHR(){ this.xhr = this.getXHRobject(); this.serviceURL = "/svc/community/crnrJSONRequestHandler.html"; this.responseData = null; this.requestData = null; this.callbacks = []; //array of functions to be called when new responses come in return this; } crnrXHR.prototype.getXHRobject = function() { var r = false; try { r = new XMLHttpRequest(); } catch (trymicrosoft) { try { r = new ActiveXObject("Msxml2.XMLHTTP"); } catch (othermicrosoft) { try { r = new ActiveXObject("Microsoft.XMLHTTP"); } catch (failed) { /* do nothing */ } } } return r; } crnrXHR.prototype.send = function(){ if (this.xhr) { var myxhr = this; // handle to crnrXHR object this.xhr.open("post",this.serviceURL, true); this.xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); this.xhr.send(this.requestData); this.xhr.onreadystatechange = function() { myxhr.respond() }; } } crnrXHR.prototype.respond = function(){ if ((this.xhr.readyState == 4) && (this.xhr.status == 200)) { //cache response this.responseData = eval("(" + this.xhr.responseText + ")"); // invoke any callback functions for (var i=0; i < this.callbacks.length; i++){ this.callbacks[i](); } // reset callbacks this.callbacks.length=0; } } _;http://graphics8.nytimes.com/js/article/comments/crnrXHR.js./0 Obplist00 Y$archiverX$versionT$topX$objects_NSKeyedArchiver _WebResourceResponse! )/078?KWZNS.objectsWNS.keys@ABCDEFGHIJLMNOPQRSTUV VServer_Content-Encoding]Last-Modified]Accept-Ranges]Cache-ControlTDate^Content-LengthZConnectionTVaryTEtag\Content-Type_Sun-ONE-Web-Server/6.1Tgzip_Fri, 28 Mar 2008 13:44:44 GMTUbytes_private, max-age=535055_Wed, 23 Apr 2008 14:23:15 GMTT1594Zkeep-alive_Accept-Encoding_"14b1-47ecf64c"12noop6_NSMutableDictionary\NSDictionary12rss6_NSHTTPURLResponseInternal12uvvw6_NSHTTPURLResponse]NSURLResponse$)2DILbd  '3579  (*,.02468:<>@GZhv8=HZlquxO/* $Id: articleCommentManager.js,v 1.17 2008/03/26 16:45:37 warren.chin Exp $ (c)2006 - 2007 The New York Times Company */ // REQUIRES: /js/article/comments/crnrXHR.js function commentCount() { this.div = "commentCount"; this.container = null; this.data = null; return this; } commentCount.prototype.write = function(){ this.container = (document.getElementById) ? document.getElementById(this.div) : null; if ((document.createTextNode) && (this.container != null) && (this.data != null)){ var num = (this.data.response.commentCount) ? this.data.response.commentCount : 0; var output = ((!isNaN(num)) && (num > 0)) ? "(" + num + ")" : ""; this.container.appendChild(document.createTextNode(output)); } } function readerComment() { this.div = "readerscomment"; this.container = null; this.data = null; return this; } readerComment.prototype.write = function(){ this.container = (document.getElementById) ? document.getElementById(this.div) : null; if ((document.createElement) && (this.container != null) && (this.data != null) && (this.countData != null)) { var r = this.data.response; var numComments = (this.countData.response.commentCount && this.countData.response.commentCount > 0) ? "("+this.countData.response.commentCount+")" : ""; if ((r.excerpt) || (r.question) || r.statusCode == "1001") { var hasExcerpt = (r.hasExcerpt == "true"); var url = "http://" + r.communityHost + "/article/comments" + document.location.pathname; var h = "

Readers\' Comments

"; h += "
"; h += "
" h += (r.statusCode == "1001") ? "Readers shared their thoughts on this article." : ( (hasExcerpt) ? "\"" + r.excerpt.body + "\"" : r.question.body ) ; h += "
"; if (hasExcerpt){ var user = r.excerpt.user; if ((user.userDisplayName.length > 0) && (user.userLocation.length > 0)) { h += "" + user.userDisplayName + ", " + user.userLocation + ""; } } h += "
"; this.container.innerHTML = h; } } } function articleCommentManager(){ //create helper objects to render content this.cc = new commentCount(); this.rc = new readerComment(); //create XMLHttpRequest object this.xhr = new crnrXHR(); this.id = getMetaTagValue("articleid"); var encodedJSON = encodeURIComponent('{"getPromo":{"request":{"vendorID": "' + this.id + '", "source":"nytd-cms","requestType":"getPromo"},"response":{}},"commentCount":{"request":{ "vendorID":"' + this.id + '", "source":"nytd-cms","requestType":"commentCount"},"response":{}}}'); this.xhr.requestData = "requestData=" + encodedJSON; myArticleCommentManager = this; this.xhr.callbacks.push(function() {myArticleCommentManager.update()}); this.xhr.send(); return this; } articleCommentManager.prototype.update = function() { this.cc.data = (this.xhr.responseData.commentCount) ? this.xhr.responseData.commentCount : null; this.rc.data = (this.xhr.responseData.getPromo) ? this.xhr.responseData.getPromo : null; this.rc.countData = (this.xhr.responseData.commentCount) ? this.xhr.responseData.commentCount : null; if ((this.cc.container != null) && (this.rc.container != null)) { this.rc.write(); this.cc.write(); } } var acm = new articleCommentManager(); _Ihttp://graphics8.nytimes.com/js/article/comments/articleCommentManager.js234 Obplist00 Y$archiverX$versionT$topX$objects_NSKeyedArchiver _WebResourceResponse )/078?JUZNS.objectsWNS.keys@ABCDEFGHIKLMNOPQRST VServer_Proxy-Connection]Last-Modified]Cache-ControlTVaryTDate^Content-LengthZConnectionTEtag\Content-Type_Sun-ONE-Web-Server/6.1Zkeep-alive_Fri, 11 Apr 2008 14:16:05 GMTZmax-age=1d_Accept-Encoding_Wed, 23 Apr 2008 14:24:09 GMTU40550_"9e66-47ff72a5"12ijjk6_NSMutableDictionary\NSDictionary12mnn6_NSHTTPURLResponseInternal12pqqr6_NSHTTPURLResponse]NSURLResponse$)2DILbd  %1357z  !#%')+-/6IWejo~"49=S`ehsOf/* $Id: controller_v1.1.js,v 1.24 2008/04/10 16:08:34 donohoe Exp $ */ // SET GLOBAL VARS var nyt_url = document.URL; var nyt_domain = document.domain; var nyt_path = window.location.pathname; var wt_dcsidArray = {"General":"dcsym57yw10000s1s8g0boozt_9t1x", "Homepage":"dcsa5pgfq10000c9zuysqk0lm_6i8y", "World":"dcspjt2na00000wcnvo8wdaeo_7q9o", "U.S.":"dcsypfq3j00000gsclwfljaeo_6i3w", "Politics":"dcsa23rmv10000wowiejpwx86_4v7j", "N.Y./Region":"dcsj5tb4n100000sl76culaeo_4f3w", "Business":"dcsc32upj10000c58n7kgpaeo_8i3g", "Technology":"dcs591klg00000c97pblfraeo_7p3p", "Science":"dcsaon9rw0000008ifmgqtaeo_2f9c", "Health":"dcsfj6l0t100008ijt0irzaeo_2k8f", "Sports":"dcss4vytr000000kbuy6j8beo_6f7s", "Opinion":"dcs5ydwfq100008me456mabeo_1z2v", "Books":"dcss90tjf00000knzmux6hbeo_8r8y", "Dance":"dcs9ihxq600000w842mebkbeo_9r6q", "Movies":"dcsyoaqvl00000wc34qfambeo_4q3b", "Music":"dcsrioyse100000kjghaqubeo_2d4x", "TV":"dcsghn1j900000gs8yfgfwbeo_3r9l", "Theater":"dcsxl9f4810000oub8mfiybeo_5l8v", "Arts":"dcsnu1k8n00000oi2prv9fbeo_2w5s", "T:Style":"dcs31c2fd10000w8wjmo22ceo_5x6n", "Style":"dcs2dla2i00000431qkl70ceo_3j4r", "Travel":"dcsktwey810000kfp9nsv3ceo_6n1r", "Jobs":"dcsxmnyde100000oerlyk5ceo_6k5k", "Real Estate":"dcsuvvccp000000sdtpzj7ceo_3j2x", "Great Homes":"dcszwassu10000w8cogv42y86_8h8v", "Autos":"dcs3i2ttw0000043xyk839ceo_2v6n", "Classifieds":"dcso5eb2r10000cpz9bq5cceo_3j5e", "Video":"dcs1j460r100008uw7es2eceo_6c4w", "TimesSelect":"dcsqdkcdj100004zt5huzfceo_3b7v", "Times Topics":"dcs3baftr1000008q5oxvjceo_4r9g", "Member Center":"dcst9xior10000wo45l9anceo_4u9e", "Crosswords/Games":"dcsepujaa100000s5bq9bpceo_7w6k", "Sunday Magazine":"dcsrmsj6n10000wok933qrceo_1x8d", "Most Popular":"dcsvmgcs910000o2ubv1z1deo_8b5s", "Learning Network":"dcslh0e4x00000ggzmnn3ldeo_6f8k", "Knowledge Network":"dcs69r7oi100004nscorwmdeo_7r4i", "Week In Review":"dcsvfceih10000o610i65qdeo_7y5r", "Weather":"dcsker4wf10000wszj8b32eeo_4m7u", "News Tracker":"dcsa1h2mn00000oacf4of5eeo_5f2m", "Multimedia":"dcsvs34dy000000chtbmk7eeo_3f9p", "Cartoons / Humor":"dcsc1dh4600000oiajcqd9eeo_9l2m", "Cartoons":"dcsc1dh4600000oiajcqd9eeo_9l2m", "AP/Reuters":"dcs15dnk9100004r7jamfwu0p_3v8n", "Search":"dcsmcntzl00000wwyhty30deo_8o2v", "Blogrunner":"dcs9rqdr610000082j6e7xceo_1c8r", "MyTimes":"dcsctlxlp10000chdjl4jlceo_2d1n", "Times File":"dcs91tz2300000c1p17hs3eeo_4o7e", "Email This":"dcsy6xxc210000g07639fkkvs_7b7o", "Archive":"dcssxc7tw10000ggrcqca1cbr_1v1i", "Widget":"dcsoy2de300000ch9g4qg9oct_9j4x"}; var wt_cgArray = {"aponline":"AP/Reuters", "arts":"Arts", "automobiles":"Autos", "books":"Books", "business":"Business", "crosswords":"Crosswords/Games", "dining":"Style", "education":"U.S.", "fashion":"Style", "garden":"Style", "greathomesanddestinations":"Great Homes", "health":"Health", "jobs":"Jobs", "magazine":"Sunday Magazine", "movies":"Movies", "multimedia":"General", "nyregion":"N.Y./Region", "opinion":"Opinion", "podcasts":"General", "publiceditor":"Opinion", "realestate":"Real Estate", "reuters":"AP/Reuters", "science":"Science", "sports":"Sports", "style":"Style", "technology":"Technology", "theater":"Theater", "timestopics":"Times Topics", "todayspaper":"General", "travel":"Travel", "us":"U.S.", "washington":"U.S.", "weekinreview":"Week in Review", "world":"World"}; var wt_scgArray = {"design":"Art and Design", "boxoffice":"Box Office", "autoreviews":"New Cars", "collectibles":"Collectibles", "review":"Sunday Book Review", "bestseller":"Best-Seller Lists", "chapters":"First Chapters", "media":"Media and Advertising", "worldbusiness":"World Business", "smallbusiness":"Small Business", "yourmoney":"Your Money", "research":"Research", "nutrition":"Fitness and Nutrition", "policy":"Money and Policy", "views":"Views", "guide":"Health Guide", "currentreleases":"In Theaters", "homevideo":"On DVD", "criticspicks":"Critics Pick", "thecity":"The City", "nyregionspecial2":"The Region", "nyregionopinions":"NY/Region Opinions", "earth":"Environment", "space":"Space and Cosmos", "baseball":"Baseball", "football":"Pro Football", "ncaafootball":"College Football", "basketball":"Pro Basketball", "ncaabasketball":"College Basketball", "hockey":"Hockey", "soccer":"Soccer", "golf":"Golf", "tennis":"Tennis", "othersports":"Other Sports", "fashion":"Fashion", "dining":"Dining and Wine", "garden":"Home and Garden", "weddings":"Weddings", "tmagazine":"T Magazine", "personaltech":"Personal Tech", "broadway":"Broadway", "offbroadway":"Off Broadway", "offoffbroadway":"Off Off Broadway", "london":"London", "reviews":"Reviews", "washington":"Washington", "education":"Education", "africa":"Africa", "americas":"Americas", "asia":"Asia Pacific", "europe":"Europe", "middleeast":"Middle East", "editorials":"Editorials", "contributors":"Contributors", "nyregionopinions":"NY/Region Opinions", "communities":"Communities", "commercial":"Commercial", "podcasts":"Podcasts"}; // POPULATE META TAGS // Get content group var wt_contentGroup = getMetaTag("WT.cg_n"); var wt_cgTag; if (wt_contentGroup == "") { wt_cgTag = getMetaTag("CG"); wt_tempcontentGroup = wt_cgArray[wt_cgTag]; if (wt_tempcontentGroup != undefined) { wt_contentGroup = wt_tempcontentGroup; } else { wt_contentGroup = wt_cgTag; } if (wt_contentGroup == "") { wt_contentGroup = getContentGroup(nyt_url, nyt_domain, nyt_path); } } // Get subcontent group wt_scgTag = getMetaTag("SCG"); wt_tempsubcontentGroup = wt_scgArray[wt_scgTag]; if (wt_tempsubcontentGroup != undefined) { wt_scgTag = wt_tempsubcontentGroup; } wt_subcontentGroup = wt_scgTag; // Update content and subcontent groups handleCGExceptions(); addMetaTag("WT.cg_n", wt_contentGroup); addMetaTag("WT.cg_s", wt_subcontentGroup); // Read generic tags from page readPageTags(); // Get content specific info setContentInfo(); // Set referrer info setReferrerInfo(); // Set Section Front setSectionFront(); // Set gdcsid (default to General if there is no match) gdcsid = wt_dcsidArray[wt_contentGroup]; if (gdcsid == undefined) { gdcsid = "dcsym57yw10000s1s8g0boozt_9t1x"; } // Set dcsvid var dcsvid; if (dcsvid != undefined && dcsvid != "0") { addMetaTag("WT.dcsvid", dcsvid); } // Set registration status var regstatus; if (regstatus != undefined) { addMetaTag("WT.rv", (regstatus == "registered") ? "1" : "0"); } // Set article information var metaArticleId = getMetaTag("articleid"); if (metaArticleId != "" && getMetaTag("WT.z_gpst") != "Comments Overflow") { setArticleInfo(metaArticleId); } else { setCommentOverflowInfo(metaArticleId); } // Set interactive information var tomMetaTag = getMetaTag("tom"); if (tomMetaTag == "interactive_graphic" || tomMetaTag == "interactive_feature") { setInteractiveGraphicInfo(); } // Set imagepages if (/^\/imagepages/.test(nyt_path)) { addMetaTag("PT", "Multimedia"); addMetaTag("PST", "Image"); } // Set slideshow information var tomMetaTag = getMetaTag("tom"); if ((tomMetaTag == "Slideshow") || (/^\/slideshow\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\//.test(nyt_path))) { setSlideshowInfo(); } // Set campaign information var metaEmailCampId = getQueryParameter("emc"); addMetaTag("WT.mc_id", metaEmailCampId); var externalCampId = getQueryParameter("excamp"); if (externalCampId != "") { addMetaTag("WT.mc_id", externalCampId); addMetaTag("WT.srch", "1"); } if (getMetaTag("WT.mc_id") != "") { addMetaTag("WT.mc_ev", "click"); } // Set the click tracking variable for specific pages setTrackEvents(); // Set onsite search information setSearchInfo(); // Set default information setDefaultTags(); // Include WebTrends wtinit.js var wtinitFile = js_host+"wtinit.js"; includeFile(wtinitFile); // Include WebTrends wtbase.js var wtbaseFile = js_host+"wtbase.js"; includeFile(wtbaseFile); // FUNCTIONS function getContentGroup(wt_url, wt_domain, wt_path) { var contentGroup = getMetaTag("contentGroup"); if (contentGroup == "") { // homepage if(/^http:\/\/(www\.)?(nytimes|times)\.com\/(\/|index\.html|pages\/|pages\/partners\/aol\/homepage\/|yr\/mo\/day\/)?$/.test(wt_url)) { contentGroup = "Homepage"; // world } else if (/\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/\b(world|international)\b\//.test(wt_path) || /^\/international\//.test(wt_path) || /\/packages\/html\/\b(world|international)\b\//.test(wt_path) || /^\/\b(pages|ref|reuters|aponline|cfr)\b\/world\//.test(wt_path)) { contentGroup = "World"; // politics } else if (/\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/\b(us\/politics|politics)\b\//.test(wt_path) || /\/packages\/html\/politics\//.test(wt_path) || /^\/pages\/politics\//.test(wt_path) || /^\/yr\/mo\/day\/politics\//.test(wt_path) || /^\/politics\//.test(wt_path) || /^\/ref\/politics\//.test(wt_path) || /^\/ref\/us\/politics\//.test(wt_path) || /\/election-guide\//.test(wt_path)) { contentGroup = "Politics"; // us } else if (/\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/\b(us|education|washington|national)\b\//.test(wt_path) || /\/packages\/html\/\b(us|education|washington|national)\b\//.test(wt_path) || /^\/pages\/\b(us|education|washington|national)\b\//.test(wt_path) || /^\/yr\/mo\/day\/\b(us|education|washington|national)\b\//.test(wt_path) || /^\/\b(us|education|washington|national)\b\//.test(wt_path) || /^\/aponline\/us\//.test(wt_path) || /^\/reuters\/us\//.test(wt_path) || /^\/ref\/\b(us|education|washington|national)\b\//.test(wt_path) || /^\/cq\//.test(wt_path)) { contentGroup = "U.S."; // ny region - check this before opinion } else if (/\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/nyregion\//.test(wt_path) || /^\/packages\/khtml\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/nyregion\//.test(wt_path) || /\/packages\/html\/nyregion\//.test(wt_path) || /^\/pages\/nyregion\//.test(wt_path)) { contentGroup = "N.Y./Region"; // business } else if (/\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/business\//.test(wt_path) || /\/packages\/html\/business\//.test(wt_path) || /^\/pages\/business\//.test(wt_path) || /^\/yr\/mo\/day\/business\//.test(wt_path) || /^\/business\//.test(wt_path) || /^\/aponline\/business\//.test(wt_path) || /^\/reuters\/business\//.test(wt_path) || /^\/ref\/business\//.test(wt_path) || /^\/allbusiness\//.test(wt_path) || /^\/inc_com\//.test(wt_path)) { contentGroup = "Business"; // technology } else if (wt_domain == "tech.nytimes.com" || wt_domain == "tech2.nytimes.com" || wt_domain == "download.nytimes.com" || /\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/technology\//.test(wt_path) || /\/packages\/html\/technology\//.test(wt_path) || /^\/pages\/technology\//.test(wt_path) || /^\/tech\//.test(wt_path) || /^\/aponline\/technology\//.test(wt_path) || /^\/reuters\/technology\//.test(wt_path) || /^\/ref\/technology\//.test(wt_path) || /^\/pages\/cnet\//.test(wt_path) || /^\/cnet\//.test(wt_path) || /^\/paidcontent\//.test(wt_path) || /^\/idg\//.test(wt_path) || (/^\/gst\/fullpage\.html/.test(wt_path) && getQueryParameter("sec") == "technology")) { contentGroup = "Technology"; // science } else if (/\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/science\//.test(wt_path) || /\/packages\/html\/science\//.test(wt_path) || /^\/ref\/science\//.test(wt_path) || /^\/pages\/science\//.test(wt_path)) { contentGroup = "Science"; // health } else if (wt_domain == "health.nytimes.com" || /\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/health\//.test(wt_path) || /\/packages\/html\/health\//.test(wt_path) || /^\/pages\/health\//.test(wt_path) || /^\/aponline\/health\//.test(wt_path) || /^\/reuters\/health\//.test(wt_path) || /^\/ref\/health\//.test(wt_path)) { contentGroup = "Health"; // sports } else if (/\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/sports\//.test(wt_path) || /\/packages\/html\/sports\//.test(wt_path) || /^\/yr\/mo\/day\/sports\//.test(wt_path) || /^\/sports\//.test(wt_path) || /^\/pages\/sports\//.test(wt_path) || /^\/aponline\/sports\//.test(wt_path) || /^\/reuters\/sports\//.test(wt_path)) { contentGroup = "Sports"; // opinion } else if (/\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/opinion\//.test(wt_path) || /\/packages\/html\/opinion\//.test(wt_path) || /^\/pages\/opinion\//.test(wt_path) || /^\/pages\/readersopinions\//.test(wt_path) || /^\/opinion\//.test(wt_path) || /^\/top\/opinion\//.test(wt_path) || /^\/ref\/opinion\//.test(wt_path)) { contentGroup = "Opinion"; // books } else if (/\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/books\//.test(wt_path) || /\/packages\/html\/books\//.test(wt_path) || /^\/pages\/books\//.test(wt_path) || /^\/ref\/books\//.test(wt_path)) { contentGroup = "Books"; // dance } else if (/\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/arts\/dance\//.test(wt_path) || /\/packages\/html\/dance\//.test(wt_path) || /^\/pages\/arts\/dance\//.test(wt_path)) { contentGroup = "Dance"; // movies } else if (wt_domain == "movies.nytimes.com" || wt_domain == "movies2.nytimes.com" || /\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/movies\//.test(wt_path) || /\/packages\/html\/movies\//.test(wt_path) || /^\/pages\/movies\//.test(wt_path) || /^\/ref\/movies\//.test(wt_path)) { contentGroup = "Movies"; // music } else if (/\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/arts\/music\//.test(wt_path) || /\/packages\/html\/music\//.test(wt_path) || /^\/pages\/arts\/music\//.test(wt_path)) { contentGroup = "Music"; // television } else if (/\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/arts\/television\//.test(wt_path) || /\/packages\/html\/television\//.test(wt_path) || /^\/pages\/arts\/television\//.test(wt_path)) { contentGroup = "TV"; // theater } else if (wt_domain == "theater.nytimes.com" || wt_domain == "theater2.nytimes.com" || /\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/theater\//.test(wt_path) || /\/mem\/theater\//.test(wt_path) || /\/mem\/ticketwatch\.html/.test(wt_path) || /\/packages\/html\/theater\//.test(wt_path) || /^\/pages\/theater\//.test(wt_path) || /^\/readersreviews\/theater\//.test(wt_path)) { contentGroup = "Theater"; // art - must appear after its subsections } else if (/\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/arts\//.test(wt_path) || /\/packages\/html\/arts\//.test(wt_path) || /^\/aponline\/arts\//.test(wt_path) || /^\/reuters\/arts\//.test(wt_path) || /^\/pages\/arts\//.test(wt_path)) { contentGroup = "Arts"; // tstyle - check this before style } else if (/\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/style\/\b(t|tmagazine)\b\//.test(wt_path) || /^\/pages\/style\/(t|tmagazine)\//.test(wt_path)) { contentGroup = "T:Style"; // style } else if (/\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/\b(style|fashion|dining|garden)\b\//.test(wt_path) || /\/packages\/html\/\b(style|fashion|dining|garden)\b\//.test(wt_path) || /^\/pages\/\b(style|fashion|dining|garden)\b\//.test(wt_path) || /^\/ref\/fashion\//.test(wt_path)) { contentGroup = "Style"; // travel } else if (wt_domain == "travel.nytimes.com" || wt_domain == "travel2.nytimes.com" || /\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/travel\//.test(wt_path) || /^\/pages\/travel\//.test(wt_path) || /^\/travel\//.test(wt_path) || /^\/map\/travel\//.test(wt_path) || /^\/packages\/html\/travel\//.test(wt_path) || /^\/gst\/travel\/travsearch\.html/.test(wt_path) || (/^\/gst\/fullpage\.html/.test(wt_path) && getQueryParameter("sec") == "travel")) { contentGroup = "Travel"; // jobs } else if (wt_domain == "jobmarket.nytimes.com" || wt_domain == "salary.nytimes.com" || /\/packages\/html\/jobs\//.test(wt_path) || /^\/pages\/jobs\//.test(wt_path) || /^\/marketing\/jobmarket\//.test(wt_path)) { contentGroup = "Jobs"; // greathomes } else if (/\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/\b(realestate\/greathomes|greathomesanddestinations)\b\//.test(wt_path) || /^\/pages\/great-homes-and-destinations\//.test(wt_path) || /^\/pages\/greathomes\//.test(wt_path) || /^\/top\/great-homes-and-destinations\//.test(wt_path)) { contentGroup = "Real Estate"; // realestate } else if (wt_domain == "realestate.nytimes.com" || /\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/realestate\//.test(wt_path) || /\/packages\/html\/realestate\//.test(wt_path) || /^\/pages\/realestate\//.test(wt_path) || /^\/ref\/realestate\//.test(wt_path)) { contentGroup = "Real Estate"; // autos } else if (wt_domain == "autos.nytimes.com" || wt_domain == "collectiblecars.nytimes.com" || /\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/automobiles\//.test(wt_path) || /^\/pages\/automobiles\//.test(wt_path) || /^\/ref\/automobiles\//.test(wt_path) || /^\/automobiles\//.test(wt_path) || /^\/autos\//.test(wt_path) || /^\/packages\/html\/automobiles\//.test(wt_path)) { contentGroup = "Autos"; // search } else if (/^\/search\/query/.test(wt_path)) { contentGroup = "Search"; // classifieds } else if (wt_domain == "listings.nytimes.com" || wt_domain == "placead.nytimes.com" || /^\/top\/classifieds\//.test(wt_path) || /^\/gst\/personals.html/.test(wt_path)) { contentGroup = "Classifieds"; // video } else if (wt_domain == "video.on.nytimes.com") { contentGroup = "Video"; // timestopics } else if (/^\/top\/reference\/timestopics\//.test(wt_path) || /^\/top\/news\/business\//.test(wt_path) || /^\/top\/news\/international\//.test(wt_path) || /^\/top\/news\/national\//.test(wt_path) || /^\/top\/classifieds\/realestate\//.test(wt_path)) { contentGroup = "Times Topics"; // email this } else if (/^\/mem\/emailthis.html/.test(wt_path)) { contentGroup = "Email This"; // newstracker } else if (/^\/mem\/tnt.html/.test(wt_path)) { contentGroup = "News Tracker"; // membercenter } else if (/^\/membercenter\//.test(wt_path) || /^\/mem\/email\.html/.test(wt_path) || /^\/mem\/profile\.html/.test(wt_path) || /^\/ref\/membercenter\//.test(wt_path) || /^\/auth\/login/.test(wt_path) || /^\/forgot/.test(wt_path) || /^\/commerce\/jsp\//.test(wt_path) || /^\/gst\/(regi|forgot|confirmem|betamail|signout|purchase_gc)\.html/.test(wt_path)) { contentGroup = "Member Center"; // crosswordsgames } else if (/\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/crosswords\//.test(wt_path) || /^\/pages\/crosswords\//.test(wt_path) || /^\/ref\/crosswords\//.test(wt_path) || /^\/premium\/xword\//.test(wt_path) || /^\/premiumproducts\/crosswords\/index.html/.test(wt_path)) { contentGroup = "Crosswords/Games"; // sundaymagazine } else if (/\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/magazine\//.test(wt_path) || /^\/pages\/magazine\//.test(wt_path) || /^\/ref\/magazine\//.test(wt_path) || /^\/packages\/html\/magazine\//.test(wt_path)) { contentGroup = "Sunday Magazine"; // mostpopular } else if (/^\/gst\/most(popular|emailed|blogged|searched|popularmovies)\.html/.test(wt_path)) { contentGroup = "Most Popular"; // learningnetwork } else if (/^\/learning\//.test(wt_path) || /\/packages\/html\/learning\//.test(wt_path)) { contentGroup = "Learning Network"; // knowledgenetwork } else if (wt_domain == "college.nytimes.com" || /\/packages\/html\/college\//.test(wt_path) || /^\/college\//.test(wt_path) || /\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/college\//.test(wt_path)) { contentGroup = "Knowledge Network"; // weekinreview } else if (/\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/weekinreview\//.test(wt_path) || /\/packages\/html\/weekinreview\//.test(wt_path) || /^\/pages\/weekinreview\//.test(wt_path) || /^\/weekinreview\//.test(wt_path)) { contentGroup = "Week In Review"; // weather } else if (/^\/gst\/weather.html/.test(wt_path) || /^\/mem\/weather.html/.test(wt_path) || /\/packages\/html\/weather\//.test(wt_path) || /^\/weather/.test(wt_path)) { contentGroup = "Weather"; // multimedia } else if (/^\/pages\/multimedia\//.test(wt_path) || /\/packages\/html\/multimedia\//.test(wt_path) || /^\/ref\/multimedia\//.test(wt_path)) { contentGroup = "Multimedia"; // cartoons } else if (/^\/pages\/cartoons\//.test(wt_path) || /\/packages\/html\/cartoons\//.test(wt_path)) { contentGroup = "Cartoons"; // apreuters } else if (/^\/pages\/\b(aponline|reuters)\b\//.test(wt_path)) { contentGroup = "AP/Reuters"; // pictures of the day } else if (/^\/slideshow\/[0-9][0-9][0-9][0-9]\/[0-1][0-9]\/[0-3][0-9]\/nytfrontpage\//.test(wt_path)) { contentGroup = "Homepage"; // default to General } else { contentGroup = "General"; } } return contentGroup; } function readPageTags() { addMetaTag("WT.z_gpt", getMetaTag("PT")); // page type addMetaTag("WT.z_gpst", getMetaTag("PST")); // page subtype addMetaTag("WT.z_gpsst", getMetaTag("PSST")); // page sub 2 type addMetaTag("WT.z_gpssst", getMetaTag("PSSST")); // page sub 3 type addMetaTag("WT.z_pc", getMetaTag("PC")); // partner content addMetaTag("WT.z_ps", getMetaTag("PS")); // partner supplied addMetaTag("WT.z_puv", getMetaTag("PUV")); // publish view addMetaTag("WT.z_gosst", getMetaTag("GOOST")); // global onsite search addMetaTag("WT.z_gosst", getMetaTag("GOSST")); // global onsite search addMetaTag("WT.z_gsac", getMetaTag("GSAC")); // global search auto complete addMetaTag("WT.z_gtn", getMetaTag("GTN")); // global topic name addMetaTag("WT.gcom", getMetaTag("GCOM")); // global - community page } function setContentInfo() { // read page tags for content groups if (wt_contentGroup == "Health") { addMetaTag("WT.z_hgst", getMetaTag("HGST")); // health guide subject type addMetaTag("WT.z_hgsn", getMetaTag("HGSN")); // health guide subject name } else if (wt_contentGroup == "Times Topics") { addMetaTag("WT.z_gpt", "Topic"); } else if (wt_contentGroup == "Books") { addMetaTag("WT.z_bper", getMetaTag("per")); addMetaTag("WT.z_ebk", getMetaTag("ttl")); } else if (wt_contentGroup == "Real Estate") { addMetaTag("WT.z_resz", getMetaTag("RESZ")); // real estate search zip codes addMetaTag("WT.z_res", getMetaTag("RES")); // real estate state addMetaTag("WT.z_reco", getMetaTag("RECO")); // real estate counties addMetaTag("WT.z_rer", getMetaTag("RER")); // real estate region } else if (wt_contentGroup == "Theater") { addMetaTag("WT.z_eplay", getMetaTag("ttl")); } else if (wt_contentGroup == "Travel") { includeFile(js_host+"content/travel_v1.1.js"); } else if (wt_contentGroup == "Movies") { includeFile(js_host+"content/movies_v1.1.js"); } else if (wt_contentGroup == "Member Center") { includeFile(js_host+"content/membercenter_v1.1.js"); } else if (wt_contentGroup == "Email This") { includeFile(js_host+"content/emailthis_v1.1.js"); } } function setReferrerInfo() { var refUrl = document.referrer; if (refUrl != undefined && refUrl != "" ) { var refDom = refUrl.match( /:\/\/(www\.)?([^\/:]+)/ ); refDom = refDom[2]?refDom[2]:''; addMetaTag("WT.z_ref", refDom); //addMetaTag("WT.z_reft", getRefType(refDom)); } } function getRefType(refDom) { var refType = ""; if((/\.google\./.test(refDom)) ||(/\.search\./.test(refDom)) ||(/ask.com/.test(refDom)) ||(/altavista.com/.test(refDom))) { refType = "Search Engine"; } return refType; } function handleCGExceptions() { // promote to content group if (wt_subcontentGroup == "dance") { wt_contentGroup = "Dance"; wt_subcontentGroup = ""; } else if (wt_subcontentGroup == "music") { wt_contentGroup = "Music"; wt_subcontentGroup = ""; } else if (wt_subcontentGroup == "television") { wt_contentGroup = "TV"; wt_subcontentGroup = ""; } else if (wt_subcontentGroup == "politics") { wt_contentGroup = "Politics"; wt_subcontentGroup = ""; } // demote to subcontent group if (wt_cgTag == "education") { wt_subcontentGroup = "Education"; } else if (wt_cgTag == "washington") { wt_subcontentGroup = "Washington"; } else if (wt_cgTag == "fashion") { wt_subcontentGroup = "Fashion"; } else if (wt_cgTag == "dining") { wt_subcontentGroup = "Dining"; } else if (wt_cgTag == "garden") { wt_subcontentGroup = "Garden"; } if (wt_scgTag == "Weddings") { wt_contentGroup = "Style"; wt_subcontentGroup = "Weddings"; } } function setSectionFront() { if ( (getMetaTag("WT.z_gpt") == "Section Front") && getMetaTag("WT.cg_s")) { tempWTVal = "Subsection Front"; addMetaTag("WT.z_gpst", "Subsection Front"); } } function setInteractiveGraphicInfo() { addMetaTag("WT.z_gpt", "Multimedia"); addMetaTag("WT.z_gpst", "Flash"); addMetaTag("WT.z_pud", getMetaTag("pdate")); } function setSlideshowInfo() { addMetaTag("WT.z_gpt", "Multimedia"); addMetaTag("WT.z_gpst", "Slideshow"); addMetaTag("WT.z_pud", getMetaTag("pdate")); } function setArticleInfo(articleID) { if (articleID != "") { addMetaTag("WT.z_gpt", "Article"); addMetaTag("WT.z_gpst", getMetaTag("tom")); addMetaTag("WT.z_hdl", getMetaTag("hdl")); addMetaTag("WT.z_aid", articleID); var pubDate = getMetaTag("pdate"); addMetaTag("WT.z_pud", pubDate); setPubDateRange(pubDate); addMetaTag("WT.z_put", "web"); var pubType = getPubTypeFromDate(pubDate); addMetaTag("WT.z.gsg", pubType); if (pubType == "Archive") { addMetaTag("WT.z_gat", "1987-Present"); } addMetaTag("WT.z_pua", "free"); var bylVal = getMetaTag("byl"); bylVal = bylVal.replace("’","'"); if (bylVal.indexOf("By ") != -1) { bylVal = bylVal.substring(3); bylValInd = bylVal.indexOf(" and "); if (bylValInd != -1) { bylVal = bylVal.substring(0, bylValInd) + ";" + bylVal.substring(bylValInd+5); } } addMetaTag("WT.z_clmst", bylVal); setXTS(bylVal); var pageWanted = getQueryParameter("pagewanted"); if (pageWanted == "") { addMetaTag("WT.z_puv", "Normal"); } else { addMetaTag("WT.z_puv", pageWanted); } } } function setPubDateRange(pdate) { var relativePubDate = "No Pub Date"; var pubDate = new Date(); if (pdate.length==8) { var tYear = pdate.substring(0,4); var tMonth = pdate.substring(4,6); var tDay = pdate.substring(6,8); pubDate.setFullYear(tYear,tMonth-1,tDay); } var pubDateMs = pubDate.getTime(); var currentDate = new Date(); var currentDateMs = currentDate.getTime(); var publicDomainStartDate = new Date(); publicDomainStartDate.setYear(1851); publicDomainStartDate.setMonth(0); publicDomainStartDate.setDate(1); var publicDomainStartDateMs = publicDomainStartDate.getTime(); var payArchiveStartDate = new Date(); payArchiveStartDate.setYear(1923); payArchiveStartDate.setMonth(0); payArchiveStartDate.setDate(1); var payArchiveStartDateMs = payArchiveStartDate.getTime(); var payArchiveEndDate = new Date(); payArchiveEndDate.setYear(1981); payArchiveEndDate.setMonth(0); payArchiveEndDate.setDate(1); var payArchiveEndDateMs = payArchiveEndDate.getTime(); var dateDiffMs = currentDateMs - pubDateMs; if(dateDiffMs < 0) { relativePubDate = "Tomorrow"; } else if(0 <= dateDiffMs && dateDiffMs < 86400000) { relativePubDate = "Same Day"; } else if(86400000 <= dateDiffMs && dateDiffMs < 172800000) { relativePubDate = "1 Day"; } else if(172800000 <= dateDiffMs && dateDiffMs < 259200000) { relativePubDate = "2 Day"; } else if(259200000 <= dateDiffMs && dateDiffMs < 345600000) { relativePubDate = "3 Day"; } else if(345600000 <= dateDiffMs && dateDiffMs < 432000000) { relativePubDate = "4 Day"; } else if(432000000 <= dateDiffMs && dateDiffMs < 518400000) { relativePubDate = "5 Day"; } else if(518400000 <= dateDiffMs && dateDiffMs < 604800000) { relativePubDate = "6 Day"; } else if(604800000 <= dateDiffMs && dateDiffMs < 691200000) { relativePubDate = "7 Day"; } else if(691200000 <= dateDiffMs && dateDiffMs < 2678400000) { relativePubDate = "Month"; } else if(2678400000 <= dateDiffMs && dateDiffMs < 7776000000) { relativePubDate = "90 Day"; } else if(7776000000 <= dateDiffMs && dateDiffMs < 31536000000) { relativePubDate = "1 Year"; } else if(31536000000 <= dateDiffMs && dateDiffMs < 157680000000) { relativePubDate = "5 Years"; } else if(157680000000 <= dateDiffMs && dateDiffMs < 315360000000) { relativePubDate = "10 Years"; } else if(315360000000 <= dateDiffMs && pubDateMs > payArchiveEndDateMs) { relativePubDate = "Post 81"; } else if(315360000000 <= dateDiffMs && (payArchiveStartDateMs < pubDateMs && pubDateMs < payArchiveEndDateMs)) { relativePubDate = "Pay Archive"; } else if(315360000000 <= dateDiffMs && (publicDomainStartDateMs < pubDateMs && pubDateMs < payArchiveStartDateMs)) { relativePubDate = "Public Domain"; } addMetaTag("WT.z_pudr", relativePubDate); } function setCommentOverflowInfo(articleID) { addMetaTag("WT.z_aid", articleID); addMetaTag("WT.z_hdl", getMetaTag("hdl")); if (getMetaTag("WT.z_gpst") == "Comments Overflow") { addMetaTag("WT.gcom", "Com"); } // Set article comment page number addMetaTag("WT.z_acpn", getMetaTag("ACPN")); // Set article comment overview sort addMetaTag("WT.z_acos", getMetaTag("ACOS")); } function getPubTypeFromDate(pdate) { if (pdate != undefined && pdate.length == 8) { var currentDate = new Date(); var articleDate = new Date(); articleDate.setDate(pdate.substring(6)); articleDate.setMonth(pdate.substring(4,6)-1); articleDate.setFullYear(pdate.substring(0,4)); if (articleDate < currentDate) { return "Archive"; } else { return "web"; } } else { return "web"; } } function setXTS(clmst) { if (/DAVID BROOKS/.test(clmst) ||/MAUREEN DOWD/.test(clmst) ||/ROGER COHEN/.test(clmst) ||/THOMAS L. FRIEDMAN/.test(clmst) ||/BOB HERBERT/.test(clmst) ||/NICHOLAS D. KRISTOF/.test(clmst) ||/PAUL KRUGMAN/.test(clmst) ||/FRANK RICH/.test(clmst) ||/DAVE ANDERSON/.test(clmst) ||/PETER APPLEBOME/.test(clmst) ||/HARVEY ARATON/.test(clmst) ||/DAN BARRY/.test(clmst) ||/JIM DWYER/.test(clmst) ||/CLYDE HABERMAN/.test(clmst) ||/ADAM LIPTAK/.test(clmst) ||/GRETCHEN MORGENSON/.test(clmst) ||/JOE NOCERA/.test(clmst) ||/JOSEPH NOCERA/.test(clmst) ||/FLOYD NORRIS/.test(clmst) ||/WILLIAM C. RHODEN/.test(clmst) ||/SELENA ROBERTS/.test(clmst) ||/GEORGE VECSEY/.test(clmst) ||/JOHN VINOCUR/.test(clmst)) { addMetaTag("WT.z_gts", "XTS"); } } function setSearchInfo() { var searchResults; var wt_oss = ""; var wt_oss_r = ""; var wt_gosst = ""; var ossName = ""; var ossrName = ""; // for global searches if (/^\/search\/query/.test(nyt_path)) { wt_oss = getQueryParameter("query"); searchResults = document.getElementById("sortBy"); wt_gosst = getQueryParameter("srchst"); ossName = "WT.oss"; ossrName = "WT.oss_r"; } // for tech search only if (/\/gst\/technology\/techsearch.html/.test(nyt_path)) { wt_oss = getQueryParameter("query"); searchResults = getElementsByClass("div", "result_summary"); ossName = "WT.z_toss"; ossrName = "WT.z_toss_r"; } // for movie search only if (/\/gst\/movies\/msearch.html/.test(nyt_path)) { wt_oss = getQueryParameter("query"); searchResults = document.getElementById("resultsWell"); ossName = "WT.z_moss"; ossrName = "WT.z_moss_r"; } // for health search only if (/\/gst\/health\/healthsearch.html/.test(nyt_path)) { wt_oss = getQueryParameter("term"); searchResults = document.getElementById("sortBy"); ossName = "WT.z_hoss"; ossrName = "WT.z_hoss_r"; } if (null == searchResults) { wt_oss_r = "0"; } else { wt_oss_r = "1"; if (wt_oss == "" ) { wt_oss = "No Term"; } } if (wt_oss != "") { addMetaTag(ossName, wt_oss); addMetaTag(ossrName, wt_oss_r); } if (wt_gosst != "") { var wt_osstArray = {"nyt":"Search > Articles 1981-Present", "p":"Search > Articles 1851-1980", "g":"Search > Google Web Results", "m":"Search > Multimedia", "nycks":"Search > NYC Events & Venues", "ref":"Search > Reference", "blog":"Search > Blogs"} var searchType = wt_osstArray[wt_gosst]; if (searchType == undefined) { searchType = wt_gosst; } addMetaTag("WT.z_gosst", searchType); } } function setTrackEvents() { var wt_section = getMetaTag("WT.cg_n"); var wt_subsection = getMetaTag("WT.cg_s"); var wt_pagetype = getMetaTag("WT.z_gpt"); if (wt_pagetype == "Homepage" || (wt_section == "Technology" && wt_pagetype == "Section Front") || (wt_section == "Autos" && wt_pagetype == "Section Front") || (wt_section == "Search" && wt_subsection == "nyt")) { gtrackevents = true; } } // helper functions used by this and other content javascript files function addMetaTag(tagName, tagContent) { var tempValue = getMetaTag(tagName); if (tempValue == "") { tempValue = getQueryParameter(tagName); } if (tempValue == "" && tagContent != "") { var newMetaTag = document.createElement('meta'); newMetaTag.id = tagName; newMetaTag.name = tagName; newMetaTag.content = tagContent; document.getElementsByTagName('head').item(0).appendChild(newMetaTag); } } function overwriteMetaTag(tagName, tagContent) { var newMetaTag = document.createElement('meta'); newMetaTag.name = tagName; newMetaTag.content = tagContent; document.getElementsByTagName('head').item(0).appendChild(newMetaTag); } function getMetaTag(tagName) { var metaTagContent = ""; var metaTagElement = document.getElementById(tagName); var tempString = ""; if (metaTagElement == null || metaTagElement == undefined) { var metaTags = document.getElementsByTagName("meta"); for(var i=0;i:*+!-.WNS.base[NS.relative_?http://graphics8.nytimes.com/js/app/analytics/gw.js?csid=H077071234X$classesZ$classname456UNSURLV%NSURLXNSObject_application/x-javascript9:;=>?KWZNS.objectsWNS.keys@ABCDEFGHIJLMNOPQRSTUV VServer_Content-Encoding]Last-Modified]Accept-Ranges]Cache-ControlTDate^Content-LengthZConnectionTVaryTEtag\Content-Type_Sun-ONE-Web-Server/6.1Tgzip_Mon, 07 Jan 2008 16:20:54 GMTUbytes_private, max-age=180215_Mon, 21 Apr 2008 12:50:04 GMTT2226Zkeep-alive_Accept-Encoding_"14c5-47825166"12noop6_NSMutableDictionary\NSDictionary12rss6_NSHTTPURLResponseInternal12uvvw6_NSHTTPURLResponse]NSURLResponse$)2DILbd  '3579{   "$&(*,.0246=P^lz.3>PbgkxO/* $Id: gw.js,v 1.3 2008/01/02 16:33:26 lopezb Exp $ */ /* * Build version UW-11.1.0-94 */ var rsi_k; var rsi_now = new Date(); var rsi_csid = 'H07707'; // var rsi_td=rsi_now.getFullYear()+'_'+(rsi_now.getMonth()+1)+'_'+rsi_now.getDate(); var rsi_ct=0; var rsi_beg=document.cookie.indexOf('rsi_ct='); if(rsi_beg>=0){ rsi_beg=document.cookie.indexOf('=',rsi_beg)+1; if(rsi_beg>0){ if(rsi_td==document.cookie.substring(rsi_beg,rsi_beg+rsi_td.length)){ rsi_beg+=(rsi_td.length+1); var rsi_end=document.cookie.indexOf(';',rsi_beg); if(rsi_end==-1) rsi_end=document.cookie.length; var rsi_par=parseInt(document.cookie.substring(rsi_beg,rsi_end)); if(!isNaN(rsi_par)) rsi_ct=rsi_par; }}} var rsi_tom=new Date(rsi_now.getTime()+86400000); var rsi_dom=location.hostname; rsi_dom=rsi_dom.replace(/.*(\.[\w\-]+\.[a-zA-Z]{3}$)/,'$1'); rsi_dom=rsi_dom.replace(/.*(\.[\w\-]+\.\w+\.[a-zA-Z]{2}$)/,'$1'); rsi_dom=rsi_dom.replace(/.*(\.[\w\-]{3,}\.[a-zA-Z]{2}$)/,'$1'); document.cookie=('rsi_ct='+rsi_td+':'+(rsi_ct+1)+';expires='+rsi_tom.toGMTString()+';path=/;domain='+rsi_dom); rsi_k = '&ko=' + rsi_td + '__' + Math.floor((rsi_ct+2)/3); var revSc = document.createElement('script'); revSc.setAttribute('language', 'javascript'); revSc.setAttribute('type', 'text/javascript'); revSc.setAttribute('src', location.protocol + '//js.revsci.net/common/pcx.js?tmpl=cm&csid=H07707' + rsi_k); document.getElementsByTagName('head').item(0).appendChild(revSc); _?http://graphics8.nytimes.com/js/app/analytics/gw.js?csid=H07707:;<=>?_WebResourceTextEncodingName_text/javascriptO/* * Build version Vermont-12.0.0-122 */ rsinetsegs = []; var rsi_exp=new Date(rsi_now.getTime()+2419200000); var rsi_dom=location.hostname; rsi_dom=rsi_dom.replace(/.*(\.[\w\-]+\.[a-zA-Z]{3}$)/,'$1'); rsi_dom=rsi_dom.replace(/.*(\.[\w\-]+\.\w+\.[a-zA-Z]{2}$)/,'$1'); rsi_dom=rsi_dom.replace(/.*(\.[\w\-]{3,}\.[a-zA-Z]{2}$)/,'$1'); document.cookie=('rsi_segs='+rsinetsegs.join('|')+';expires='+rsi_exp.toGMTString()+';path=/;domain='+rsi_dom); Obplist00 Y$archiverX$versionT$topX$objects_NSKeyedArchiver _WebResourceResponse )/078<@DZ[\]^_`abcdefghijnqU$null  !"#$%&'(R$6S$10R$2S$13R$7R$3S$11R$8R$4S$14R$9R$0V$classR$5S$12R$1#A~=#A~^>#A^>*+,-.WNS.base[NS.relative_Fhttp://js.revsci.net/common/pcx.js?tmpl=cm&csid=H07707&ko=2008_4_23__11234X$classesZ$classname456UNSURLV%NSURLXNSObject_text/javascript9:;YNS.stringZiso-8859-112=>>?6_NSMutableStringXNSStringABC EFGPYZNS.objectsWNS.keysHIJKLMNOQRSTUVWX VServer]Last-Modified]Cache-ControlZConnectionTDate^Content-LengthWExpires\Content-Type_Apache-Coyote/1.1_Wed, 23 Apr 2008 14:24:41 GMT_max-age=86400, privateUclose_Wed, 23 Apr 2008 14:24:40 GMTS452_Thu, 24 Apr 2008 14:24:41 GMT_"text/javascript;charset=ISO-8859-112kllm6_NSMutableDictionary\NSDictionary12opp6_NSHTTPURLResponseInternal12rsst6_NSHTTPURLResponse]NSURLResponse$)2DILbd #/135~  "*3579;=?ACLNPRTVXZ\^es(,LqvzuZiso-8859-1_Fhttp://js.revsci.net/common/pcx.js?tmpl=cm&csid=H07707&ko=2008_4_23__1ABC Obplist00 Y$archiverX$versionT$topX$objects_NSKeyedArchiver _WebResourceResponse! )/078?KWZNS.objectsWNS.keys@ABCDEFGHIJLMNOPQRSTUV VServer_Content-Encoding]Last-Modified]Accept-Ranges]Cache-ControlTDate^Content-LengthZConnectionTVaryTEtag\Content-Type_Sun-ONE-Web-Server/6.1Tgzip_Mon, 10 Mar 2008 14:36:08 GMTUbytes_private, max-age=280941_Mon, 21 Apr 2008 12:50:04 GMTS282Zkeep-alive_Accept-Encoding^"21a-47d54758"12noop6_NSMutableDictionary\NSDictionary12rss6_NSHTTPURLResponseInternal12uvvw6_NSHTTPURLResponse]NSURLResponse$)2DILbd  '3579{   "$&(*,.0246=P^lz.2=O^cg}xOfunction getMetaTag(tagName) { var metaTags=document.getElementsByTagName("meta"); for(var i in metaTags){ if(metaTags[i].name == tagName) { return metaTags[i].content; } } return ""; } function addCategory(category, valueToAppend) { if (valueToAppend != "") return category + " > " + valueToAppend; else return category; } var catValue = "NYTimesglobal"; catValue = addCategory(catValue, getMetaTag("WT.cg_n")); catValue = addCategory(catValue, getMetaTag("WT.cg_s")); DM_cat(catValue); DM_tag(); _?http://graphics8.nytimes.com/js/app/analytics/revenuescience.jsEFG Obplist00 Y$archiverX$versionT$topX$objects_NSKeyedArchiver _WebResourceResponse! )/078?KWZNS.objectsWNS.keys@ABCDEFGHIJLMNOPQRSTUV VServer_Content-Encoding]Last-Modified]Accept-Ranges]Cache-ControlTDate^Content-LengthZConnectionTVaryTEtag\Content-Type_Sun-ONE-Web-Server/6.1Tgzip_Mon, 27 Aug 2007 17:49:12 GMTUbytes_private, max-age=280940_Mon, 21 Apr 2008 12:50:05 GMTS577Zkeep-alive_Accept-Encoding^"485-46d30e98"12noop6_NSMutableDictionary\NSDictionary12rss6_NSHTTPURLResponseInternal12uvvw6_NSHTTPURLResponse]NSURLResponse$)2DILbd  '3579sx  "$&(*,.5HVdrw&*5GV[_uxOfunction DcsInit(){ this.enabled=true; this.trackevents=gtrackevents; this.dcsid=gdcsid; this.fpcdom=gfpcdom; this.domain=gdomain; this.exre=(function(){ if (window.RegExp){ return(new RegExp("dcs(uri)|(ref)|(aut)|(met)|(sta)|(sip)|(pro)|(byt)|(dat)|(p3p)|(cfg)|(redirect)|(cip)","i")); } else{ return(""); } })(); this.fpc="WT_FPC"; this.i18n=false; this.images=[]; this.index=0; this.qp=[]; this.re=(function(){ if (window.RegExp){ return(this.i18n?{"%25":/\%/g}:{"%09":/\t/g,"%20":/ /g,"%23":/\#/g,"%26":/\&/g,"%2B":/\+/g,"%3F":/\?/g,"%5C":/\\/g,"%22":/\"/g,"%7F":/\x7F/g,"%A0":/\xA0/g}); } else{ return(""); } })(); this.timezone=-5; // var t=this; // (function(){ // if (t.enabled&&(document.cookie.indexOf(t.fpc+"=")==-1)&&(document.cookie.indexOf("WTLOPTOUT=")==-1)){ // document.write("<\/scr"+"ipt>"); // } // })(); } var DCS={}; var WT={}; var DCSext={}; var dcsInit=new DcsInit(); _7http://graphics8.nytimes.com/js/app/analytics/wtinit.jsIJK Obplist00 Y$archiverX$versionT$topX$objects_NSKeyedArchiver _WebResourceResponse! )/078?KWZNS.objectsWNS.keys@ABCDEFGHIJLMNOPQRSTUV VServer_Content-Encoding]Last-Modified]Accept-Ranges]Cache-ControlTDate^Content-LengthZConnectionTVaryTEtag\Content-Type_Sun-ONE-Web-Server/6.1Tgzip_Wed, 09 Jan 2008 16:53:57 GMTUbytes_private, max-age=280940_Mon, 21 Apr 2008 12:50:05 GMTT5840Zkeep-alive_Accept-Encoding_"4a6b-4784fc25"12noop6_NSMutableDictionary\NSDictionary12rss6_NSHTTPURLResponseInternal12uvvw6_NSHTTPURLResponse]NSURLResponse$)2DILbd  '3579sx  "$&(*,.5HVdrw&+6HZ_cyxOJk/* $Id: wtbase.js,v 1.3 2008/01/09 15:48:50 lopezb Exp $ */ function dcsCQP(){ var qry=window.location.search.toLowerCase(); if ( (qry && (qry.indexOf("wt.mc_id")!=-1) && (qry.indexOf("wt.mc_ev")==-1)) || ((WT.mc_id!=null) && (WT.mc_id.toString()!="")) ) { return "click"; } else{ return ""; } } function dcsCookie(){ if (typeof(dcsOther)=="function"){ dcsOther(); } else if (typeof(dcsFPC)=="function"){ dcsFPC(dcsInit.timezone); } } function dcsGetCookie(name){ var cookies=document.cookie.split("; "); var cmatch=[]; var idx=0; var i=0; var namelen=name.length; var clen=cookies.length; for (i=0;i0){ idx=0; if ((cmatchCount>1)&&(name==dcsInit.fpc)){ var dLatest=new Date(0); for (i=0;idLatest){ dLatest.setTime(dLst.getTime()); idx=i; } } } return unescape(cmatch[idx].substring(namelen+1)); } else{ return null; } } function dcsGetCrumb(cval,crumb){ var aCookie=cval.split(":"); for (var i=0;i(dLst.getTime()+1800000))||(dCur.getTime()>(dSes.getTime()+28800000))){ WT.vt_f_tlv=Math.floor((dSes.getTime()-adj)/1000); dSes.setTime(dCur.getTime()); WT.vt_f_s="1"; } if ((dCur.getDay()!=dLst.getDay())||(dCur.getMonth()!=dLst.getMonth())||(dCur.getYear()!=dLst.getYear())){ WT.vt_f_d="1"; } } WT.co_f=escape(WT.co_f); WT.vt_sid=WT.co_f+"."+(dSes.getTime()-adj); var expiry="; expires="+dExp.toGMTString(); document.cookie=name+"="+"id="+WT.co_f+":lv="+dCur.getTime().toString()+":ss="+dSes.getTime().toString()+expiry+"; path=/"+(((dcsInit.fpcdom!=""))?("; domain="+dcsInit.fpcdom):("")); if (document.cookie.indexOf(name+"=")==-1){ WT.co_f=WT.vt_sid=WT.vt_f_s=WT.vt_f_d=WT.vt_f_tlh=WT.vt_f_tlv=""; WT.vt_f=WT.vt_f_a="2"; } } function dcsTypeMatch(pth, typelist){ var type=pth.substring(pth.lastIndexOf(".")+1,pth.length); var types=typelist.split(","); for (var i=0;i0)&&(content.length>0)){ for(var j=0;j3){ if ((navigator.appName=="Microsoft Internet Explorer")&&document.body){ WT.bs=document.body.offsetWidth+"x"+document.body.offsetHeight; } else if (navigator.appName=="Netscape"){ WT.bs=window.innerWidth+"x"+window.innerHeight; } } WT.fi="No"; if (window.ActiveXObject){ for(var i=10;i>0;i--){ try{ var flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i); WT.fi="Yes"; WT.fv=i+".0"; break; } catch(e){ } } } else if (navigator.plugins&&navigator.plugins.length){ for (var i=0;i0){ for (var i=0;i'); } } function dcsMeta(){ var elems; if (document.all){ elems=document.all.tags("meta"); } else if (document.documentElement){ elems=document.getElementsByTagName("meta"); } if (typeof(elems)!="undefined"){ var length=elems.length; for (var i=0;i0){ if (name.indexOf("WT.")==0){ WT[name.substring(3)]=content; } else if (name.indexOf("DCSext.")==0){ DCSext[name.substring(7)]=content; } else if (name.indexOf("DCS.")==0){ DCS[name.substring(4)]=content; } } else if (dcsInit.i18n&&(equiv=="Content-Type")){ var pos=content.toLowerCase().indexOf("charset="); if (pos!=-1){ WT.mle=content.substring(pos+8); } } } } } function dcsTag(){ if (document.cookie.indexOf("WTLOPTOUT=")!=-1){ return; } var P="http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+dcsInit.domain+(dcsInit.dcsid==""?'':'/'+dcsInit.dcsid)+"/dcs.gif?"; for (var N in DCS){ if ((typeof DCS[N]!="function")&&DCS[N]){ P+=dcsA(N,DCS[N]); } } var keys=["co_f","vt_sid","vt_f_tlv"]; for (var i=0;i2048&&navigator.userAgent.indexOf('MSIE')>=0){ P=P.substring(0,20