clickMenu = function(menu) {         
       
        if (document.getElementById(menu) == null) return;      
	var getEls = document.getElementById(menu).getElementsByTagName("li");
	var getAgn = getEls;      
	for (var i=0; i<getEls.length; i++) {	                
			getEls[i].onclick=function() {
				for (var x=0; x<getAgn.length; x++) {
				getAgn[x].className=getAgn[x].className.replace("unclick", "");
				getAgn[x].className=getAgn[x].className.replace("click", "unclick");
				}
			if ((this.className.indexOf('unclick'))!=-1) {
				this.className=this.className.replace("unclick", "");;				
				}
				else {
				this.className+=" click";				
				}
			}			
			getEls[i].onmouseover=function() {
				this.className+=" hover";			
			}
			getEls[i].onmouseout=function() {
				this.className=this.className.replace("hover", "");			
			}
		}
	}

function func4() {
              
        if (document.getElementById('announce') == null) return;       
        var getEls = document.getElementById('announce').getElementsByTagName('div');
       
         
	for (var i=0; i<getEls.length; i++) {
			getEls[i].onclick=function() {
			if ((this.className.indexOf('readmore'))!=-1)
			{
			if ((this.className.indexOf('readclick'))!=-1) {
				this.className=this.className.replace("readclick", "");;
				}
				else {
				this.className+=" readclick";
				}
			}
		}
	}
}
	

//  The function below prevents other websites from framing OLG's website //
	
function func1() {
  if (self != top) top.location = self.location; 
 }
	
function func2() { 
	var e, i = 0;
	if (document.getElementById('min_tab_gallery') == null) return;		
	  while (e = document.getElementById('min_tab_gallery').getElementsByTagName ('div') [i++]) {
		if (e.className == 'on' || e.className == 'off') {
		e.onclick = function () {
			var getEls = document.getElementsByTagName('div');
				for (var z=0; z<getEls.length; z++) {
				getEls[z].className=getEls[z].className.replace('show', 'hide');
				getEls[z].className=getEls[z].className.replace('on', 'off');
				}
			this.className = 'on';
			var max = this.getAttribute('title');
			document.getElementById(max).className = "show";
			}
		}
	}
}

function func3() {
  
  if (document.getElementById('map_gallery') == null) return;  
  document.images.mapslider.src=olg_maps[0];  
  document.mapForm.captionText.value=olg_captions[0];
  window.status="Our Lady of the Greenwood Location";
}

//----------------------------------------------------------------------------
// Common code to include in the title of each web page is listed below.
//----------------------------------------------------------------------------

function addLoadEvent(func) { 

  var oldonload = window.onload;   
  if (typeof window.onload != 'function') { 
    window.onload = func;    
  } else { 
    window.onload = function() { 
      if (oldonload) {          
        oldonload();             
      }
      func();       
    } 
  } 
} 

addLoadEvent(func1);
addLoadEvent(function() {
  clickMenu('menu'); 
})
addLoadEvent(func4);
addLoadEvent(func2); 
addLoadEvent(func3); 


