function categories(type)
{


var header = 'RESTAURANTS';
var subNav = new Array ();

subNav[0] = new Nav("Bakery", "700001");
subNav[1] = new Nav("Brunch", "700002");
subNav[2] = new Nav("Burgers", "700003");
subNav[3] = new Nav("Cheap Eats", "700004");
subNav[4] = new Nav("Coffee Shop", "700005");
subNav[5] = new Nav("Crabs", "700006");
subNav[6] = new Nav("Ice Cream", "700007");
subNav[7] = new Nav("Italian", "700008");
subNav[8] = new Nav("Kid-Friendly", "700009");
subNav[9] = new Nav("Pizza", "700010"); 
subNav[10] = new Nav("Romantic", "700011");
subNav[11] = new Nav("Steaks", "700012");
subNav[12] = new Nav("Sushi", "700013");
subNav[13] = new Nav("Take-Out", "700014");
subNav[14] = new Nav("Thai", "700015");
subNav[15] = new Nav("Vegetarian", "700016");


var bars_header = 'BARS & CLUBS';
var barNav = new Array ();

barNav[0] = new Nav("Bartenders", "710001");
barNav[1] = new Nav("Dance Club", "710002");
barNav[2] = new Nav("Gay and Lesbian Bar", "710003");
barNav[3] = new Nav("Happy Hour", "710004");
barNav[4] = new Nav("Hotel Bar", "710005");
barNav[5] = new Nav("Neighborhood Bar", "710006");
barNav[6] = new Nav("Pick-up Spot", "710007");
barNav[7] = new Nav("Place to Talk Politics", "710008");
barNav[8] = new Nav("Pool Hall", "710009");
barNav[9] = new Nav("Sports Bar", "710010");


var city_header = 'THE CITY';
var cityNav = new Array();

cityNav[0] = new Nav("Hike/Bike Trails","720001");
cityNav[1] = new Nav("First Date Spot","720002");
cityNav[2] = new Nav("Golf Course","720003");
cityNav[3] = new Nav("Gym/Health Club","720004");
cityNav[4] = new Nav("Live Theater","720006");
cityNav[5] = new Nav("Local Band","720007");
cityNav[6] = new Nav("Movie Theater","720009");
cityNav[7] = new Nav("Museum","720010");
cityNav[8] = new Nav("Place to Hear Live Music","720011");
cityNav[9] = new Nav("Yoga Studio","720012");
  
var shop_header = 'SHOPPING';
var shopNav = new Array();

shopNav[0] = new Nav("Bookstore","730001");
shopNav[1] = new Nav("Day Spa","730002");
shopNav[2] = new Nav("Florist","730003");
shopNav[3] = new Nav("Hair Salon","730004");
shopNav[4] = new Nav("Home Furnishings","730005");
shopNav[5] = new Nav("Men's Clothing Store ","730006");
shopNav[6] = new Nav("Shoe Shop","730007");
shopNav[7] = new Nav("Women's Clothing Store ","730008");



var escape_header = 'ESCAPES';
var escapeNav = new Array();

escapeNav[0] = new Nav("Regional Beach","740001");
escapeNav[1] = new Nav("Ski Resort","740002");
escapeNav[2] = new Nav("Romantic Weekend Getaway","740003");
escapeNav[3] = new Nav("Day Trip","740004");
escapeNav[4] = new Nav("Theme Park","740005");



function Nav(text, url)
{
  this.text = text;
  this.url = url;
}

var printOut = '';
var barsprintOut = '';
var cityprintOut = '';
var shopprintOut = '';
var escapeprintOut = '';

var thePrintOut = '';



var theUrl = 'http://www.washingtonpost.com';
var directoryPath = '/wp-srv/artsandliving/entertainmentguide/bestbets/2005/results/';
var versionId = '.html';


for ( var count = 0; count < subNav.length; count++ )
    {
printOut = '<font face="arial" color="#A2B42E" size="-2">&#149; </font> <a  href="'+theUrl+directoryPath+subNav[count].url+versionId+'"><font face="Verdana" size="-2" color="#568C9D">'+subNav[count].text+'</font></a><br>';

thePrintOut +=''+printOut+'';
    }
	
	for ( var count = 0; count < barNav.length; count++ )
    {
printOut = '<font face="arial" color="#A2B42E" size="-2">&#149; </font> <a  href="'+theUrl+directoryPath+barNav[count].url+versionId+'"><font face="Verdana" size="-2" color="#568C9D">'+barNav[count].text+'</font></a><br>';

barsprintOut +=''+printOut+'';
    }
	
	for ( var count = 0; count < cityNav.length; count++ )
    {
printOut = '<font face="arial" color="#A2B42E" size="-2">&#149; </font> <a  href="'+theUrl+directoryPath+cityNav[count].url+versionId+'"><font face="Verdana" size="-2" color="#568C9D">'+cityNav[count].text+'</font></a><br>';

cityprintOut +=''+printOut+'';
    }
	
	for ( var count = 0; count < shopNav.length; count++ )
    {
printOut = '<font face="arial" color="#A2B42E" size="-2">&#149; </font> <a  href="'+theUrl+directoryPath+shopNav[count].url+versionId+'"><font face="Verdana" size="-2" color="#568C9D">'+shopNav[count].text+'</font></a><br>';

shopprintOut +=''+printOut+'';
    }
	
	
		for ( var count = 0; count < escapeNav.length; count++ )
    {
printOut = '<font face="arial" color="#A2B42E" size="-2">&#149; </font> <a  href="'+theUrl+directoryPath+escapeNav[count].url+versionId+'"><font face="Verdana" size="-2" color="#568C9D">'+escapeNav[count].text+'</font></a><br>';

escapeprintOut +=''+printOut+'';
    }
	
	
	 if (type == "results"){
	
headerNav ='<TABLE border="0" width="409" cellpadding="2" cellspacing="2"> <tr><td valign="top"><font face="verdana" color="#A2B42E" size="-2"><b>'+header+'</b></font><br>'+thePrintOut+'</td><td valign="top"><font face="verdana" color="#A2B42E" size="-2"><b>'+bars_header+'</b></font><br>'+barsprintOut+'</td><td valign="top"><font face="verdana" color="#A2B42E" size="-2"><b>'+city_header+'</b></font><br>'+cityprintOut+'</td><td valign="top"><div><font face="verdana" color="#A2B42E" size="-2"><b>'+shop_header+'</b></font><br>'+shopprintOut+'</div><div style="margin-top:7px;"><font face="verdana" color="#A2B42E" size="-2"><b>'+escape_header+'</b></font><br>'+escapeprintOut+'</div></td></tr></table>';

}

	 if (type == "front"){
	
headerNav ='<TABLE border="0" width="578" cellpadding="2" cellspacing="2"> <tr><td valign="top"><font face="verdana" color="#A2B42E" size="-2"><b>'+header+'</b></font><br>'+thePrintOut+'</td><td valign="top"><font face="verdana" color="#A2B42E" size="-2"><b>'+bars_header+'</b></font><br>'+barsprintOut+'</td><td valign="top"><font face="verdana" color="#A2B42E" size="-2"><b>'+city_header+'</b></font><br>'+cityprintOut+'</td><td valign="top"><div><font face="verdana" color="#A2B42E" size="-2"><b>'+shop_header+'</b></font><br>'+shopprintOut+'</div><div style="margin-top:7px;"><font face="verdana" color="#A2B42E" size="-2"><b>'+escape_header+'</b></font><br>'+escapeprintOut+'</div></td></tr></table>';

}



document.write(headerNav) ;

}