/*********************************************** * 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 ***********************************************/ //sample menu /*var menu1=new Array() menu1[0]='JavaScript Kit' menu1[1]='Freewarejava.com' menu1[2]='Coding Forums' menu1[3]='CSS Drive'*/ //Contents for menu 1 var menu1=new Array() menu1[0]='St. Elizabeth Parish History' menu1[1]='Frequently Asked Questions.' menu1[2]='Directions' var menu2=new Array() menu2[0]='Announcements' menu2[1]='Upcoming Events' menu2[2]='Weekly Bulletin' var menu3=new Array() menu3[0]='Religious Education' menu3[1]='Class Schedule' var menu4=new Array() menu4[0]='Trustees' var menu5=new Array() menu5[0]='Sacraments' var menu6=new Array() menu6[0]='Finance Council' menu6[1]='Donate' menu6[2]='Annual Collection' menu6[3]='Legacy Planning' var menu7=new Array() menu7[0]='Phone Directory' menu7[1]='Email Directory' var menu8=new Array() menu8[0]='Archdiocese of Hartford' menu8[1]='CT Catholic Conference' menu8[2]='St. Clare Parish' menu8[3]='Vatican' var menuwidth='165px' //default menu width var menubgcolor='#FFFFFF url(dropdown.png) left repeat-y' //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)