<!--

/***********************************************
* 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 welcome menu
var menu_welcome=new Array()
menu_welcome[0]='<a href="../welcome/message.html">Message From Fr. Tim</a>'
menu_welcome[1]='<a href="../welcome/mass_times.html">Mass Times</a>'
menu_welcome[2]='<a href="../welcome/contact_us.html">Contact Us</a>'
menu_welcome[3]='<a href="mailto:sthenry@tds.net">Suggestions</a>'

//Contents for about menu
var menu_about=new Array()
menu_about[0]='<a href="../about/history.html">History of Church</a>'
menu_about[1]='<a href="../about/tour.html">Virtual Photo Tour</a>'
menu_about[2]='<a href="../welcome/contact_us.html">Office Hours</a>'
menu_about[3]='<a href="../about/staff.html">Meet the Staff</a>'
		
//Contents for stewardship menu
var menu_stewardship=new Array()
menu_stewardship[0]='<a href="../stewardship/faith.html">Moving Forward In Faith</a>'
menu_stewardship[1]='<a href="../stewardship/giving_chart.pdf" target="_blank">Giving Chart</a>'
menu_stewardship[2]='<a href="../stewardship/shared_ministry.pdf" target="_blank">Shared Ministry Form</a>'
      
//Contents for guests menu
var menu_guests=new Array()
menu_guests[0]='<a href="../guests/directions.html">Driving Directions</a>'
menu_guests[1]='<a href="../welcome/mass_times.html">Mass Times</a>'
menu_guests[2]='<a href="../bulletins/sacraments.html">Sacraments</a>'
menu_guests[3]='<a href="../about/history.html">History of Church</a>'
menu_guests[4]='<a href="../welcome/contact_us.html">Contact Us</a>'

//Contents for  bulletins menu
var menu_bulletins=new Array()
menu_bulletins[0]='<a href="http://seekandfind.com/directory/st.-henry-church_1276.html">Weekly Bulletins</a>'
menu_bulletins[1]='<a href="../bulletins/daily.html">Daily Readings</a>'
menu_bulletins[2]='<a href="../bulletins/sacraments.html">Sacraments</a>'
menu_bulletins[3]='<a href="../bulletins/prayers.pdf" target="_blank">Prayers</a>'
menu_bulletins[4]='<a href="../bulletins/devotions.html">Devotions</a>'

//Contents for calendar menu
var menu_calendar=new Array()
menu_calendar[0]='<a href="../calendar/events.pdf" target="_blank">Major Events</a>'
menu_calendar[1]='<a href="../calendar/schedules.html">Schedules</a>'

//Contents for parish menu
var menu_parish=new Array()
menu_parish[0]='<a href="../parish/alpha.html">Alpha Program</a>'
menu_parish[1]='<a href="../parish/cards.html">Card Ministry</a>'
menu_parish[2]='<a href="../parish/ccw.html">CCW - Council of Catholic Women</a>'
menu_parish[3]='<a href="../parish/cursillo.html">Cursillo</a>'
menu_parish[4]='<a href="../parish/evangelize.html">Evangelization Initiative</a>'
menu_parish[5]='<a href="../parish/kc.html">Knights of Columbus</a>'
menu_parish[6]='<a href="../parish/rcia.html">Learn the Catholic Faith</a>'
menu_parish[7]='<a href="../parish/meditation.pdf" target="_blank">Meditation Gardens</a>'
menu_parish[8]='<a href="../parish/newcomers.html">Ministry of Welcoming</a>'
menu_parish[9]='<a href="../parish/pastoral.html">Pastoral Ministry</a>'
menu_parish[10]='<a href="../parish/prayer_chain.html">Prayer Chain</a>'

//Contents for ministries menu
var menu_ministries=new Array()
menu_ministries[0]='<a href="../ministries/adult_faith.html">Adult Faith Enrichment</a>'
menu_ministries[1]='<a href="../ministries/grounds.html">Building & Grounds</a>'
menu_ministries[2]='<a href="../ministries/cemetery.html">Cemetery</a>'
menu_ministries[3]='<a href="../ministries/faith_action.html">Faith In Action</a>'
menu_ministries[4]='<a href="../ministries/liturgy.html">Liturgy Commitee</a>'
menu_ministries[5]='<a href="../ministries/mission_outreach.html">Mission Outreach</a>'
menu_ministries[6]='<a href="../ministries/music.html">Music & Choir</a>'
menu_ministries[7]='<a href="../ministries/council.html">Parish Council</a>'
menu_ministries[8]='<a href="../parish/pastoral.html">Pastoral Ministry</a>'
menu_ministries[9]='<a href="../ministries/education.html">Religious Education</a>'
menu_ministries[10]='<a href="../ministries/art.html">Standing Art</a>'
menu_ministries[11]='<a href="../ministries/youth.html">Youth Ministry</a>'

var menuwidth='165px' //default menu width
var menubgcolor='#ffc167'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?
var enablelink=1 //Enable or disable the link when clicked on? (0=disabled, 1=enabled)

/////No further editting needed

var ie4 = document.all;
var ns6 = document.getElementById && !document.all;

if ( hidemenu_onclick=="yes" ) {
  document.onclick=hidemenu;
}

if ( ie4||ns6 ) {
  document.write( '<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>' );
}

function clickreturnvalue() {
  if ( ( ie4 || ns6 ) && !enablelink ) {
    return false;
  }
  return true;
}

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 clearhidemenu() {
  if ( typeof delayhide != "undefined" ) {
    clearTimeout( delayhide );
  }
}

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

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

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 dynamichide( e ){
  if ( ie4 && !dropmenuobj.contains( e.toElement ) ) {
    delayhidemenu();
  } else if ( ns6 && e.currentTarget != e.relatedTarget && !contains_ns6( e.currentTarget, e.relatedTarget ) ) {
    delayhidemenu();
  }
}

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;
  }
  
  // Now adjust to position to the right (not bottom)...
  var totaloffset = ( offsettype == "left" ) ? totaloffset + what.offsetWidth : totaloffset - what.offsetHeight;
  if ( offsettype == "top" ) {
    totaloffset += 222;
  }
  
  return totaloffset;
}

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

function iecompattest() {
  return ( document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body;
}

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

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;
  }
}
-->