
document.write("<div id='header'>");

$url = location.href;


//----if we're on a turn page, the draw the top nav, then a secondary nav 

if (( $url.match('foods') || $url.match('buy') || $url.match('coupons') || $url.match('survey') || $url.match('nutrition')  || $url.match('about') || $url.match('press') || $url.match('wholebaby') || $url.match('contact') ) && !$url.match('pagenotfound')) {
	
	document.write( "<div id=\"nav_single\">" );
	document.write( "<a href=\"../index.html\">HOME</a>" );
		
	//----TOP NAV-------------------------------------------- 
	
	//----if we're on a foods page, make food selected 

	if (( $url.match('foods'))&&(!$url.match('pagenotfound')))
	{
		document.write( " <a href=\"nut_info.html\" class=\"here\">OUR FOODS</a> " );
	}
	else 
	{
		document.write( " <a href=\"../foods/nut_info.html\">OUR FOODS</a> " );
	}
	
	//----if we're on a buy page, make buy selected 

	if (( $url.match('buy'))&&(!$url.match('pagenotfound')))
	{
		document.write( " <a href=\"index.html\" class=\"here\">BUY BELLYBAR</a> " );
	}
	else 
	{
		document.write( " <a href=\"../buy/index.html\">BUY BELLYBAR</a> " );
	}
	
	//----if we're on a nutrition page, make nutrition selected 

	if (( $url.match('nutrition'))&&(!$url.match('pagenotfound')))
	{
		document.write( " <a href=\"index.html\" class=\"here\">YOUR NUTRITION</a> " );
	}
	else 
	{
		document.write( " <a href=\"../nutrition/index.html\">YOUR NUTRITION</a> " );
	}
	
	//----if we're on a about us page, make about us selected 

	if (( $url.match('about'))&&(!$url.match('pagenotfound')))
	{
		document.write( " <a href=\"index.html\" class=\"here\">OUR COMPANY</a> " );
	}
	else 
	{
		document.write( " <a href=\"../about/index.html\">OUR COMPANY</a> " );
	}

//----if we're on a press page, make press selected 	

	if (( $url.match('press'))&&(!$url.match('pagenotfound')))
	{
		document.write( " <a href=\"http://shopping.netsuite.com/s.nl?c=474475&sc=3&ext=T\" target=\"_blank\" ><img src=\"../images/cart_art_4_03.gif\" alt=\"shopping cart\" class=\"here_bump_right\" align=\"absmiddle\" border=\"0\"></a> <a href=\"index.html\" class=\"here\">PRESS</a> " );
	}
	else 
	{
		document.write( " <a href=\"http://shopping.netsuite.com/s.nl?c=474475&sc=3&ext=T\" target=\"_blank\" ><img src=\"../images/cart_art_4_03.gif\" alt=\"shopping cart\" class=\"bump_right\" align=\"absmiddle\" border=\"0\"></a> <a href=\"../press/index.html\">PRESS</a> " );
	}
		
	//----if we're on a contact us page, make contact selected 	

	if (( $url.match('contact'))&&(!$url.match('pagenotfound')))
	{
		document.write( " <a href=\"index.html\" class=\"here\">CONTACT US</a>" );
	}
	else 
	{
		document.write( " <a href=\"../contact/index.html\">CONTACT US</a>" );
	}
	document.write( "</div>" );
}
//----if we're on the home page, draw top nav only with home selected 