//-------------------------------------------------------------------------------
//  Load the common main leftside navigation below 
//-------------------------------------------------------------------------------
function load_navigation()
{

document.write ("<ul id=\"menu\">") 

document.write ("<li class=\"sub\"><a href=\"http://olgreenwood.mhsoftware.com/View.html?item_type_id=13&dropdown=0&style_sheet=olg_userStyle.css\">Announcements</a></li>")
document.write ("<li class=\"sub\"><a href=\"olg_bulletin.htm\">Bulletins</a></li>")

//-- Calendar Information Navigation Below //
document.write ("<li  class=\"expsub\">Calendars")
document.write ("<ul>")  
document.write ("<li class=\"subtopic\"><a href=\"http://olgreenwood.mhsoftware.com/ViewCal.html?calendar_id=4&dropdown=0&style_sheet=olg_userStyle.css\">Parish Calendar</a></li>")
 document.write ("<li class=\"subtopic\"><a href=\"http://olgreenwood.mhsoftware.com/View.html?item_type_id=11&dropdown=0&style_sheet=olg_userStyle.css\">Liturgy Calendar</a></li>")
 document.write ("<li class=\"subtopic\"><a href=\"http://olgreenwood.mhsoftware.com/View.html?item_type_id=17&dropdown=0&style_sheet=olg_userStyle.css\">Youth Group Events</a></li>")
 document.write ("<li class=\"subtopic\"><a href=\"http://olgreenwood.mhsoftware.com/View.html?item_type_id=14&dropdown=0&style_sheet=olg_userStyle.css\">Events/Meetings</a></li>")
 document.write ("</ul>")
 document.write ("</li>")  
 //-- Calendar Information Navigation Above //

//-- Contacts Navigation Below //
document.write ("<li class=\"expsub\">Contacts")
document.write ("<ul>")  
document.write ("<li class=\"subtopic\"><a href=\"connect_parish.htm\">Parish</a></li>") 
document.write ("<li class=\"subtopic\"><a href=\"connect_school.htm\">School</a></li>") 
document.write ("</ul>")
document.write ("</li>")   
//-- Contacts Navigation Above //  
document.write ("<li class=\"sub\"><a href=\"olg_directions.htm\">Directions</a></li>") 
document.write ("<li class=\"sub\"><a href=\"olg_forms.htm\">Forms/Documents</a></li>")
   
 //-- General Information Navigation Below //
 document.write ("<li  class=\"expsub\">General Info")
 document.write ("<ul>")  
 document.write ("<li class=\"subtopic\"><a href=\"olg_directions.htm\">Directions</a></li>") 
 document.write ("<li class=\"subtopic\"><a href=\"olg_donations.htm\">Donations</a></li>")
 document.write ("<li class=\"subtopic\"><a href=\"olg_facility_map.htm\">Facility/Campus Map</a></li>")  
 document.write ("<li class=\"subtopic\"><a href=\"facility_use.htm\">Facility Use Policy</a></li>")
 document.write ("<li class=\"subtopic\"><a href=\"fundraisers.htm\">Fund Raising Policy</a></li>")
 document.write ("</ul>")
 document.write ("</li>")  
 //-- General Information Navigation Above //
 
 document.write ("<li class=\"sub\"><a href=\"olg_masstimes.htm\">Mass Schedule</a></li>")
 
  //-- Ministries Navigation Below //
  document.write ("<li class=\"sub\"><a href=\"ministries.htm\">Ministries</a></li>") 
  //-- Ministries Navigation Above // 
 
 //-- Related Links Below //
 document.write ("<li  class=\"expsub\">Related Links")
 document.write ("<ul>")
 document.write ("<li class=\"subtopic\"><a href=\"http://www.archindy.org\">Archdiocese of Indy</a></li>") 
 document.write ("<li class=\"subtopic\"><a href=\"http://www.christianhelpinc.org\">Christian Help, Inc.</a></li>")
 document.write ("<li class=\"subtopic\"><a href=\"http://www.kofcgreenwood.org\">Knights of Columbus</a></li>")
 document.write ("<li class=\"subtopic\"><a href=\"http://www.svdpindy.org\">St. Vincent<br />&nbsp;DePaul Society</a></li>") 
 document.write ("<li class=\"subtopic\"><a href=\"http://www.saintmeinrad.edu\">St. Meinrad School</a></li>") 
 document.write ("</ul>")
 document.write ("</li>")   
 //-- Related Links Above // 

 //-- Sacraments Navigation Below //
 document.write ("<li  class=\"expsub\">Sacraments")
 document.write ("<ul>")
 document.write ("<li class=\"subtopic\"><a href=\"sacraments.htm\">Baptism</a></li>")
 document.write ("<li class=\"subtopic\"><a href=\"sacraments.htm#sacraments_reconciliation\">Reconciliation</a></li>")
 document.write ("<li class=\"subtopic\"><a href=\"sacraments.htm#sacraments_eucharist\">Eucharist</a></li>")
 document.write ("<li class=\"subtopic\"><a href=\"sacraments.htm#sacraments_confirmation\">Confirmation</a></li>")
 document.write ("<li class=\"subtopic\"><a href=\"sacraments.htm#sacraments_matrimony\">Matrimony</a></li>")
 document.write ("<li class=\"subtopic\"><a href=\"sacraments.htm#sacraments_holyorders\">Holy Orders</a></li>")
 document.write ("<li class=\"subtopic\"><a href=\"sacraments.htm#sacraments_anointing\">Anointing of the Sick</a></li>")
 document.write ("</ul>")
 document.write ("</li>") 
 //-- Sacraments Navigation Above // 
 
 document.write ("<li class=\"sub\"><a href=\"http://www.ol-g.org\">School Website</a></li>")
 document.write ("<li class=\"sub\"><a href=\"olg_sitemap.htm\">Site Map</a></li>") 
 document.write ("<li class=\"sub\"><a href=\"olg_virtus.htm\">Virtus Training</a></li>")
 document.write ("</ul>")    
 document.write ("</div>") 
}

