// Thrifty-SiteNavigation.js
// This script inserts the Thrifty website's upper section of the navigation bar into pages that have a script with src="Thrifty-SiteNavigationLower.js".
// Written by: Brian Bahn
// Updated: 06/17/2010

var aryNavigationMenuItemPages = new Array
	(
	"Index.html", 
	"ContactUs.html", 
	"FindUs.html", 
	"Links.html", 
	"MailOrder.html", 
	"Materials.html", 
	"Repairs.html", 
//	"WhatsNew.html", 
	"SiteMap.html" 
	);

var aryNavigationMenuItemDescriptions = new Array
	(
	"Home", 
	"Contact Us", 
	"Find Us", 
	"Links", 
	"Mail Order", 
	"Materials", 
	"Repairs", 
//	"What's New", 
	"&ndash; Sitemap &ndash;" 
	);

var aryNavigationMenuItems = new Array();
	aryNavigationMenuItems[0]=aryNavigationMenuItemPages; 
	aryNavigationMenuItems[1]=aryNavigationMenuItemDescriptions; 

function SiteNavigation(CurrentPage)
	{
	for (var idxMenuItem = 0; idxMenuItem < aryNavigationMenuItemDescriptions.length; idxMenuItem++)
		{
		if(aryNavigationMenuItems[0][idxMenuItem] == CurrentPage)
			{
			document.write('<div class="current" style="border: none; padding-left: 7px; background: white; font-weight: bold; text-align: left">');
			document.write(aryNavigationMenuItems[1][idxMenuItem]);
			document.write('</div>');
			// document.write('<a class="current" href="#');
			}
		else
			{
			document.write('<a href="');
			document.write(aryNavigationMenuItems[0][idxMenuItem]);
			document.write('">');
			document.write(aryNavigationMenuItems[1][idxMenuItem]);
			document.write('</a>');			} 
			}
		}


// End of Thrifty-SiteNavigation.js
