

/***********************************************
* 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 - About Us
var menu1=new Array()
menu1[0]='<a href="../about/mission.html">Our Mission</a>'
menu1[1]='<a href="../about/philosophy.html">Our Philosophy</a>'
menu1[2]='<a href="../about/leadrabb.html">Rabbi</a>'
menu1[3]='<a href="../about/leadhazz.html">Hazzan</a>'
menu1[4]='<a href="../about/leadpres.html">Our President</a>'
menu1[5]='<a href="../about/leadbord.html">Our Temple Board</a>'
menu1[6]='<a href="../about/leadadmn.html">Professional Staff</a>'
menu1[7]='<a href="../about/tmplfacl.html">Temple Facilities</a>'
menu1[8]='<a href="../about/tmplphot.html">Temple Photos</a>'
menu1[9]='<a href="../about/tmplhist.html">Temple History</a>'
menu1[10]='<a href="../about/wherdrmp.html">Driving Directions and Map</a>'
//Contents for menu 2 - Calendar
var menu2=new Array()
menu2[0]='<a href="../clndr/srvcfrid.html">Shabbat Services</a>'
menu2[1]='<a href="../clndr/srvcholi.html">Holiday Services</a>'
menu2[2]='<a href="../clndr/thnxmnth.html">Monthly Calendar</a>'
menu2[3]='<a href="../clndr/soclcong.html">Social Events</a>'
menu2[4]='<a href="../clndr/soclflyr.html">Social Event Flyers</a>'
menu2[5]='<a href="../clndr/yous.html">Youth Group Schedules</a>'
menu2[6]='<a href="../clndr/gancalen.html">Gan School Calendar</a>'
menu2[7]='<a href="../clndr/relscalen.html">Religious School Calendar</a>'
menu2[8]='<a href="../clndr/soclarch.html">Past Social Events</a>'
//Contents for menu 3 - Education
var menu3=new Array()
menu3[0]='<a href="../educ/ecedir.html">Early Childhood Education Staff</a>'
menu3[1]='<a href="../educ/eceprg.html">The Gan School</a>'
menu3[2]='<a href="../educ/ecetots.html">Temple Tots</a>'
menu3[3]='<a href="../educ/ececamp.html">Camp Gan</a>'
menu3[4]='<a href="../educ/relscur.html">Religious School</a>'
menu3[5]='<a href="../educ/barbatm.html">Bar/Bat Mitzvah Training</a>'
menu3[6]='<a href="../educ/coaconf.html">Confirmation</a>'
menu3[7]='<a href="../educ/adultotk.html">Torah Talk</a>'
menu3[8]='<a href="../educ/adulbrbg.html">Brown Bag</a>'
menu3[9]='<a href="../educ/adulhebr.html">Ongoing Education</a>'
menu3[10]='<a href="../educ/adulbnai.html">Adult B&rsquo;nai Mitzvah</a>'
menu3[11]='<a href="../educ/adullibr.html">Library</a>'
menu3[12]='<a href="../educ/famprog.html">Family Programs</a>'
menu3[13]='<a href="../educ/adulcult.html">Cultural Happenings</a>'

//Contents for menu 4 - News
var menu4=new Array()
menu4[0]='<a href="../news/tabl.html">Temple Sinai Tablet</a>'
menu4[1]='<a href="../news/snnw.html">Sinai News Now</a>'
menu4[2]='<a href="../news/manish.html">Ma Nishmah?</a>'
menu4[3]='<a href="../news/notes.html">Notes from School</a>'
menu4[4]='<a href="../news/keesh.html">Keeshkoosheem</a>'
//Contents for menu 5 - Community
var menu5=new Array()
menu5[0]='<a href="../cmty/wos.html">Women of Sinai</a>'
menu5[1]="<a href='../cmty/men.html'>Sinai Men's Club</a>"
menu5[2]='<a href="../cmty/yout.html">Youth Group Programs</a>'
menu5[3]='<a href="../cmty/soca.html">Social Action Activities</a>'
menu5[4]='<a href="../cmty/volu.html">Volunteer Opportunities</a>'
menu5[5]='<a href="../cmty/comm.html">Committees</a>'
menu5[6]='<a href="../cmty/arch.html">Archive of Past Events</a>'
menu5[7]='<a href="../cmty/cmty.html">Cemetery</a>'
//Contents for menu 6 - Donations
var menu6=new Array()
menu6[0]='<a href="../dona/annu.html">Annual Appeal</a>'
menu6[1]='<a href="../dona/trib.html">Tribute Funds</a>'
menu6[2]='<a href="../dona/plan.html">Planned Giving</a>'
menu6[3]='<a href="../dona/fund.html">Fund Raising Events</a>'
menu6[4]='<a href="../dona/watg.html">Other Ways to Give</a>'
//Contents for menu 7 - Contact Us
var menu7=new Array()
menu7[0]='<a href="../cont/emal.html">E-mail Contacts</a>'
menu7[1]='<a href="../cont/tele.html">Telephone Contacts</a>'
menu7[2]='<a href="../cont/reqm.html">Request Membership Information</a>'
//Contents for menu 8 - Resources
var menu8=new Array()
menu8[0]='<a href="http://www.sarasota-manateejewishfederation.org/" target="_blank">Sarasota-Manatee Jewish Federation</a>'
menu8[1]='<a href="http://www.kobernickanchin.org/" target="_blank">Jewish Housing Council</a>'
menu8[2]='<a href="http://www.jfcs-cares.org/" target="_blank">Jewish Family & Children Services</a>'
menu8[3]='<a href="http://urj.org/" target="_blank">Union for Reform Judaism (URJ)</a>'
menu8[4]='<a href="http://www.arza.org/" target="_blank">Association of Reform Zionists of America (ARZA)</a>'
menu8[5]='<a href="http://rac.org/" target="_blank">Religious Action Center</a>'
menu8[6]='<a href="../resc/addl.html">Additional Links</a>'
		
var menuwidth='165px' //default menu width
var menubgcolor='lightyellow'  //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('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

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)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}

function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
if (hidemenu_onclick=="yes")
document.onclick=hidemenu


