//var baseURL = "http://www.edwardmcconnell.com/miba/sc2/"; var baseURL = "/"; //Contents for menu 1 var menu1offset=new Array(); menu1offset[0]=15 menu1offset[1]=15 var menu1=new Array() menu1[0]=120 menu1[1]=18 //horizontal position menu1[2]=4 //vertical position menu1[3]='Road' menu1[4]='Tandem' menu1[5]='Triathlon' menu1[6]='Mountain' menu1[7]='Traveler' menu1[8]='Cyclocross' menu1[9]='Gateway' menu1[10]='Limited Edition' //Contents for menu 2, and so on var menu2=new Array() menu2[0]=150 menu2[1]=24 //horizontal position menu2[2]=4 //vertical position menu2[3]='Components' menu2[4]='Soft Goods' menu2[5]='Services' var menu3 = new Array() menu3[0]=100 menu3[1]=17 //horizontal position menu3[2]=4 //vertical position menu3[3]='Manufacturing' menu3[4]='Customization' menu3[5]='Materials & Technology' menu3[6]='Paint and Decals' menu3[7]='Paint Gallery' menu3[8]='Milestones' menu3[9]='Where is my Frame?' menu3[10]='Employee Biographies' var menu4=new Array() menu4[0]=86 menu4[1]=13 //horizontal position menu4[2]=4 //vertical position menu4[3]='Mission' menu4[4]='History' menu4[5]='Milestones' menu4[6]='Beyond the Bike' menu4[7]='Customer Gallery' menu4[8]='Press' menu4[9]='Employee Biographies' var menuwidth='205px' //default menu width var menubgcolor='#ffffff' //menu bgcolor var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds) var hidemenu_onclick="yes" //hide menu when user clicks within menu? var head; var headclassname = ""; /////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"){ head.className = 'active'; obj.visibility=visible; } else if (e.type=="click") { head.className = headclassname; 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)