else 
{
	if (( $url.match('thankyou'))&&(!$url.match('pagenotfound')))
{
	document.write( "<div id=\"nav_single_home\">" );
	document.write("<a href=\"index.html\" class=\"here\">HOME</a>  <a href=\"foods/nut_info.html\">OUR FOODS</a>  <a href=\"buy/index.html\">BUY BELLYBAR</a>  <a href=\"nutrition/index.html\">YOUR NUTRITION</a> <a href=\"about/index.html\">OUR COMPANY</a> <a href=\"http://shopping.netsuite.com/s.nl?c=474475&sc=3&ext=T\" target=\"_blank\" ><img src=\"../images/cart_art_4_03.gif\" alt=\"shopping cart\" class=\"bump_right\" align=\"absmiddle\"></a> <a href=\"press/index.html\">PRESS</a> <a href=\"contact/index.html\">CONTACT US</a>");
	document.write( "</div>" );
}
else {
	document.write( "<div id=\"nav_single_home\">" );
	document.write("<a href=\"index.html\" class=\"here\">HOME</a>  <a href=\"foods/nut_info.html\">OUR FOODS</a>  <a href=\"buy/index.html\">BUY BELLYBAR</a>  <a href=\"nutrition/index.html\">YOUR NUTRITION</a> <a href=\"about/index.html\">OUR COMPANY</a> <a href=\"http://shopping.netsuite.com/s.nl?c=474475&sc=3&ext=T\" target=\"_blank\" ><img src=\"../images/cart_art_4_03.gif\" alt=\"shopping cart\" class=\"bump_right\" align=\"absmiddle\"></a> <a href=\"press/index.html\">PRESS</a> <a href=\"contact/index.html\">CONTACT US</a>");
	document.write( "</div>" );
	document.write( "<div id=\"nav_shadow\"></div>");
}
}



//----TURN PAGE NAVS ------------------------------------------- 
	
//----if we're on a foods page, include the header banner

if (( $url.match('foods'))&&(!$url.match('pagenotfound')))
	{


document.write( "<div id=\"nav_shadow_food\"></div>");
		
	if ( $url.match('philosophy') )
	{

document.write("<img src=\"../images/header_product_phil_03.gif\"  border=\"0\" usemap=\"#Map\">");
	}
		
	else if ( $url.match('research') )
	{
document.write("<img src=\"../images/header_scientific_03.gif\"  border=\"0\" usemap=\"#Map\">");
	}
	 
	else {
		document.write("<img src=\"../images/header_foods_03.gif\"  border=\"0\" usemap=\"#Map\">");
	}
	document.write( "<map name=\"Map\" id=\"Map\"> <area shape=\"rect\" coords=\"566,15,770,87\" href=\"../index.html\" /></map>");
	document.write( "<div id=\"nav2\">" );
	
	//--------draw the foods submenu 

		
	if ( $url.match('index') || $url.match('faq') || $url.match('nut_info') )
	{
		document.write("<a href=\"nut_info.html\" class=\"here\">PRODUCT LINE</a>  " );
	}
	else {
document.write("<a href=\"nut_info.html\">PRODUCT LINE</a>  " );
	}
		
				
	if ( $url.match('philosophy') )
	{
document.write("<a href=\"philosophy.html\" class=\"here\">PRODUCT PHILOSOPHY</a>  " );
	}
	else {
document.write("<a href=\"philosophy.html\" >PRODUCT PHILOSOPHY</a>  " );
	}
		
	if ( $url.match('research') )
	{
		document.write("<a href=\"research.html\" class=\"here\">SCIENTIFIC RESEARCH</a> " );
	}
	else {
		document.write("<a href=\"research.html\" >SCIENTIFIC RESEARCH</a>  " );
	}
		document.write( "</div>" );
	document.write( "<div id=\"nav_shadow_ob_gyn\"><img src=\"../images/ob_gyn_rec_07.gif\" class=\"bump_right_ob\" /></div>" );
}
	
//----if we're on a buy page

//----if we're on a buy page, include the header banner

