//JavaScript Document: Menu

var subDir = "";
var myPath = window.location.pathname;
var directories = /about|contact|facilities|funding|links|diary|notice|ofsted|prospectus|registration|sessions|term|staff/;
var matchPos1 = myPath.search(directories);
if(matchPos1 != -1)
	//alert("There was a match at position " + matchPos1);
	subDir = "\"../";
else
	//alert("There was no match in the first string");
	subDir = "\"";
// If indexof not equal -1, then this is the page called.
// Need to add someting to end but don't know why
var htmfile = window.location;
htmfile += '';
document.write("<table border=0 width=100px>");
document.write("<tr>");
//document.write("<td><a href=\"../index.html\"><img src=\"../graphics/homenosel.gif\"></a></td>");
if(matchPos1 != -1)
  document.write("<td><a href=\"../index.html\"><img src=\"../graphics/homenosel.gif\"></a></td>");
else
  document.write("<td><a href=\"index.html\"><img src=\"graphics/homenosel.gif\"></a></td>");
document.write("</tr>")
document.write("<tr>");
if (htmfile.toUpperCase().indexOf('ABOUT')!=-1)
{
  document.write("<td><a href=" + subDir + "about/index.html\"><img src=" + subDir + "graphics/aboutnosel.gif\"></a></td>");
}
else
{
  document.write("<td><a href=" + subDir + "about/index.html\"><img src=" + subDir + "graphics/aboutnosel.gif\"></a></td>");
}
document.write("</tr>")

document.write("<tr>");
if (htmfile.toUpperCase().indexOf('SESSIONS')!=-1)
{
  document.write("<td><a href=" + subDir + "sessions/index.html\"><img src=" + subDir + "graphics/sessionsnosel.gif\"></a></td>");
}
else
{
  document.write("<td><a href=" + subDir + "sessions/index.html\"><img src=" + subDir + "graphics/sessionsnosel.gif\"></a></td>");
}
document.write("</tr>")

document.write("<tr>");
if (htmfile.toUpperCase().indexOf('FUNDING')!=-1)
{
  document.write("<td><a href=" + subDir + "funding/index.html\"><img src=" + subDir + "graphics/fundingnosel.gif\"></a></td>");
}
else
{
  document.write("<td><a href=" + subDir + "funding/index.html\"><img src=" + subDir + "graphics/fundingnosel.gif\"></td>");
}
document.write("</tr>")

document.write("<tr>");
if (htmfile.toUpperCase().indexOf('FACILITIES')!=-1)
{
  document.write("<td><a href=" + subDir + "facilities/index.html\"><img src=" + subDir + "graphics/facilitiesnosel.gif\"></a></td>");
}
else
{
  document.write("<td><a href=" + subDir + "facilities/index.html\"><img src=" + subDir + "graphics/facilitiesnosel.gif\"></td>");
}
document.write("</tr>")

document.write("<tr>");
if (htmfile.toUpperCase().indexOf('PROSPECTUS')!=-1)
{
  document.write("<td><a href=" + subDir + "prospectus/index.html\"><img src=" + subDir + "graphics/prospectusnosel.gif\"></a></td>");
}
else
{
  document.write("<td><a href=" + subDir + "prospectus/index.html\"><img src=" + subDir + "graphics/prospectusnosel.gif\"></td>");
}
document.write("</tr>")

document.write("<tr>");
if (htmfile.toUpperCase().indexOf('OFSTED')!=-1)
{
  document.write("<td><a href=" + subDir + "ofsted/index.html\"><img src=" + subDir + "graphics/ofstednosel.gif\"></a></td>");
}
else
{
  document.write("<td><a href=" + subDir + "ofsted/index.html\"><img src=" + subDir + "graphics/ofstednosel.gif\"></td>");
}
document.write("</tr>")

document.write("<tr>");
if (htmfile.toUpperCase().indexOf('REGISTRATION')!=-1)
{
  document.write("<td><a href=" + subDir + "registration/index.html\"><img src=" + subDir + "graphics/registrationnosel.gif\"></a></td>");
}
else
{
  document.write("<td><a href=" + subDir + "registration/index.html\"><img src=" + subDir + "graphics/registrationnosel.gif\"></td>");
}
document.write("</tr>")

document.write("<tr>");
if (htmfile.toUpperCase().indexOf('NOTICE')!=-1)
{
  document.write("<td><a href=" + subDir + "notice/index.html\"><img src=" + subDir + "graphics/noticenosel.gif\"></a></td>");
}
else
{
  document.write("<td><a href=" + subDir + "notice/index.html\"><img src=" + subDir + "graphics/noticenosel.gif\"></td>");
}
document.write("</tr>")

document.write("<tr>");
if (htmfile.toUpperCase().indexOf('TERM')!=-1)
{
  document.write("<td><a href=" + subDir + "term/index.html\"><img src=" + subDir + "graphics/termnosel.gif\"></a></td>");
}
else
{
  document.write("<td><a href=" + subDir + "term/index.html\"><img src=" + subDir + "graphics/termnosel.gif\"></td>");
}
document.write("</tr>")

document.write("<tr>");
if (htmfile.toUpperCase().indexOf('DIARY')!=-1)
{
  document.write("<td><a href=" + subDir + "diary/index.html\"><img src=" + subDir + "/graphics/diarynosel.gif\"></a></td>");
}
else
{
  document.write("<td><a href=" + subDir + "diary/index.html\"><img src=" + subDir + "graphics/diarynosel.gif\"></td>");
}
document.write("</tr>")

document.write("<tr>");
if (htmfile.toUpperCase().indexOf('CONTACT')!=-1)
{
  document.write("<td><a href=" + subDir + "contact/index.html\"><img src=" + subDir + "graphics/contactnosel.gif\"></a></td>");
}
else
{
  document.write("<td><a href=" + subDir + "contact/index.html\"><img src=" + subDir + "graphics/contactnosel.gif\"></td>");
}
document.write("</tr>")

document.write("<tr>");
if (htmfile.toUpperCase().indexOf('LINKS')!=-1)
{
  document.write("<td><a href=" + subDir + "links/index.html\"><img src=" + subDir + "graphics/linksnosel.gif\"></a></td>");
}
else
{
  document.write("<td><a href=" + subDir + "links/index.html\"><img src=" + subDir + "graphics/linksnosel.gif\"></td>");
}
document.write("</tr>")

document.write("<tr>");
if (htmfile.toUpperCase().indexOf('STAFF')!=-1)
{
  document.write("<td><a href=" + subDir + "staff/index.html\"><img src=" + subDir + "graphics/staffnosel.gif\"></a></td>");
}
else
{
  document.write("<td><a href=" + subDir + "staff/index.html\"><img src=" + subDir + "graphics/staffnosel.gif\"></td>");
}
document.write("</tr>")

document.write("</table>")
