/*  ---------------------------- Eyam/Stafford Menu ---------------------------- */
function menu()
{
var href = document.location.href;
var len = (document.location.hash)?(href.length-document.location.hash.length):href.length;
var start=href.lastIndexOf('/')+1;
var docname=href.substring(start,len);

document.write('<table id="menuBox"><tr>');
document.write('<td align="center" width="100%">');
//<!-- INNER TABLE -->
document.write('<table id="menuBox2"><tr>');
document.write('<td id="menuBar">MENU</td>');
document.write('</tr><tr>');
document.write('<td class="menuItem"><a href="../Eyam.html">Eyam</a></td>');
document.write('</tr><tr>');
document.write('<td class="menuItem"><a href="../WWI/WWI.html">Roll of Honour, 1915</a></td>');
document.write('</tr><tr>');
if (docname == "Stafford.html") {
	document.write('<td id="menuChoice">Stafford Families</td>');
}
else {
	document.write('<td class="menuItem"><a href="Stafford.html">Stafford Families</a></td>');
}
document.write('</tr><tr>');
// the SUB-MENU TABLE
document.write('<td><table><tr>');
// NB This one is different - doesn't follow usual order of <Spacer> followed by <Entry>
if (docname == "EyamStaffords.html") {
	document.write('<td class="menuOutMinus"><a href="Stafford.html">&ndash;</a></td>');
	document.write('<td id="menuChoice">Stafford of Eyam</td>');
}
else {
	if (docname.substring(0,4) == "Eyam") {
// NB linking to Stafford.html (the entry above it) has the effect of 'closing' Stafford of Botham menu
		document.write('<td class="menuOutMinus"><a href="Stafford.html">&ndash;</a></td>');
	}
	else {
		document.write('<td class="menuOutPlus"><a href="EyamStaffords.html">+</a></td>');
	}
	document.write('<td class="menuItem"><a href="EyamStaffords.html"><b>Stafford of Eyam</b></a></td>');
}
document.write('</tr><tr>');
// the SUB-MENU TABLE
if (docname.substring(0,4) == "Eyam") {
	document.write('<td>&nbsp;</td><td><table border="0" cellspacing="0" cellpadding="0"><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "EyamRichardI.html") {
		document.write('<td id="menuChoice">Richard I</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="EyamRichardI.html">Richard I</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "EyamRichardII.html") {
		document.write('<td id="menuChoice">Richard II</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="EyamRichardII.html">Richard II</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "EyamRogerIII.html") {
		document.write('<td id="menuChoice">Roger III</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="EyamRogerIII.html">Roger III</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "EyamRichardIV.html") {
		document.write('<td id="menuChoice">Richard IV</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="EyamRichardIV.html">Richard IV</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "EyamRogerV.html") {
		document.write('<td id="menuChoice">Roger V</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="EyamRogerV.html">Roger V</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "EyamJohnVI.html") {
		document.write('<td id="menuChoice">John VI</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="EyamJohnVI.html">John VI</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "EyamJohnVII.html") {
		document.write('<td id="menuChoice">John VII</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="EyamJohnVII.html">John VII</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "EyamRobertVIII.html") {
		document.write('<td id="menuChoice">Robert VIII</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="EyamRobertVIII.html">Robert VIII</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "EyamRichardIX.html") {
		document.write('<td id="menuChoice">Richard IX</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="EyamRichardIX.html">Richard IX</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "EyamHumphreyX.html") {
		document.write('<td id="menuChoice">Humphrey X</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="EyamHumphreyX.html">Humphrey X</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "EyamHumphreyXI.html") {
		document.write('<td id="menuChoice">Humphrey XI</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="EyamHumphreyXI.html">Humphrey XI</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "EyamNotes.html") {
		document.write('<td id="menuChoice">Notes</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="EyamNotes.html">Notes</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "EyamPedigree.html") {
		document.write('<td id="menuChoice">Eyam Pedigree</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="EyamPedigree.html">Eyam Pedigree</a></td>');
	}
	document.write('</tr></table></td>');
	document.write('</tr><tr>');
}
// end of SUB-MENU TABLE
document.write('<td class="menuOutOpen">&middot;</td>');
if (docname == "BradHall.html") {
	document.write('<td id="menuChoice">Bradshaw Hall</td>');
}
else {
	document.write('<td class="menuItem"><a href="BradHall.html">Bradshaw Hall</a></td>');
}
document.write('</tr><tr>');
document.write('<td class="menuOutOpen">&middot;</td>');
if (docname == "FoljambeCharter.html") {
	document.write('<td id="menuChoice">Foljambe Charter</td>');
}
else {
	document.write('<td class="menuItem"><a href="FoljambeCharter.html">Foljambe Charter</a></td>');
}
document.write('</tr><tr>');
document.write('<td class="menuOutOpen">&middot;</td>');
if (docname == "WinsterChurch.html") {
	document.write('<td id="menuChoice">Winster, 1308</td>');
}
else {
	document.write('<td class="menuItem"><a href="WinsterChurch.html">Winster, 1308</a></td>');
}
document.write('</tr><tr>');
// NB This one is different - doesn't follow usual order of <Spacer> followed by <Entry>
if (docname == "Botham.html") {
	document.write('<td class="menuOutMinus"><a href="WinsterChurch.html">&ndash;</a></td>');
	document.write('<td id="menuChoice">Stafford of Botham</td>');
}
else {
	if (docname.substring(0,4) == "Both") {
// NB linking to WinsterChurch.html (the entry above it) has the effect of 'closing' Stafford of Botham menu
		document.write('<td class="menuOutMinus"><a href="WinsterChurch.html">&ndash;</a></td>');
	}
	else {
		document.write('<td class="menuOutPlus"><a href="Botham.html">+</a></td>');
	}
	document.write('<td class="menuItem"><a href="Botham.html"><b>Stafford of Botham</b></a></td>');
}
document.write('</tr><tr>');
// the SUB-MENU TABLE
if (docname.substring(0,4) == "Both") {
	document.write('<td>&nbsp;</td><td><table><tr>');
// NB adding the &nbsp; otherwise it won't show all the background image
	document.write('<td class="menuOutOpen">&middot;&nbsp;</td>');
	if (docname == "BothamPedigree.html") {
		document.write('<td id="menuChoice">Botham Pedigree</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="BothamPedigree.html">Botham Pedigree</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;&nbsp;</td>');
	if (docname == "BothamVisitation.html") {
		document.write('<td id="menuChoice">Botham Visitation</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="BothamVisitation.html">Botham Visitation</a></td>');
	}
	document.write('</tr></table></td>');
	document.write('</tr><tr>');
}
// end of SUB-MENU TABLE
document.write('<td class="menuOutOpen">&middot;</td>');
if (docname == "Wolley.html") {
	document.write('<td id="menuChoice">Wolley Manuscripts</td>');
}
else {
	document.write('<td class="menuItem"><a href="Wolley.html">Wolley Manuscripts</a></td>');
}
document.write('</tr></table>');
// end of SUB-MENU TABLE
document.write('</tr><tr>');
document.write('<td class="menuItem"><a href="../PhotoGallery.html">Photo Gallery</a></td>');
document.write('</tr><tr>');
document.write('<td class="menuItem"><a href="../ArtGallery.html">Art Gallery</a></td>');
document.write('</tr><tr>');
document.write('<td class="menuItem"><a href="../Postcards.html">Old Postcards</a></td>');
document.write('</tr><tr>');
document.write('<td class="menuItem"><a href="../PicturesPast.html">Pictures of the Past</a></td>');
document.write('</tr><tr>');
document.write('<td class="menuItem"><a href="../PlagueServices.html">Plague Services</a></td>');
document.write('</tr><tr>');
document.write('<td class="menuItem"><a href="../MIs.html">Memorial Inscriptions</a></td>');
document.write('</tr><tr>');
document.write('<td class="menuBar2"><a href="../../index.html">Derbyshire</a></td>');
document.write('</tr><tr>');
document.write('<td class="menuBar2"><a href="../../../../index.html">WT Home Page</a></td>');
document.write('</tr></table>');
// <!--INNER TABLE-->
document.write('</td></tr><tr>');
document.write('<td><center><a href="../WoodMem.html">');
document.write('<img src="../eWoodMem.jpg" alt="William Wood Memorial, Eyam Churchyard" width="144" height="210" vspace="10"');
document.write(' align="top" border="0" /></a></center></td>');
document.write('</tr><tr>');
document.write("<td><center><i>Click to see larger version<br />of above photo</i></center></td>");
document.write('</tr></table><p />');
}
