var agent       = navigator.userAgent.toLowerCase(); 
var isIE        = (navigator.appName == "Microsoft Internet Explorer") ? true : false;
var isNetscape6 = (!document.all && !document.layers && navigator.appName == "Netscape" && parseInt(navigator.appVersion,10) >=5) ? true : false;
var isMac       = (agent.indexOf("mac") != -1) ? true : false;
var isIE4       = (agent.indexOf("msie") != -1 && agent.indexOf("4.0;") != -1) ? true : false;
var isNetscape  = (agent.indexOf("mozilla") != -1 && agent.indexOf("4.") != -1) ? true : false;
var win2000     = ((agent.indexOf("winnt") != -1) || (agent.indexOf("windows nt 5.0") != -1)) ? true : false; 
var winXP       = ((agent.indexOf("winnt") != -1) || (agent.indexOf("windows nt 5.1") != -1)) ? true : false; 
var isWin       = (agent.indexOf("windows") != -1) ? true : false;
var isMoz       = (agent.indexOf("gecko") != -1) ? true : false;
var menus = new Array();
var top        = (typeof(MENU_top) == 'undefined')        ? 76     : MENU_top;
var start_left = (typeof(MENU_start_left) == 'undefined') ? 8     : MENU_start_left;
menus[0] = new Object();
menus[0].left    = start_left + ((isIE) ? 91 : 90);
menus[0].top     = top;
menus[0].over_function = function () {
navigation_over(0);
};
menus[0].out_function  = function () {
navigation_out(0);
};
menus[0].content = 
[
{text	: "About Us Home",
url		: '/about/'},

	{text 	: "About The Diocese",
	url  	: '/about/about.html'},
	{text	: 'About This Website',
	url		: '/about/about_this_site.html'},
	{text	: "Bishop's Welcome",
	url		: '/about/bishops_message.html'},
	{text	: 'Committees',
	url		: '/about/committees.html'},
	{text	: 'Deaneries',
	url		: '/about/structured/deaneries/'},
	{text	: 'How We Are Structured',
	url		: '/about/structured/'},
	{text 	: 'Our History',
	url		: '/about/history.html'},
	{text	: 'Parishes',
	url		: '/about/structured/deaneries/parishes.html'},
	{text	: 'Synodical Government',
	url		: '/about/structured/synodical_government.html'},
	{text	: 'The Bishops of Ely',
	url		: '/about/bishops.html'},
	{text	: 'The Good &amp; The Great',
	url		: '/about/good_and_great/'},
	{text	: 'What We Believe',
	url		: '/about/what_we_believe.html'},
	{text 	: "Who's Who",
	url  	: '/about/whos_who/'}	
];


menus[1] = new Object();
menus[1].left    = start_left + ((isIE) ? 148 : 147);
menus[1].top     = top;
menus[1].over_function = function () {
navigation_over(1);
};
menus[1].out_function  = function () {
navigation_out(1);
};
menus[1].content = 
[
{text	: 'News &amp; Events Home',
url     : '/news_events/'},

	{text 	: 'Announcements',
	url  	: '/news_events/media/announcements/'},
	
	{text 	: 'Events',
	url  	: '/news_events/events.html',
	content : 
	[
		{text : 'Diocesan events',
		url  : '/900/900diary.html'},
		{text : 'Parish and local events',
		url  : '/900/parish_events.html'},
		{text : 'Regional events',
		url  : '/news_events/regional.html'},
		{text : 'Learning and Study events',
		url  : '/news_events/learning-study.html'}
		]
	},

	{text	: 'Lambeth 2008',
	url		: '/news_events/lambeth2008.html'},
	{text	: 'Mailing Lists',
	url		: '/news_events/mailing_lists.html'},
	{text	: 'Meet The Communications Team',
	url		: '/news_events/meet_the_team.html'},
	{text 	: 'Picture Gallery',
	url  	: '/news_events/media/gallery/'},
	{text 	: 'Press Releases',
	url  	: '/news_events/media/press/'},
	{text	: 'Promote Your Church: Media Tips',
	url		: '/news_events/promote_your_church.html'},
	{text	: 'Reports and photographs from Ely 900 events',
	url		: '/900/reports.html'}
];

