/*********************************************** * AnyLink Vertical Menu- © Dynamic Drive (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/ //Contents for menu 2, and so on var menu1=new Array() //menu1[0]='About The Firm' //menu1[1]='E. Stephen Murray'var menu1=new Array() menu1[0]='The Firm' menu1[1]='Employee Directory' menu1[2]='Attorney Directory' menu1[3]='Directions' menu1[4]='E. Stephen Murray' var menu2=new Array() menu2[0]='Administrative Law' menu2[1]='Business Law' menu2[2]='Emerging Business' menu2[3]='Estate Planning' menu2[4]='Land Use Law and Regulation' menu2[5]='Litigation and Dispute Resolution' menu2[6]='Personal Legal Services' menu2[7]='Real Estate and Banking' var menu3=new Array() menu3[0]='Drew Anderson' menu3[1]='John Bannon' menu3[2]='Timothy Boulette' menu3[3]='Nicole Bradick' menu3[4]='Christopher Branson' menu3[5]='Thomas Douglas' menu3[6]='Barbara Goodwin' menu3[7]='John Lightbody' menu3[8]='Sarah McDaniel' menu3[9]='Kelly McDonald' menu3[10]='Peter Murray' menu3[11]='Thomas Newman' menu3[12]='Richard O\'Meara' menu3[13]='Peter Plumb' menu3[14]='Barbara Schneider' menu3[15]='John Shumadine' menu3[16]='Susan Thomas' menu3[17]='Michael Traister' var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds) var horizontaloffset=2 //horizontal offset of menu from default location. (0-5 is a good value) /////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=-500 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-obj.offsetWidth < 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 menu up? edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight if ((dropmenuobj.y-topedge)