// JavaScript Document


/*** 
This is the menu creation code - place it right after you body tag
Feel free to add this to a stand-alone js file and link it to your page.
**/

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

oCMenu.frames = 0

//Menu properties   
oCMenu.pxBetween=1
temp1=!bw.ns4?cmpage.x2:cmpage.x2
if (temp1<750)
{
	temp4=210
}
else
{
	temp2=temp1-750
	temp3=temp2/2
	temp4=temp3+210
}

oCMenu.fromLeft=temp4
//oCMenu.onresize="oCMenu.fromLeft=!bw.ns4?if(cmpage.x2<750){160}else{(cmpage.x2-750)/2+155}:cmpage.x2"
//oCMenu.onresize="alert('Please click Refresh (or press F5) if the links on the top of the page look out of place.')"
//alert(oCMenu.fromLeft)

oCMenu.fromTop=10   
oCMenu.rows=1 
oCMenu.menuPlacement="left"
                     
					 
					                                    
oCMenu.offlineRoot="" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=500
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="100%"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX=0 
oCMenu.barY=0
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""

//Level properties - ALL properties have to be spesified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=75
oCMenu.level[0].height=16
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
oCMenu.level[0].align="bottom"

//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=150
oCMenu.level[1].height=16
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=1
oCMenu.level[1].borderY=1
oCMenu.level[1].align="center" 
oCMenu.level[1].offsetX=50
oCMenu.level[1].offsetY=-3
oCMenu.level[1].borderClass="clLevel1border"


//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=150
oCMenu.level[2].height=16
oCMenu.level[2].offsetX=-100
oCMenu.level[2].offsetY=500
oCMenu.level[2].regClass="clLevel2"
oCMenu.level[2].overClass="clLevel2over"
oCMenu.level[2].borderClass="clLevel2border"


/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
//oCMenu.makeMenu('top0','','&nbsp;Home','/index.php')

/*
oCMenu.makeMenu('top1','','&nbsp;QES News','/news/index.php?lnkDate=Now&lnkCategory=All')
	oCMenu.makeMenu('sub10','top1','This week','/news/index.php?lnkDate=Now&lnkCategory=All')
	oCMenu.makeMenu('sub11','top1','All year','/news/index.php?lnkDate=year&lnkCategory=All')
	oCMenu.makeMenu('sub12','top1','Archive since 2005','/news/index.php?lnkDate=archive&lnkCategory=All')
*/
	
//oCMenu.makeMenu('top2','','&nbsp;Term Dates','/diary/index.php')
oCMenu.makeMenu('top2','','&nbsp;Term Dates','/diary/index.php?lnkDisplay=termdates')
	//oCMenu.makeMenu('sub20','top2','Weekly Diary','/diary/index.php?lnkDisplay=week')
	//oCMenu.makeMenu('sub21','top2','Term Dates to 2010','/diary/index.php?lnkDisplay=termdates')
	//oCMenu.makeMenu('sub22','top2','Parents\' Evenings','/diary/index.php?lnkDisplay=parentsevenings')
	//oCMenu.makeMenu('sub23','top2','Sports Fixtures','/diary/index.php?lnkDisplay=sportsfixtures')
	//oCMenu.makeMenu('sub23','top2','All Term Dates 2005-06 (PDF)','/upload/uploads/documents/38.pdf', '_blank')
	//oCMenu.makeMenu('sub24','top2','All Term Dates 2006-07 (PDF)','/upload/uploads/documents/36.pdf', '_blank')
				