menus[2] = new Object();
menus[2].left    = start_left + ((isIE) ? 235 : 233);
menus[2].top     = top;
menus[2].over_function = function () {
navigation_over(2);
};
menus[2].out_function  = function () {
navigation_out(2);
};
menus[2].content = 
[
{text   : "Mission &amp; Ministry Home",
url     : '/mission_ministry/'},

{text    : "All Good Gifts",
url     : '/mission_ministry/all_good_gifts/'},

{text   : "Christian Giving",
url     : '/mission_ministry/christian_giving/',
	content : 
	[
	{text : 'Annual Renewal',
	url  : '/mission_ministry/christian_giving/annual_renewal.html'},
	{text : 'Fundraising',
	url  : '/mission_ministry/christian_giving/fundraising.html'},
	{text : 'Legacy Policies',
	url  : '/mission_ministry/christian_giving/legacy_policies.html'},
	{text : 'Misconceptions',
	url  : '/mission_ministry/christian_giving/misconceptions.html'},
	{text : 'Notes on Christian Giving',
	url  : '/mission_ministry/christian_giving/notes_on_christian_giving.html'},
	{text : 'Theology of Stewardship',
	url  : '/mission_ministry/christian_giving/theology_stewardship.html'},
	{text : 'Who does What',
	url  : '/mission_ministry/christian_giving/who_does_what.html'}
	]
},


{text    : 'Church Army',
url     : '/mission_ministry/church_army.html'},

{text    : 'Conferences &amp; Retreats',
url     : '/mission_ministry/conferences_retreats.html'},

{text   : "Evangelism",
url     : '/mission_ministry/evangelism/',
	content : 
	[
	{text : 'Growing Healthy Churches',
	url  : '/mission_ministry/evangelism/growing_healthy.html'},
	{text : 'Lost for Words',
	url  : '/mission_ministry/evangelism/lost_words.html'},
	{text : 'Parish Evangelists',
	url  : '/mission_ministry/evangelism/parish_evangelists.html'},
	{text : 'Short Courses',
	url  : '/mission_ministry/evangelism/short_courses.html'}
	]
	},

{text 	: 'Fresh Expressions',
url  	: '/mission_ministry/fresh_expressions/index.html',
	content : 
	[
	{text : 'History',
	url   : '/mission_ministry/fresh_expressions/history.html'},
	{text : 'Resources',
	url   : '/mission_ministry/fresh_expressions/resources.html'},
	{text : 'Training',
	url   : '/mission_ministry/fresh_expressions/training.html'}
	]
},

{text    : 'Local Mission',
url     : '/mission_ministry/local_mission.html'},

{text    : 'Meet The Mission &amp; Ministry Team',
url     : '/mission_ministry/meet_the_team.html'},

{text    : "Ministerial &amp; Adult Learning",
url     : '/mission_ministry/adult_learning/ministerial_adult_learning.html',
	content : 
	[
	{text : 'Authorised Lay Ministry Training',
	url   : '/mission_ministry/adult_learning/alm_training.html'},
	{text : 'Licensed Lay Ministry Training',
	url   : '/mission_ministry/adult_learning/llm_training.html'},
	{text : 'Meet The Ministerial &amp; Adult Education Team',
	url   : '/mission_ministry/meet_the_team.html'}
	]
},

{text   : "Mission Action Planning",
url  	: '/mission_ministry/mission_action_planning/index.html'},

{text    : "Mothers' Union",
url     : '/mission_ministry/mothers_union.html'},

{text   : "Useful Mission Resources",
url  	: '/mission_ministry/mission_resources.html'},

{text    : "Vocation &amp; Ministry",
url     : '/mission_ministry/vocation_ministry/',
	content : 
	[
	{text : 'What is Vocation',
	url  : '/mission_ministry/vocation_ministry/what_is_vocation.html'},
	{text : 'Vocation to What',
	url  : '/mission_ministry/vocation_ministry/vocation_to_what.html'},
	{text : 'Vocations and Young People',
	url  : '/mission_ministry/vocation_ministry/vocation_young_people.html'},
	{text : 'The Vocations Team',
	url  : '/mission_ministry/vocation_ministry/vocations_team.html'},
	{text : 'Vocations events and opportunities',
	url  : '/mission_ministry/vocation_ministry/vocations_events.html'},
	{text : 'Vocations Resources',
	url  : '/mission_ministry/vocation_ministry/vocations_resources.html'},
	{text : 'FAQs',
	url  : '/mission_ministry/vocation_ministry/vocation_faqs.html'}
	]
},

{text   : "Working with Other Churches",
url     : '/mission_ministry/other_churches/'},
	
{text   : "Worldwide Church",
url     : '/church_in_community/church_in_society/world_mission.html'}

];

