
//Contents for menu 1 Home
//var menu2_1=new Array()
//menu2_1[0]='<a href="welcome.html">Welcome</a>'
//menu2_1[1]='<a href="#">Mission Statement</a>'
//menu2_1[2]='<a href="#">Accessibility</a>'
//menu2_1[3]='<a href="#">Site map</a>'
//menu2_1[4]='<a href="#">The Community</a>'

//Contents for menu1  About the College
var menu2_1=new Array()
menu2_1[0]='<a href="aboutcollege/welcome.html">Welcome</a>'
menu2_1[1]='<a href="aboutcollege/mission.html">Mission Statement</a>'
menu2_1[2]='<a href="aboutcollege/history.html">History</a>'
menu2_1[3]='<a href="../management/policies.html">College Equalities</a>'

menu2_1[4]='<a href="management/">Governance</a>'
menu2_1[5]='<a href="aboutcollege/calendar.asp">College Calendar</a>'
//menu2_1[6]='<a href="projects/">Projects</a>'
menu2_1[7]='<a href="aboutcollege/campuses.html">Campuses</a>'
menu2_1[8]='<a href="sustainability/">Sustainability</a>'


//menu2_1[8]='<a href="aboutcollege/vacancies.html">Job Opportunities</a>'
//menu2_1[9]='<a href="aboutcollege/community.html">Community</a>'


//Contents for menu 2 Courses
var menu2_2=new Array()
menu2_2[0]='<a href="programmes/index.asp">All Courses</a>'
menu2_2[1]='<a href="programmes/index.asp?type=1">Full-Time Courses</a>'
menu2_2[2]='<a href="programmes/index.asp?type=2">Part-Time Courses</a>'
menu2_2[4]='<a href="programmes/index.asp?type=4">Flexible Learning</a>'
menu2_2[5]='<a href="programmes/other.html">Other Ways to Learn</a>'
menu2_2[6]='<a href="programmes/cost.html">Funding</a>'
menu2_2[7]='<a href="programmes/joining.html">How to apply</a>'
menu2_2[8]='<a href="programmes/qualifications.html">Qualifications</a>'
menu2_2[9]='<a href="programmes/faqs.html">FAQs</a>'
menu2_2[10]='<a href="prospectus/index.asp">Prospectus 2009/10</a>'

//Contents for menu 4 Services
var menu2_4=new Array()
menu2_4[0]='<a href="services/advice.html">Advice Team</a>'
menu2_4[1]='<a href="services/addsupport.html">Additional Support Needs</a>'
menu2_4[2]='<a href="services/money.html">Money Matters</a>'
menu2_4[3]='<a href="services/pal.html">Positive about Literacies</a>'
menu2_4[4]='<a href="https://www.jwheatley.ac.uk/ILPSearch/SchoolAccess.aspx"  target="_blank" >School Access ILP</a>'



//Contents for menu 5 Facilities
var menu2_5=new Array()
menu2_5[0]='<a href="facilities/access.html">Accesibility & Equalities</a>'
menu2_5[1]='<a href="facilities/creche.html">Childcare Centres</a>'
menu2_5[2]='<a href="facilities/libraries.html">Library & Information Centres</a>'
menu2_5[3]='<a href="facilities/amenities.html">Amenities</a>'
menu2_5[4]='<a href="facilities/learncentres.html">Partner Learning Centres</a>'
menu2_5[5]='<a href="facilities/faith.html">Pastoral Care & Religious <br> &nbsp;Observance</a>'
menu2_5[6]='<a href="facilities/studentsassociation.html">Students&acute; Association </a>'
menu2_5[7]='<a href="facilities/bridge.html">The Bridge</a>'
menu2_5[8]='<a href="documents/facilities/JWCRoomBookingForm.doc" target="_blank"  >Room Booking Form</a>'




//Contents for menu 6 About
//var menu2_6=new Array()
//menu2_6[0]='<a href="#">Welcome</a>'
//menu2_6[1]='<a href="#">Management & Govrenance</a>'
//menu2_6[2]='<a href="#">History</a>'
//menu2_6[3]='<a href="#">Vacancies</a>'


//Contents for menu 7 News
var menu2_7=new Array()
menu2_7[0]='<a href="news/">Latest News</a>'
menu2_7[1]='<a href="news/archive.asp">Archived News</a>'


//Contents for menu 2 Contacts
var menu2_8=new Array()
menu2_8[0]='<a href="contact/index.html">Contact Details</a>'
menu2_8[1]='<a href="contact/maps.html">How to find us</a>'
menu2_8[2]='<a href="contact/contact.asp">Contact Form</a>'
menu2_8[3]='<a href="contact/yourcall.html">Your Call is Important</a>'
menu2_8[4]='<a href="contact/linkPartners.html">Links to Partners</a>'



		
var menuwidth='165px' //default menu width
var menubgcolor='white'  //menu bgcolor
var disappeardelay=50  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


