/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

	window.onload = function(){ P7_initPM(1,0,0,0,-1) }


//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="/CentrenbspLocator/StevenageArtsLeisureCentre/GordonCraigTheatre/tabid/182/Default.aspx" title="Gordon Craig Theatre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Gordon Craig Theatre</a>'
menu1[1]='<a href="#" onclick="expandcontent(\'sc1\', event)" style="cursor:hand; cursor:pointer"><img src="'+ window.GlobalPath + 'images/shd/plus.gif" width="5" height="6" alt="+" border="0" /> Education & Courses</a><ul id="sc1" class="switchcontent"><li><a href="/CentrenbspLocator/StevenageArtsLeisureCentre/GordonCraigTheatre/EducationnbspnbspVisualnbspArts/VisualArts/tabid/219/Default.aspx" title="Visual Arts"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Visual Arts</a></li><li><a href="/CentrenbspLocator/StevenageArtsLeisureCentre/GordonCraigTheatre/EducationnbspnbspVisualnbspArts/EducationalPrograms/tabid/218/Default.aspx" title="Education"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Education</a></li><li><a href="/CentrenbspLocator/StevenageArtsLeisureCentre/GordonCraigTheatre/EducationnbspnbspVisualnbspArts/tabid/216/Default.aspx" title="Youth Theatre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Youth Theatre</a></li></ul>'

//Contents for menu 2
var menu2=new Array()
menu2[0]='<a href="#" onclick="expandcontent(\'sc2\', event)" style="cursor:hand; cursor:pointer" title="Conferences &amp; Weddings"><img src="'+ window.GlobalPath + 'images/shd/plus.gif" width="5" height="6" alt="+" border="0" /> Conferences &amp; Weddings</a><ul id="sc2" class="switchcontent"><li><a href="/CentrenbspLocator/StevenageArtsLeisureCentre/CorinthiannbspConferenceCentre/tabid/227/Default.aspx" title="Stevenage Arts &amp; Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Stevenage Arts &amp; Leisure Centre</a></li><li><a href="/CentrenbspLocator/StevenageGolfConferenceCentre/tabid/207/Default.aspx" title="Stevenage Golf &amp; Conference Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Stevenage Golf &amp; Conference Centre</a></li></ul>'
menu2[1]='<a href="#" onclick="expandcontent(\'sc3\', event)" style="cursor:hand; cursor:pointer" title="Dining Out"><img src="'+ window.GlobalPath + 'images/shd/plus.gif" width="5" height="6" alt="+" border="0" /> Dining Out</a><ul id="sc3" class="switchcontent"><li><a href="/CentrenbspLocator/StevenageArtsLeisureCentre/CorinthiannbspConferenceCentre/RestaurantnbspLoungenbspBar/tabid/236/Default.aspx" title="Stevenage Arts &amp; Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Stevenage Arts &amp; Leisure Centre</a></li><li><a href="/CentrenbspLocator/StevenageGolfConferenceCentre/ConferencingCuisine/tabid/300/Default.aspx" title="Stevenage Golf &amp; Conference Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Stevenage Golf &amp; Conference Centre</a></li></ul>'
	
//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="/CentrenbspLocator/StevenageArtsLeisureCentre/FitnessTheLeisureCentre/tabid/185/Default.aspx" title="Fitness @ The Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Fitness @ The Leisure Centre</a>'
menu3[1]='<a href="/CentrenbspLocator/ShephallLeisureCentre/tabid/187/Default.aspx" title="Shephall Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Shephall Leisure Centre</a>'
menu3[2]='<a href="/CentrenbspLocator/StevenageSwimmingCentre/tabid/186/Default.aspx" title="Stevenage Swimming pool"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Stevenage Swimming pool</a>'
menu3[3]='<a href="/CentrenbspLocator/FlitwickLeisureCentre/tabid/388/Default.aspx" title="Flitwick Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Flitwick Leisure Centre</a>'
menu3[4]='<a href="/CentrenbspLocator/SandySportsCentre/Fitness/tabid/554/Default.aspx" title="Sandy Sports Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Sandy Sports Centre</a>'
menu3[5]='<a href="/CentrenbspLocator/SaxonPoolLeisureCentre/tabid/389/Default.aspx" title="Saxon Pool &amp; Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Saxon Pool &amp; Leisure Centre</a>'
menu3[6]='<a href="/CentrenbspLocator/NorthHertsLeisureCentre/tabid/337/Default.aspx" title="North Herts Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> North Herts Leisure Centre</a>'
menu3[7]='<a href="/CentrenbspLocator/KnightsTemplarSportsCentre/tabid/374/Default.aspx" title="Knights Templar Sports Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Knights Templar Sports Centre</a>'