menus[3] = new Object();
menus[3].left    = start_left + ((isIE) ? 337 : 334);
menus[3].top     = top;
menus[3].over_function = function () {
navigation_over(3);
};
menus[3].out_function  = function () {
navigation_out(3);
};
menus[3].content = 
[
{text    : 'Church &amp; Community Home',
url     : '/church_in_community/'},

{text    : 'Church in Society',
url     : '/church_in_community/church_in_society/',

	content : 
	[
	{text    : 'Asylum Seekers',
	url     : '/church_in_community/church_in_society/asylum_seekers.html'},
	{text    : 'Church Urban Fund',
	url     : '/church_in_community/church_in_society/church_urban_fund.html'},
	{text    : 'Churches Regional Forum',
	url     : '/church_in_community/church_in_society/churches_regional_forum.html'},
	{text    : 'Criminal Justice',
	url     : '/church_in_community/church_in_society/criminal_justice.html'},
	{text    : 'Environmental Matters',
	url     : '/church_in_community/church_in_society/diocesan_environment_committee/'},
	{text    : 'Fairtrade',
	url     : '/fairtrade/'},
	{text    : 'Health',
	url     : '/church_in_community/church_in_society/health.html'},
	{text    : 'International Charity Work',
	url     : '/church_in_community/church_in_society/international_charity_work.html'},
	{text    : 'Local Voluntary Agencies',
	url     : '/church_in_community/church_in_society/local_voluntary_agencies.html'},
	{text    : 'Newsletter and Downloads',
	url     : '/church_in_community/church_in_society/downloads.html'},
	{text    : 'People at Work',
	url     : '/church_in_community/chaplaincies/workplace_chaplaincies.html'},
	{text    : 'Rural Matters',
	url     : '/church_in_community/church_in_society/rural_matters.html'},
	{text    : 'Travellers &amp; Gypsies',
	url     : '/church_in_community/church_in_society/travellers.html'},
	{text    : 'Working with Other Churches',
	url     : '/church_in_community/church_in_society/other_churches.html'},
	{text    : 'World Mission',
	url     : '/church_in_community/church_in_society/world_mission.html'}
]
},
	
{text    : 'Social &amp; Welfare Work',
url     : '/church_in_community/social_welfare.html'},

{text    : 'Chaplaincies',
url     : '/church_in_community/chaplaincies/',
	content : 
	[
	{text    : 'Among the Deaf',
	url     : '/church_in_community/chaplaincies/deaf_chaplaincies.html'},
	{text    : 'In the Hospital',
	url     : '/church_in_community/chaplaincies/hospital_chaplaincies.html'},
	{text    : 'In the Prison',
	url     : '/church_in_community/chaplaincies/prison_chaplaincies.html'},
	{text    : 'In the Workplace',
	url     : '/church_in_community/chaplaincies/workplace_chaplaincies.html'}
	]
},

{text    : 'University &amp; College Links',
url     : '/church_in_community/university_links/',
	content : 
	[
	{text    : 'Cambridge College Chapels',
	url     : '/church_in_community/university_links/cambridge_college_chapels.html'},
	{text    : 'Cambridge Theological Federation',
	url     : '/church_in_community/university_links/cambridge_theofed.html'},
	{text    : 'Anglia Ruskin University Chaplaincy',
	url     : '/church_in_community/university_links/apu_chaplaincy.html'}
	]
}
];