oCMenu.makeMenu('top4','','&nbsp;SnapShots','/snapshots/index.php')
	oCMenu.makeMenu('sub415','top4','Awards Ceremonies','/snapshots/index.php?lnkCategoryID=23')
	oCMenu.makeMenu('sub414','top4','Awards Nights','/snapshots/index.php?lnkCategoryID=6')
	//oCMenu.makeMenu('sub417','top4','Careers Trips/Events','/snapshots/index.php?lnkCategoryID=15')

	oCMenu.makeMenu('sub4171','top4','Charity Team')
		oCMenu.makeMenu('sub41711','sub4171','Man O Man','/snapshots/index.php?lnkCategoryID=9')	
		oCMenu.makeMenu('sub41712','sub4171','Stars in Their Eyes','/snapshots/index.php?lnkCategoryID=21')
		oCMenu.makeMenu('sub41713','sub4171','Talent Shows','/snapshots/index.php?lnkCategoryID=8')
	
	//oCMenu.makeMenu('sub418','top4','Community Links','/snapshots/index.php?lnkCategoryID=26')
	oCMenu.makeMenu('sub412','top4','Coniston Trips','/snapshots/index.php?lnkCategoryID=7')
	oCMenu.makeMenu('sub406','top4','DoE','/snapshots/index.php?lnkCategoryID=1')
	oCMenu.makeMenu('sub403','top4','Drama','/snapshots/index.php?lnkCategoryID=12')
	oCMenu.makeMenu('sub419','top4','Final Days Y11','/snapshots/index.php?lnkCategoryID=10')
	oCMenu.makeMenu('sub433','top4','Food Activities','/snapshots/index.php?lnkCategoryID=27')

	oCMenu.makeMenu('sub411','top4','Geography - Field Trips Etc','/snapshots/index.php?lnkCategoryID=14')

	oCMenu.makeMenu('sub460','top4','History Trips & Activities','/snapshots/index.php?lnkCategoryID=40')

	oCMenu.makeMenu('sub490','top4','Modern Languages')
		oCMenu.makeMenu('sub4901','sub490','Modern Languages Events','/snapshots/index.php?lnkCategoryID=37')
		oCMenu.makeMenu('sub4902','sub490','French Trips','/snapshots/index.php?lnkCategoryID=4')	
		oCMenu.makeMenu('sub4903','sub490','Spanish Trips','/snapshots/index.php?lnkCategoryID=43')	
	
	oCMenu.makeMenu('sub404','top4','Music')
		oCMenu.makeMenu('sub4041','sub404','Band Nights','/snapshots/index.php?lnkCategoryID=31')
		oCMenu.makeMenu('sub4042','sub404','Music Festivals','/snapshots/index.php?lnkCategoryID=16')
		oCMenu.makeMenu('sub4043','sub404','Music Concerts','/snapshots/index.php?lnkCategoryID=18')

	oCMenu.makeMenu('sub405','top4','Outdoor Activities','/snapshots/index.php?lnkCategoryID=22')
	oCMenu.makeMenu('sub450','top4','PD Events','/snapshots/index.php?lnkCategoryID=44')	
	oCMenu.makeMenu('sub432','top4','QES Association Events','/snapshots/index.php?lnkCategoryID=13')


	oCMenu.makeMenu('sub480','top4','Sekwe House','/snapshots/index.php?lnkCategoryID=47')
	
	oCMenu.makeMenu('sub4441','top4','Sports')
		oCMenu.makeMenu('sub44411','sub4441','Girls\' Football','/snapshots/index.php?lnkCategoryID=25')
		oCMenu.makeMenu('sub44412','sub4441','Hockey','/snapshots/index.php?lnkCategoryID=41')
		oCMenu.makeMenu('sub44413','sub4441','Netball','/snapshots/index.php?lnkCategoryID=42')
		oCMenu.makeMenu('sub44414','sub4441','Rugby','/snapshots/index.php?lnkCategoryID=38')
		oCMenu.makeMenu('sub44415','sub4441','Sports Days','/snapshots/index.php?lnkCategoryID=2')
		oCMenu.makeMenu('sub44416','sub4441','Sports Day 2007','/snapshots/index.php?lnkCategoryID=36')
		oCMenu.makeMenu('sub44417','sub4441','Sports Events and Fixtures','/snapshots/index.php?lnkCategoryID=32')
		
	oCMenu.makeMenu('sub422','top4','Sixth Form Events','/snapshots/index.php?lnkCategoryID=29')
	oCMenu.makeMenu('sub413','top4','Ski Trips','/snapshots/index.php?lnkCategoryID=3')
	oCMenu.makeMenu('sub402','top4','Sponsored Walks','/snapshots/index.php?lnkCategoryID=5')	


	oCMenu.makeMenu('sub455','top4','Technology Projects','/snapshots/index.php?lnkCategoryID=35')	
	oCMenu.makeMenu('sub431','top4','Trips (General)','/snapshots/index.php?lnkCategoryID=24')
	oCMenu.makeMenu('sub426','top4','Visual Arts','/snapshots/index.php?lnkCategoryID=30')
	oCMenu.makeMenu('sub427','top4','Work Related Learning','/snapshots/index.php?lnkCategoryID=20')
	oCMenu.makeMenu('sub428','top4','World Book Days','/snapshots/index.php?lnkCategoryID=11')
	oCMenu.makeMenu('sub429','top4','Xmas Services','/snapshots/index.php?lnkCategoryID=17')
	oCMenu.makeMenu('sub430','top4','Year 7 Events','/snapshots/index.php?lnkCategoryID=28')


				
