function getDeepLinks(ancestor)
{
var deep_links ;
if (ancestor == 'sports/')
{
  deep_links = new Array(
  'sports,Sports',
  'sports/scoreboard,Scoreboard',
  'sports/redskins,Redskins',
  'sports/washingtoncapitals,Capitals',
  'sports/washingtonwizards,Wizards',
  'sports/baltimoreorioles,Orioles',
  'sports/dcunited,DC United',
  'sports/washingtonmystics,Mystics',
  'sports/baltimoreravens,Ravens',
  'sports/areaproteams,Area Pro Teams',
  'sports/highschools,High Schools',
  'sports/colleges,Colleges',
  'sports/leaguesandsports,Leagues and Sports',
  'sports/columns,Columnists',
  'sports/features,Features',
  'sports/index,Index'
  ) ;
}
else
{
deep_links = new Array(
'artsandliving/barsandclubs,Bars and Clubs',
'artsandliving/books,Books',
'artsandliving/columns,Columns',
'artsandliving/comics,Comics',
'artsandliving/crosswords,Crosswords',
'artsandliving/dating,Dating',
'artsandliving/entertainmentguide,Entertainment Guide',
'artsandliving/cityguide,City Guide',
'artsandliving/entertainmentnews,Entertainment News',
'artsandliving/fashionandbeauty,Fashion and Beauty',
'artsandliving/foodanddining,Food and Dining',
'artsandliving/homeandgarden,Home and Garden',
'artsandliving/movies,Movies',
'artsandliving/museums,Museums',
'artsandliving/music,Music',
'artsandliving/seasonal,Seasonal',
'artsandliving/shopping,Shopping',
'artsandliving/sportsandrec,Sports and Recreation',
'artsandliving/television,Television',
'artsandliving/theater,Theater',
'artsandliving/travel,Travel',
'artsandliving/yearinreview,Year in Review', 
'photo/dayinphotos,Day in Photos',
'food/columns,Columns',
'health/alternativecare,Alternative Care',
'home/buildit,Build It/Fix It',
'print/a1,Front Page',
'sports/scoreboard,Scoreboard',
'style/books,Book World',
'travel/webtravel,Web Travel',
'world/africa,Africa',
'health/childrenyouth,Children & Youth',
'home/furnishings,Furnishings/Design',
'print/image,Front Page Image',
'sports/redskins,Redskins',
'travel/international,International',
'travel/unitedstates,United States',
'world/americas,Americas',
'health/chronicdiseases,Chronic Diseases',
'health/fitness,Fitness',
'home/garden,Garden & Patio',
'home/guides,Guides',
'print/asection,Inside the A Section',
'travel/escapes,Mid-Atlantic',
'world/asia,Asia/Pacific',
'health/healthcare,Health Care Issues',
'home/homelife,Home Life',
'print/nationpolitics,Nation and Politics',
'style/postmagazine,Post Magazine',
'travel/visitorsguide,DC Visitors Guide',
'world/europe,Europe',
'health/men,Men',
'home/neighborhoods,Neighborhoods',
'opinion/editorials,Editorials',
'print/editorials,Editorial Pages',
'style/sundayarts,Sunday Arts',
'health/mentalhealth,Mental Health',
'home/roombyroom,Room by Room',
'print/world,World',
'style/sundaysource,Sunday Source',
'style/television,Television',
'travel/onlinetraveler,Beach Guide',
'world/mideast,Middle East',
'health/nutrition,Nutrition',
'home/columns,Columnists',
'print/business,Business',
'style/weekend,Weekend',
'travel/travelbytopic,Travel by Topic',
'world/columns,Columnists',
'health/seniors,Seniors',
'home/photogalleries,Photo Galleries',
'opinion/opeds,Op-Eds',
'print/metro,Metro',
'sports/specialevent,World Cup',
'style/columns,Columns',
'travel/liveonline,Live Discussions',
'world/search,Search the World',
'health/women,Women',
'home/liveonline,Live Discussions',
'print/sports,Sports',
'travel/photogalleries,Photo Galleries',
'world/issues,Special Reports',
'health/columns,Columns',
'home/index,Index',
'opinion/columns,Columnists',
'print/style,Style',
'style/news,Entertainment News',
'travel/columns,Columns',
'travel/heritage,Heritage Travel',
'world/photogalleries,Photo Galleries',
'health/specials,Special Reports',
'print/archive,Previous Editions',
'world/live,Live Discussions',
'health/liveonline,Live Discussions',
'print/sunday,Sunday Sections',
'world/index,World Index',
'health/photogalleries,Photo Galleries',
'print/community,The Extras',
'style/photogalleries,Photo Galleries',
'health/index,Health Index',
'print/weekly,Weekly Sections',
'style/liveonline,Live Discussions',
'sports/washingtoncapitals,Capitals',
'style/index,Index',
'print/subscription,Subscription Form',
'liveonline/regularhosts,Regular Hosts',
'opinion/letterstotheeditor,Letters to the Editor',
'photo/topstory,Top Story',
'sports/washingtonwizards,Wizards',
'opinion/tolestom,Tom Toles',
'liveonline/messageboards,Message Boards',
'opinion/outlook,Outlook',
'photo/newsvideo,News Video/Audio',
'liveonline/schedule,Weekly Schedule',
'photo/weekinreview,The Week in Review',
'sports/baltimoreorioles,Orioles',
'liveonline/specialevents,Special Events',
'sports/dcunited,United',
'sports/baltimoreravens,Ravens',
'sports/areaproteams,Area Pro Teams',
'liveonline/politics,Politics',
'sports/highschools,High Schools',
'liveonline/nation,Nation',
'sports/colleges,Colleges',
'liveonline/world,World',
'sports/leaguesandsports,Leagues and Sports',
'education/dc,District',
'liveonline/metro,Metro',
'photo/onassignment,On Assignment',
'realestate/buy,BUY',
'sports/columns,Columnists',
'photo/aqphotovoyage,AQ Photo Voyages',
'liveonline/sports,Sports',
'sports/features,Features',
'photo/bestofthepost,Best of the Post',
'liveonline/business,Business',
'sports/index,Index',
'photo/studentwork,Student Work',
'liveonline/tech,Technology',
'liveonline/style,Style',
'liveonline/entertainment,Entertainment',
'liveonline/opinion,Opinion',
'liveonline/travel,Travel',
'liveonline/health,Health',
'liveonline/homeandgarden,Home &amp; Garden',
'education/md,Maryland',
'liveonline/food,Food',
'photo/politics,Politics',
'realestate/sell,SELL',
'photo/entertainment,Entertainment',
'liveonline/education,Education',
'photo/nation,Nation',
'photo/world,World',
'liveonline/postmagazine,Post Magazine',
'photo/business,Business',
'photo/metro,Metro',
'liveonline/realestate,Real Estate',
'photo/sports,Sports',
'photo/style,Style',
'photo/visitorsguide,Visitors Guide',
'liveonline/jobs,Jobs',
'photo/travel,Travel',
'photo/education,Education',
'photo/homeandgarden,Home & Garden',
'photo/health,Health',
'education/va,Virginia',
'photo/liveonline,Live Discussions',
'realestate/rent,RENT',
'education/adulteducation,Adult Education',
'photo/faq,FAQs',
'realestate/own,OWN',
'photo/toolsandresources,Tools &#38; Resources',
'photo/contactus,Contact Us',
'photo/relatedlinks,Related Links',
'education/highereducation,Higher Education',
'business/portfolio,Portfolio',
'education/teachers,Teachers',
'metro/schools,Schools',
'nation/nationalsecurity,National Security',
'politics/fedpage,Federal Page',
'education/parenting,Parenting',
'metro/crime,Crime',
'nation/science,Science',
'politics/elections,Elections',
'metro/government,Government',
'nation/courts,Courts',
'politics/administration,Bush Administration',
'metro/traffic,Traffic',
'nation/columns,Columns',
'politics/congress,In Congress',
'business/markets,Market News',
'education/preschool,Preschool',
'metro/lottery,Lottery',
'nation/states,Search the States',
'politics/polls,Polls',
'technology/washtech,Washtech',
'business/companyresearch,Company Research',
'business/economy,Economy',
'education/kto12,K to 12',
'metro/obituaries,Obituaries',
'nation/specials,Special Reports',
'education/schoolguide,School Guide',
'metro/religion,Religion',
'nation/photogalleries,Photo Galleries',
'politics/liveonline,Live Discussions',
'education/kidspost,KidsPost',
'metro/columns,Columnists',
'nation/liveonline,Live Discussions',
'metro/dc,The District',
'nation/index,Nation Index',
'education/specials,Special Reports',
'education/liveonline,Live Discussions',
'metro/md,Maryland',
'metro/md/government,Maryland Government',
'education/photogalleries,Photo Galleries',
'education/index,Education Index',
'metro/va,Virginia',
'metro/va/government,Virginia Government',
'metro/specials,Special Reports',
'business/government,Policy',
'business/localbusiness,Metro Business',
'metro/photogalleries,Photo Galleries',
'metro/liveonline,Live Discussions',
'technology/techpolicy,Tech Policy',
'business/industries,Industries',
'metro/index,Metro Index',
'business/personalfinance,Personal Finance',
'technology/govtit,Gov\'t IT',
'business/mutuals,Mutual Funds',
'technology/markets,Markets',
'technology/venturecapital,Venture Capital',
'business/specials,Special Reports',
'technology/columns,Columnists',
'technology/software,Software',
'business/columns,Columnists',
'technology/personaltech,Personal Tech',
'technology/specials,Special Reports',
'business/liveonline,Live Discussions',
'business/index,Business Index',
'technology/jobs,Jobs',
'admin/classifieds,Classifieds',
'admin/merchandise,Merchandise',
'admin/help,Help/Feedback',
'admin/newsindex,News Index',
'kids/features,Features',
'kids/newsflash,Newsflash',
'kids/photo,Shutterbug',
'kids/poll,Polling Booth',
'technology/finance,Finance',
'travel/archive,Travel Index');
}
return deep_links ;
}