menus[4] = new Object();
menus[4].left    = start_left + ((isIE) ? 452 : 451);
menus[4].top     = top;
menus[4].over_function = function () {
navigation_over(4);
};
menus[4].out_function  = function () {
navigation_out(4);
};
menus[4].content = 
[
{text    : 'Information Home',
url     : '/information/'},

	{text    : "Archdeacons' Pages",
	url  : '/information/archdeacons_pages/'},
	{text    : 'Baptisms, Weddings &amp; Funerals',
	url     : '/information/births_deaths_marriages/',
	content : 
		[
		{text : 'Baptisms',
		url  : '/information/births_deaths_marriages/baptisms.html'},
		{text : 'Confirmations',
		url  : '/information/births_deaths_marriages/confirmations.html'},
		{text : 'Marriages',
		url  : '/information/births_deaths_marriages/marriages.html'},
		{text : 'Funerals',
		url  : '/information/births_deaths_marriages/funerals.html'},
		{text : 'Woodland Burials',
		url  : '/information/births_deaths_marriages/woodland_burial.html'},
		{text : 'Tracing your Ancestors?',
		url  : '/information/births_deaths_marriages/ancestors.html'}
		]
		},
	{text    : 'Book Reviews',
	url     : '/information/book_reviews.html'},
	{text    : 'Care of Churches - DAC',
	url     : '/information/care_of_churches/'},
	{text    : 'Child Protection and Criminal Records Bureau',
	url     : '/education/children/child_protection/'},
	{text    : 'Clergy Housing',
	url     : '/information/clergy_housing/'},
	{text    : 'Diocesan Downloads',
	url     : '/information/document_downloads.html'},
	{text    : 'Diocesan Handbook',
	url     : '/information/diocesan_handbook.html'},
	{text    : 'Finance',
	url     : '/information/finance/',
		content : 
		[
		{text : 'Christian Giving',
		url  : '/mission_ministry/christian_giving/'},
		{text : 'Diocesan Budget',
		url  : '/information/finance/diocesan_budget.html'},
		{text : 'Gift Aid',
		url  : '/information/finance/gift_aid.html'},
		{text : 'Ministry Share',
		url  : '/information/finance/ministry_share.html'}
	]
	},
	{text    : 'Meet The Administration Team',
	url     : '/information/meet_the_team.html'},
	{text    : 'Resources and Useful Links',
	url     : '/information/links/'},
	{text    : 'Vacancies',
	url     : '/information/vacancies.html'}
];

menus[5] = new Object();
menus[5].left    = start_left + ((isIE) ? 525 : 525);
menus[5].top     = top;
menus[5].over_function = function () {
navigation_over(5);
};
menus[5].out_function  = function () {
navigation_out(5);
};
menus[5].content  = 
[
{text    : 'Worship &amp; Prayer Home',
url     : '/worship_prayer/'},

{text    : 'Worship',
url     : '/worship_prayer/worship.html',
	content : 
	[
	{text : 'What is Worship?',
	url  : '/worship_prayer/what_is_worship.html'},
	{text : 'Common Worship',
	url  : '/worship_prayer/common_worship.html'},
	{text : 'Book of Common Prayer',
	url  : '/worship_prayer/book_of_prayer.html'},
	{text : 'Holy Communion',
	url  : '/worship_prayer/holy_communion.html'},
	{text : 'Baptism',
	url  : '/worship_prayer/baptism.html'},
	{text : 'Liturgy Resources',
	url  : '/worship_prayer/liturgy_resources.html'}
	]
},

{text    : 'Prayer',
url     : '/worship_prayer/prayer.html',
	content :
	[
	{text : 'What is Prayer?',
	url  : '/worship_prayer/what_is_prayer.html'},
	{text : 'Useful prayers',
	url  : '/worship_prayer/useful_prayers.html'},
	{text : 'Prayer Calendar',
	url  : '/worship_prayer/prayer_calendar.html'}
	]
},

{text    : 'Spirituality',
url     : '/worship_prayer/spirituality.html'},

{text    : 'Healing',
url     : '/worship_prayer/healing.html'},

{text    : 'Music/RSCM',
url     : '/worship_prayer/music/'},

{text    : 'Bell Ringing',
url     : '/worship_prayer/bells.html'}
];