if (( $url.match('buy'))&&(!$url.match('pagenotfound')))
	{


document.write( "<div id=\"nav_shadow_buy\"></div>");
				
	if ( $url.match('find') )
	{

document.write("<img src=\"../images/header_find_03.gif\"  border=\"0\" usemap=\"#Map\">");
	}
	else {
		document.write("<img src=\"../images/header_buy_belly_03.gif\"  border=\"0\" usemap=\"#Map\">");
	}
	
	document.write( "<map name=\"Map\" id=\"Map\"> <area shape=\"rect\" coords=\"566,15,770,87\" href=\"../index.html\" /></map>");
	document.write( "<div id=\"nav2\">" );
	
	//--------draw the buy submenu 

		
	if ( !$url.match('find') )
	{
		document.write("<a href=\"index.html\" class=\"here\">BELLYBAR PRODUCTS</a>  " );
	}
	else {
document.write("<a href=\"index.html\">BELLYBAR PRODUCTS</a>  " );
	}
		
				
	if ( $url.match('find') )
	{
document.write("<a href=\"findstore.asp\" class=\"here\">FIND A STORE</a>  " );
	}
	else {
document.write("<a href=\"findstore.asp\" >FIND A STORE</a>  " );
	}
		
	document.write( "</div>" );
	document.write( "<div id=\"nav_shadow_ob_gyn\"><img src=\"../images/ob_gyn_rec_07.gif\" class=\"bump_right_ob\" /></div>" );
}

//----if we're on a coupon page, include the header banner

if (( $url.match('coupons'))&&(!$url.match('pagenotfound')))
	{


document.write( "<div id=\"nav_shadow_buy\"></div>");
				
	if ( $url.match('coupon') )
	{

document.write("<img src=\"../images/header_buy_belly_03.gif\"  border=\"0\" usemap=\"#Map\">");
	}
	else {
		document.write("<img src=\"../images/header_buy_belly_03.gif\"  border=\"0\" usemap=\"#Map\">");
	}
	
	document.write( "<map name=\"Map\" id=\"Map\"> <area shape=\"rect\" coords=\"566,15,770,87\" href=\"../index.html\" /></map>");
	document.write( "<div id=\"nav2\">" );
	
	//--------draw the buy submenu 

		
	if ( !$url.match('coupons') )
	{
		document.write("<a href=\"index.asp\" class=\"here\">COUPONS</a>  " );
	}
	else {
document.write("<a href=\"index.asp\">COUPONS</a>  " );
	}
		
	document.write( "</div>" );
	document.write( "<div id=\"nav_shadow_ob_gyn\"><img src=\"../images/ob_gyn_rec_07.gif\" class=\"bump_right_ob\" /></div>" );
}

//----if we're on a survey page, include the header banner

if (( $url.match('survey'))&&(!$url.match('pagenotfound')))
	{


document.write( "<div id=\"nav_shadow_food\"></div>");
				
	if ( $url.match('survey') )
	{

document.write("<img src=\"../images/header_foods_03.gif\"  border=\"0\" usemap=\"#Map\">");
	}
	else {
		document.write("<img src=\"../images/header_foods_03.gif\"  border=\"0\" usemap=\"#Map\">");
	}
	
	document.write( "<map name=\"Map\" id=\"Map\"> <area shape=\"rect\" coords=\"566,15,770,87\" href=\"../index.html\" /></map>");
	document.write( "<div id=\"nav2\">" );
	
	//--------draw the survey submenu 

		
	if ( !$url.match('survey') )
	{
		document.write("<a href=\"index.asp\" class=\"here\">SURVEY</a>  " );
	}
	else {
document.write("<a href=\"index.asp\">SURVEY</a>  " );
	}
		
	document.write( "</div>" );
	document.write( "<div id=\"nav_shadow_ob_gyn\"><img src=\"../images/ob_gyn_rec_07.gif\" class=\"bump_right_ob\" /></div>" );
}
	

//----if we're on a nutrition page

