if ( typeof thisNode == "undefined")
	var thisNode = "/" ;
	var thisAncestor = thisNode.split("/")[0] ;

	function getGlobalNavStyleSheets()
	{
	var output = '' ;
	output += '<LINK href="http://www.washingtonpost.com/wp-srv/globalnav/globalnav.css" rel="stylesheet" type="text/css">' ;
	 output += '<style>\n<!--\n@import url("http://www.washingtonpost.com/wp-srv/globalnav/globalnav.css");\n-->\n</style>' ;
	return output ;
	}
	document.write( getGlobalNavStyleSheets() ) ;

	function getTop(position,color)
	{
	var output = '' ;
	output += ('<TABLE WIDTH="760" BORDER="0" CELLPADDING="0" CELLSPACING="0" BACKGROUND="http://www.washingtonpost.com/wp-srv/images/spacer.gif">') ;
	output += ('') ;

	/*
	if ( position == "top" )
	{
		output += ('<TR>') ;
		output += ('<TD COLSPAN="5" HEIGHT="1" BGCOLOR="#FFFFFF" ALIGN="left">&nbsp;<!--span class="globalnav_business_2"><A HREF="#">SIGN IN</A></span><span class="globalnav_business_1"> | <A HREF="#">Register Now</A></span--></TD>') ;
		output += ('<TD COLSPAN="3" HEIGHT="1" BGCOLOR="#FFFFFF" ALIGN="right"><span class="globalnav_business_1"><A HREF="http://www.washingtonpost.com/wp-dyn/admin/help/#'+thisAncestor+'">Contact Us</A></span></TD>') ;
		output += ('</TR>') ;
	}
	*/

	output += ('<TR>') ;
	output += ('<TD WIDTH="10" HEIGHT="1" BGCOLOR="#'+color+'"><spacer type="block" width="10" height="1"></TD>') ;
	output += ('<TD WIDTH="355" HEIGHT="1" BGCOLOR="#'+color+'"><spacer type="block" width="355" height="1"></TD>') ;
	output += ('<TD WIDTH="16" HEIGHT="1" BGCOLOR="#'+color+'"><spacer type="block" width="16" height="1"></TD>') ;
	output += ('<TD WIDTH="54" HEIGHT="1" BGCOLOR="#'+color+'"><spacer type="block" width="54" height="1"></TD>') ;
	output += ('<TD WIDTH="134" HEIGHT="1" BGCOLOR="#'+color+'"><spacer type="block" width="134" height="1"></TD>') ;
	output += ('<TD WIDTH="16" HEIGHT="1" BGCOLOR="#'+color+'"><spacer type="block" width="16" height="1"></TD>') ;
	output += ('<TD WIDTH="165" HEIGHT="1" BGCOLOR="#'+color+'"><spacer type="block" width="165" height="1"></TD>') ;
	output += ('<TD WIDTH="10" HEIGHT="1" BGCOLOR="#'+color+'"><spacer type="block" width="10" height="1"></TD>') ;
	output += ('</TR>') ;
	output += ('') ;
	output += ('<TR>') ;
	output += ('<TD WIDTH="10" HEIGHT="1" BGCOLOR="#FFFFFF"><spacer type="block" width="10" height="1"></TD>') ;
	output += ('<TD COLSPAN="3" HEIGHT="1" BGCOLOR="#FFFFFF"><A HREF="http://www.washingtonpost.com/"><img src="http://www.washingtonpost.com/wp-srv/globalnav/images/wpcomSmallLogo.gif" width="208" height="40" border="0"></A></TD>') ;
	output += ('<TD COLSPAN="4" HEIGHT="1" BGCOLOR="#FFFFFF" ALIGN="right">') ;
	output += ('<table cellpadding="0" cellspacing="0" border="0" width="325">') ;
	output += ('<tr>') ;
	output += ('<td width="1" height="26"><spacer type="block" height="26"></td></td>') ;
	output += ('<td align="right" valign="bottom"><span class="globalnav_business_2"><A HREF="http://www.washingtonpost.com/wp-dyn/print/a1">PRINT EDITION</A></span><span class="globalnav_business_1"> | <A HREF="http://washpost.com/wpnihomepage">Subscribe to</span></A></td>') ;
	output += ('<td rowspan="2"><A HREF="http://washpost.com/wpnihomepage"><img src="http://www.washingtonpost.com/wp-srv/globalnav/images/twpShortLogo.gif" width="135" height="40" border="0"></A></td>') ;
	output += ('</tr>') ;
	output += ('<tr><td colspan="2" width="187" height="7"><spacer type="block" width="187" height="7"></td>') ;
	output += ('</tr>') ;
	output += ('</table>') ;
	output += ('</TD>') ;
	output += ('</TR>') ;
	output += ('') ;
	output += ('<TR><TD COLSPAN="8" HEIGHT="1" BGCOLOR="#000000"><spacer type="block" height="1"></TD></TR>') ;
	output += ('') ;
	output += ('<TR>') ;
	output += ('<TD BGCOLOR="#0D3159"><spacer type="block" width="10"></TD>') ;
	output += ('<TD BGCOLOR="#0D3159" ALIGN="left">') ;
	output += ('<span class="globalnav_main">') ;
	output += ('<A HREF="http://www.washingtonpost.com/">NEWS</A> | ') ;
	output += ('<A HREF="http://www.washingtonpost.com/wp-dyn/opinion/">OPINION</A> | ') ;
	output += ('<A HREF="http://www.washingtonpost.com/wp-dyn/sports/">SPORTS</A> | ') ;
	output += ('<A HREF="http://www.washingtonpost.com/wp-dyn/artsandliving/">ARTS &amp; LIVING</A> | ') ;
	output += ('<A HREF="http://www.washingtonpost.com/gog/">GOING OUT GUIDE</A>') ;
	output += ('</span>') ;
	output += ('</TD>') ;
	output += ('<TD BGCOLOR="#345C89"><img src="http://www.washingtonpost.com/wp-srv/globalnav/images/leftFade2.jpg" width="16" height="21" border="0"></TD>') ;
	output += ('<TD COLSPAN="2" BGCOLOR="#345C89" ALIGN="middle">') ;
	output += ('<span class="globalnav_main">') ;
	output += ('<A HREF="http://www.washingtonpost.com/wp-dyn/liveonline/">Discussions</A> | ') ;
	output += ('<A HREF="http://www.washingtonpost.com/wp-dyn/photo/">Photos &amp; Video</A>') ;
	output += ('</span>') ;
	output += ('</TD>') ;
	output += ('<TD BGCOLOR="#5B87B8"><img src="http://www.washingtonpost.com/wp-srv/globalnav/images/rightFade2.jpg" width="16" height="21" border="0"></TD>') ;
	output += ('<TD BGCOLOR="#5B87B8" ALIGN="right">') ;
	output += ('<span class="globalnav_main">') ;
	output += ('<A HREF="http://www.washingtonpost.com/wl/jobs/home">JOBS</A> | ') ;
	output += ('<A HREF="http://www.washingtonpost.com/wp-dyn/cars/">CARS</A> | ') ;
	output += ('<A HREF="http://www.washingtonpost.com/wp-dyn/realestate/">REAL ESTATE</A>') ;
	output += ('</span>') ;
	output += ('</TD>') ;
	output += ('<TD BGCOLOR="#5B87B8"><spacer type="block" width="10"></TD>') ;
	output += ('</TR>') ;
	output += ('') ;
	output += ('<TR><TD COLSPAN="8" HEIGHT="1" BGCOLOR="#000000"><spacer type="block" height="1"></TD></TR>') ;
	output += ('') ;
	output += ('</TABLE>') ;

	return output ;
	}

	function getSearch()
	{
	var output = ""
	/*
	output += ('<TABLE WIDTH="760" BORDER="0" CELLPADDING="0" CELLSPACING="0" BACKGROUND="http://www.washingtonpost.com/wp-srv/images/spacer.gif">') ;
	output += ('') ;
	output += ('<TR><TD COLSPAN="8" BGCOLOR="#EEEEEE">') ;
	output += ('<table width="760" cellpadding="0" cellspacing="0" border="0">') ;
	output += ('<tr bgcolor="#EEEEEE">') ;
	output += ('<td width="10"><spacer type="block" width="10"></td>') ;
	output += ('<td align="left"><span class="globalnav_search">SEARCH:</span></td>') ;
	output += ('<td valign="middle">') ;
	output += ('<FORM name="searchform1" action="http://www.washingtonpost.com/cgi-bin/search99.pl" method="post">') ;
	output += ('<INPUT type="hidden" value="news" name="searchsection">') ;
	output += ('<INPUT type="radio" name="searchdatabase" value="news" checked></td><td><img src="http://www.washingtonpost.com/wp-srv/globalnav/images/site.gif" width="20" height="29" border="0"></td>') ;
	output += ('<td><INPUT type="radio" name="searchdatabase" value="google"></td>') ;
	output += ('<td><img src="http://www.washingtonpost.com/wp-srv/globalnav/images/webByGoogle.gif" width="89" height="29" border="0"></td>') ;
	output += ('<td align="top">') ;
	output += ('<INPUT size="12" name="searchtext">') ;
	output += ('</td>') ;
	output += ('<td>') ;
	output += ('<INPUT type="image" height="29" alt="Search" width="24" src="http://www.washingtonpost.com/wp-srv/globalnav/images/goButton.gif" border="0" valign="bottom">') ;
	output += ('</td>') ;
	output += ('</FORM>') ;
	output += ('<td width="15"><spacer type="block" width="15"></td>') ;
	output += ('<td align="left" width="365"><!--include virtual="/wp-srv/globalnav/searches_ssi.html"--></td>') ;
	output += ('<td width="10"><spacer type="block" width="10"></td>') ;
	output += ('</tr>') ;
	output += ('</table>') ;
	output += ('</TD></TR>') ;
	output += ('') ;
	output += ('<TR><TD COLSPAN="8" HEIGHT="1" BGCOLOR="#666666"><spacer type="block" height="1"></TD></TR>') ;
	output += ('<TR><TD COLSPAN="8" HEIGHT="1" BGCOLOR="#FFFFFF"><spacer type="block" height="1"></TD></TR>') ;
	output += ('</TABLE>') ;
	*/
	return output ;
	}

	function getTopGlobalNav(channel,greyrule)
	{
	var output = ""

	if ( greyrule )
		output += getTop("bottom","666666") ;
	else
		output += getTop("top","FFFFFF") ;

	var noSearchList = new Array("cars","realestate","jobs","warrenbrown");
	var hasSearch = true;

	for( i=0; i<noSearchList.length; i++ )
	{
		if( channel.indexOf(noSearchList[i]) > -1 )
		{
		hasSearch = false;
		break;
		}
	}
	if ( hasSearch )
		output += getSearch() ;
	else 
	{
		output += ('<TABLE WIDTH="760" BORDER="0" CELLPADDING="0" CELLSPACING="0" BACKGROUND="http://www.washingtonpost.com/wp-srv/images/spacer.gif">') ;
		output += ('<TR><TD HEIGHT="1" BGCOLOR="#FFFFFF"><spacer type="block" height="1"></TD></TR>') ;
		output += ('</TABLE>') ;
	}
	return output ;
	}

