var menuitems = new Array();
c=-1;
//--------------- Set alignmnt variable with desired justification: left,center,right:
var alignmnt="center";
//var alignmnt="left";
//--------------- Add new menu items here, in desired order of appearance. Format:
//c++;menuitems[c]=new Array("<FILENAME + ANCHOR IF ANY>","<MENU NAME>");
c++; menuitems[c]=new Array("index.htm",	"Home");
c++; menuitems[c]=new Array("about.htm",	"About Us");
c++; menuitems[c]=new Array("contact.htm",	"Contact Us");
c++; menuitems[c]=new Array("volunteer.htm",	"Volunteer");
c++; menuitems[c]=new Array("contribute.htm",	"Contribute");
c++; menuitems[c]=new Array("store.htm",	"Montrose Country Store");
c++; menuitems[c]=new Array("theatre.htm",	"Montrose Theatre");
c++; menuitems[c]=new Array("fund.htm",	"Fundraising");
c++; menuitems[c]=new Array("tours.htm",	"Walking Tours");
c++; menuitems[c]=new Array("facade.htm",	"Revitalization and Facades");
c++; menuitems[c]=new Array("success.htm",	"Success Stories");
c++; menuitems[c]=new Array("events.htm",	"Events");
c++; menuitems[c]=new Array("links.htm",	"Links");
c++; menuitems[c]=new Array("privacy.htm",	"Privacy Policy");
c++; menuitems[c]=new Array("earthday/index.html",	"Earthday");
// ------------------------------ End of Menu items --------------------------------
var path = window.location.pathname;
var hash = window.location.hash;
//Parse path using both local and remote path delimiters
var patharray = path.split(/[\\,\/]/);
//Include named anchor as part of file name so that links to anchors will be properly highlighted.
var thisfile = patharray[patharray.length-1] + hash;
thisfile = thisfile.toLowerCase();
var menuline;
for (var i = 0; i < menuitems.length; i++)
	{
	menuline = '<tr><td align="' + alignmnt + '"><a href="';
	if (menuitems[i][0] == thisfile)
		menuline += menuitems[i][0] + '" class="thismenu">';
	else
		menuline += menuitems[i][0] + '" class="menu">';
	menuline += menuitems[i][1] + '</a></td></tr>';
	document.writeln(menuline);
	}
