<!-- Hide from browsers that do not understand Javascript 

function dhtmlLoadScript(url)
{
	document.write("Got Here with: ", url);
	var e = document.createElement("script");
	e.src = url;
	e.type="text/javascript";
	document.getElementsByTagName("body")[0].appendChild(e);
}

function staticLoadScript(url)
{
   document.write('<script src="', url, '" type="text/JavaScript"><\/script>');
}

function loadMenuFiles()
{
	dhtmlLoadScript("milonic_src.js");
	if(ns4)
		dhtmlLoadScript("mmenuns4.js");
	else 
		dhtmlLoadScript("mmenudom.js");

	return;		
}

function addLeftMenu(topMenuItem, selectedItem)
{
	document.write("<table border='0' cellpadding='2' cellspacing='0' width='100%' class='leftMenu'>");
	
	if(topMenuItem == "Home")
	{
		document.write("<tr><td width=15></td><td width=100>&nbsp;</td></tr>");
		addLeftMenuItem("News", "newsHome.htm", selectedItem);
		addLeftMenuItem("Outreach", "outreachHome.htm", selectedItem);
		addLeftMenuItem("Articles", "articlesHome.htm", selectedItem);
		addLeftMenuItem("About us", "aboutusHome.htm", selectedItem);
		addLeftMenuItem("Sermons", "sermonsHome.htm", selectedItem);
		addLeftMenuItem("Contact us", "contactusHome.htm", selectedItem);
	}
	else if(topMenuItem == "News")
	{
		document.write("<tr><td width=15></td><td width=100>&nbsp;</td></tr>");
		addLeftMenuItem("Week's notices", "newsWeeksNotices.htm", selectedItem);
		addLeftMenuItem("Calendar", "newsCalendar.htm", selectedItem);
		addLeftMenuItem("Special dates", "newsSpecialDates.htm", selectedItem);
		addLeftMenuItem("Cricket", "newsChurchCricketMatch.htm", selectedItem);
	}
	else if(topMenuItem == "Outreach")
	{
		document.write("<tr><td width=15></td><td width=100>&nbsp;</td></tr>");
		addLeftMenuItem("Youth work", "outreachYouthWork.htm", selectedItem);
		addLeftMenuItem("Seedlings", "outreachSeedlings.htm", selectedItem);
		addLeftMenuItem("Residential homes", "outreachResidentialHomes.htm", selectedItem);
		addLeftMenuItem("Overseas", "outreachOverseas.htm", selectedItem);
		addLeftMenuItem("Local area", "outreachLocalArea.htm", selectedItem);
		addLeftMenuItem("General", "outreachGeneral.htm", selectedItem);
	}
	else if(topMenuItem == "Articles")
	{
		document.write("<tr><td width=15></td><td width=100>&nbsp;</td></tr>");
		addLeftMenuItem("Church history", "articlesChurchHistory.htm", selectedItem);
		addLeftMenuItem("Does God believe in Atheists?", "articlesJBonAtheism.htm", selectedItem);
		addLeftMenuItem("2006 Christmas Message", "articlesChristmasMessage06.htm", selectedItem);
		addLeftMenuItem("Interview with Bill Dyer", "articlesAfterChurchBillDyer.htm", selectedItem);
		addLeftMenuItem("Lessons from Charles Darwin", "articlesLessonsFromCharlesDarwin.htm", selectedItem);
		addLeftMenuItem("The Christian Life", "articlesTheChristianLife.htm", selectedItem);
	}
	else if(topMenuItem == "About us")
	{
		document.write("<tr><td width=15></td><td width=100>&nbsp;</td></tr>");
		addLeftMenuItem("The Pastor", "aboutusThePastor.htm", selectedItem);
		addLeftMenuItem("Missionaries", "aboutusMissionaries.htm", selectedItem);
		addLeftMenuItem("Services", "aboutusServices.htm", selectedItem);
		addLeftMenuItem("What we believe", "aboutusWhatWeBelieve.htm", selectedItem);
	}
	else if(topMenuItem == "Sermons")
	{
		document.write("<tr><td width=15></td><td width=100>&nbsp;</td></tr>");
		addLeftMenuItem("List by series", "sermonsBySeries.htm", selectedItem);
		addLeftMenuItem("List by date", "sermonsByDate.htm", selectedItem);
		addLeftMenuItem("&nbsp;&nbsp;&nbsp;&nbsp;...2009", "sermonsByDate09.htm", selectedItem);
	}
	else if(topMenuItem == "Contact us")
	{
		document.write("<tr><td width=15></td><td width=100>&nbsp;</td></tr>");
		addLeftMenuItem("Location", "contactusLocation.htm", selectedItem);
		addLeftMenuItem("Contact details", "contactusContactDetails.htm", selectedItem);
	}

	document.write("</table>");

	return;
}

