/***********************************************************************************
*	(c) Ger Versluis 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7)
*	For info write to menus@burmees.nl		          *
*	You may remove all comments for faster loading	          *		
***********************************************************************************/

	var adminPage = 0;			// Is this page an admin style
	var LowBgColor='#DFDFFF';			// Background color when mouse is not over
	var LowSubBgColor='#DFDFFF';			// Background color when mouse is not over on subs
	var HighBgColor='#4040AA';			// Background color when mouse is over
	var HighSubBgColor='#4040AA';			// Background color when mouse is over on subs
	var FontLowColor='black';			// Font color when mouse is not over
	var FontSubLowColor='black';			// Font color subs when mouse is not over
	var FontHighColor='white';			// Font color when mouse is over
	var FontSubHighColor='white';			// Font color subs when mouse is over
	var BorderColor='';				// Border color
	var BorderSubColor='#444444';			// Border color for subs
	var BorderWidth=1;				// Border width
	var BorderBtwnElmnts=0;				// Border between elements 1 or 0
	var FontFamily= 'Tahoma, Arial, Helvetica, sans-serif';	// Font family menu items
	var mFontSize=8;					// Font size menu items
	var mFontBold=0;					// Bold menu items 1 or 0
	var mFontItalic=0;				// Italic menu items 1 or 0
	var MenuTextCentered='left';			// Item text position 'left', 'center' or 'right'
	var MenuCentered='left';			// Menu horizontal position 'left', 'center' or 'right'
	var MenuVerticalCentered='top';			// Menu vertical position 'top', 'middle','bottom' or static
	var ChildOverlap=.2;				// horizontal overlap child/ parent
	var ChildVerticalOverlap=.2;			// vertical overlap child/ parent
	var StartTop=1;					// Menu offset x coordinate
	var StartLeft=108;				// Menu offset y coordinate
	var VerCorrect=0;				// Multiple frames y correction
	var HorCorrect=0;				// Multiple frames x correction
	var LeftPaddng=5;				// Left padding
	var TopPaddng=4;				// Top padding
	var FirstLineHorizontal=0;			// SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
	var MenuFramesVertical=1;			// Frames in cols or rows 1 or 0
	var DissapearDelay=1080;			// delay before menu folds in
	var TakeOverBgColor=1;				// Menu frame takes over background color subitem frame
	var FirstLineFrame='navig';			// Frame where first level appears
	var SecLineFrame='space';			// Frame where sub levels appear
	var DocTargetFrame='space';			// Frame where target documents appear
	var TargetLoc='';				// span id for relative positioning
	var HideTop=0;					// Hide first level when loading new document 1 or 0
	var MenuWrap=1;					// enables/ disables menu wrap 1 or 0
	var RightToLeft=0;				// enables/ disables right to left unfold 1 or 0
	var UnfoldsOnClick=0;				// Level 1 unfolds onclick/ onmouseover
	var WebMasterCheck=0;				// menu tree checking on or off 1 or 0
	var ShowArrow=0;				// Uses arrow gifs when 1
	var KeepHilite=1;				// Keep selected path highligthed
	var ItemHeight = 22;			// Height of each menu item
	var Arrws=['',0,0,'',0,0,'',0,0];	// Arrow source, width and height
	var Separator = " \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305 \u0305";

function BeforeStart(){sMenu();return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}


// Menu tree
//	MenuX=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);
//	For rollover images set 'Text to show' to:  'rollover:Image1.jpg:Image2.jpg'

Menu1=new Array('Home','/home/index.php','',10,ItemHeight,108);
	Menu1_1=new Array('Welcome','/index.php','',0,ItemHeight,160);	
	Menu1_2=new Array('Church Contacts','/home/contacts.php','',0,ItemHeight,160);	
	Menu1_3=new Array('Useful Links','/home/links.php','',0,ItemHeight,160);	
	Menu1_4=new Array('Contact Form','/home/feedback.php','',0,ItemHeight,160);	
	Menu1_5=new Array('Message Board','/home/messages.php','',0,ItemHeight,160);	
	Menu1_6=new Array('The Spire current issue','/home/thespire.php','',0,ItemHeight,160);	
	Menu1_7=new Array('The Spire past issues','/home/spire/index.php','',0,ItemHeight,160);	
	Menu1_8=new Array('Frequently Asked Questions','/home/faq.php','',0,ItemHeight,160);	
	Menu1_9=new Array('Money Matters','/home/giving.php','',0,ItemHeight,160);	
	Menu1_10=new Array('Other Interesting Stuff','/home/other/index.php','',0,ItemHeight,160);	

Menu2=new Array('Worship','/worship/index.php','',3,ItemHeight,108);
	Menu2_1=new Array('Weekly Calendar','/worship/worship_cycle.php','',0,ItemHeight,120);	
	Menu2_2=new Array('Sermons','/worship/sermons.php','',0,ItemHeight,120);
	Menu2_3=new Array('Daily Prayer','/worship/daily_service.php','',0,ItemHeight,120);

Menu3=new Array('Diary/News/Photos','/diary/index.php','',6,ItemHeight,108);
	Menu3_1=new Array('Services','/diary/service_diary.php','',0,ItemHeight,150);
	Menu3_2=new Array('Other Events','/diary/events_diary.php','',0,ItemHeight,150);
	Menu3_3=new Array('Calendar','/diary/calendar.php','',0,ItemHeight,150);
	Menu3_4=new Array('Pewsheets','/worship/pewsheets.php','',0,ItemHeight,150);
	Menu3_5=new Array('News','/diary/news_list.php','',0,ItemHeight,150);
	Menu3_6=new Array('Photo Galleries','/gallery/index.php','',0,ItemHeight,150);