//Contents for menu 4
var menu4=new Array()
menu4[0]='<a href="/CentrenbspLocator/StevenageSwimmingCentre/tabid/186/Default.aspx" title="Stevenage Swimming Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Stevenage Swimming Centre</a>'
menu4[1]='<a href="/CentrenbspLocator/NorthHertsLeisureCentre/tabid/337/Default.aspx" title="North Herts Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> North Herts Leisure Centre</a>'
menu4[2]='<a href="/CentrenbspLocator/LetchworthOutdoorPool/tabid/362/Default.aspx" title="Letchworth Outdoor Pool"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Letchworth Outdoor Pool</a>'
menu4[3]='<a href="/CentrenbspLocator/SaxonPoolLeisureCentre/tabid/389/Default.aspx" title="Saxon &amp; Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Saxon &amp; Leisure Centre</a>'
menu4[4]='<a href="/CentrenbspLocator/FlitwickLeisureCentre/tabid/388/Default.aspx" title="Flitwick Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Flitwick Leisure Centre</a>'

//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="/CentrenbspLocator/StevenageArtsLeisureCentre/SportsLeisure/tabid/184/Default.aspx" title="Sports &amp; Leisure"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Sports &amp; Leisure</a>'
menu5[1]='<a href="/CentrenbspLocator/ShephallLeisureCentre/tabid/187/Default.aspx" title="Shephall Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Shephall Leisure Centre</a>'
menu5[2]='<a href="/CentrenbspLocator/JohnHenryNewmanLeisureCentre/tabid/203/Default.aspx" title="John Henry Newman Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> John Henry Newman Leisure Centre</a>'
menu5[3]='<a href="/CentrenbspLocator/NorthHertsLeisureCentre/tabid/337/Default.aspx" title="North Herts Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> North Herts Leisure Centre</a>'
menu5[4]='<a href="/CentrenbspLocator/FlitwickLeisureCentre/tabid/388/Default.aspx" title="Flitwick Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Flitwick Leisure Centre</a>'
menu5[5]='<a href="/CentrenbspLocator/SaxonPoolLeisureCentre/tabid/389/Default.aspx" title="Saxon Pool &amp; Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Saxon Pool &amp; Leisure Centre</a>'
menu5[6]='<a href="/CentrenbspLocator/KnightsTemplarSportsCentre/tabid/374/Default.aspx" title="Knights Templar Sports Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Knights Templar Sports Centre</a>'
menu5[7]='<a href="/CentrenbspLocator/FearnhillSportsCentre/tabid/368/Default.aspx" title="Fearnhill Sports Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Fearnhill Sports Centre</a>'
menu5[8]='<a href="/CentrenbspLocator/SandySportsCentre/tabid/390/Default.aspx" title="Sandy Sports Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Sandy Sports Centre</a>'
menu5[12]='<a href="/CentrenbspLocator/BiggleswadeRecreationCentre/tabid/729/Default.aspx" title="Biggleswade Recreation Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Biggleswade Recreation Centre</a>'

//Contents for menu 6
var menu6=new Array()
menu6[0]='<a href="/CentrenbspLocator/StevenageGolfConferenceCentre/tabid/207/Default.aspx" title="Stevenage Golf &amp; Conference Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Stevenage Golf &amp; Conference Centre</a>'

//Contents for menu 7
var menu7=new Array()
menu7[0]='<a href="/CentrenbspLocator/FairlandsValleyPark/tabid/314/Default.aspx" title="Fairlands Valley Park"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Fairlands Valley Park</a>'

//Contents for menu 8
var menu8=new Array()
menu8[0]='<a href="#" onclick="expandcontent(\'sc4\', event)" style="cursor:hand; cursor:pointer"><img src="'+ window.GlobalPath + 'images/shd/plus.gif" width="5" height="6" alt="+" border="0" /> Parties</a><ul id="sc4" class="switchcontent"><li><a href="/CentrenbspLocator/StevenageArtsLeisureCentre/SportsLeisure/KidsZone/tabid/244/Default.aspx" title="Stevenage Arts &amp; Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Stevenage Arts &amp; Leisure Centre</a></li><li><a href="/CentrenbspLocator/StevenageSwimmingCentre/KidsZone/PoolParties/tabid/273/Default.aspx" title="Stevenage Swimming Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Stevenage Swimming Centre</a></li><li><a href="/CentrenbspLocator/ShephallLeisureCentre/KidsZone/Parties/tabid/195/Default.aspx" title="Shephall Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Shephall Leisure Centre</a></li><li><a href="/CentrenbspLocator/JohnHenryNewmanLeisureCentre/KidsZone/Parties/tabid/290/Default.aspx" title="John Henry Newman Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> John Henry Newman Leisure Centre</a></li><li><a href="/CentrenbspLocator/StevenageGolfConferenceCentre/KidsZone/ChildrensGolfingParties/tabid/311/Default.aspx" title="Stevenage Golf &amp; Conference Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Stevenage Golf & Conference Centre</a></li><li><a href="/CentrenbspLocator/KnightsTemplarSportsCentre/KidsZone/Parties/tabid/383/Default.aspx" title="Knights Templar Sports Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Knights Templar Sports Centre</a></li><li><a href="/CentrenbspLocator/SaxonPoolLeisureCentre/KidsZone/BirthdayParties/tabid/546/Default.aspx" title="Saxon Pool &amp; Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Saxon Pool &amp; Leisure Centre</a></li><li><a href="/CentrenbspLocator/FlitwickLeisureCentre/KidsZone/tabid/530/Default.aspx" title="Flitwick Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Flitwick Leisure Centre</a></li><li><a href="/CentrenbspLocator/NorthHertsLeisureCentre/KidsZone/PartyOn/tabid/359/Default.aspx" title="North Herts Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> North Herts Leisure Centre</a></li></ul>'

