//<!--
/**
* Menu Script
*
*/
var	oMenu				= new Array(["Welcome", "index.html"],
									["Services", "services.html"],
									["What's On", "whatsOn.html"],
									["Mission", "mission.html"],
									["Pilots", "pilots.html"],
									["Sunday Club", "sundayClub.html"],
									["SWYPE", "swype.html"],
									["Finding Us", "findingUs.html"],
									["URC Salvation Army","newHallProject.html"],
									["Funday June 2007", "funday2007.html"],
									["Links", "links.html"]);
	iMax				= oMenu.length;
	oClassName			= null;
	sURL				= " "+document.location;
	iMenu				= sURL.lastIndexOf("/")+1;
	sPage				= sURL.substring(iMenu,(sURL.length));

/*	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%\">");
	
		for (iMenu=0; iMenu < iMax; iMenu++)
		{
			document.write("<TR class=\"");
		
			if (sPage != oMenu[iMenu][1])
				document.write("menuCell\"");
			else
				document.write("menuCellSelected\"");
			
			document.write(" onclick=\"window.location='"+oMenu[iMenu][1]+"'\" onMouseOver=\"highlightOn(this)\" onMouseOut=\"highlightOff(this)\"><TD nowrap>"+oMenu[iMenu][0]+"</TD></TR>");
		}
		document.write("<\/TABLE>");
	}
//-->