function addTopMenu(selectedItem)
{
//	addOldTopMenu(selectedItem);
	addNewTopMenu();

	return;
}

function addNewTopMenu()
{
	staticLoadScript("milonic_src.js");
	staticLoadScript("mmenudom.js");
	staticLoadScript("menu_data.js");
		
	return;
}

function addOldTopMenu(selectedItem)
{
	document.write("<table border='0' cellpadding='0' cellspacing='0' class='topMenu'>");
	document.write("<tr align='center'>");
	document.write("<td width=2></td>");
	addTopMenuItem("Home", "index.html", selectedItem);
	document.write("<td width=10>-</td>");
	addTopMenuItem("News", "newsHome.htm", selectedItem);
	document.write("<td width=10>-</td>");
	addTopMenuItem("Outreach", "outreachHome.htm", selectedItem);
	document.write("<td width=10>-</td>");
	addTopMenuItem("Articles", "articlesHome.htm", selectedItem);
	document.write("<td width=10>-</td>");
	addTopMenuItem("About us", "aboutusHome.htm", selectedItem);
	document.write("<td width=10>-</td>");
	addTopMenuItem("Sermons", "sermonsHome.htm", selectedItem);
	document.write("<td width=10>-</td>");
	addTopMenuItem("Contact us", "contactusHome.htm", selectedItem);
	document.write("</tr>");
	document.write("</table>");
	
	return;
}

function addTopMenuItem(itemText, link, selectedItem)
{
	if (itemText == selectedItem)
		document.write("<td width=75><a href='" + link + "'><font class=topMenuSelected>" + itemText + "</font></a></td>");
	else
		document.write("<td width=75><a href='" + link + "'>" + itemText + "</a></td>");
}

function addLeftMenuItem(itemText, link, selectedItem)
{
	if (itemText == selectedItem)
		document.write("<tr><td width=15></td><td width=100><a href='" + link + "'><font class=leftMenuSelected>" + itemText + "</font></a></td></tr>");
	else
		document.write("<tr><td width=15></td><td width=100><a href='" + link + "'><font class=leftMenu>" + itemText + "</font></a></td></tr>");
}

function addNewsAndLinks()
{
	// add news
	addNews();
		
    // add evangelism
    addEvangelism();
    
	// add links
	addLinks();
}

