var Content = new Array();
Content[0] = new Array("Locations", "locations/index.htm");

Content[1] = new Array("Private Sites", "privatesites/index.htm");

Content[2] = new Array("San Diego Best Locations", "sandiegobest/index.htm");
Content[2][2] = new Array("Carl Strauss Brewery Garden", "sandiegobest/cstrauss/index.htm");
Content[2][3] = new Array("Carmel Mountain Ranch", "sandiegobest/carmelmtn/index.htm");
Content[2][4] = new Array("Horton Grand", "sandiegobest/hortongrand/index.htm");
Content[2][5] = new Array("Zosa Gardens Bed and Breakfast", "sandiegobest/zosa_gardens/index.htm");
Content[2][6] = new Array("Paradise Point", "sandiegobest/paradisepoint/index.htm");
Content[2][7] = new Array("California Center for the Arts", "sandiegobest/ca_centre/index.htm");
//Content[2][8] = new Array("San Luis Rey Downs", "sandiegobest/sanluisrey/index.htm");
Content[2][8] = new Array("Aviara Four Seasons", "sandiegobest/aviara4seasons/index.htm");
Content[2][9] = new Array("Bridal Faire Info", "bridalfaire/index.html");

Content[3] = new Array("San Diego Services", "services/index.htm");
Content[3][2] = new Array("Backdrop and Studio", "services/photography/backdrop_studio/index.htm");
Content[3][3] = new Array("Engagement", "services/photography/engagements/index.htm");
Content[3][4] = new Array("Is it Art?", "services/photography/isitart_bw/index.htm");
Content[3][5] = new Array("Photo Ideas", "services/photography/photo_ideas/index.htm");
Content[3][6] = new Array("Photojournalism", "services/photography/photojournalism/index.htm");
Content[3][7] = new Array("Prices", "services/photography/prices.htm");
Content[3][8] = new Array("Families", "services/photography/families/index.htm");
Content[3][9] = new Array("Glamour", "services/photography/glamour/index.htm");
Content[3][10] = new Array("Parties & Events", "services/photography/partiesevents/index.htm");
Content[3][11] = new Array("Seniors", "services/photography/seniors/index.htm");
Content[3][12] = new Array("Bridal Faire Info", "bridalfaire/index.html");
Content[3][13] = new Array("New Home Accessories", "services/accessories/index.htm");

Content[4] = new Array("Las Vegas Services", "lv_services/index.htm");

Content[5] = new Array("Advice", "advice/index.htm");

var ActivePItem = -1;
var ActiveSItem = -1;
var Index = 0;
document.write("<table bgcolor=\"#6666CC\" bordercolor=\"#6666CC\" cellpadding=\"3\" cellspacing=\"0\" border=\"1\" width=\"100%\">");
document.write("<tr>");
for(i = 0; i < Content.length; i++)
{
	if(PrimaryLink.toLowerCase() == Content[i][1].toLowerCase())
	{
		ActivePItem = i;
		document.write("<td bordercolor=\"#CCCCFF\" bgcolor=\"#9A99FF\" align=\"center\"><a href=\"" + Catalog + Content[i][1] + "\" class=\"active\">" + Content[i][0] + "</a></td>");
	}
	else document.write("<td bordercolor=\"#CCCCFF\" align=\"center\"><a href=\"" + Catalog + Content[i][1] + "\" class=\"first\">" + Content[i][0] + "</a></td>");
}
document.write("</tr>");
document.write("</table>");
if((ActivePItem != -1) && (Content[ActivePItem].length != 2))
{
	document.write("<table bgcolor=\"#B9B9FF\" bordercolor=\"#9A99FF\" cellpadding=\"3\" cellspacing=\"0\" border=\"1\" width=\"100%\">");
	document.write("<tr>");
	Index = 0;
	for(i = 2; i < Content[ActivePItem].length; i++)
	{
		if(Index == CountPerLine) document.write("</tr></table>");
		if(Index == CountPerLine) document.write("<table bgcolor=\"#B9B9FF\" bordercolor=\"#9A99FF\" cellpadding=\"3\" cellspacing=\"0\" border=\"1\" width=\"100%\"><tr>");
		if(SecondaryLink.toLowerCase() == Content[ActivePItem][i][1].toLowerCase()) document.write("<td bordercolor=\"#ccccff\" bgcolor=\"#FF51A8\" align=\"center\"><a href=\"" + Catalog + Content[ActivePItem][i][1] + "\" class=\"dactive\">" + Content[ActivePItem][i][0] + "</a></td>");
		else document.write("<td bordercolor=\"#ccccff\" align=\"center\"><a href=\"" + Catalog + Content[ActivePItem][i][1] + "\" class=\"second\">" + Content[ActivePItem][i][0] + "</a></td>");
		if(Index == CountPerLine) Index = -1;
		Index++;
	}
	document.write("<td class=second bordercolor=#ccccff align=center><a href=mailto:joneslawrence@allwedsites.com>E-Mail</a></td>");
	document.write("</tr>");
	document.write("</table>");
}