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 + 0;
menus[0].top     = top;
menus[0].over_function = function () {
navigation_over(0);
};
menus[0].out_function  = function () {
navigation_out(0);
};
menus[0].content = 
[

];

menus[1] = new Object();
menus[1].left    = start_left + ((isIE) ? 53 : 53);
menus[1].top     = top;
menus[1].over_function = function () {
navigation_over(1);
};
menus[1].out_function  = function () {
navigation_out(1);
};
menus[1].content = 
[
{text : "Bishops and Archdeacons",
url  	: '',
content : 
[
		{text : 'Bishop\'s Welcome',
		url  : '/about/bishops_message.html'},
		{text : 'Archdeacons',
		url  : '/about/archdeacons_pages/index.html'}
		]
	},
	{text 	: "Diocese - Past and Present",
	url  	: '',
	content : 
	[
		{text	: 'About The Diocese',
		url		: '/about/about.html'},
		{text	: 'About This Website',
		url		: '/about/about_this_site.html'},
		{text	: 'Diocesan Committees',
		url		: '/about/committees.html'},
		{text 	: 'History of the Diocese',
		url		: '/about/history.html'},
		{text	: 'How We Are Structured',
		url		: '/about/structured/'},
		{text	: 'Synodical Government',
		url		: '/about/structured/synodical_government.html'},
		{text	: 'What We Believe ',
		url		: '/about/what_we_believe.html'}
		]
	},	
	{text 	: "Find a person or place",
	url  	: '',
	content : 
	[
		{text	: 'Deaneries',
		url		: '/about/structured/deaneries/'},
		{text	: 'Parishes',
		url		: '/about/structured/deaneries/parishes.html'},
		{text 	: "Who\'s Who",
		url  	: '/about/whos_who/'}
	]
}
];

menus[3] = new Object();
menus[3].left    = start_left + ((isIE) ? 131 : 132);
menus[3].top     = top;
menus[3].over_function = function () {
navigation_over(3);
};
menus[3].out_function  = function () {
navigation_out(3);
};
menus[3].content = 
[

{text   : "Evangelism",
url     : '/mission/evangelism/'},

{text 	: 'Fresh Expressions',
url  	: '/mission/fresh_expressions/index.html'},

{text 	: 'Growing as Disciples',
url  	: '/mission/growing_disciples.html',
	content : 
	[
	{text   : "Christian Giving",
	url     : '/mission/christian_giving/'},
	{text    : 'Conferences &amp; Retreats',
	url     : '/mission/conferences_retreats.html'}
	]
},

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

{text    : 'Meet The Mission Team',
url     : '/mission/meet_the_team.html'},

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

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

{text   : "Working with Other Churches",
url     : '/mission/other_churches/'},
	
{text   : "World Mission",
url     : '/mission/world_mission.html'}

];

menus[4] = new Object();
menus[4].left    = start_left + ((isIE) ? 195 : 196);
menus[4].top     = top;
menus[4].over_function = function () {
navigation_over(4);
};
menus[4].out_function  = function () {
navigation_out(4);
};
menus[4].content = 
[
{text    : "All Good Gifts",
url     : '/ministry/all_good_gifts/'},

{text    : 'Meet The Ministry Team',
url     : '/ministry/meet_the_team.html'},

{text    : "Training",
url     : '/ministry/adult_learning/index.html',
	content : 
	[
	{text : 'Authorised Lay Ministry Training',
	url   : '/ministry/adult_learning/alm_training.html'},
	{text : 'Continuing Ministerial Education',
	url   : '/ministry/adult_learning/cme.html'},
	{text : 'Licensed Lay Ministry Training',
	url   : '/ministry/adult_learning/llm_training.html'},
	{text : 'Meet The Team',
	url   : '/ministry/adult_learning/meet_the_team.html'},
	{text : 'Initial Ministerial Education for Curacy',
	url   : '/ministry/adult_learning/pot.html'},
	{text : 'Review of Ministry',
	url   : '/ministry/adult_learning/review_ministry.html'}
	]
},

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

];

