var navContent = "";

////////////////////////////////////////////////////////////

<!-- Main Navigation Button - home -->
if(activeButtons[0]!="home")
	navContent += "<h1><a href=\"index.php\">&nbsp;&nbsp;&nbsp; home &nbsp;&nbsp;&nbsp;</a></h1>";
else
	navContent += "<h1 id=\"current\"><a href=\"index.php\">&nbsp;&nbsp;&nbsp; home &nbsp;&nbsp;&nbsp;</a></h1>";

////////////////////////////////////////////////////////////

<!-- Main Navigation Button - products -->
if(activeButtons[0]!="products")
	navContent += "<h1><a href=\"products_spices.php\">&nbsp;&nbsp;&nbsp; products &nbsp;&nbsp;&nbsp;</a></h1>";
else
	navContent += "<h1 id=\"current\"><a href=\"products_spices.php\">&nbsp;&nbsp;&nbsp; products &nbsp;&nbsp;&nbsp;</a></h1>";

<!-- Sub Navigation Buttons - products -->
if(activeButtons[0]=="products")
{

	navContent += "<ul>";
	
	<!-- Culinary Spices -->
	if(activeButtons[1]!="products_spices")
		navContent += "<li><a href=\"products_spices.php\">Culinary Spices</a></li>";
	else
		navContent += "<li id=\"current2\"><a href=\"products_spices.php\">Culinary Spices</a></li>";
	
	<!-- Biodynamic Teas -->
	if(activeButtons[1]!="products_teas")
		navContent += "<li><a href=\"products_teas.php\">Biodynamic Teas</a></li>";
	else
		navContent += "<li id=\"current2\"><a href=\"products_teas.php\">Biodynamic Teas</a></li>";
	
	<!-- Biodynamic Coffees -->
	if(activeButtons[1]!="products_coffees")
		navContent += "<li><a href=\"products_coffees.php\">Biodynamic Coffees</a></li>";
	else
		navContent += "<li id=\"current2\"><a href=\"products_coffees.php\">Biodynamic Coffees</a></li>";

	navContent += "</ul>";

}

////////////////////////////////////////////////////////////

<!-- Main Navigation Button - company -->
if(activeButtons[0]!="company")
	navContent += "<h1><a href=\"company_divisions.php\">&nbsp;&nbsp;&nbsp; company &nbsp;&nbsp;&nbsp;</a></h1>";
else
	navContent += "<h1 id=\"current\"><a href=\"company_divisions.php\">&nbsp;&nbsp;&nbsp; company &nbsp;&nbsp;&nbsp;</a></h1>";

<!-- Sub Navigation Buttons - company -->
if(activeButtons[0]=="company")
{

	navContent += "<ul>";
	
	<!-- Company Divisions -->
	if(activeButtons[1]!="company_divisions")
		navContent += "<li><a href=\"company_divisions.php\">Company Divisions</a></li>";
	else
		navContent += "<li id=\"current2\"><a href=\"company_divisions.php\">Company Divisions</a></li>";
	
	<!-- Board of Directors -->
	if(activeButtons[1]!="company_directors")
		navContent += "<li><a href=\"company_directors.php\">Board of Directors</a></li>";
	else
		navContent += "<li id=\"current2\"><a href=\"company_directors.php\">Board of Directors</a></li>";
		
	<!-- Advisory Board -->
	if(activeButtons[1]!="company_advisors")
		navContent += "<li><a href=\"company_advisors.php\">Advisory Board</a></li>";
	else
		navContent += "<li id=\"current2\"><a href=\"company_advisors.php\">Advisory Board</a></li>";
	
	<!-- Ambassador CMB -->
	if(activeButtons[1]!="company_ambassador")
		navContent += "<li><a href=\"company_ambassador.php\">Ambassador <br />Carol Moseley Braun</a></li>";
	else
		navContent += "<li id=\"current2\"><a href=\"company_ambassador.php\">Ambassador <br />Carol Moseley Braun</a></li>";

	navContent += "</ul>";

}

////////////////////////////////////////////////////////////

<!-- Main Navigation Button - mission -->
if(activeButtons[0]!="mission")
	navContent += "<h1><a href=\"mission.php\">&nbsp;&nbsp;&nbsp; mission &nbsp;&nbsp;&nbsp;</a></h1>";
