document.write(''); document.write(''); document.writeln(''); document.writeln(''); document.write(''); // JavaScript Document // *** BEGIN JS FOR DROPDOWN NAV *** --> var agt = navigator.userAgent.toLowerCase(); var appVer = navigator.appVersion.toLowerCase(); var is_safari = (agt.indexOf("safari") != -1); var build = appVer.substring(appVer.lastIndexOf("/")+1); build = build.substring(0,build.indexOf(".")); var wp_ie = navigator.appName.toLowerCase().indexOf("explorer") != -1; var wp_pc = navigator.userAgent.toLowerCase().indexOf("windows") != -1; var wp_mac = navigator.platform.toLowerCase().indexOf("macppc") != -1; if (wp_mac && (wp_ie || (is_safari && !(build>86)))) { document.write(''); }else { function hideSelect() { if (wp_ie && wp_pc) { if (formObj = document.getElementById("navright")) formObj.style.visibility = 'visible'; } } function showSelect() { if (wp_ie && wp_pc) { if (formObj = document.getElementById("navright")) formObj.style.visibility = 'visible'; } } startList = function() { if (document.all&&document.getElementById) { navRoot = document.getElementById("navleftpad"); for (i=0; i
'; } var reg = new Registration(); var out = ""; out += '
'; out += '
'; if( reg.isSignedIn() ) { out += '
'; out += '
'; out += ' Hello ' + reg.getUserName() ; out += '
'; out += ' '; out += '
'; } else { out += '
'; out += '
'; out += ' '; out += '
'; } out += '
'; return out; } GlobalNavigation.prototype.getPrintEdition = function () { var out = ""; out += '
'; out += ' PRINT EDITION | Subscribe to'; out += ' The Washington Post'; out += '
'; return out; } GlobalNavigation.prototype.getChannels = function () { var out = ""; out += '
'; out += '
'; return out; } GlobalNavigation.prototype.getFeatures = function () { var out = ""; out += '
'; out += '
'; return out; } GlobalNavigation.prototype.getClassifieds = function() { var out = ""; out += '
'; out += '
'; return out; } function clearGlobalNavSearchField(formName) { var searchTextField = eval("document."+formName+".keywords"); if (searchTextField.value == "Try Our New Search") { searchTextField.value = ""; } searchTextField.className = '.wp-input-black'; } GlobalNavigation.prototype.getGrayBar = function() { var out = ""; typeof alreadyCalled == 'undefined'? out+='' : out+='
' ; var formName = ""; typeof alreadyCalled == 'undefined'?formName = "searchform1":formName ="searchform2"; alreadyCalled = true; var ie = document.getElementById?true:false; ie ? formSize=27 : formSize=24 ; out += '
'; out += '
' ; out += '' ; out += '
' ; out += '
'; return out; } GlobalNavigation.prototype.getPlethoraOfLinks = function() { var out = ""; out += '
'; out += '
'; out += ''; out += '
'; out += 'Jobs | Cars | Real Estate | Rentals | Classifieds'; out += '
'; out += '
'; out += '
'; out += '
'; out+=' '; return out; } var _gnpost = new GlobalNavigation(); function placeChannelNav(channel) { if( channel != null ) _gnpost.setChannel( channel ); document.writeln( _gnpost.render() ); } // THE FOLLOWING CODE PLACES A UNIVERSAL PERSISTENT COOKIE RESIDENT ON USERS' MACHINES var upc_url = new String(document.location.href) ; // if (upc_url.indexOf(".washingtonpost.com") > -1) if (upc_url.indexOf(".washingtonpost.com") > -1) { c = document.cookie; var pos = c.indexOf("WPNIUCID"); if (pos == -1) { d = new Date(); i = "WPNI"+ d.getTime() +"."+ Math.round(Math.random()*10000); d.setTime(d.getTime() + 31104000000); document.cookie = "WPNIUCID="+ i + "; expires="+ d.toGMTString() + "; path=/"+ "; domain=.washingtonpost.com"; } }