menu8[1]='<a href="#" onclick="expandcontent(\'sc5\', event)" style="cursor:hand; cursor:pointer"><img src="'+ window.GlobalPath + 'images/shd/plus.gif" width="5" height="6" alt="+" border="0" /> Childrens Holiday Activities</a><ul id="sc5" class="switchcontent"><li><a href="/CentrenbspLocator/StevenageArtsLeisureCentre/SportsLeisure/KidsZone/tabid/244/Default.aspx" title="Stevenage Arts &amp; Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Stevenage Arts &amp; Leisure Centre</a></li><li><a href="/CentrenbspLocator/StevenageSwimmingCentre/KidsZone/HolidayFun/tabid/272/Default.aspx" title="Stevenage Swimming Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Stevenage Swimming Centre</a></li><li><a href="/CentrenbspLocator/ShephallLeisureCentre/KidsZone/SchoolHolidayFun/tabid/196/Default.aspx" title="Shephall Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Shephall Leisure Centre</a></li><li><a href="/CentrenbspLocator/JohnHenryNewmanLeisureCentre/KidsZone/SchoolHolidayFun/tabid/291/Default.aspx" title="John Henry Newman Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> John Henry Newman Leisure Centre</a></li><li><a href="/CentrenbspLocator/FearnhillSportsCentre/KidsZone/tabid/372/Default.aspx" title="Fearnhill Sports Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Fearnhill Sports Centre</a></li><li><a href="/CentrenbspLocator/KnightsTemplarSportsCentre/KidsZone/HolidaySportsCamp/tabid/384/Default.aspx" title="Knights Templar Sports Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Knights Templar Sports Centre</a></li><li><a href="/CentrenbspLocator/NorthHertsLeisureCentre/KidsZone/WildCamp/tabid/355/Default.aspx" title="North Herts Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> North Herts Leisure Centre</a></li></ul>'

menu8[2]='<a href="#" onclick="expandcontent(\'sc6\', event)" style="cursor:hand; cursor:pointer"><img src="'+ window.GlobalPath + 'images/shd/plus.gif" width="5" height="6" alt="+" border="0" /> Courses</a><ul id="sc6" class="switchcontent"><li><a href="/CentrenbspLocator/StevenageArtsLeisureCentre/SportsLeisure/KidsZone/tabid/244/Default.aspx" title="Stevenage Arts &amp; Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Stevenage Arts &amp; Leisure Centre</a></li><li><a href="/CentrenbspLocator/StevenageSwimmingCentre/KidsZone/Courses/tabid/274/Default.aspx" title="Stevenage Swimming Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Stevenage Swimming Centre</a></li><li><a href="/CentrenbspLocator/ShephallLeisureCentre/KidsZone/KidsCourses/tabid/197/Default.aspx" title="Shephall Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Shephall Leisure Centre</a></li><li><a href="/CentrenbspLocator/JohnHenryNewmanLeisureCentre/KidsZone/KidsCourses/tabid/292/Default.aspx" title="John Henry Newman Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> John Henry Newman Leisure Centre</a></li><li><a href="/CentrenbspLocator/KnightsTemplarSportsCentre/KidsZone/KidsActivities/tabid/385/Default.aspx" title="Knights Templar Sports Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Knights Templar Sports Centre</a></li><li><a href="/CentrenbspLocator/FlitwickLeisureCentre/KidsZone/tabid/530/Default.aspx" title="Flitwick Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Flitwick Leisure Centre</a></li><li><a href="/CentrenbspLocator/SaxonPoolLeisureCentre/KidsZone/ChildrensActivities/tabid/547/Default.aspx" title="Saxon Pool &amp; Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Saxon Pool &amp; Leisure Centre</a></li><li><a href="/CentrenbspLocator/NorthHertsLeisureCentre/KidsZone/AquaEd/tabid/356/Default.aspx" title="North Herts Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> North Herts Leisure Centre Swimming</a></li><li><a href="/CentrenbspLocator/NorthHertsLeisureCentre/KidsZone/SportEd/tabid/358/Default.aspx" title="North Herts Leisure Centre Sports"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> North Herts Leisure Centre Sports</a></li></ul>'