//----------------------------------------------------------------------------
// Common code to include at the bottom of each web page is listed below.
//----------------------------------------------------------------------------

function load_footer( )
{
  document.write("<div id=\"footer\">")
  document.write("<p>")
  document.write ("&copy; Copyright 2008&mdash;2012, Our Lady of the Greenwood Queen of the Holy Rosary, All Rights Reserved.")
  document.write("</p>")
  document.write("<p style=\"text-align: center; margin-top: 0px; margin-bottom: 5px; font-weight: normal;\">")
  document.write("<a href=\"olg_disclaimer.htm\">Site Disclaimer</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"connect_parish.htm\">Contact Us</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"olg_sitemap.htm\">Site Map</a></p>")
  document.write("</div>") 
}

//----------------------------------------------------------------------------
// Common code to include at the bottom of each web page is listed below.
//----------------------------------------------------------------------------

function load_home_footer( )
{
  document.write("<div id=\"footer\">")
  document.write("<p>")
  document.write ("&copy; Copyright 2008&mdash;2012, Our Lady of the Greenwood Queen of the Holy Rosary, All Rights Reserved.")
  document.write("</p>")
  document.write("<p style=\"text-align: center; margin-top: 0px; margin-bottom: 5px; font-weight: normal;\">")
  document.write("<a href=\"olg_disclaimer.htm\">Site Disclaimer</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"connect_parish.htm\">Contact Us</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"olg_sitemap.htm\">Site Map</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"http://mail.olgreenwood.org/Login.aspx\">OLG Staff Login</a></p>")
  document.write("</div>") 
}

//----------------------------------------------------------------------------
// Common code to load div header-top area listed below.
//----------------------------------------------------------------------------

function load_header_top( )
{
  document.write("<div id=\"header-top\">")
  document.write("<table cellspacing=\"0\" id=\"maintable\" border=\"0\">")
  document.write("<tr>")
  document.write("<td style=\"width: 20%;\"><a href=\"index.htm\" style=\"text-decoration: none;\"><img class=\"rosary\" src=\"images/olg_rosary_logo.gif\" alt=\"OlG Rosary Logo\" /></a></td>")
  document.write("<th style=\"width: 55%;\"><img class=\"olgtitle\" src=\"images/olg_title.gif\" alt=\"Our Lady of the Greenwood Queen of the Holy Rosary\" /></th>")
  document.write("<td style=\"width: 25%;\"><img class=\"logo\" src=\"images/olg_church_logo.gif\" alt=\"OLG Church and Madonna Logo\" /></td>")
  document.write("</tr>")
  document.write("</table>")
  document.write("</div>")
}  
//  The function below sets up the current date and time for display //
function get_date()
{
  dayName = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")
  monName = new Array ("Jan", "Feb", "March", "April", "May", "June", "July", "August", "Sept", "Oct", "Nov", "Dec")
  now = new Date
  function message(text)
  {
    window.status = text;
  }
  document.write(dayName[now.getDay()] +" " +monName[now.getMonth()] +" " +now.getDate() +", " +now.getFullYear() +" ")
}
//----------------------------------------------------------------------------
// Page last updated common code
//----------------------------------------------------------------------------
  function load_comleft()
  {
  document.write("<p class=\"archdiocese\">Archdiocese of Indianapolis</p>") 
  document.write("<p class=\"imglink\"><a href=\"http://www.archindy.org\"><img class=\"archindy\" src=\"images/archindy.gif\" alt=\"Archdiocese of Indianapolis\" /></a></p>")
  document.write("<p class=\"revdate\">Page Last Updated:<br />&nbsp;" + document.lastModified + "</p>")    
  }
 
  function popup(url, name, width, height)
  {
  settings=
  "toolbar=no,location=no,directories=yes,"+
  "status=no,menubar=yes,scrollbars=yes,"+
  "resizable=yes,width="+width+",height="+height;
  
  MyNewWindow=window.open("http://www.olgreenwood.org/"+url,name,settings);
  }  
  
  //----------------------------------------------------------------------------
  // Common code to include for contact information is listed below.
  //----------------------------------------------------------------------------
  
  function load_contact()
  {
    document.write("<ul class=\"item_lists\">")
    document.write("<li>")
    document.write("Submitting an email from our general address through our ")
    document.write("<a href=\"connect_parish.htm\" />")
    document.write("<span style=\"white-space: nowrap;\">")
    document.write("parish contact</span></a>")
    document.write(" page. (Note:&nbsp;&nbsp;Please include in the body of your text message the name of the ministry you wish to contact.);")
    document.write("</li>") 
    document.write("<li>")
    
    document.write("Contacting the parish office during regular business hours at (317) 888-2861; or")
    document.write("</li>")
    document.write("<li>")
    document.write("Contacting the chairperson whose name and phone number is listed in your Parish Resource Book.")
    document.write("</li>") 
    document.write("</ul>") 
}
 //----------------------------------------------------------------------------
  // Common code to include for contact information is listed below.
  //----------------------------------------------------------------------------
  
  function load_ministry_contact()
  {
    document.write("<ul class=\"item_bullets\">")
    document.write("<li>")
    document.write("Submitting an email from our general address through our ")
    document.write("<a href=\"connect_parish.htm\" />")
    document.write("<span style=\"white-space: nowrap;\">")
    document.write("parish contact</span></a>")
    document.write(" page. (Note:&nbsp;&nbsp;Please include in the body of your text message the name of the ministry you wish to contact.);")
    document.write("</li>") 
    document.write("<li>")
    
    document.write("Contacting the parish office during regular business hours at (317) 888-2861; or")
    document.write("</li>")
    document.write("<li>")
    document.write("Contacting the chairperson whose name and phone number is listed in your Parish Resource Book.")
    document.write("</li>") 
    document.write("</ul>") 
}

function load_gen01()
{
  document.write("<a href=\"m&#97;&#105;l&#116;o&#58;info&#64;olgreenwood.org\">")     
}
function load_msgr01()
{
 document.write("<a href=\"m&#97;&#105;l&#116;o&#58;msvarczkopf&#64;olgreenwood.org\">") 
}
function load_ddh01()
{
 document.write("<a href=\"m&#97;&#105;l&#116;o&#58;dmhenn&#64;gmail.com\">") 
}
function load_aaph01()
{
 document.write("<a href=\"m&#97;&#105;l&#116;o&#58;peggy&#64;olgreenwood.org\">") 
}
function load_pajk01()
{
 document.write("<a href=\"m&#97;&#105;l&#116;o&#58;judy&#64;olgreenwood.org\">") 
}
function load_bmfr01()
{
 document.write("<a href=\"m&#97;&#105;l&#116;o&#58;fran&#64;olgreenwood.org\">") 
}
function load_mdjh01()
{
 document.write("<a href=\"m&#97;&#105;l&#116;o&#58;jeffhavens&#64;olgreenwood.org\">") 
}
function load_vcbc01()
{
 document.write("<a href=\"m&#97;&#105;l&#116;o&#58;becky&#64;olgreenwood.org\">") 
}
function load_bkds01()
{
 document.write("<a href=\"m&#97;&#105;l&#116;o&#58;diane&#64;olgreenwood.org\">") 
}
function load_aaps01()
{
 document.write("<a href=\"m&#97;&#105;l&#116;o&#58;pschnarr&#64;olgreenwood.org\">") 
}
function load_aasm01()
{
 document.write("<a href=\"m&#97;&#105;l&#116;o&#58;sandymc&#64;olgreenwood.org\">") 
}
function load_cmls01()
{
 document.write("<a href=\"m&#97;&#105;l&#116;o&#58;larry&#64;ol-g.org\">") 
}
function load_juza01()
{
 document.write("<a href=\"m&#97;&#105;l&#116;o&#58;bulletin&#64;olgreenwood.org\">") 
}
function load_wmst01()
{
 document.write("<a href=\"m&#97;&#105;l&#116;o&#58;gwmsue&#64;olgreenwood.org\">") 
}
function load_dsdtc01()
{
 document.write("<a href=\"m&#97;&#105;l&#116;o&#58;tony&#64;olgreenwood.org\">") 
}
function load_srusm01()
{
 document.write("<a href=\"m&#97;&#105;l&#116;o&#58;srushattamary&#64;olgreenwood.org\">") 
}
