/***********************************************
* 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:Services
var menu1=new Array()
menu1[0]='<a href="/services.html">Worship</a>'
menu1[1]='<a href="/youth/school.html">Sunday School</a>'
menu1[2]='<a href="/avenue.html">The Avenue</a>'

//Contents for menu 2: News & Calendar
var menu2=new Array()
menu2[0]='<a href="/news/September2010Calendar.pdf">September Calendar of Events</a>'
menu2[1]='<a href="/news/September2010Newsletter.pdf">September Newsletter</a>'
menu2[2]='<a href="/news/August2010Calendar.pdf">August Calendar of Events</a>'
menu2[3]='<a href="/news/August2010Newsletter.pdf">August Newsletter</a>'

menu2[4]='<a href="/news.html">News</a>'

//menu2[6]='<a href="/">Use of Facilities</a>'
		
//Contents for menu 3: Missions
var menu3=new Array()
menu3[0]='<a href="/missions/missions.html">Commission on Missions</a>'
menu3[1]='<a href="/">Habitat for Humanity</a>'
menu3[2]='<a href="/missions/HealthCareReform.pdf">Church and Society</a>'
menu3[3]='<a href="/missions/ChocolateBars.pdf">Equal Exchange</a>'
//Contents for menu 4: Small Groups
var menu4=new Array()
menu4[0]='<a href="/groups/vbs.html">Vacation Bible School (VBS)</a>'
menu4[1]='<a href="http://new.gbgm-umc.org/umw/">United Methodist Women</a>'
menu4[2]='<a href="http://www.umc.org/site/c.lwL4KnN1LtH/b.1847121/k.6B61/United_Methodist_Men/apps/s/link.asp">United Methodist Men</a>'
menu4[3]='<a href="/">Circles</a>'



//Contents for menu 5: Children & Youth
var menu5=new Array()
menu5[0]='<a href="/youth/nursery.html">Nursery</a>'
menu5[1]='<a href="/youth/preschool.html">Preschool</a>'
menu5[2]='<a href="/youth/music.html">Children\'s Music</a>'
menu5[3]='<a href="http://www.TroopOneOOne.org ">Boy Scouts</a>'
menu5[4]='<a href="/youth/puppet.html">Puppet Ministry</a>'
menu5[5]='<a href="/youth/school.html">Sunday School</a>'
menu5[6]='<a href="/youth/youth.html">Youth Ministry</a>'
menu5[7]='<a href="/youth/umyf.html">UMYF</a>'


//Contents for menu 6: Library
var menu6=new Array()




//Contents for menu 7: About Us
var menu7=new Array()
menu7[0]='<a href="/about/staff.html">Staff</a>'
menu7[1]='<a href="http://www.mapquest.com/maps/map.adp?address=1843%20S%20Union%20Ave&city=Alliance&state=OH&zipcode=44601&country=US&title=%3cb%3eUnion%20Ave%20United%20Methodist%20Chr%3a%3c%2fb%3e%20330%2d823%2d9270%3cbr%20%2f%3e%201843%20S%20Union%20Ave%3cbr%20%2f%3e%20Alliance%2c%20OH%2044601%2c%20%20US&cid=lfmaplink2&name=Union%20Ave%20United%20Methodist%20Chr">Map to Church</a>'
menu7[2]='<a href="/about/membership.html">Membership Information</a>'
menu7[3]='<a href="/about/history-building.html">History</a>'
menu7[4]='<a href="/about/committees.html">Committees</a>'
menu7[5]='<a href="/about/stewardship.pdf">Stewardship</a>'
menu7[6]='<a href="http://www.cumcalliance.org/">Christ United Methodist Church</a>'
menu7[7]='<a href="http://www.tusceocumc.com">Tuscarawas District</a>'
menu7[8]='<a href="http://www.eocumc.com">East Ohio Conference</a>'
menu7[9]='<a href="http://www.umc.org">United Methodist Church</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=-500
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