menus[5] = new Object();
menus[5].left    = start_left + ((isIE) ? 265 : 265);
menus[5].top     = top;
menus[5].over_function = function () {
navigation_over(5);
};
menus[5].out_function  = function () {
navigation_out(5);
};
menus[5].content = 
[
{text    : 'Big Society and Church',
url     : '/church_in_community/big_society.html'},

{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     : '/church_in_community/church_in_society/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    : 'Mothers\' Union',
url     : '/church_in_community/mothers_union.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    : 'Anglia Ruskin University Chaplaincy',
	url     : '/church_in_community/university_links/apu_chaplaincy.html'},
	{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'}
	]
}
];

menus[6] = new Object();
menus[6].left    = start_left + ((isIE) ? 422 : 422);
menus[6].top     = top;
menus[6].over_function = function () {
navigation_over(6);
};
menus[6].out_function  = function () {
navigation_out(6);
};
menus[6].content = 
[
	{text    : 'Book Reviews',
	url     : '/information/book_reviews.html'},
	{text    : 'Care of Churches - DAC',
	url     : '/information/care_of_churches/'},
	{text    : 'Churchwardens',
	url     : '/information/churchwardens.html/'},
	{text    : 'Child Protection',
	url     : '/information/child_protection/index.html/'},
	{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/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    : 'Mailing Lists',
	url     : '/information/mailing_lists.html'},
	{text    : 'Meet The Administration Team',
	url     : '/information/meet_the_team.html'},
	{text    : 'Promote Your Church: Media Tips',
	url     : '/information/media-tips/promote_your_church.html'},
	{text    : 'Resources and Useful Links',
	url     : '/information/links/'}
];

menus[7] = new Object();
menus[7].left    = start_left + ((isIE) ? 521 : 521);
menus[7].top     = top;
menus[7].over_function = function () {
navigation_over(7);
};
menus[7].out_function  = function () {
navigation_out(7);
};
menus[7].content  = 
[
	{text    : 'Baptisms, Weddings &amp; Funerals',
	url     : '/worship_prayer/births_deaths_marriages/',
	content : 
		[
		{text : 'Baptisms',
		url  : '/worship_prayer/births_deaths_marriages/baptisms.html'},
		{text : 'Confirmations',
		url  : '/worship_prayer/births_deaths_marriages/confirmations.html'},
		{text : 'Funerals',
		url  : '/worship_prayer/births_deaths_marriages/funerals.html'},
		{text : 'Marriages',
		url  : '/worship_prayer/births_deaths_marriages/marriages.html'},
		{text : 'Tracing your Ancestors?',
		url  : '/worship_prayer/births_deaths_marriages/ancestors.html'},
		{text : 'Woodland Burials',		
		url  : '/worship_prayer/births_deaths_marriages/woodland_burial.html'}
		]
		},
		
	{text    : 'Bell Ringing',
	url     : '/worship_prayer/bells.html'},
	
	{text    : 'Music/RSCM',
	url     : '/worship_prayer/music/'},
	
	{text    : 'Healing',
	url     : '/worship_prayer/healing.html'},
	
	{text    : 'Prayer',
	url     : '/worship_prayer/prayer.html',
	content :
		[
		{text : 'Prayer Calendar',
		url  : '/worship_prayer/prayer_calendar.html'},
		{text : 'Useful prayers',
		url  : '/worship_prayer/useful_prayers.html'},
		{text : 'What is Prayer?',
		url  : '/worship_prayer/what_is_prayer.html'}
		]
},

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

menus[8] = new Object();
menus[8].left    = start_left + ((isIE) ? 658 : 658);
menus[8].top     = top;
menus[8].over_function = function () {
navigation_over(8);
};
menus[8].out_function  = function () {
navigation_out(8);
};
menus[8].content  = 
[
{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     : 'http://www.raveinthenave.com'},
	{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     : '/information/child_protection/index.html'},
	{text    : "Events",
	url     : '/education/children/childrens_events.html'},
	{text    : 'Godly Play',
	url     : '/education/children/godly_play.html'},
	{text    : 'Latest News',
	url     : '/education/children/childrens_news.html'},
	{text    : "Meet the Children's Adviser",
	url     : '/education/children/meet_the_childrens_team.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/about/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;
