function menu() {
document.write("<TD><div id=\"menu\"><br><BR><br>");
document.write("<div><a href=\"index.html\">Home Page</a></div>");
document.write("<div><a href=\"about.html\">About Me</a></div>");
document.write("<div><a href=\"consult.html\">Consulting</a></div>");
document.write("<div><a href=\"driving.html\">Private Hire</a></div>");
document.write("<div><a href=\"tutor.html\">Maths Tutoring</a></div>");
document.write("<div><a href=\"links.html\">Links</a></div>");
document.write("<div><a href=\"contact.html\">Contact Me</a></div>");
document.write("</div></TD>");
}

function search() {
document.write("<TD width=100%><font size=2>&nbsp;&nbsp;&nbsp;&nbsp;Search &nbsp");
document.write("(powered by <A HREF=\"http://www.freefind.com\"><small>Freefind</a></small>)</font>");
document.write("<FORM ACTION=\"http://search.freefind.com/find.html\" METHOD=\"GET\"  target=\"_self\">");
document.write("<font size=1 face=\"arial,helvetica\">");
document.write("&nbsp;&nbsp;&nbsp;<INPUT TYPE=\"HIDDEN\" NAME=\"id\" VALUE=\"81853986\">");
document.write("<INPUT TYPE=\"HIDDEN\" NAME=\"pageid\" VALUE=\"r\">");
document.write("<INPUT TYPE=\"HIDDEN\" NAME=\"mode\" VALUE=\"ALL\">");
document.write("<input type=\"radio\" name=\"t\" value=\"s\" CHECKED> Site search");
document.write("<input type=\"radio\" name=\"t\" value=\"w\">Web search<br>");
document.write("&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE=\"TEXT\" NAME=\"query\" SIZE=\"15\"><small>");
document.write("&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE=\"SUBMIT\" VALUE=\" Find \"><br>");
document.write("</FORM>");
}

function tabletop(text,titlename)
{

document.write("<TR>");
document.write('<TD><a href="about.html"><small><img alt="Clive" src="clive2.bmp" height="96" width="90" /></a></TD>');
document.write('<td><a href="tutor.html"><small><img alt="Maths" src="algebra.jpg" height="96" width="96" /></a></td>');
document.write('<td><a href="consult.html"><small><img alt="Consult" src="Logo.jpg" height="96" width="96" /></a></td>');
search();
document.write("<TD><small>" + 
'<a href="driving.html">');
document.write('<img alt="Private Hire" src="mercedes.jpg" height="96" width="135" /></a></TD>');
document.write('<TD><a href="http://www.stjamesthorley.org">');
document.write('<img alt="Thorley" src="thorley2.jpg" height="96" width="96" /></a></td>');
document.write("<TD></TD>");

document.write("</TR><TR>");
document.write("<td align=center>");
document.write('<a href="about.html"><small>About Me</td></a>');
document.write('<td align=center><a href="tutor.html"><small>Maths Tutoring</td></a>');
document.write('<td align=center><a href="consult.html"><small>Consulting</td></a>');
document.write("<td >&nbsp;&nbsp;&nbsp;Current Page: ");
document.write(text);
document.write("</TD>");
document.write('<td align=center><a href="driving.html"><small>Private Hire Driver</a></td>');
document.write('<td align=center><a href="http://www.stjamesthorley.org">');
document.write("<small>St. James Thorley</a></td>");

document.write("</TR>");
title(titlename);
}


function title(text)
{
document.write('<TD COLSPAN=7><div class="article"><br><div class="article-title">');
document.write(text);
document.write('</div><p>');
}

function footer(date)
{
document.write('<br><div class="article-footer">Updated: <span class="author">');
document.write(date);
document.write('</span></div></div></div></TD></TR><TR>');
document.write('<TD COLSPAN=7><div id="footer" align=center><p>');
document.write('<a href="index.html">Home</a>&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('<A HREF="http://search.freefind.com/find.html?id=81853986&m=0&p=0">');
document.write('Site map');
document.write('</a>&nbsp;&nbsp;&nbsp;&nbsp;');

document.write('<a href="contact.html">Contact Details</a> &nbsp;&nbsp;');

document.write('</a>&nbsp;&nbsp;&nbsp;&nbsp;');


document.write('<a href="links.html">Links</a> &nbsp;&nbsp;');

document.write('</a>&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('<A HREF="mailto:chayball@ntlworld.com">Email Me</a> &nbsp;&nbsp;');
document.write('</p></div></TD></TR></TABLE></div>');}

function linkit(ref,name)
{
document.write('<tr><td>&nbsp<a href="'+ref+'">');
document.write(name);
document.write(':&nbsp</a></td><td>&nbsp');
document.write('<a href="'+ref+'">');
document.write(ref);
document.write('&nbsp</td></tr>');
}	