menu8[3]='<a href="/CentrenbspLocator/StevenageArtsLeisureCentre/GordonCraigTheatre/TheatreClub/tabid/215/Default.aspx" title="The Gordon Craig Theatre Club"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> The Gordon Craig Theatre Club</a>'
menu8[4]='<a href="#" onclick="expandcontent(\'sc7\', event)" style="cursor:hand; cursor:pointer"><img src="'+ window.GlobalPath + 'images/shd/plus.gif" width="5" height="6" alt="+" border="0" /> Wildcats</a><ul id="sc7" class="switchcontent"><li><a href="/CentrenbspLocator/StevenageArtsLeisureCentre/FitnessTheLeisureCentre/KidsnbspZone/tabid/260/Default.aspx" title="Fitness @ The Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Fitness @ The Leisure Centre</a></li><li><a href="/CentrenbspLocator/ShephallLeisureCentre/KidsZone/Wildcats/tabid/198/Default.aspx" title="Shephall Leisure Centre"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Shephall Leisure Centre</a></li></ul>'
menu8[5]='<a href="/CentrenbspLocator/StevenageGolfConferenceCentre/KidsZone/RookieClub/tabid/312/Default.aspx" title="Junior Golf"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Junior Golf</a>'
menu8[6]='<a href="/CentrenbspLocator/FairlandsValleyPark/WeekendYouthActivitySessions/tabid/328/Default.aspx" title="Youth Watersports"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> Youth Watersports</a>'
menu8[7]='<a href="/CentrenbspLocator/FairlandsValleyPark/WeekendYouthActivitySessions/tabid/328/Default.aspx" title="School Group Activities"><img src="'+ window.GlobalPath + 'images/shd/dash.gif" width="5" height="6" alt="-" border="0" /> School Group Activities</a>'

		
var menuwidth='165px' //default menu width
var menubgcolor=''  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="no" //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


/***********************************************
* Contractible Headers script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use. Last updated Mar 23rd, 2004.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var enablepersist="on" //Enable saving state of content structure using session cookies? (on/off)
var collapseprevious="no" //Collapse previously open content when opening present? (yes/no)

if (document.getElementById){
document.write('<style type="text/css">')
document.write('.switchcontent{display:none;}')
document.write('</style>')
}

function getElementbyClass(classname){
ccollect=new Array()
var inc=0
var alltags=document.all? document.all : document.getElementsByTagName("*")
for (i=0; i<alltags.length; i++){
if (alltags[i].className==classname)
ccollect[inc++]=alltags[i]
}
}

function contractcontent(omit){
var inc=0
while (ccollect[inc]){
if (ccollect[inc].id!=omit)
ccollect[inc].style.display="none"
inc++
}
}

function expandcontent(cid, e){
if (typeof ccollect!="undefined"){
if (collapseprevious=="yes")
contractcontent(cid)
document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none"
}
if (window.event){
	event.cancelBubble=true
} else {
	if (e.stopPropagation){
		e.stopPropagation()
	}
}
}

function revivecontent(){
contractcontent("omitnothing")
selectedItem=getselectedItem()
selectedComponents=selectedItem.split("|")
for (i=0; i<selectedComponents.length-1; i++)
document.getElementById(selectedComponents[i]).style.display="block"
}

function get_cookie(Name) { 
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { 
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function getselectedItem(){
if (get_cookie(window.location.pathname) != ""){
selectedItem=get_cookie(window.location.pathname)
return selectedItem
}
else
return ""
}

function saveswitchstate(){
var inc=0, selectedItem=""
while (ccollect[inc]){
if (ccollect[inc].style.display=="block")
selectedItem+=ccollect[inc].id+"|"
inc++
}

document.cookie=window.location.pathname+"="+selectedItem
}

function do_onload(){
uniqueidn=window.location.pathname+"firsttimeload"
getElementbyClass("switchcontent")
if (enablepersist=="on" && typeof ccollect!="undefined"){
document.cookie=(get_cookie(uniqueidn)=="")? uniqueidn+"=1" : uniqueidn+"=0" 
firsttimeload=(get_cookie(uniqueidn)==1)? 1 : 0 //check if this is 1st page load
if (!firsttimeload)
revivecontent()
}
}


if (window.addEventListener)
window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload)
else if (document.getElementById)
window.onload=do_onload

if (enablepersist=="on" && document.getElementById)
window.onunload=saveswitchstate
