function swapImage(name, newImage)
{
	document.getElementById(name).src = newImage
}

function drawNavBar(id)
{
	document.write("<div class=\"navbar\"><table class=\"navbar\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr>")
	if (id != "home")
	{
		document.write("<td><a href=\"http://www.mwpolar.com/index2.html\"><img alt=\"Home\" id=\"home\" class=\"navbar\" src=\"http://www.mwpolar.com/images/home.gif\" onmouseout=\"swapImage('home', 'http://www.mwpolar.com/images/home.gif')\" onmouseover=\"swapImage('home', 'http://www.mwpolar.com/images/home_push.gif')\" border=\"0\"></a></td>")	
	}
	if (id != "products")
	{
		document.write("<td><a href=\"http://www.mwpolar.com/productMain1.html\"><img alt=\"Products\" id=\"products\" class=\"navbar\" src=\"http://www.mwpolar.com/images/products.gif\" onmouseout=\"swapImage('products', 'http://www.mwpolar.com/images/products.gif')\" onmouseover=\"swapImage('products', 'http://www.mwpolar.com/images/products_push.gif')\" border=\"0\"></a></td>")
	}
	if (id !="recipes")
	{
		document.write("<td><a href=\"http://www.mwpolar.com/recipes.php\"><img alt=\"Recipes\" id=\"recipes\" height=\"16px\" src=\"http://www.mwpolar.com/images/recipes.gif\" onmouseout=\"swapImage('recipes', 'http://www.mwpolar.com/images/recipes.gif')\" onmouseover=\"swapImage('recipes', 'http://www.mwpolar.com/images/recipes_push.gif')\" border=\"0\"></a></td>")
	}
	if (id != "coupons")
	{
		document.write("<td><a href=\"http://www.mwpolar.com/coupons.htm\"><img alt=\"Coupons\" id=\"coupons\" height=\"16px\" src=\"http://www.mwpolar.com/images/coupons.gif\" onmouseout=\"swapImage('coupons', 'http://www.mwpolar.com/images/coupons.gif')\" onmouseover=\"swapImage('coupons', 'http://www.mwpolar.com/images/coupons_push.gif')\" border=\"0\"></a></td>")
	}
	if (id !="contact")
	{
		document.write("<td><a href=\"http://www.mwpolar.com/contact.html\"><img alt=\"Contact\" id=\"contact\" height=\"16px\" src=\"http://www.mwpolar.com/images/contact_us.gif\" onmouseout=\"swapImage('contact', 'http://www.mwpolar.com/images/contact_us.gif')\" onmouseover=\"swapImage('contact', 'http://www.mwpolar.com/images/contact_us_push.gif')\" border=\"0\"></a></td>")
	}
	if (id != "distribution")
	{
		document.write("<td><a href=\"http://www.mwpolar.com/stores.php\"><img alt=\"store locator link\" id=\"distribution\" height=\"16px\" src=\"http://www.mwpolar.com/images/distribution.gif\" onmouseout=\"swapImage('distribution', 'http://www.mwpolar.com/images/distribution.gif')\" onmouseover=\"swapImage('distribution', 'http://www.mwpolar.com/images/distribution_push.gif')\"  border=\"0\"></a></td>")
	}
	if (id != "company")
	{
		document.write("<td><a href=\"http://www.mwpolar.com/company.html\"><img alt=\"Company Info\" id=\"company\" height=\"16px\" src=\"http://www.mwpolar.com/images/company.gif\" onmouseout=\"swapImage('company', 'http://www.mwpolar.com/images/company.gif')\" onmouseover=\"swapImage('company', 'http://www.mwpolar.com/images/company_push.gif')\" border=\"0\"></a></td>")
	}
	if (id != "career")
	{
		document.write("<td><a href=\"http://www.mwpolar.com/career.htm\"><img alt=\"Careers\" id=\"career\" height=\"16px\" src=\"http://www.mwpolar.com/images/careers.png\" onmouseout=\"swapImage('career', 'http://www.mwpolar.com/images/careers.png')\" onmouseover=\"swapImage('career', 'http://www.mwpolar.com/images/careers_push.png')\" border=\"0\"></a></td>")
	}
	document.write("<td><a href=\"http://www.amazon.com/gp/search/ref=sr_pg_3/104-8215750-1480738?%5Fencoding=UTF8&keywords=%22mw%20polar%20foods%22&rh=i%3Aaps%2Ck%3A%22mw%20polar%20foods%22&page=1\"><img alt=\"Order from Amazon.com\" id=\"amazon\" height=\"16px\" src=\"http://www.mwpolar.com/images/order_from_amazon.gif\" onmouseout=\"swapImage('amazon', 'http://www.mwpolar.com/images/order_from_amazon.gif')\" onmouseover=\"swapImage('amazon', 'http://www.mwpolar.com/images/order_from_amazon_push.gif')\" border=\"0\"></a></td></tr></table></div>")
}

function cssValidator()
{
	document.write("<a href=\"http://jigsaw.w3.org/css-validator/validator?uri=")
	document.write(window.location)
	document.write("\"><img style=\"border:0;width:88px;height:31px\" src=\"http://www.mwpolar.com/images/vcss.png\" alt=\"Valid CSS!\"/></a>")
}