menus[6] = new Object();
menus[6].left    = start_left + ((isIE) ? 625 : 626);
menus[6].top     = top;
menus[6].over_function = function () {
navigation_over(6);
};
menus[6].out_function  = function () {
navigation_out(6);
};
menus[6].content  = 
[
{text    : 'Education &amp; Training Home',
url     : '/education/' },

{text    : 'Schools',
url     : '/education/schools/',
	content :
	[
	{text    : 'Find a School',
	url     : '/education/schools/info/sch.html'},
	{text    : 'RE and Collective Worship',
	url     : '/education/schools/collective_worship/'},
	{text    : 'Collective Worship Ideas',
	url     : '/education/schools/collective_worship/ideas/'},
	{text    : 'Church Schools Resources',
	url     : '/education/schools/resources/'},
	{text    : 'Vellore - Overseas Link',
	url     : '/education/schools/vellore/'},
	{text    : 'The National Church',
	url     : '/education/schools/national_church/'},
	{text    : 'School Governors',
	url     : '/education/schools/governors/'},
	{text    : 'Church Schools Bulletins',
	url     : '/education/schools/schools_bulletin.html'},
	{text    : 'Meet The Schools Team',
	url     : '/education/schools/meet_the_team.html'}
	]
},

{text    : 'Youth',
url     : '/education/youth/',
	content :
	[
	{text    : 'Rave in the Nave',
	url     : '/education/youth/ritn/'},
	{text    : 'Check it out... Youth Events',
	url     : '/education/youth/events.html'},
	{text    : 'Youth Friendly',
	url     : '/education/youth/youth_friendly.html'},
	{text    : 'Movie Reviews &amp; Resources',
	url     : '/education/youth/resources/'},
	{text    : 'The Facts Are...',
	url     : '/education/youth/funny_facts.html'},
	{text    : '80 Discussion Starters',
	url     : '/education/youth/discussion_starters.html'},
	{text    : "11-14 work in your parish",
	url     : '/education/youth/youth_group_initiative.html'},
	{text    : 'New Games',
	url     : '/education/youth/new_games.html'},
	{text    : 'Youth Council',
	url     : '/education/youth/youth_council.html'},
	{text    : 'Cool Youth Links',
	url     : '/education/youth/youth_links.html'},
	{text    : 'Meet The Youth Adviser',
	url     : '/education/about/whos_who/david_waters.html'}
	]
},

{text    : 'Children',
url     : '/education/children/',
	content :
	[
	{text    : 'Children &amp; Communion',
	url     : '/education/children/communion/'},
	{text    : 'Child Protection and Criminal Records Bureau',
	url     : '/education/children/child_protection/'},
	{text    : "Events",
	url     : '/education/children/childrens_events.html'},
	{text    : 'Godly Play',
	url     : '/education/children/godly_play/'},
	{text    : 'Latest News',
	url     : '/education/children/childrens_news.html'},
	{text    : "Meet the Children's Adviser",
	url     : '/education/children/meet_the_childrens_team.html'},
	{text    : 'Newsletter',
	url     : '/education/children/newsletter.html'},
	{text    : 'Resources',
	url     : '/education/children/resources.html'},
	{text    : "Training",
	url     : '/education/children/training.html'},
	{text    : "Your Story",
	url     : '/education/children/your_story.html'}
	]
},

{text    : 'Resources',
url     : '/education/resources/'},

{text    : 'Adult Learning',
url     : '/mission_ministry/adult_learning/ministerial_adult_learning.html'}
];

menus[7] = new Object();
menus[7].left    = start_left + 0;
menus[7].top     = top;
menus[7].over_function = function () {
navigation_over(7);
};
menus[7].out_function  = function () {
navigation_out(7);
};
menus[7].content = 
[
{text	: 'Ely 900 Home',
url     : '/'},

	{text 	: 'Events',
	url  	: '/news_events/events.html',
	content : 
	[
		{text : 'Diocesan events',
		url  : '/900/900diary.html'},
		{text : 'Parish and local events',
		url  : '/900/parish_events.html'},
		{text : 'Regional events',
		url  : '/news_events/regional.html'},
		{text : 'Learning and Study events',
		url  : '/news_events/learning-study.html'}
		]
	},
	{text	: 'Fairtrade in the Diocese',
	url		: '/fairtrade/'},
	{text	: 'History of Ely Guide',
	url		: '/900/900guide.html'},
	{text	: 'Meet The Ely 900 Planning Group',
	url		: '/900/meet_the_team.html'},
	{text	: 'Mission Project',
	url		: '/900/mission_project.html'},
	{text 	: 'Mission Action Planning',
	url  	: '/mission_ministry/mission_action_planning/index.html'},
	{text	: 'Prayer for Ely 900',
	url		: '/900/900prayer.html'},
	{text	: 'Reports and photographs from Ely 900 events',
	url		: '/900/reports.html'},
	{text	: 'Resources for Ely 900',
	url		: '/900/resources.html'}

];

function navigation_over (id) {
var cell;
if (cell = document.getElementById('nav-' + id)) {
cell.className = 'over';
}
}
function navigation_out (id) {
var cell;
if (cell = document.getElementById('nav-' + id)) {
cell.className = '';
}
}
var drop_menu = new Menu(menus);
// offset of subs
drop_menu.sub_x_offset(7);
drop_menu.sub_y_offset(2);
// draw menus
drop_menu.draw_menus();
var abc;