if (( $url.match('nutrition'))&&(!$url.match('pagenotfound')))
	{


document.write( "<div id=\"nav_shadow_nutrition\"></div>");
				
	if ( $url.match('bellybytes') )
	{

document.write("<img src=\"../images/header_bellybytes_03.gif\"  border=\"0\" usemap=\"#Map\">");
	}
	
	else if ( $url.match('art') &&(!$url.match('partners')) )
	{

document.write("<img src=\"../images/header_articles_03.gif\"  border=\"0\" usemap=\"#Map\">");
	}
	else {
		document.write("<img src=\"../images/header_your_nut_03.gif\"  border=\"0\" usemap=\"#Map\">");
	}
	
	document.write( "<map name=\"Map\" id=\"Map\"> <area shape=\"rect\" coords=\"566,15,770,87\" href=\"../index.html\" /></map>");
	document.write( "<div id=\"nav2\">" );
	
//--------draw the nutrition submenu 

		
	
		
				
	if ( $url.match('bellybytes') )
	{
document.write("<a href=\"bellybytes.html\" class=\"here\">BELLYBYTES E-NEWSLETTER</a>  " );
	}
	else {
document.write("<a href=\"bellybytes.html\" >BELLYBYTES E-NEWSLETTER</a>  " );
	}
	
	if ( $url.match('art') &&(!$url.match('partners')) )
	{
document.write("<a href=\"articles.html\" class=\"here\">ARTICLES</a>  " );
	}
	else {
document.write("<a href=\"articles.html\" >ARTICLES</a>  " );
	}
		
	document.write( "</div>" );
	document.write( "<div id=\"nav_shadow_ob_gyn\"><img src=\"../images/ob_gyn_rec_07.gif\" class=\"bump_right_ob\" /></div>" );
}

//----if we're on an about us page


if (( $url.match('about'))&&(!$url.match('pagenotfound')))
	{


document.write( "<div id=\"nav_shadow_about\"></div>");
				
	if ( $url.match('women') )
	{

document.write("<img src=\"../images/header_women_03.gif\"  border=\"0\" usemap=\"#Map\">");
	}
	
	else if ( $url.match('advisors') )
	{

document.write("<img src=\"../images/header_health_adv_03.gif\"  border=\"0\" usemap=\"#Map\">");
	}
	
	else if ( $url.match('partners') )
	{

document.write("<img src=\"../images/header_partners_03.gif\"  border=\"0\" usemap=\"#Map\">");
	}
	else {
		document.write("<img src=\"../images/header_about_03.gif\"  border=\"0\" usemap=\"#Map\">");
	}
	
	document.write( "<map name=\"Map\" id=\"Map\"> <area shape=\"rect\" coords=\"566,15,770,87\" href=\"../index.html\" /></map>");
	document.write( "<div id=\"nav2\">" );
	
//--------draw the about us submenu 

		
				
	if ( $url.match('women') )
	{
document.write("<a href=\"women.html\" class=\"here\">THE WOMEN OF NUTRABELLA</a>  " );
	}
	else {
document.write("<a href=\"women.html\" >THE WOMEN OF NUTRABELLA</a>  " );
	}
	
	if ( $url.match('advisors') )
	{
document.write("<a href=\"advisors.html\" class=\"here\">HEALTH & NUTRITION ADVISORS</a>  " );
	}
	else {
document.write("<a href=\"advisors.html\" >HEALTH & NUTRITION ADVISORS</a>  " );
	}
	
	if ( $url.match('partners') )
	{
document.write("<a href=\"partners.html\" class=\"here\">PARTNERS</a>  " );
	}
	else {
document.write("<a href=\"partners.html\" >PARTNERS</a>  " );
	}
		
	document.write( "</div>" );
	document.write( "<div id=\"nav_shadow_ob_gyn\"><img src=\"../images/ob_gyn_rec_07.gif\" class=\"bump_right_ob\" /></div>" );
}


//----if we're on an press page


