/*-----------------------Drop down menus------------------------------------*/
function mmLoadMenus() {
  if (window.mm_menu_1217172308_0) return;
  window.mm_menu_1217172308_0 = new Menu("root",155,20,"Arial, Helvetica, sans-serif",12,"#E8D5B4","#690000","#574218","#AD832F","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1217172308_0.addMenuItem("STAFF","location='staff.htm'");
  mm_menu_1217172308_0.addMenuItem("DENOMINATION","location='denomination.htm'");
  mm_menu_1217172308_0.addMenuItem("HISTORY","location='history.htm'");
  mm_menu_1217172308_0.addMenuItem("STATEMENT&nbsp;OF&nbsp;FAITH","location='faithstatement.htm'");
  mm_menu_1217172308_0.addMenuItem("11&nbsp;CORE&nbsp;VALUES","location='corevalues.htm'");
  mm_menu_1217172308_0.addMenuItem("I’M&nbsp;NEW","location='imnew.htm'");
   mm_menu_1217172308_0.addMenuItem("FEATURED EVENTS","location='javascript: events();'");
   mm_menu_1217172308_0.hideOnMouseOut=true;
   mm_menu_1217172308_0.bgColor='#E8D5B4';
   mm_menu_1217172308_0.menuBorder=1;
   mm_menu_1217172308_0.menuLiteBgColor='#E8D5B4';
   mm_menu_1217172308_0.menuBorderBgColor='#574218';

  window.mm_menu_1217172408_0 = new Menu("root",190,20,"Arial, Helvetica, sans-serif",12,"#E8D5B4","#690000","#574218","#AD832F","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1217172408_0.addMenuItem("CHILDREN","location='children.htm'");
  mm_menu_1217172408_0.addMenuItem("YOUTH","location='youth.htm'");
  mm_menu_1217172408_0.addMenuItem("ADULT","location='adult.htm'");
  mm_menu_1217172408_0.addMenuItem("ADULT&nbsp;REGULAR&nbsp;ACTIVITIES","location='adultactivity.htm'");
  mm_menu_1217172408_0.addMenuItem("EDUCATION&nbsp;&&nbsp;DISCIPLESHIP","location='education.htm'");
  mm_menu_1217172408_0.addMenuItem("CARING&nbsp;&&nbsp;SUPPORT","location='caring.htm'");
  mm_menu_1217172408_0.addMenuItem("PRAYER","location='prayer.htm'");
  mm_menu_1217172408_0.addMenuItem("WORSHIP&nbsp;ARTS","location='worshipart.htm'");
 // mm_menu_1217172408_0.addMenuItem("THE&nbsp;MISSIO&nbsp;DEI","location='javascript:;'");
   mm_menu_1217172408_0.hideOnMouseOut=true;
   mm_menu_1217172408_0.bgColor='#E8D5B4';
   mm_menu_1217172408_0.menuBorder=1;
   mm_menu_1217172408_0.menuLiteBgColor='#E8D5B4';
   mm_menu_1217172408_0.menuBorderBgColor='#574218';

  window.mm_menu_1217172540_0 = new Menu("root",190,20,"Arial, Helvetica, sans-serif",12,"#E8D5B4","#690000","#574218","#AD832F","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1217172540_0.addMenuItem("UPCOMING&nbsp;OPPORTUNITIES","location='javascript:upcomingtrips();'");
  mm_menu_1217172540_0.addMenuItem("PREVIOUS&nbsp;TRIPS","location='javascript:trip();'");
   mm_menu_1217172540_0.hideOnMouseOut=true;
   mm_menu_1217172540_0.bgColor='#E8D5B4';
   mm_menu_1217172540_0.menuBorder=1;
   mm_menu_1217172540_0.menuLiteBgColor='#E8D5B4';
   mm_menu_1217172540_0.menuBorderBgColor='#574218';

mm_menu_1217172540_0.writeMenus();
}
/*-----------------------Drop down menus------------------------------------*/

/*-----------------------Include function------------------------------------*/
function include_file(id, url) {
	
  var req = false;
  // For Safari, Firefox, and other non-MS browsers
  if (window.XMLHttpRequest) {
    try {
      req = new XMLHttpRequest();
    } catch (e) {
      req = false;
    }
  } else if (window.ActiveXObject) {
    // For Internet Explorer on Windows
    try {
      req = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        req = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e) {
        req = false;
      }
    }
  }
 var element = document.getElementById(id);
  if (req) {
    // Synchronous request, wait till we have it all
	req.open('GET', url, false);
    req.send(null);
    element.innerHTML = req.responseText;
  } 
}
/*-----------------------Include function------------------------------------*/

/*--------------------------holdlink() ----------------------------*/
function holdlink(id1,id2) {		
	if (id2=='children' || id2=='youth') {
		document.getElementById(id1).className='navhover';
		document.getElementById(id1).onmouseout='navhover';
		document.getElementById('defaultheader').style.display='none';
		document.getElementById('defaulttop').style.display='none';
	}
	else
		holdlink1(id1);
}
	
function holdlink1(id1) {
	document.getElementById(id1).className='navhover';
	document.getElementById(id1).onmouseout='navhover';
	document.getElementById('defaultheader').style.display='';
	document.getElementById('defaulttop').style.display='';
}
/*--------------------------holdlink() ----------------------------*/

/*--------------------------staff page() ----------------------------*/
function show(id){
		if(document.getElementById(id).style.display==''){
			document.getElementById(id).style.display='none';
			document.getElementById(id+'up').style.display='';
			document.getElementById(id+'down').style.display='none';
		}else {
			document.getElementById(id).style.display='';
			document.getElementById(id+'up').style.display='none';
			document.getElementById(id+'down').style.display='';
		}
	 }
/*--------------------------staff page() ----------------------------*/

/*----------------------------popup functions--------------------------*/
function events()
{
	var NewWin;
	NewWin1=window.open("featuredevents.htm",'NewWin2','height=450,width=671,top=20,left=50,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes');
	NewWin1.focus();

}

function prayer()
{
	var NewWin;
	NewWin1=window.open("requestprayer.htm",'NewWin2','height=350,width=420,top=20,left=50,location=no,status=no,toolbar=no,menubar=no,scrollbars=no');
	NewWin1.focus();

}

function trip()
{
	var NewWin;
	NewWin1=window.open("gallery.htm",'NewWin2','height=580,width=650,top=20,left=50,location=no,status=no,toolbar=no,menubar=no,scrollbars=no');
	NewWin1.focus();

}

function upcomingtrips()
{
	var NewWin;
	NewWin1=window.open("upcomingtrips.htm",'NewWin2','height=590,width=671,top=20,left=50,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes');
	NewWin1.focus();

}
/*----------------------------popup functions--------------------------*/