// MENU 1 -- About var submenu1 = new Array() submenu1[0]='History' submenu1[1]='Renewable Energy' submenu1[2]='Donation Request' // MENU 2 -- Beers var submenu2 = new Array() submenu2[0]='Year Round Beers' submenu2[1]='Seasonal Releases' submenu2[2]='Brewers Reserve Series' submenu2[3]='Specialty Releases' submenu2[4]='Cellar Sessions' submenu2[5]='Production Schedule' // MENU 3 -- Media var submenu3 = new Array() submenu3[0]='Blog' submenu3[1]='Gallery' // MENU 4 -- store var submenu4 = new Array() submenu4[0]='Men\'s' submenu4[1]='Women\'s' submenu4[2]='Hoodies' submenu4[3]='Headwear' submenu4[4]='Accessories' // MENU 5 -- Taproom var submenu5 = new Array() submenu5[0]='Taproom / Tours Info' submenu5[1]='Tap List' var menuwidth='200px' //default menu width var menubgcolor='#dfdcd4' //menu bgcolor var disappeardelay=250 //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('') 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)