//<!--
/**
* Menu Script
*
*/
var	oMenu				= new Array(["Home", "index"],
									["Concerts", "concertsCurrentSeason"],
									["Tickets", "tickets"],
									["Mailing List", "mailingList"],
									["Join Us", "joinUs"],
									["Patrons","patrons"],
									["Members", "members"],
							/*		["Music Hire", "musicHire"],        Removed until the page has been completed. Uncomment to restore.    */
									["Music Team", "musicTeam"],
									["Hire a Choir", "choirHire"],
									["Carol Competition", "carolCompetition"],
									["Contacts", "contacts"],
									["Links", "links"]);
	iMax				= oMenu.length;
	oClassName			= null;
	sURL				= " "+document.location;
	iMenu				= sURL.lastIndexOf("/")+1;
	sPage				= sURL.substring(iMenu,(sURL.length-5));

/*	document.write("Last modified ",document.lastModified);
	document.write("<BR>Location ",document.location);
	document.write("<BR>Page ",sPage);
	document.write("<BR>Referrer ",document.referrer);
	document.write("<BR>Domain ",document.domain);
*/	

function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

	function	highlightOn(oCell)
	{
		oClassName		= oCell.className;
		oCell.className	= oClassName + 'HIGH';
	}

	function	highlightOff(oCell)
	{
		oCell.className	= oClassName;
	}

	function getMenu()
	{
		document.write("<TABLE class=\"tableMenu\" width=\"100%\"><TR>");
	
		for (iMenu=0; iMenu < iMax; iMenu++)
		{
			document.write("<TD class=\"");
		
			if (oMenu[iMenu][1] != sPage.substring(0,oMenu[iMenu][1].length))
				document.write("menuCell\"");
			else
				document.write("menuCellSelected\"");
			
			document.write(" onclick=\"window.location='"+oMenu[iMenu][1]+".html'\" onMouseOver=\"highlightOn(this)\" onMouseOut=\"highlightOff(this)\" nowrap>"+oMenu[iMenu][0]+"</TD>");
		}
		document.write("</TR></TABLE>");
	}

//-->
