if (document.images) {
thank_you_B1_off = new Image(); thank_you_B1_off.src = "thank_you_B1.gif"
thank_you_B1_over = new Image(); thank_you_B1_over.src = "thank_you_B1_over.gif"
thank_you_B2_off = new Image(); thank_you_B2_off.src = "thank_you_B2.gif"
thank_you_B2_over = new Image(); thank_you_B2_over.src = "thank_you_B2_over.gif"
thank_you_B3_off = new Image(); thank_you_B3_off.src = "thank_you_B3.gif"
thank_you_B3_over = new Image(); thank_you_B3_over.src = "thank_you_B3_over.gif"
thank_you_B4_off = new Image(); thank_you_B4_off.src = "thank_you_B4.gif"
thank_you_B4_over = new Image(); thank_you_B4_over.src = "thank_you_B4_over.gif"
thank_you_B5_off = new Image(); thank_you_B5_off.src = "thank_you_B5.gif"
thank_you_B5_over = new Image(); thank_you_B5_over.src = "thank_you_B5_over.gif"
thank_you_B6_off = new Image(); thank_you_B6_off.src = "thank_you_B6.gif"
thank_you_B6_over = new Image(); thank_you_B6_over.src = "thank_you_B6_over.gif"
thank_you_B7_off = new Image(); thank_you_B7_off.src = "thank_you_B7.gif"
thank_you_B7_over = new Image(); thank_you_B7_over.src = "thank_you_B7_over.gif"
thank_you_B8_off = new Image(); thank_you_B8_off.src = "thank_you_B8.gif"
thank_you_B8_over = new Image(); thank_you_B8_over.src = "thank_you_B8_over.gif"
thank_you_B9_off = new Image(); thank_you_B9_off.src = "thank_you_B9.gif"
thank_you_B9_over = new Image(); thank_you_B9_over.src = "thank_you_B9_over.gif"
recruitment_B1_off = new Image(); recruitment_B1_off.src = "recruitment_B1.gif"
recruitment_B1_over = new Image(); recruitment_B1_over.src = "recruitment_B1_over.gif"
Reports_off = new Image(); Reports_off.src = "Reports.gif"
Reports_over = new Image(); Reports_over.src = "Reports_over.gif"

Events_off = new Image(); Events_off.src = "Events.gif"
Events_over = new Image(); Events_over.src = "Events_over.gif"

links_off = new Image(); links_off.src = "links.gif"
links_over = new Image(); links_over.src = "links_over.gif"
}

function turn_off(ImageName) {
	if (document.images != null) {
		document[ImageName].src = eval(ImageName + "_off.src");
	}
}

function turn_over(ImageName) {
	if (document.images != null) {
		document[ImageName].src = eval(ImageName + "_over.src");
	}
}

function write_entry(thispage, href, name, alt) {
  document.write("<tr><td><a href=\"" + href + "\" ");
  if(thispage != href) {
    document.write("onmouseout=\"turn_off('" + name + "')\" onmouseover=\"turn_over('" + name + "')\"");
  }
  document.write("><img name=\"" + name + "\" src=\"" + name + (thispage==href?"_over":"") + ".gif" + "\" alt=\"" + alt + "\" title=\"" + alt + "\" border=\"0\" width=\"117\" height=\"21\"/></a></td></tr>");
}


function getNavBar(thispage) {
document.write('<TABLE border="0" cellspacing="0" cellpadding="0" class="nav">');
document.write(
'<tr><td><img src="Thank_You_top.gif" alt="" width="117" height="14"></td></tr>');
write_entry(thispage, "index.shtml", "thank_you_B1", "Go to our homepage");
write_entry(thispage, "about.shtml", "thank_you_B2", "About the MFT charity");
write_entry(thispage, "news.shtml", "thank_you_B3", "Recent news and activities");
write_entry(thispage, "events.shtml", "Events", "Forthcoming events and meetings");
write_entry(thispage, "gallery.shtml", "thank_you_B4", "Photo Gallery");
write_entry(thispage,  "articles.shtml", "thank_you_B5", "Articles");
write_entry(thispage, "reports.shtml", "Reports", "Annual Reports");
write_entry(thispage, "location.shtml", "thank_you_B6", "Map of Suffolk");
write_entry(thispage, "help.shtml", "thank_you_B7", "How you can help the MFT");
write_entry(thispage, "thankyou.shtml", "thank_you_B8", "Who we would like to thank");
write_entry(thispage, "recruitment.shtml", "recruitment_B1", "Recruitment at the MFT");
write_entry(thispage, "links.shtml", "links", "Useful Links");
write_entry(thispage, "contact.shtml", "thank_you_B9", "Contact the MFT");
document.write(
"<tr><td><img src=\"Thank_You_bottom.gif\" alt=\"\" width=\"117\" height=\"16\"></td></tr>"+
'</TABLE>');
}

function getFooter() {
document.write(
'<p class="footer"> '+
'2 Oakey Field '+
'Road, Thurston,&nbsp;Bury St Edmunds, Suffolk,&nbsp; IP31 3RX&nbsp; ::&nbsp; Tel: 01359 230498<br>'+
'Reg. '+
'Charity No.1070145&nbsp;&nbsp;'+
'<font size="1">Company No.</font> 03567659&nbsp; '+
'<font size="1">:: &nbsp;&copy; '+
'Millennium Farm Trust 2008</p>');
}
