function categories(type)
{


var header = 'RESTAURANTS';
var subNav = new Array();
subNav[0] = 'Bakery|60001_best_bakery.htm' ;
subNav[1] = 'Brunch|60002_best_brunch.htm' ;
subNav[2] = 'Burgers|60003_best_burgers.htm' ;
subNav[3] = 'Cheap Eats|60004_best_cheap_eats.htm' ;
subNav[4] = 'Coffee Shop|60005_best_coffee_shop.htm' ;
subNav[5] = 'Crabs|60006_best_crabs.htm' ;
subNav[6] = 'Dining in a Group|60007_best_dining_in_a_group.html' ;
subNav[7] = 'Ice Cream|60008_best_ice_cream.htm' ;
subNav[8] = 'Italian|60009_best_italian.htm' ;
subNav[9] = 'Kid-Friendly|60010_best_kid_friendly.htm' ;
subNav[10] = 'Late Night|60011_best_late_night.htm' ;
subNav[11] = 'Pizza|60012_best_pizza.htm' ;
subNav[12] = 'Romantic|60013_best_romantic.htm' ;
subNav[13] = 'Steaks|60014_best_steaks.htm' ;
subNav[14] = 'Sushi|60015_best_sushi.htm' ;
subNav[15] = 'Vegetarian|60016_best_vegetarian.htm' ;
subNav[16] = 'Thai|60017_best_thai.htm' ;

var bars_header = 'BARS & CLUBS';
var bars_subNav = new Array();
bars_subNav[0] = 'Bar Food|60018_best_bar_food.htm' ;
bars_subNav[1] = 'Bartenders|60019_best_bartenders.htm' ;
bars_subNav[2] = 'Dance Club|60020_best_dance_club.htm' ;
bars_subNav[3] = 'Gay &amp; Lesbian|60021_best_gay_and_lesbian.htm' ;
bars_subNav[4] = 'Happy Hour|60022_best_happy_hour.htm' ;
bars_subNav[5] = 'Hotel Bar|60023_best_hotel_bar.htm' ;
bars_subNav[6] = 'Neighborhood Bar|60024_best_neighborhood_bar.htm' ;
bars_subNav[7] = 'Pick-up Spot|60025_best_pick_up_spot.htm' ;
bars_subNav[8] = 'Place to Talk Politics|60026_best_place_to_talk_politics.htm' ;
bars_subNav[9] = 'Pool Hall|60027_best_pool_hall.htm' ;
bars_subNav[10] = 'Sports Bar|60028_best_sports_bar.htm' ;
bars_subNav[11] = 'Bar for a Bachelorette Party|60029_best_bar_for_a_bachelorette_party.htm' ;


var city_header = 'THE CITY';
var city_subNav = new Array();
city_subNav[0] = 'Hike/Bike Trail|60030_best_hike.html' ;
city_subNav[1] = 'Place to Hold an Office Party|60031_best_place_to_hold_an_office_party.html' ;
city_subNav[2] = 'First Date Spot|60032_best_first_date_spot.html' ;
city_subNav[3] = 'Gym/Health Club|60033_best_gym.html' ;
city_subNav[4] = 'Hidden Gem|60034_best_hidden_gem.html' ;
city_subNav[5] = 'Live Theater|60035_best_live_theater.html' ;
city_subNav[6] = 'Local Band|60036_best_local_band.html' ;
city_subNav[7] = 'Luxury Hotel|60037_best_luxury_hotel.html' ;
city_subNav[8] = 'Movie Theater|60038_best_movie_theater.html' ;
city_subNav[9] = 'Museum|60039_best_museum.html' ;
city_subNav[10] = 'Place to Hear Live Music|60040_best_place_to_hear_live_music.html' ;

var shop_header = 'SHOPPING';
var shop_subNav = new Array();
shop_subNav[0] = 'Bookstore|60041_best_bookstore.html' ;
shop_subNav[1] = 'Day Spa|60042_best_day_spa.html' ;
shop_subNav[2] = 'Florist|60043_best_florist.html' ;
shop_subNav[3] = 'Hair Salon|60044_best_hair_salon.html' ;
shop_subNav[4] = 'Home Furnishings|60045_best_home_furnishings.html' ;
shop_subNav[5] = 'Jewelry|60046_best_jewelry.html' ;
shop_subNav[6] = 'Men\'s Clothing Store|60047_best_mens_clothing_store.html' ;
shop_subNav[7] = 'Wedding Presents|60048_best_wedding_presents.html' ;
shop_subNav[8] = 'Shoes|60049_best_shoes.html' ;
shop_subNav[9] = 'Women\'s Clothing Store|60050_best_womens_clothing_store.html' ;


var printOut = '';
var barsprintOut = '';
var cityprintOut = '';
var shopprintOut = '';

for (var i=0; i<subNav.length; i++)
{
 var DELIMITER = '|'; 
 var endName = subNav[i].substring(subNav[i].indexOf(DELIMITER)+1);
 var beginName = subNav[i].substring(0,subNav[i].indexOf(DELIMITER))
    links = '<tr><td valign="top"><FONT face="arial,helvetica" size="-1" color="#666666"> • </FONT></td><td><a href='+endName+'><font face="verdana" size="-2" color="#666666"><b>'+beginName+'</b></font></a></td></tr>';

 printOut += ''+links+'';
}


 for (var i=0; i<bars_subNav.length; i++)
{
 var DELIMITER = '|'; 
 var endName = bars_subNav[i].substring(bars_subNav[i].indexOf(DELIMITER)+1);
 var beginName = bars_subNav[i].substring(0,bars_subNav[i].indexOf(DELIMITER))
    links = '<tr><td valign="top"><FONT face="arial,helvetica" size="-1" color="#666666"> • </FONT></td><td><a href='+endName+'><font face="verdana" size="-2" color="#666666"><b>'+beginName+'</b></font></a></td></tr>';

 barsprintOut += ''+links+'';
}

 for (var i=0; i<city_subNav.length; i++)
{
 var DELIMITER = '|'; 
 var endName = city_subNav[i].substring(city_subNav[i].indexOf(DELIMITER)+1);
 var beginName = city_subNav[i].substring(0,city_subNav[i].indexOf(DELIMITER))
    links = '<tr><td valign="top"><FONT face="arial,helvetica" size="-1" color="#666666"> • </FONT></td><td><a href='+endName+'><font face="verdana" size="-2" color="#666666"><b>'+beginName+'</b></font></a></td></tr>';

 cityprintOut += ''+links+'';
}

for (var i=0; i<shop_subNav.length; i++)
{
 var DELIMITER = '|'; 
 var endName = shop_subNav[i].substring(shop_subNav[i].indexOf(DELIMITER)+1);
 var beginName = shop_subNav[i].substring(0,shop_subNav[i].indexOf(DELIMITER))
    links = '<tr><td valign="top"><FONT face="arial,helvetica" size="-1" color="#666666"> • </FONT></td><td><a href='+endName+'><font face="verdana" size="-2" color="#666666"><b>'+beginName+'</b></font></a></td></tr>';

 shopprintOut += ''+links+'';
}
  
  
  
  if (type == "results"){
  
    headerNav ='<TABLE border="0" width="105" cellpadding="1" cellspacing="0"> <tr><td colspan="2"><font face="verdana" color="#336699" size="-2"><b>'+header+'</b></font></td></tr>'+printOut+'<tr><td height="12"><spacer type="block" height="12"></td></tr><tr><td colspan="2"><font face="verdana" color="#336699" size="-2"><b>'+bars_header+'</b></font></td></tr>'+barsprintOut+'<tr><td height="12"><spacer type="block" height="12"></td></tr><tr><td colspan="2"><font face="verdana" color="#336699" size="-2"><b>'+city_header+'</b></font></td></tr>'+cityprintOut+'<tr><td height="12"><spacer type="block" height="12"></td></tr><tr><td colspan="2"><font face="verdana" color="#336699" size="-2"><b>'+shop_header+'</b></font></td></tr>'+shopprintOut+'</table>';
  
  }
  
  else if (type == "splash") {
  
  headerNav ='<map name="type"><area alt="" coords="367,164,479,190" href="http://www.washingtonpost.com/wp-srv/entertainment/bestbets/bestbets_pocketguide.pdf" onClick="sa_onclick(this.href);"></map><TABLE cellpadding="0" cellspacing="0" width="485" border="0"><TR><TD width="87" valign="top"><TABLE cellpadding="1" cellspacing="1" width="87" border="0"><tr><td height="3" colspan="2"><spacer type="block" height="3"></td></tr>'+printOut+'</table></TD><TD width="5"><SPACER type="block" width="5"></TD><TD bgcolor="#CCCCCC" width="1"><SPACER type="block" width="1"></TD><TD width="5"><SPACER type="block" width="5"></TD><TD valign="top" width="87" valign="top"><TABLE cellpadding="1" cellspacing="1" width="87" border="0"><tr><td height="3" colspan="2"><spacer type="block" height="3"></td></tr>'+barsprintOut+'</table></TD><TD width="5"><SPACER type="block" width="5"></TD><TD bgcolor="#CCCCCC" width="1"><SPACER type="block" width="1"></TD><TD width="5"><SPACER type="block" width="5"></TD><TD valign="top" width="87" valign="top"><TABLE cellpadding="1" cellspacing="1" width="87" border="0"><tr><td height="3" colspan="2"><spacer type="block" height="3"></td></tr>'+cityprintOut+'</table></TD><TD width="5"><SPACER type="block" width="5"></TD><TD bgcolor="#CCCCCC" width="1"><SPACER type="block" width="1"></TD><TD width="5"><SPACER type="block" width="5"></TD><TD valign="top" width="87" valign="top"><TABLE cellpadding="1" cellspacing="1" width="87" border="0"><tr><td height="3" colspan="2"><spacer type="block" height="3"></td></tr>'+shopprintOut+'</TABLE></TD></TR></TABLE>';
  
  
  }
  
  
  
   else {
  
   headerNav ='<TABLE cellpadding="0" cellspacing="0" width="485" border="0"><TR><TD width="87" valign="top"><TABLE cellpadding="1" cellspacing="1" width="87" border="0"><tr><td height="3" colspan="2"><spacer type="block" height="3"></td></tr><tr><td colspan="2"><font face="verdana" color="#336699" size="-2"><b>'+header+'</b></font></td></tr>'+printOut+'</table></TD><TD width="5"><SPACER type="block" width="5"></TD><TD bgcolor="#CCCCCC" width="1"><SPACER type="block" width="1"></TD><TD width="5"><SPACER type="block" width="5"></TD><TD valign="top" width="87" valign="top"><TABLE cellpadding="1" cellspacing="1" width="87" border="0"><tr><td height="3" colspan="2"><spacer type="block" height="3"></td></tr><tr><td colspan="2"><font face="verdana" color="#336699" size="-2"><b>'+bars_header+'</b></font></td></tr>'+barsprintOut+'</table></TD><TD width="5"><SPACER type="block" width="5"></TD><TD bgcolor="#CCCCCC" width="1"><SPACER type="block" width="1"></TD><TD width="5"><SPACER type="block" width="5"></TD><TD valign="top" width="87" valign="top"><TABLE cellpadding="1" cellspacing="1" width="87" border="0"><tr><td height="3" colspan="2"><spacer type="block" height="3"></td></tr><tr><td colspan="2"><font face="verdana" color="#336699" size="-2"><b>'+city_header+'</b></font></td></tr>'+cityprintOut+'</table></TD><TD width="5"><SPACER type="block" width="5"></TD><TD bgcolor="#CCCCCC" width="1"><SPACER type="block" width="1"></TD><TD width="5"><SPACER type="block" width="5"></TD><TD valign="top" width="87" valign="top"><TABLE cellpadding="1" cellspacing="1" width="87" border="0"><tr><td height="3" colspan="2"><spacer type="block" height="3"></td></tr><tr><td colspan="2"><font face="verdana" color="#336699" size="-2"><b>'+shop_header+'</b></font></td></tr>'+shopprintOut+'</TABLE></TD></TR></TABLE>';

}
  
document.write(headerNav) ;


}