Menu4=new Array('Prayer','/prayer/index.php','',2,ItemHeight,108);
	Menu4_1=new Array('Prayer Calendar','/prayer/prayer_diary.php','',0,ItemHeight,150);
	Menu4_2=new Array('Special Prayers','','',2,ItemHeight,150);
		Menu4_2_1=new Array('List prayers','/prayer/specialprayers.php','',0,ItemHeight,80);
		Menu4_2_2=new Array('Add a prayer','/prayer/prayer_req.php','',0,ItemHeight,80);

Menu5=new Array('Young People','/youth/index.php','',2,ItemHeight,108);
	Menu5_1=new Array('Junior Church (4 - 8)','/youth/junior.php','',0,ItemHeight,140);
	Menu5_2=new Array('C4Yourself (8 - 11)','/youth/c4yourself.php','',0,ItemHeight,140);

Menu6=new Array('Resources','/resources/index.php','',6,ItemHeight,108);
	Menu6_1=new Array('Christenings','/resources/christening.php','',2,ItemHeight,140);
		Menu6_1_1=new Array('The Basics','/resources/christening_sub1.php','',0,ItemHeight,140);
		Menu6_1_2=new Array('Nuts & Bolts','/resources/christening_sub2.php','',0,ItemHeight,140);
	Menu6_2=new Array('Baptism & Confirmation','/resources/baptism.php','',0,ItemHeight,140);
	Menu6_3=new Array('Weddings','/resources/marriage.php','',3,ItemHeight,140);
		Menu6_3_1=new Array('CofE website','http://www.yourchurchwedding.org/','',0,ItemHeight,140);
		Menu6_3_2=new Array('The Music','/resources/wedding_music.php','',0,ItemHeight,140);
		Menu6_3_3=new Array('The Flowers','/resources/wedding_flowers.php','',0,ItemHeight,140);
	Menu6_4=new Array('Funerals','/resources/funerals.php','',4,ItemHeight,140);
		Menu6_4_1=new Array('CofE website','http://cofe.anglican.org/lifeevents/funerals/','',0,ItemHeight,220);
		Menu6_4_2=new Array('Cruse Bereavement Care','http://www.crusebereavementcare.org.uk/','',0,ItemHeight,220);
		Menu6_4_3=new Array('Age Concern','http://www.ageconcern.org.uk/AgeConcern/fs27.asp','',0,ItemHeight,220);
		Menu6_4_4=new Array('National Association of Funeral Directors','http://www.nafd.org.uk/','',0,ItemHeight,220);
	Menu6_5=new Array('Home Visits','/resources/visits.php','',0,ItemHeight,140);
	Menu6_6=new Array('Garden of Remembrance','/resources/remembrance.php','',1,ItemHeight,140);
		Menu6_6_1=new Array('Memorial Plaques','/resources/plaques.php','',0,ItemHeight,140);
	
Menu7=new Array('The Parish','/parish/index.php','',10,ItemHeight,108);
	Menu7_1=new Array('Location','/parish/location.php','',0,ItemHeight,160);
	Menu7_2=new Array('Extent / Street Names','/parish/parish_streets.php','',0,ItemHeight,160);
	Menu7_3=new Array('Useful Telephone Numbers','/parish/community_contacts.php','',0,ItemHeight,160);
	Menu7_4=new Array('Community Links','/parish/community_links.php','',0,ItemHeight,160);
	Menu7_5=new Array('About North Holmwood','/parish/NorthHolmwood.php','',0,ItemHeight,160);
	Menu7_6=new Array('Some Famous Parishioners','/parish/famous.php','',0,ItemHeight,160);
	Menu7_7=new Array('The Church Building','/parish/church.php','',0,ItemHeight,160);
	Menu7_8=new Array('The Parish Room','/parish/parishroom.php','',0,ItemHeight,160);
	Menu7_9=new Array('The Church Grounds','/parish/grounds.php','',0,ItemHeight,160);
	Menu7_10=new Array('Genealogy / Parish Records','/parish/parish_records.php','',0,ItemHeight,160);

Menu8=new Array('Outreach','/outreach/index.php','',4,ItemHeight,108);
	Menu8_1=new Array('Mothers\' Union','/outreach/mu.php','',0,ItemHeight,200);
	Menu8_2=new Array('Knit One, Purl One, Save One','/outreach/koposo.php','',0,ItemHeight,200);
	Menu8_3=new Array('World Vision','/outreach/wv_2.php','',0,ItemHeight,200);
	Menu8_4=new Array('Links Friends','/outreach/links_friends.php','',0,ItemHeight,200);

Menu9=new Array("Site Map","/sitemap.php","",0,ItemHeight,108);
Menu10=new Array("","","",0,ItemHeight,108);
Menu11=new Array("","","",0,ItemHeight,108);
Menu12=new Array("Login","/login.php","",0,ItemHeight,108);// Now we can declare the number of menus
	
	var NoOffFirstLineMenus=12;			// Number of first level items	
	// Function to position main menus with respect to the MAINTABLE
	function sMenu()
	{
		src = document.getElementById("MAINTABLE");
		element_height = src.offsetHeight;
		element = src;
		offset_x = 0;
		offset_y = 0;
		while (element.nodeName!="BODY")
		{
			offset_x += element.offsetLeft;
			offset_y += element.offsetTop;
			element = element.offsetParent;
		}
		StartTop=offset_y+8;		
		StartLeft=offset_x+7;
	}