oCMenu.makeMenu('top3','','&nbsp;Information')
	//oCMenu.makeMenu('sub31','top3','Letters Sent Home','/communications/documents/index.php')
	//oCMenu.makeMenu('sub32','top3','School Staff','/infobank/staff/index.php?lnkLetter=start')
	//oCMenu.makeMenu('sub33','top3','Subject Details','/infobank/subjects/index.php')
	oCMenu.makeMenu('sub397','top3','Uniform','/infobank/uniform/index.php')
	oCMenu.makeMenu('sub390','top3','Exam Results', '/infobank/examresults/index.php')
	oCMenu.makeMenu('sub391','top3','Ofsted Reports', '/infobank/ofsted/index.php')
	oCMenu.makeMenu('sub392','top3','Policies', '/infobank/policies/index.php')
	oCMenu.makeMenu('sub394','top3','School History', '/infobank/history/index.php')
	//oCMenu.makeMenu('sub395','top3','Paul Percy Memorial Fund', 'http://www.queenelizabeth.cumbria.sch.uk/PPMF/', "_blank")
	//oCMenu.makeMenu('sub395','top3','Governors','/schoolbodies/governors/index.php')
	//oCMenu.makeMenu('sub396','top3','PTA','/schoolbodies/pta/index.php')		

	
		/*
		oCMenu.makeMenu('sub330','sub33','Art','/infobank/subjects/index.php?lnkSubjectName=Art')	
		oCMenu.makeMenu('sub331','sub33','BTEC Music','/infobank/subjects/index.php?lnkSubjectName=BTEC%20Music')
		oCMenu.makeMenu('sub332','sub33','Biology','/infobank/subjects/index.php?lnkSubjectName=Biology')
		oCMenu.makeMenu('sub333','sub33','Business Studies','/infobank/subjects/index.php?lnkSubjectName=Business%20Studies')
		oCMenu.makeMenu('sub334','sub33','CDT','/infobank/subjects/index.php?lnkSubjectName=CDT')
		oCMenu.makeMenu('sub335','sub33','Chemistry','/infobank/subjects/index.php?lnkSubjectName=Chemistry')
		oCMenu.makeMenu('sub336','sub33','Child Development','/infobank/subjects/index.php?lnkSubjectName=Child%20Development')
		oCMenu.makeMenu('sub337','sub33','Computing','/infobank/subjects/index.php?lnkSubjectName=Computing')
		oCMenu.makeMenu('sub338','sub33','Dance','/infobank/subjects/index.php?lnkSubjectName=Dance')
		oCMenu.makeMenu('sub339','sub33','Drama','/infobank/subjects/index.php?lnkSubjectName=Drama')
		oCMenu.makeMenu('sub340','sub33','Economics','/infobank/subjects/index.php?lnkSubjectName=Economics')
		oCMenu.makeMenu('sub341','sub33','English Language','/infobank/subjects/index.php?lnkSubjectName=English%20Language')
		oCMenu.makeMenu('sub342','sub33','English Literature','/infobank/subjects/index.php?lnkSubjectName=English%20Literature')		
		oCMenu.makeMenu('sub343','sub33','Environmental Science','/infobank/subjects/index.php?lnkSubjectName=Env.%20Science')
		oCMenu.makeMenu('sub344','sub33','Food Technology','/infobank/subjects/index.php?lnkSubjectName=Food%20Technology')
		oCMenu.makeMenu('sub345','sub33','French','/infobank/subjects/index.php?lnkSubjectName=French')
		oCMenu.makeMenu('sub346','sub33','General Studies','/infobank/subjects/index.php?lnkSubjectName=General%20Studies')
		oCMenu.makeMenu('sub347','sub33','Graphics','/infobank/subjects/index.php?lnkSubjectName=Graphics')
		oCMenu.makeMenu('sub348','sub33','Geography','/infobank/subjects/index.php?lnkSubjectName=Geography')
		oCMenu.makeMenu('sub349','sub33','Health and Social Care','/infobank/subjects/index.php?lnkSubjectName=Health%20and%20Social%20Care')
		oCMenu.makeMenu('sub350','sub33','History','/infobank/subjects/index.php?lnkSubjectName=History')
		oCMenu.makeMenu('sub351','sub33','ICT','/infobank/subjects/index.php?lnkSubjectName=ICT')
		oCMenu.makeMenu('sub352','sub33','Latin','/infobank/subjects/index.php?lnkSubjectName=Latin')
		oCMenu.makeMenu('sub353','sub33','Leisure and Tourism','/infobank/subjects/index.php?lnkSubjectName=Leisure%20and%20Tourism')
		oCMenu.makeMenu('sub354','sub33','Maths','/infobank/subjects/index.php?lnkSubjectName=Maths')
		oCMenu.makeMenu('sub355','sub33','Media Studies','/infobank/subjects/index.php?lnkSubjectName=Media%20Studies')
		oCMenu.makeMenu('sub356','sub33','Music','/infobank/subjects/index.php?lnkSubjectName=Music')
		oCMenu.makeMenu('sub357','sub33','PE','/infobank/subjects/index.php?lnkSubjectName=PE')
		oCMenu.makeMenu('sub359','sub33','Philosophy','/infobank/subjects/index.php?lnkSubjectName=Philosophy')
		oCMenu.makeMenu('sub361','sub33','Physics','/infobank/subjects/index.php?lnkSubjectName=Physics')
		oCMenu.makeMenu('sub358','sub33','PSHE','/infobank/subjects/index.php?lnkSubjectName=PSHE')
		oCMenu.makeMenu('sub360','sub33','Psychology','/infobank/subjects/index.php?lnkSubjectName=Psychology')
		oCMenu.makeMenu('sub362','sub33','Religious Studies','/infobank/subjects/index.php?lnkSubjectName=Religious%20Studies')
		oCMenu.makeMenu('sub363','sub33','Science','/infobank/subjects/index.php?lnkSubjectName=Science')
		oCMenu.makeMenu('sub364','sub33','Sociology','/infobank/subjects/index.php?lnkSubjectName=Sociology')
		oCMenu.makeMenu('sub365','sub33','Spanish','/infobank/subjects/index.php?lnkSubjectName=Spanish')
		oCMenu.makeMenu('sub366','sub33','Study Skills','/infobank/subjects/index.php?lnkSubjectName=Study Skills')
		oCMenu.makeMenu('sub367','sub33','Textiles','/infobank/subjects/index.php?lnkSubjectName=Textiles')
		oCMenu.makeMenu('sub368','sub33','Travel and Tourism','/infobank/subjects/index.php?lnkSubjectName=Travel%20and%20Tourism')
		//oCMenu.makeMenu('sub349','sub31','PSHE','/infobank/subjects/index.php?lnkSubjectName=PSHE')
		*/
	/*
	oCMenu.makeMenu('sub370','top3','Other Departments')
		oCMenu.makeMenu('sub3701','sub370','Cafe Q','/infobank/nonteachingdepts/cafeq/index.php')
		oCMenu.makeMenu('sub3702','sub370','Careers','/infobank/nonteachingdepts/careers/index.php')
		oCMenu.makeMenu('sub3703','sub370','Learning Support','/infobank/nonteachingdepts/learningsupport/index.php')
		oCMenu.makeMenu('sub3704','sub370','Library','/infobank/nonteachingdepts/library/index.php')
	*/
	/*
	oCMenu.makeMenu('sub380','top3','Year Teams')
		oCMenu.makeMenu('sub3800','sub380','Year 7','/infobank/pastoral/index.php?lnkPastoralTeam=7')
		oCMenu.makeMenu('sub3801','sub380','Year 8','/infobank/pastoral/index.php?lnkPastoralTeam=8')
		oCMenu.makeMenu('sub3802','sub380','Year 9','/infobank/pastoral/index.php?lnkPastoralTeam=9')
		oCMenu.makeMenu('sub3803','sub380','Year 10','/infobank/pastoral/index.php?lnkPastoralTeam=10')
		oCMenu.makeMenu('sub3804','sub380','Year 11','/infobank/pastoral/index.php?lnkPastoralTeam=11')
		oCMenu.makeMenu('sub3805','sub380','Year 12','/infobank/pastoral/index.php?lnkPastoralTeam=12')
		oCMenu.makeMenu('sub3806','sub380','Year 13','/infobank/pastoral/index.php?lnkPastoralTeam=13')
		*/
			