levelA = new makeArray(
'wp-srv/front.htm,News Home Page',
'wp-dyn/content/nation,Nation',
'wp-dyn/content/politics,Politics',
'wp-dyn/content/world,World',
'wp-dyn/content/metro,Metro',
'wp-dyn/content/business,Business',
'wp-dyn/content/technology,Technology',
'wp-dyn/content/sports,Sports',
'wp-dyn/content/style,Style',
'wp-dyn/content/education,Education',
'wp-dyn/content/travel,Travel',
'wp-dyn/content/health,Health',
'kidspost,KidsPost',
'wp-dyn/content/realestate,Real Estate',
'wp-dyn/content/home,Home &amp; Garden',
'wp-dyn/content/food,Food',
'wp-dyn/content/liveonline,Live Online',
'wp-dyn/content/opinion,Opinion',
'wp-srv/weather,Weather',
'wp-dyn/content/print/weekly,Weekly',
'wp-dyn/content/digest,News Digest',
'wp-srv/admin/classifieds,Classifieds',
'wp-dyn/content/print,Print Edition',
'wp-dyn/content/artsandliving,Arts and Living');


function makeSectionPulldown(node)
{
document.write('<form name="nodeSections"><tr><td valign="top" align="right"><select name="sections">');
document.write('<option value="http://www.washingtonpost.com/');
var end = (node.indexOf("/") != -1) ? node.indexOf("/") : node.length;
var section = node.substring(0, end);
for(var i=0;i<levelA.length;i++)
	{
	if(levelA[i].indexOf(section)!=-1)
		{
		document.write(levelA[i].substring(0,levelA[i].indexOf(',')));
		document.write('/"  selected>Navigate the ');
		document.write(levelA[i].substring(levelA[i].indexOf(',')+1, levelA[i].length));
		document.write(' Section');
		break;
		}
	}
bigAry = getDeepLinks(section + '/');
for(var i=0;i<bigAry.length;i++)
	{
	if(bigAry[i].indexOf(section + '/')!=-1)
		{
		document.write('<option value="http://www.washingtonpost.com/wp-dyn/content/');
		document.write(bigAry[i].substring(0,bigAry[i].indexOf(',')));
		document.write('/">&nbsp;&nbsp;');
		document.write(bigAry[i].substring(bigAry[i].indexOf(',')+1, bigAry[i].length));
		}
	}
document.write('</select>&nbsp;<A href="javascript:leapto(\'nodeSections\');"><img src="http://media.washingtonpost.com/wp-srv/images/go_onwhite.gif" border="0" width="29" height="17" align="absMiddle"></a></td></tr><span></form>');
}

