var selectsRun=false;

var B = "0";


function showMenu( sCatID, sBackground, sHighLight, sContent, aEntries ) {
	var nLoop, sLinkCatID, sLinkZoneID, sLinkWindow, sLinkDescription;

	document.write("<div style=\"visibility:hidden; position:absolute; top: 35px; margin-left:0px; border:1px black solid;\" id=cat" + sCatID + ">");
	document.write("<table border=0px bgcolor=\"" + sBackground + "\" WIDTH=110px>");

	for (nLoop = 0; nLoop < aEntries.length; nLoop++) {
		var aComponents=aEntries[nLoop].split("~");
		sLinkCatID = aComponents[0];
		sLinkZoneID = aComponents[1];
		sLinkWindow = aComponents[2];
		sLinkDescription = aComponents[3];

		document.write("<TR>");
		document.write("<TD CLASS=\"submenu\" ONCLICK=\"Off(this," + sCatID+ ");"+sLinkWindow+"('" + sLinkCatID + "','" + sLinkZoneID + "');\" ONMOUSEOVER=\"B='1'; On(this," + sCatID+ ");this.style.backgroundColor='" + sHighLight + "';this.style.cursor='pointer';this.style.textDecorationUnderline=false;\" ONMOUSEOUT=\"B='0';this.style.backgroundColor='';this.style.textDecorationUnderline=false;\">");
		document.write("<NOBR><IMG SRC=\"" + sContent + "/Spacer.gif\" HEIGHT=0 WIDTH=0 BORDER=0 HSPACE=0 VSPACE=0>");
		document.write(sLinkDescription);
		document.write("<IMG SRC=\"" + sContent + "/Spacer.gif\" HEIGHT=0 WIDTH=0 BORDER=0 HSPACE=0 VSPACE=0></NOBR>");
		document.write("</TD>");
		document.write("</TR>");
	}

	document.write("</table>");
	document.write("</div>");
}





function menu1() {
showMenu('8001','#B71414','#676767','',new Array('aims.htm~~gotoPage~Aims & Values','history.htm~~gotoPage~History','lw-school.htm~~gotoPage~Lower School','mid-school.htm~~gotoPage~Middle School','upp-school.htm~~gotoPage~Upper School','pastoral-care.htm~~gotoPage~Pastoral Care','award-scheme.htm~~gotoPage~Hall Grove Award Scheme','house-system.htm~~gotoPage~The House System','boarding.htm~~gotoPage~Boarding','school-council.htm~~gotoPage~School Council','catering.htm~~gotoPage~Catering','staff-list.htm~~gotoPage~Staff List'));
}

function menu2() {
showMenu('8002','#B71414','#676767','',new Array('school-trips.htm~~gotoPage~School Trips','charity.htm~~gotoPage~Charity Events'));
}

function menu3() {
showMenu('8003','#B71414','#676767','',new Array('english.htm~~gotoPage~English','science.htm~~gotoPage~Science','maths.htm~~gotoPage~Maths','geography.htm~~gotoPage~Geography','hist.htm~~gotoPage~History','re.htm~~gotoPage~Religious Studies','french.htm~~gotoPage~French','classics.htm~~gotoPage~Classics','ict.htm~~gotoPage~ICT','curriculums.htm~~gotoPage~Curriculum Guides'));
}

function menu4() {
showMenu('8004','#B71414','#676767','',new Array('music.htm~~gotoPage~Music','art.htm~~gotoPage~Art','dance-drama.htm~~gotoPage~Dance/Drama','design.htm~~gotoPage~Design Technology', 'ceramics.htm~~gotoPage~Ceramics','foodtech.htm~~gotoPage~Food Technology' ));
}

function menu5() {
showMenu('8005','#B71414','#676767','',new Array('rugby.htm~~gotoPage~Rugby','hockey.htm~~gotoPage~Hockey','football.htm~~gotoPage~Football','cricket.htm~~gotoPage~Cricket','netball.htm~~gotoPage~Netball','rounders.htm~~gotoPage~Rounders','results.htm~~gotoPage~Results','fixtures.htm~~gotoPage~Fixtures','photos.htm~~gotoPage~Photo Gallery'));
}

function menu6() {
showMenu('8006','#B71414','#676767','',new Array('batt-photos.htm~~gotoPage~Photo Gallery','http://www.helpfulholidays.com/property.asp?ref=L35~~gotoPage~Lettings'));
}

function menu7() {
showMenu('8007','#B71414','#676767','',new Array('termtimes.htm~~gotoPage~Term Times','handbook.htm~~gotoPage~Handbook','clubs.htm~~gotoPage~Clubs','golf-tennis-assoc.htm~~gotoPage~Golf & Tennis Association','tasc.htm~~gotoPage~TASC','http://www.ponygrove.co.uk~~gotoPage~Pony Grove','jubileefund.htm~~gotoPage~Jubilee Fund','grooveatthegrove.htm~~gotoPage~Groove at the Grove', 'Target2008.pdf~~gotoPage~Summer Camp', 'hallgrovians.htm~~gotoPage~Old Hall Grovians', 'prizelist.htm~~gotoPage~Prize List'));
}






agent = navigator.userAgent;
browserVer = 2;
if (agent.substring(0,7) == "Mozilla")
	if ( parseInt(agent.substring(8,9) ) >= 3)
		browserVer = 1;