/*
oCMenu.makeMenu('top6','','&nbsp;&nbsp;Communicate','/communications/index.php')
	oCMenu.makeMenu('sub61','top6','Daily Bulletins','/communications/bulletin/dailyBulletin.php')
	oCMenu.makeMenu('sub62','top6','Documents Sent Home','/communications/documents/index.php')
	oCMenu.makeMenu('sub63','top6','Contact Us','/communications/contactus/index.php')
*/

//oCMenu.makeMenu('top7','','&nbsp;ClubsEtc','/clubsetc/index.php')

/*
oCMenu.makeMenu('top8','','&nbsp;Bodies','/schoolbodies/index.php')
	oCMenu.makeMenu('sub81','top8','Governors','/schoolbodies/governors/index.php')
	oCMenu.makeMenu('sub82','top8','PTA','/schoolbodies/pta/index.php')
	oCMenu.makeMenu('sub83','top8','School Councils')
		oCMenu.makeMenu('sub830','sub83','Lower School Council')			
		oCMenu.makeMenu('sub831','sub83','Upper School Council')
		oCMenu.makeMenu('sub832','sub83','Whole School Council')
*/

oCMenu.makeMenu('top9','','&nbsp;&nbsp;QES Tour','/tour/index.php?lnkImagesID=1')

oCMenu.makeMenu('top10','','&nbsp;Admissions')
	oCMenu.makeMenu('sub101','top10','Year 7 Admissions','/admissions/year7/index.php')
	oCMenu.makeMenu('sub102','top10','Sixth Form Places','/admissions09/sixthform/index.php')
	
oCMenu.makeMenu('top11','','&nbsp;Jobs','/jobs/index.php')	

//Leave this line - it constructs the menu
oCMenu.construct()		