if (( $url.match('press'))&&(!$url.match('pagenotfound')))
	{


document.write( "<div id=\"nav_shadow_nutrition\"></div>");
				
	if ( $url.match('news') )
	{

document.write("<img src=\"../images/header_in_the_news_03.gif\"  border=\"0\" usemap=\"#Map\">");
	}
	
	else if ( $url.match('releases') )
	{

document.write("<img src=\"../images/header_press_releases_03.gif\"  border=\"0\" usemap=\"#Map\">");
	}
	else {
			document.write("<img src=\"../images/header_press_03.gif\"  border=\"0\" usemap=\"#Map\">");
	}
	
	
	document.write( "<map name=\"Map\" id=\"Map\"> <area shape=\"rect\" coords=\"566,15,770,87\" href=\"../index.html\" /></map>");
	document.write( "<div id=\"nav2\">" );
	
//--------draw the press submenu 

		
				
	if ( $url.match('news') )
	{
document.write("<a href=\"/press/news.html\" class=\"here\">IN THE NEWS</a>  " );
	}
	else {
document.write("<a href=\"/press/news.html\" >IN THE NEWS</a>  " );
	}
	
	if ( $url.match('releases') )
	{
document.write("<a href=\"/press/releases.html\" class=\"here\">PRESS RELEASES</a>  " );
	}
	else {
document.write("<a href=\"/press/releases.html\" >PRESS RELEASES</a>  " );
	}
	
/*	if ( $url.match('wholebaby') )
	{
document.write("<a href=\"/wholebaby/index.html\" class=\"here\">WHOLE BABY</a>  " );
	}
	else {
document.write("<a href=\"/wholebaby/index.html\" >WHOLE BABY</a>  " );
	}
*/			
	document.write( "</div>" );
	document.write( "<div id=\"nav_shadow_ob_gyn\"><img src=\"../images/ob_gyn_rec_07.gif\" class=\"bump_right_ob\" /></div>" );
}



//----if we're on a contact us page

if (( $url.match('contact'))&&(!$url.match('pagenotfound')))
	{


document.write( "<div id=\"nav_shadow_about\"></div>");
	document.write("<img src=\"../images/header_contact_03.gif\"  border=\"0\" usemap=\"#Map\">");
					
	document.write( "<map name=\"Map\" id=\"Map\"> <area shape=\"rect\" coords=\"566,15,770,87\" href=\"../index.html\" /></map>");
	document.write( "<div id=\"nav2\">" );
	
//--------draw the non-existant contact us submenu 			
	document.write("<a href=\"index.html\" class=\"here\">&nbsp;</a>  " );
			
	document.write( "</div>" );
	document.write( "<div id=\"nav_shadow_ob_gyn\"><img src=\"../images/ob_gyn_rec_07.gif\" class=\"bump_right_ob\" /></div>" );
}

//----if we're on the top level thank you page

//----if we're on a thank you page, include the header banner that looks like the buy banner

if (( $url.match('thankyou'))&&(!$url.match('pagenotfound')))
	{


document.write( "<div id=\"nav_shadow_thank\"></div>");
		if ( $url.match('thankyou') )
	{
document.write("<img src=\"images/header_buy_belly_03.gif\"  border=\"0\" usemap=\"#Map\">");
	}
				
		
	document.write( "<map name=\"Map\" id=\"Map\"> <area shape=\"rect\" coords=\"566,15,770,87\" href=\"index.html\" /></map>");
	document.write( "<div id=\"nav2\">" );
	
//--------draw the buy submenu 

		
	if ( $url.match('yorx') )
	{
		document.write("<a href=\"buy/index.html\" class=\"here\">BELLYBAR PRODUCTS</a>  " );
	}
	else {
document.write("<a href=\"buy/index.html\">BELLYBAR PRODUCTS</a>  " );
	}
		
				
	if ( $url.match('yorx') )
	{
document.write("<a href=\"buy/findstore.asp\" class=\"here\">FIND A STORE</a>  " );
	}
	else {
document.write("<a href=\"buy/findstore.asp\" >FIND A STORE</a>  " );
	}
		
	document.write( "</div>" );
	document.write( "<div id=\"nav_shadow_ob_gyn\"><img src=\"../images/ob_gyn_rec_07.gif\" class=\"bump_right_ob\" /></div>" );
}

document.write( "</div>" );