function makeBreadCrumbs(node)
{
	document.write('<a href="http://www.washingtonpost.com/"><font size="-2" face="verdana, ms sans serif, arial" color="#333366"><b>News</b></font></a> <font size="-2" face="arial" class="nodec" color="#333366"><b>&gt;</b></font> ');
	var end = (node.indexOf("/") != -1) ? node.indexOf("/") : node.length;
	var section = node.substring(0, end);
	for(var i=0;i<levelA.length;i++)
		{
		if(levelA[i].indexOf(section)!=-1)
			{
			document.write('<a href="http://www.washingtonpost.com/');
			document.write(levelA[i].substring(0,levelA[i].indexOf(',')));
			document.write('/">');
			document.write('<font size="-2" face="verdana, ms sans serif, arial" color="#333366"><b>');
			document.write(levelA[i].substring(levelA[i].indexOf(',')+1, levelA[i].length));
			document.write('</b></font></a>');
			break;
			}
		}
	if(node.indexOf('/')!=-1)
		{
		var levelB = node.substring(node.indexOf('/')+1, node.length);
		blowout = getDeepLinks(section+'/');	
		for(var i=0;i<blowout.length;i++)
			if(blowout[i].indexOf(node)!=-1)
				{
				document.write(' <font size="-2" face="arial" class="nodec" color="#333366"><b>&gt;</b></font> ');
				document.write('<a href="http://www.washingtonpost.com/wp-dyn/content/');
				document.write(blowout[i].substring(0,blowout[i].indexOf(',')));
				document.write('/">');
				document.write('<font size="-2" face="verdana, ms sans serif, arial" color="#333366"><b>');
				document.write(blowout[i].substring(blowout[i].indexOf(',')+1, blowout[i].length));
				document.write('</b></font></a>');
				break;
				}
		}
}

