//Contents for menu 1
var menu1=new Array()
menu1[0]='<div style="position: absolute; top: -44px; left: -125px;">'
		+'<a href="http://www.fraservalleyrec.org/warehouse.php"><img src="http://www.fraservalleyrec.org/gfx/btns_facilities_01.png" height="42" width="228" border="0" name="menu11" onMouseover="document.menu11.src=\'http://www.fraservalleyrec.org/gfx/btns_facilities_on_01.png\'" onMouseout="document.menu11.src=\'http://www.fraservalleyrec.org/gfx/btns_facilities_01.png\'"></a><br />'
		+'<a href="http://www.fraservalleyrec.org/sportscomplex.php"><img src="http://www.fraservalleyrec.org/gfx/btns_facilities_02.png" height="26" width="228" border="0" name="menu12" onMouseover="document.menu12.src=\'http://www.fraservalleyrec.org/gfx/btns_facilities_on_02.png\'" onMouseout="document.menu12.src=\'http://www.fraservalleyrec.org/gfx/btns_facilities_02.png\'"></a><br />'
		+'<a href="http://www.fraservalleyrec.org/districtoffices.php"><img src="http://www.fraservalleyrec.org/gfx/btns_facilities_03.png" height="24" width="228" border="0" name="menu13" onMouseover="document.menu13.src=\'http://www.fraservalleyrec.org/gfx/btns_facilities_on_03.png\'" onMouseout="document.menu13.src=\'http://www.fraservalleyrec.org/gfx/btns_facilities_03.png\'"></a><br>'
		+'<a href="http://www.fraservalleyrec.org/programbuildings.php"><img src="http://www.fraservalleyrec.org/gfx/btns_facilities_04.png" height="24" width="228" border="0" name="menu14" onMouseover="document.menu14.src=\'http://www.fraservalleyrec.org/gfx/btns_facilities_on_04.png\'" onMouseout="document.menu14.src=\'http://www.fraservalleyrec.org/gfx/btns_facilities_04.png\'"></a><br>'
		+'<a href="http://www.fraservalleyrec.org/historicchurch.php"><img src="http://www.fraservalleyrec.org/gfx/btns_facilities_05.png" height="25" width="228" border="0" name="menu15" onMouseover="document.menu15.src=\'http://www.fraservalleyrec.org/gfx/btns_facilities_on_05.png\'" onMouseout="document.menu15.src=\'http://www.fraservalleyrec.org/gfx/btns_facilities_05.png\'"></a><br>'
		+'<a href="http://www.fraservalleyrec.org/bullfrog.php"><img src="http://www.fraservalleyrec.org/gfx/btns_facilities_06.png" height="26" width="228" border="0" name="menu16" onMouseover="document.menu16.src=\'http://www.fraservalleyrec.org/gfx/btns_facilities_on_06.png\'" onMouseout="document.menu16.src=\'http://www.fraservalleyrec.org/gfx/btns_facilities_06.png\'"></a><br>'
		+'<a href="http://www.fraservalleyrec.org/bikepark.php"><img src="http://www.fraservalleyrec.org/gfx/btns_facilities_07.png" height="27" width="228" border="0" name="menu17" onMouseover="document.menu17.src=\'http://www.fraservalleyrec.org/gfx/btns_facilities_on_07.png\'" onMouseout="document.menu17.src=\'http://www.fraservalleyrec.org/gfx/btns_facilities_07.png\'"></a><br>'
		+'<a href="http://www.fraservalleyrec.org/location.php"><img src="http://www.fraservalleyrec.org/gfx/btns_facilities_08.png" height="28" width="228" border="0" name="menu18" onMouseover="document.menu18.src=\'http://www.fraservalleyrec.org/gfx/btns_facilities_on_08.png\'" onMouseout="document.menu18.src=\'http://www.fraservalleyrec.org/gfx/btns_facilities_08.png\'"></a></div>'

var menu2=new Array()
menu2[0]='<div style="position: absolute; top: -44px; left: -95px;">'
		+'<a href="http://www.fraservalleyrec.org/staff.php"><img src="http://www.fraservalleyrec.org/gfx/adm_01.png" height="40" width="177" border="0" name="menu21" onMouseover="document.menu21.src=\'http://www.fraservalleyrec.org/gfx/adm_on_01.png\'" onMouseout="document.menu21.src=\'http://www.fraservalleyrec.org/gfx/adm_01.png\'"></a><br />'
		+'<a href="http://www.fraservalleyrec.org/calendar"><img src="http://www.fraservalleyrec.org/gfx/adm_02.png" height="43" width="177" border="0" name="menu22" onMouseover="document.menu22.src=\'http://www.fraservalleyrec.org/gfx/adm_on_02.png\'" onMouseout="document.menu22.src=\'http://www.fraservalleyrec.org/gfx/adm_02.png\'"></a><br />'
		+'<a href="http://www.fraservalleyrec.org/records.php"><img src="http://www.fraservalleyrec.org/gfx/adm_03.png" height="40" width="177" border="0" name="menu23" onMouseover="document.menu23.src=\'http://www.fraservalleyrec.org/gfx/adm_on_03.png\'" onMouseout="document.menu23.src=\'http://www.fraservalleyrec.org/gfx/adm_03.png\'"></a>'
		+'<a href="http://www.fraservalleyrec.org/finance.php"><img src="http://www.fraservalleyrec.org/gfx/adm_04.png" height="38" width="177" border="0" name="menu24" onMouseover="document.menu24.src=\'http://www.fraservalleyrec.org/gfx/adm_on_04.png\'" onMouseout="document.menu24.src=\'http://www.fraservalleyrec.org/gfx/adm_04.png\'"></a><br />'
		+'<a href="http://www.fraservalleyrec.org/sponsor.php"><img src="http://www.fraservalleyrec.org/gfx/adm_05.png" height="46" width="177" border="0" name="menu25" onMouseover="document.menu25.src=\'http://www.fraservalleyrec.org/gfx/adm_on_05.png\'" onMouseout="document.menu25.src=\'http://www.fraservalleyrec.org/gfx/adm_05.png\'"></a></div>'


var menu3=new Array()
menu3[0]='<div style="position: absolute; top: -44px; left: -45px;">'
		+'<a href="http://www.fraservalleyrec.org/preschool.php"><img src="http://www.fraservalleyrec.org/gfx/prg_01.png" height="40" width="145" border="0" name="menu31" onMouseover="document.menu31.src=\'http://www.fraservalleyrec.org/gfx/prg_on_01.png\'" onMouseout="document.menu31.src=\'http://www.fraservalleyrec.org/gfx/prg_01.png\'"></a><br />'
		+'<a href="http://www.fraservalleyrec.org/schoolage.php"><img src="http://www.fraservalleyrec.org/gfx/prg_02.png" height="43" width="145" border="0" name="menu32" onMouseover="document.menu32.src=\'http://www.fraservalleyrec.org/gfx/prg_on_02.png\'" onMouseout="document.menu32.src=\'http://www.fraservalleyrec.org/gfx/prg_02.png\'"></a><br />'
		+'<a href="http://www.fraservalleyrec.org/adultrec.php"><img src="http://www.fraservalleyrec.org/gfx/prg_03.png" height="42" width="145" border="0" name="menu33" onMouseover="document.menu33.src=\'http://www.fraservalleyrec.org/gfx/prg_on_03.png\'" onMouseout="document.menu33.src=\'http://www.fraservalleyrec.org/gfx/prg_03.png\'"></a></div>'


var menuwidth='250px' //default menu width
var menubgcolor=''  //menu bgcolor
var disappeardelay=200  //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=-500
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 windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
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