function addNews()
{
	document.write("&nbsp;");
	document.write("<table class='basictable' width='100%'>")
    document.write("<tr>");
    document.write("<td width='100%' bgcolor='#E0E0E0'><font class=large>News:</font>");
	document.write("</td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td width='100%'>");
    document.write("<p>");
//    document.write("<p align='center'><a href='newsSpecialDates.htm'><img border='0' src='images/pitch_and_putt_small.jpg' hspace='1' vspace='1'><br>Men's Pitch and<br>Putt Breakfast<br>Sat 4th Jul</a></p>");
//    document.write("<a href='newsSpecialDates.htm'><img border='0' src='images/river_cruise_small.jpg' align='left' hspace='1' vspace='1'><br><br><br>Ladies River Cruise on Sat 9th Jun</a><br><br>");
//    document.write("- <a href='newsSpecialDates.htm'>SHSCC Mission</a> Starts Mon 3rd Oct<br>");
//    document.write("<p align='center'><a href='newsSpecialDates.htm'><img border='0' src='images/harvest_small.jpg' hspace='3' vspace='3'><br>Harvest Services<br>Sunday 4th Oct</a></p>");
//    document.write("<p align='center'><a href='newsSpecialDates.htm'><img border='0' src='images/bowls_small.jpg' hspace='3' vspace='3'><br>Mens Bowling Evening<br>Fri 9th Oct</a></p>");
//    document.write("<p align='center'><a href='newsSpecialDates.htm'><img border='0' src='images/craft_small.jpg' hspace='3' vspace='3'><br>Ladies Craft Evening<br>Mon 9th Nov</a></p>");
//    document.write("<p align='center'><a href='newsSpecialDates.htm'><img border='0' src='images/pamper_small.jpg' hspace='1' vspace='1'><br>Ladies Treat Evening<br>Sat 21st Jun</a></p>");
//    document.write("<p align='center'><a href='newsSpecialDates.htm'><img border='0' src='images/ChristmasPresent_small.jpg' hspace='1' vspace='1'><br>Family Carol Service<br>Sun 13th Dec</a></p>");
//    document.write("<p align='center'><a href='newsSpecialDates.htm'><img border='0' src='images/christmas_balls_small.jpg' hspace='1' vspace='1'><br>Evening Carol Service<br>Sun 20th Dec</a></p>");
//    document.write("<p align='center'><a href='newsSpecialDates.htm'><img border='0' src='images/christmas_bells_small.jpg' hspace='1' vspace='1'><br>Christmas Day Service<br>Thu 25th Dec</a></p>");
//    document.write("<a href='articlesChristmasMessage06.htm'> - <font class=mediumBold>Christmas Message</font></a><br>");
//    document.write("<p align='center'><a href='newsSpecialDates.htm'><img border='0' src='images/indian_meal_small.jpg' hspace='1' vspace='1'><br>Ladies' Indian Meal<br>Mon 28th Jun</a></p>");
//    document.write("<p align='center'><a href='newsSpecialDates.htm'><img border='0' src='images/ladiesMeal_small.jpg' hspace='1' vspace='1'><br>Ladies' Meal<br>on Mon 1st Mar</a></p>");
//    document.write("<p align='center'><a href='newsSpecialDates.htm'><img border='0' src='images/sand_timer_small.jpg' hspace='1' vspace='1'><br>Church and Pastor's Anniversary<br>Sat 15th & Sun 16th<br>Dr John Blanchard</a></p>");
//    document.write("<p align='center'><a href='newsSpecialDates.htm'><img border='0' src='images/cross_small.jpg' hspace='1' vspace='1'><br>Easter Services<br>2nd - 4th Apr</a></p>");
//    document.write("<p align='center'><a href='newsSpecialDates.htm'><img border='0' src='images/noah_small.jpg' hspace='1' vspace='1'><br>Holiday Club 08<br>Wed 2nd to Fri 4th Mar<br>9:30am to 12:15pm</a></p>");
//    document.write("<p align='center'><a href='newsSpecialDates.htm'><img border='0' src='images/fish_and_chips_small.jpg' hspace='1' vspace='1'><br>Fish and Chip Quiz Night<br>Sat 15th May<br>7:00pm</a></p>");
//    document.write("<p align='center'><a href='newsSpecialDates.htm'><img border='0' src='images/indian_meal_small.jpg' hspace='1' vspace='1'><br>Ladies' Meal<br>Mon 29th Jun & <br> Mon 6th Jul</a></p>");
//    document.write("<p align='center'><a href='newsSpecialDates.htm'><img border='0' src='images/bangers_and_mash_small.jpg' hspace='1' vspace='1'><br>Men's Bangers and Mash<br>Mon 5th Jul</a></p>");
    document.write("<p align='center'><a href='newsSpecialDates.htm'><img border='0' src='images/meltdown_2010_small.jpg' hspace='1' vspace='1'><br>Meltdown 2010<br>Thu 8th to Sat 10th Jul<br>Sat 11th Sep</a></p>");
//    document.write("<p align='center'><a href='newsSpecialDates.htm'><img border='0' src='images/teaandtalk_small.jpg' hspace='1' vspace='1'><br>Tea and Talk<br>Sun 16th May</a><br>(no evening service)</p>");
//    document.write("<p align='center'><a href='newsSpecialDates.htm'><img border='0' src='images/henry1_small.jpg' hspace='1' vspace='1'><br>A weekend with Henry<br>Thu 15th to Sun 16th May</a></p>");
//    document.write("<p align='center'><a href='articlesLessonsFromCharlesDarwin.htm'><img border='0' src='images/ear.jpg' hspace='3' vspace='3'><br>Lessons from the life of Charles Darwin</a></p>");
//    document.write("<p align='center'><a href='articlesAfterChurchBillDyer.htm'><img border='0' src='images/ear.jpg' hspace='1' vspace='1'><br>Interview with<br>Bill Dyer</a></p>");
//    document.write("- <a href='newsSpecialDates.htm'>Meltdown Continues...</a><br> Sat 8th Sep<br><br>");
//    document.write("<p align='center'><a href='newsSpecialDates.htm'><img border='0' src='images/hbc09_small.jpg' hspace='1' vspace='1'><br>Holiday Bible Club<br>15th Apr - 17th Apr</a></p>");
//    document.write("<a href='newsSpecialDates.htm'><img border='0' src='images/strawberries_small.jpg' align='left' hspace='3' vspace='7'><br>Tea and Talk - Sun 15th Jul (no evening service)</a><br><br><br>");
//    document.write("<a href='newsChristianInstitute.htm'><img border='0' src='images/ear.jpg' align='left' hspace='3' vspace='7'>Listen to the Christian Institute Visit here</a><br><br>");
//    document.write("<a href='newsGBAWomensAssociation.htm'><img border='0' src='images/ear.jpg' align='left' hspace='3' vspace='10'>Listen to Faith Cook on \"Selina: Countess of Huntington\"</a><br><br>");
    document.write("</p>");
	document.write("<p>&nbsp;</p>");
	document.write("</td>");
    document.write("</tr>");
    document.write("</table>");
}