function makeBreadCrumbsUsingCss(node)
{
	document.write('<a href="http://www.washingtonpost.com/">washingtonpost.com</a> &gt; ');
	var end = (node.indexOf("/") != -1) ? node.indexOf("/") : node.length;
	var section = node.substring(0, end);
	for(var i=0;i<levelA.length;i++)
		{
		if(levelA[i].indexOf(section)!=-1)
			{
			document.write('<a href="http://www.washingtonpost.com/');
			document.write(levelA[i].substring(0,levelA[i].indexOf(',')));
			document.write('/">');
			document.write(levelA[i].substring(levelA[i].indexOf(',')+1, levelA[i].length));
			document.write('</a>');
			break;
			}
		}
	if(node.indexOf('/')!=-1)
		{
		var levelB = node.substring(node.indexOf('/')+1, node.length);
		blowout = getDeepLinks(section+'/');	
		for(var i=0;i<blowout.length;i++)
			if(blowout[i].indexOf(node)!=-1)
				{
				if (node == 'admin/merchandise') {
					document.write(' &gt; ');
					document.write('<a href="http://www.washingtonpost.com/wp-adv/merchandise/index.html">Merchandise</a>');
					break;
				}
				
				else {
					document.write(' &gt; ');
					document.write('<a href="http://www.washingtonpost.com/wp-dyn/content/');
					document.write(blowout[i].substring(0,blowout[i].indexOf(',')));
					document.write('/">');
					document.write(blowout[i].substring(blowout[i].indexOf(',')+1, blowout[i].length));
					document.write('</a>');
					break;
					}
				}
		}
}