else
	navContent += "<h1 id=\"current\"><a href=\"mission.php\">&nbsp;&nbsp;&nbsp; mission &nbsp;&nbsp;&nbsp;</a></h1>";

////////////////////////////////////////////////////////////

<!-- Main Navigation Button - news -->
if(activeButtons[0]!="news")
	navContent += "<h1><a href=\"news_pressreleases.php\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; news &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></h1>";
else
	navContent += "<h1 id=\"current\"><a href=\"news_pressreleases.php\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; news &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></h1>";

<!-- Sub Navigation Buttons - news -->
if(activeButtons[0]=="news")
{

	navContent += "<ul>";
	
			<!-- Press Releases -->
	if(activeButtons[1]!="news_pressreleases")
		navContent += "<li><a href=\"news_pressreleases.php\">Latest News</a></li>";
	else
		navContent += "<li id=\"current2\"><a href=\"news_pressreleases.php\">Latest News</a></li>";
		
				
		<!-- In the News -->
	if(activeButtons[1]!="news_inthenews")
		navContent += "<li><a href=\"news_inthenews.php\">In the News</a></li>";
	else
		navContent += "<li id=\"current2\"><a href=\"news_inthenews.php\">In the News</a></li>";
	
			
	<!-- Press Kit -->
	if(activeButtons[1]!="news_highlights")
		navContent += "<li><a href=\"news_highlights.php\">Press Kit</a></li>";
	else
		navContent += "<li id=\"current2\"><a href=\"news_highlights.php\">Press Kit</a></li>";

	navContent += "</ul>";

}

////////////////////////////////////////////////////////////

<!-- Main Navigation Button - faqs -->
if(activeButtons[0]!="faqs")
	navContent += "<h1><a href=\"faqs_overview.php\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; faqs &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></h1>";
else
	navContent += "<h1 id=\"current\"><a href=\"faqs_overview.php\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; faqs &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></h1>";

<!-- Sub Navigation Buttons - faqs -->
if(activeButtons[0]=="faqs")
{

	navContent += "<ul>";
	
	<!-- FAQs Overview -->
	if(activeButtons[1]!="faqs_overview")
		navContent += "<li><a href=\"faqs_overview.php\">FAQs Overview</a></li>";
	else
		navContent += "<li id=\"current2\"><a href=\"faqs_overview.php\">FAQs Overview</a></li>";
		
	<!-- Company FAQs -->
	if(activeButtons[1]!="faqs_company")
		navContent += "<li><a href=\"faqs_company.php\">Company FAQs</a></li>";
	else
		navContent += "<li id=\"current2\"><a href=\"faqs_company.php\">Company FAQs</a></li>";
		
	<!-- Biodynamic FAQs -->
	if(activeButtons[1]!="faqs_biodynamic")
		navContent += "<li><a href=\"faqs_biodynamic.php\">Biodynamic FAQs</a></li>";
	else
		navContent += "<li id=\"current2\"><a href=\"faqs_biodynamic.php\">Biodynamic FAQs</a></li>";
		
	<!-- Organic FAQs -->
	if(activeButtons[1]!="faqs_organic")
		navContent += "<li><a href=\"faqs_organic.php\">Organic FAQs</a></li>";
	else
		navContent += "<li id=\"current2\"><a href=\"faqs_organic.php\">Organic FAQs</a></li>";

	navContent += "</ul>";

}

////////////////////////////////////////////////////////////

<!-- Main Navigation Button - contact -->
if(activeButtons[0]!="contact")
	navContent += "<h1><a href=\"contact.php\">&nbsp;&nbsp;&nbsp; contact &nbsp;&nbsp;&nbsp;</a></h1>";
else
	navContent += "<h1 id=\"current\"><a href=\"contact.php\">&nbsp;&nbsp;&nbsp; contact &nbsp;&nbsp;&nbsp;</a></h1>";

////////////////////////////////////////////////////////////

<!-- Main Navigation Button - BUY -->
if(activeButtons[0]!="BUY")
	navContent += "<h1><a href=\"store.php\">&nbsp;&nbsp;&nbsp; BUY &nbsp;&nbsp;&nbsp;</a></h1>";
else
	navContent += "<h1 id=\"current\"><a href=\"store.php\">&nbsp;&nbsp;&nbsp; BUY &nbsp;&nbsp;&nbsp;</a></h1>";

////////////////////////////////////////////////////////////

document.write(navContent);