/***********************************************
* 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 - Links
var menu1=new Array()
menu1[0]='<a href="../clinks/catholic_links.asp#canonlaw">Canon Law</a>'
menu1[1]='<a href="../clinks/catholic_links.asp#colorado">Colorado</a>'
menu1[2]='<a href="../clinks/catholic_links.asp#faithform">Faith Formation</a>'
menu1[3]='<a href="../clinks/catholic_links.asp#international">International</a>'
menu1[4]='<a href="../clinks/catholic_links.asp#liturgical">Liturgical</a>'
menu1[5]='<a href="../clinks/catholic_links.asp#moral">Moral Theology</a>'
menu1[6]='<a href="../clinks/catholic_links.asp#national">National</a>'
menu1[7]='<a href="../clinks/catholic_links.asp#scripture">Scripture Resources</a>'
menu1[8]='<a href="../clinks/catholic_links.asp#social">Social Justice</a>'
menu1[9]='<a href="../clinks/catholic_links.asp#spiritual">Spirituality</a>'
menu1[10]='<a href="../clinks/catholic_links.asp#theology">Theology</a>'

//Contents for menu 2 - Ministries
var menu2=new Array()
menu2[0]='<a href="../admin_svcs/menu_admin.asp">Administration</a>'
menu2[1]='<a href="../community_life/menu_community_life.asp">Community</a>'
menu2[2]='<a href="../faithform/menu_faithform.asp">Faith Formation</a>'
menu2[3]='<a href="../outreach/menu_outreach.asp">Outreach</a>'
menu2[4]='<a href="../worship/menu_worship.asp">Worship</a>'

//Contents for menu 3 - Sacraments
var menu3=new Array()
menu3[0]='<a href="../sacraments/anointing_of_the_sick.asp">Anointing of the Sick</a>'
menu3[1]='<a href="../sacraments/baptism.asp">Baptism</a>'
menu3[2]='<a href="../sacraments/confirmation.asp">Confirmation</a>'
menu3[3]='<a href="../sacraments/first_eucharist.asp">First Eucharist</a>'
menu3[4]='<a href="../sacraments/first_reconciliation.asp">First Reconciliation</a>'
menu3[5]='<a href="../sacraments/holy_orders.asp">Holy Orders</a>'
menu3[6]='<a href="../sacraments/marriage_ministry.asp">Marriage Ministry</a>'

//Contents for menu 4 - Multimedia
var menu4=new Array()
menu4[0]='<a href="../audio/stmark9905.org/Choir.html">Choir Music Schedule</a>'
menu4[1]='<a href="http://stmark9905.org/audio/stmark9905.org/Listen.html">Listen: Music Selections</a>'
menu4[2]='<a href="http://stmark9905.org/audio/menu_playlists.asp">Playlists (Audio)</a>'
menu4[3]='<a href="http://stmark9905.org/photos/menu_video_playlists.asp">Playlists (Video)</a>'
menu4[4]='<a href="http://stmark9905.org/audio/stmark9905.org/Special_Services.html">Special Services</a>'
menu4[5]='<a href="http://stmark9905.org/audio/stmark9905.org/SMMM.html">Sunday Liturgy</a>'
menu4[6]='<a href="http://stmark9905.org/photos_2010/EpiphanyConcert/Concert10_toc.html">2010 Concert</a>'
menu4[7]='<a href="http://www.ewtn.com/audiovideo/index.asp">EWTN Audio/Video</a>'

//Contents for menu 5 - Other
var menu5=new Array()
menu5[0]='<a href="../building_pgm/building_program.asp">Building Program</a>'
menu5[1]='<a href="../query_bus1.asp">Business Directory</a>'
menu5[2]='<a href="../other/community_links.asp">Community Links</a>'
menu5[3]='<a href="../forms/menu_forms.asp">Forms Menu</a>'
menu5[4]='<a href="../other/bp_milestones.asp">Milestones</a>'
menu5[5]='<a href="../other/mission_statement.asp">Mission Statement</a>'
menu5[6]='<a href="../other/parish_history.asp">Parish History</a>'
menu5[7]='<a href="../other/parish_prayer_calig.asp">Parish Prayer</a>'
menu5[8]='<a href="../other/servant_leaders.asp">Servant Leaders</a>'
menu5[9]='<a href="../site_map.asp">Site Map</a>'
menu5[10]='<a href="../site_srch_google.asp">Site Search</a>'
menu5[11]='<a href="http://www.time.gov">Time of Day</a>'
menu5[12]='<a href="http://www.weather.com/weather/local/USCO0105">Weather</a>'

//Contents for menu 6 - Photos
var menu6=new Array()
menu6[0]='<a href="../photos_2010/menu_photos_2010.asp">Photo Gallery 2010</a>'
menu6[1]='<a href="../photos_2009/menu_photos_2009.asp">Photo Gallery 2009</a>'
menu6[2]='<a href="../photos_2008/menu_photos_2008.asp">Photo Gallery 2008</a>'
menu6[3]='<a href="../photos_2007/menu_photos_2007.asp">Photo Gallery 2007</a>'
menu6[4]='<a href="../photos_2006/menu_photos_2006.asp">Photo Gallery 2006</a>'
menu6[5]='<a href="../photos_2005/menu_photos_2005.asp">Photo Gallery 2005</a>'
menu6[6]='<a href="../photos_2004/menu_photos_2004.asp">Photo Gallery 2004</a>'
menu6[7]='<a href="../photos/menu_photo_archives.asp">Photo Archives</a>'

//Contents for menu 7 - Youth
var menu7=new Array()
menu7[0]='<a href="../youth/youth_calendar.asp">Calendar of Events </a>'
menu7[1]='<a href="../sacraments/confirmation.asp">Confirmation</a>'
menu7[2]='<a href="../youth/integration.asp">Integration </a>'
menu7[3]='<a href="../youth/peer_ministry.asp">Peer Ministry </a>'
menu7[4]='<a href="../youth/praise_worship.asp">Praise and Worship</a>'
menu7[5]='<a href="../youth/menu_raft.asp">RAFT </a>'
menu7[6]='<a href="../youth/retreats_service_mission.asp">Retreats/Mission</a>'
menu7[7]='<a href="../youth/menu_tuff.asp">TUFF </a>'
menu7[8]='<a href="../youth/youth_ministries.asp">Youth Menu </a>'
menu7[9]='<a href="http://sites.google.com/site/stmarkyouthministrysite/">Youth Website</a>' 
                   

var menuwidth='165px' //default menu width
var menubgcolor='lightyellow'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in milliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editing 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