function makeArray()
{
  for(var count = 0; count < makeArray.arguments.length; count++)
    this[count] = makeArray.arguments[count];
  this.length = count;
}


function leapto(form)
{
	if (form=="topSections")
	{
		if (document.topSections.sections.options[document.topSections.sections.selectedIndex].value != "nope")
		{	window.location=document.topSections.sections.options[document.topSections.sections.selectedIndex].value;	}
		else { alert("Please make a valid selection."); }
	}
	if (form=="bottomSections")
	{
		if (document.bottomSections.sections.options[document.bottomSections.sections.selectedIndex].value != "nope")
		{	window.location=document.bottomSections.sections.options[document.bottomSections.sections.selectedIndex].value;	}
		else { alert("Please make a valid selection."); }
	}
	if (form=="nodeSections")
	{
		if (document.nodeSections.sections.options[document.nodeSections.sections.selectedIndex].value != "nope")
		{	window.location=document.nodeSections.sections.options[document.nodeSections.sections.selectedIndex].value;	}
		else { alert("Please make a valid selection."); }
	}
}

function placeDropDownNav(loc)
{
	var formName = "topSections";
	if (loc==null)
	{	loc = "top";	}
	if (loc=="bottom")
	{	var formName = "bottomSections";	 }
	
	var agt=navigator.userAgent.toLowerCase()
	
	// for MAC browsers only
	if ( document.getElementById && agt.indexOf("mac")!=-1 )
	{
		//alert("true");
		document.write('<form name="'+formName+'" style="display: inline;">');
		document.write('<table cellpadding="0" cellspacing="0" border="0">');
	}
	else
	{
		//alert("false");
		document.write('<form name="'+formName+'">');
		document.write('<table cellpadding="0" cellspacing="0" border="0" align="top">');
	}
	
	//document.write('<form name="'+formName+'">');
	//document.write('<table cellpadding="0" cellspacing="0" border="0">');
	document.write('<tr><td width="5" height="5"><SPACER TYPE="BLOCK" WIDTH="5" HEIGHT="5"></td></tr>');
	document.write('<tr><td valign="top" align="middle"><select name="sections">');
	document.write('<option value="nope">Navigate to Sections');

	// add jobs, cars and realestate first:
	document.writeln('<option value=http://www.washingtonpost.com/wl/jobs/home>Jobs');
	document.writeln('<option value=http://www.washingtonpost.com/wp-dyn/cars/>Cars');
	document.writeln('<option value=http://www.washingtonpost.com/wp-dyn/realestate/>Real Estate');
	document.writeln('<option>--------------------');
	
	
	for (var count = 0; count < levelA.length; count++)
  {
		var url = levelA[count].substring(0, levelA[count].indexOf(","));
    var name = levelA[count].substring(levelA[count].indexOf(",") + 1, levelA[count].length);
		document.writeln('<option value=http://www.washingtonpost.com/'+url+'>'+name);
	}
	
	// add archives, index, and help last:
	document.writeln('<option>--------------------');
	document.writeln('<option value=http://www.washingtonpost.com/wp-adv/archives/>Archives');
	document.writeln('<option value=http://www.washingtonpost.com/wp-srv/contents/>Site Index');
	document.writeln('<option value=http://www.washingtonpost.com/wp-dyn/admin/help/>Help/Feedback');
	document.write('</select>');
	document.write('&nbsp;&nbsp;<A href="javascript:leapto(\''+formName+'\');"><img src="http://media.washingtonpost.com/wp-srv/images/go_front.gif" border="0" width="29" height="17" align="absMiddle"></a>');
	document.write('</td></tr>');
	document.write('<tr><td width="5" height="5"><SPACER TYPE="BLOCK" WIDTH="5" HEIGHT="5"></td></tr><span></form></span>');
  document.write('</table>');
}