function getWPSiteLinks() {
	var output = '' ;
	output += '<link href="http://www.washingtonpost.com/wp-srv/ssi/globalnav/css/wp_global_nav.css" rel="stylesheet" media="all"/>' ;
	output += '<div id="wp_footer_container">' ;
	output += '<p id="wp_sitelinks">' ;
	output += '<span class="title"><a href="http://www.washingtonpost.com">washingtonpost.com:</a></span> <nobr><a href="javascript:void(window.open(\'http://www.washingtonpost.com/wp-srv/admin/help/popup/frame_page.html\',\'help\', \'width=730,height=600,scrollbars=true,toolbar=no,menubar=no,resizable=true\'))"><b>Help</b></a></nobr> |  <a href="http://www.washingtonpost.com/wp-adv/mediacenter/html/about_contact.html">Contact Us</a> <span class="wp_pipe">|</span> <a href="http://www.washingtonpost.com/wp-adv/mediacenter/html/about_welcome.html">About Us</a> <span class="wp_pipe">|</span> <a href="http://www.washingtonpost.com/wp-adv/mediakit/adinfo/">Advertise With Us</a> <span class="wp_pipe">|</span> <a href="http://www.washingtonpost.com/wp-srv/contents/">Site Index</a> <span class="wp_pipe">|</span> <a href="http://topics.washingtonpost.com/wp-srv/topics/">Site Map</a> <span class="wp_pipe">|</span> <a href="http://www.washingtonpost.com/wp-srv/guide/setashome.htm">Make Us Your Homepage</a> <span class="wp_pipe">|</span> <a href="http://www.mywashingtonpost.com/">mywashingtonpost.com</a> <span class="wp_pipe">|</span> <a href="http://www.washingtonpost.com/wl/jobs/JobSearchServlet?featuredemployer=53">Work at washingtonpost.com</a><br> <span class="title">The Washington Post:</span> <a href="http://subscribe.washpost.com/contactus.nsf/frmsubscribezip?openform&code=wc"><b>Subscribe</b></a> <span class="wp_pipe">|</span> <a href="http://www.washingtonpost.com/subscriberservices">Subscriber Services</a> <span class="wp_pipe">|</span> <a href="http://adsite.washpost.com/">Advertise</a> <span class="wp_pipe">|</span> <a href="http://ee.washpost.com/index.jsp">Electronic Edition</a> <span class="wp_pipe">|</span> <a href="http://www.washingtonpost.com/buyphotos">Online Photo Store</a> <span class="wp_pipe">|</span> <a href="http://washingtonpoststore.com/">The Washington Post Store</a> <span class="wp_pipe">|</span> <a href="http://www.washpost.com/">About The Post</a><br><span class="title">The Washington Post Company:</span> <a href="http://www.washpostco.com/index.htm">Information and Other Post Co. Websites</a>' ;
	output += '</p>' ;
	output += '</div>' ;
	return output ;
}

	var firstCallToPlaceChannelNav = true ;
	function placeChannelNav(channel)
	{
	var output = '' ;

	if ( firstCallToPlaceChannelNav) {
		output += getTopGlobalNav(channel) ;
	} else {
		output += getWPSiteLinks() ;
	}

	firstCallToPlaceChannelNav = false ;
	  
	document.write( output ) ;

	/** NON-CORE STUFF **/
	//--------------- EZULA FIX --------------------//
	// if the channel isn't cars - added because of a cars specific issue
		// if the channel isn't jobs - added because of a jobs specific issue
	if ( (channel.indexOf("cars") == -1) && (channel.indexOf("jobs") == -1) )
	{
		//alert(channel);
	//	document.write("<style type=\"text/css\">span {font-size:1px}</style>");
	}
	  
	}

	// 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";
	}
	}

	placeChannelNav('artsandliving');
	