function addLinks()
{
	document.write("&nbsp;");
	document.write("<table class='basictable' width='100%'>")
    document.write("<tr>");
    document.write("<td width='100%' bgcolor='#E0E0E0'><font class=large>Links:</font>");
	document.write("</td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td width='100%'>");
    document.write("<p>");
    document.write("<a href='http://www.gbm.org.uk/'>Grace Baptist Mission</a><br>");
    document.write("<a href='http://www.hemelhouseparty.co.uk/'>Hemel House Party</a><br>");
    document.write("<a href='http://www.christianinstitute.org.uk/'>The Christian Institute</a><br>");
    document.write("<a href='http://www.spurgeon.org/'>The Spurgeon Archive</a><br>");
    document.write("<a href='http://www.johnblanchard.org/'>John Blanchard</a><br>");
    document.write("<a href='http://www.desiringgod.org/'>John Piper (Desiring God)</a><br>");
    document.write("<a href='http://www.banneroftruth.org/'>Banner of Truth Books</a><br>");
    document.write("<a href='http://www.biblicalcreationministries.org.uk/'>Biblical Creation Ministries</a><br>");
    document.write("</p>");
	document.write("<p>&nbsp;</p>");
	document.write("</td>");
    document.write("</tr>");
    document.write("</table>");
    document.write("<br>");
}

function addEvangelism()
{
	document.write("&nbsp;");
	document.write("<table class='basictable' width='100%'>")
    document.write("<tr>");
    document.write("<td width='100%' bgcolor='#E0E0E0'><font class=large>Christianity?</font>");
	document.write("</td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td width='100%'>");
    document.write("<p>");
    document.write("- <a href='http://www.matthiasmedia.com.au/2wtl/'>Two ways to live</a>, the choice we all face<br>");
    document.write("- <a href='articlesJBonAtheism.htm'>Does God believe in Atheists?</a><br>");
    document.write("</p>");
	document.write("<p>&nbsp;</p>");
	document.write("</td>");
    document.write("</tr>");
    document.write("</table>");
}

function addEmail()
{
	document.write("<font face='Arial' size='2'><a href='");
	document.write("mailto:");
	document.write("i");
	document.write("n");
	document.write("f");
	document.write("o");
	document.write("@");
	document.write("whittleseybaptist.org.uk");
	document.write("'>");
	document.write("i");
	document.write("n");
	document.write("f");
	document.write("o");
	document.write("@");
	document.write("whittleseybaptist.org.uk");
	document.write("</a></font>");
}

//loadMenuFiles();

// end hiding --> 

