if (!document.getElementById){ document.getElementById = function() { return null; } } function showDropMenu(menunum){ document.getElementById('dropmenu'+menunum).style.visibility = 'Visible' } function hideDropMenu(menunum){ document.getElementById('dropmenu'+menunum).style.visibility = 'hidden' } /*********************************************** * 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 ***********************************************/ //Contents for menu 1 var menu1=new Array() menu1[0]='e-Manuals' menu1[1]='Courses' //Contents for menu 2, and so on var menu2=new Array() menu2[0]='About' menu2[1]='Faculty' menu2[2]='Learning Portfolio' menu2[3]='Your Lightbox' menu2[4]='Your Slideshows' menu2[5]='Orthoteers Mobile' menu2[6]='Disclaimer' menu2[7]='Contact Orthoteers' menu2[8]='Site map' //Contents for menu 3 - members var menu3=new Array() menu3[0]='Member Login' menu3[1]='Register for Orthoteers' menu3[2]='Login Help' menu3[3]='Registration Help' var menu4=new Array() menu4[0]='Image Gallery' menu4[2]='Anatomy Atlas' menu4[1]='Video Gallery' menu4[3]='Image Scorecard' var menuwidth='100px' //default menu width var menubgcolor='#676767' //menu bgcolor var disappeardelay=50 //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('
') 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)