/*  ---------------------------- Eyam/WWI 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>');
if (docname == "WWI.html") {
	document.write('<td id="menuChoice">Roll of Honour, 1915</td>');
}
else {
	document.write('<td class="menuItem"><a href="WWI.html">Roll of Honour, 1915</a></td>');
}
document.write('</tr><tr>');
// the SUB-MENU TABLE
document.write('<td><table><tr>');
document.write('<td class="menuOutOpen">&middot;</td>');
if (docname == "address.html") {
	document.write('<td id="menuChoice">Rector\'s Address</td>');
}
else {
	document.write('<td class="menuItem"><a href="address.html">Rector\'s Address</a></td>');
}
document.write('</tr><tr>');
// NB This one is different - doesn't follow usual order of <Spacer> followed by <Entry>
if (docname == "portraits.html") {
	document.write('<td class="menuOutMinus"><a href="address.html">&ndash;</a></td>');
	document.write('<td id="menuChoice">Portraits Index</td>');
}
else {
	if (docname.substring(0,8) == "portrait") {
// NB linking to address.html (the entry above it) has the effect of 'closing' the Portraits menu
		document.write('<td class="menuOutMinus"><a href="address.html">&ndash;</a></td>');
	}
	else {
		document.write('<td class="menuOutPlus"><a href="portraits.html">+</a></td>');
	}
	document.write('<td class="menuItem"><a href="portraits.html">Portraits Index</a></td>');
}
document.write('</tr><tr>');

// the SUB-MENU TABLE
if (docname.substring(0,8) == "portrait") {
	document.write('<td>&nbsp;</td><td><table><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "portrait00.html") {
		document.write('<td id="menuChoice">Nos&nbsp;&nbsp;1-4</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="portrait00.html">Nos&nbsp;&nbsp;1-4</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "portrait01.html") {
		document.write('<td id="menuChoice">Nos&nbsp;&nbsp;5-8</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="portrait01.html">Nos&nbsp;&nbsp;5-8</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "portrait02.html") {
		document.write('<td id="menuChoice">Nos&nbsp;&nbsp;9-12</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="portrait02.html">Nos&nbsp;&nbsp;9-12</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "portrait03.html") {
		document.write('<td id="menuChoice">Nos&nbsp;13-16</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="portrait03.html">Nos&nbsp;13-16</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "portrait04.html") {
		document.write('<td id="menuChoice">Nos&nbsp;17-20</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="portrait04.html">Nos&nbsp;17-20</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "portrait05.html") {
		document.write('<td id="menuChoice">Nos&nbsp;20-24</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="portrait05.html">Nos&nbsp;20-24</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "portrait06.html") {
		document.write('<td id="menuChoice">Nos&nbsp;25-28</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="portrait06.html">Nos&nbsp;25-28</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "portrait07.html") {
		document.write('<td id="menuChoice">Nos&nbsp;29-32</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="portrait07.html">Nos&nbsp;29-32</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "portrait08.html") {
		document.write('<td id="menuChoice">Nos&nbsp;33-36</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="portrait08.html">Nos&nbsp;33-36</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "portrait09.html") {
		document.write('<td id="menuChoice">Nos&nbsp;37-40</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="portrait09.html">Nos&nbsp;37-40</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "portrait10.html") {
		document.write('<td id="menuChoice">Nos&nbsp;41-44</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="portrait10.html">Nos&nbsp;41-44</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "portrait11.html") {
		document.write('<td id="menuChoice">Nos&nbsp;45-48</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="portrait11.html">Nos&nbsp;45-48</a></td>');
	}
	document.write('</tr><tr>');
	document.write('<td class="menuOutOpen">&middot;</td>');
	if (docname == "portrait12.html") {
		document.write('<td id="menuChoice">Nos&nbsp;49-50</td>');
	}
	else {
		document.write('<td class="menuItem"><a href="portrait12.html">Nos&nbsp;49-50</a></td>');
	}
	document.write('</tr></table></td>');
	document.write('</tr><tr>');
}
// end of SUB-MENU TABLE
document.write('<td class="menuOutOpen">.</td>');
if (docname == "serving.html") {
	document.write('<td id="menuChoice">Others Serving</td>');
}
else {
	document.write('<td class="menuItem"><a href="serving.html">Others Serving</a></td>');
}
document.write('</tr></table>');
// end of SUB-MENU TABLE
document.write('</tr><tr>');
document.write('<td class="menuItem"><a href="../Stafford/Stafford.html">Stafford Families</a></td>');
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 />');
}
