var root="http://www.oxfoos.co.uk/"

function SwapImage(num,to)
{
document.images[num].src=root+"images/button-"+to+".gif"
}

var a=0
imgs=new Array(13)
imgsOut=new Array(13)
function LoadImage(name)
{
imgs[a]=new Image()
imgs[a].src=root+"images/button-"+name+"-over.gif"
imgsOut[a]=new Image()
imgsOut[a].src=root+"images/button-"+name+"-out.gif"
a++

}

LoadImage("home")
LoadImage("news")
LoadImage("forum")
LoadImage("tables")
// LoadImage("fixtures")
// LoadImage("stats")
LoadImage("cuppers")
// LoadImage("singles")
// LoadImage("doubles")
LoadImage("contacts")
LoadImage("profiles")
// LoadImage("uni")
// LoadImage("tournaments")
LoadImage("rules")
LoadImage("archive")
LoadImage("links")


var i=0
function MenuLine(LineSpec, Ext)
{
i++
if (CurrentPage==LineSpec || (LineSpec=="phpBB3" && CurrentPage=="forum"))
	{document.write("<IMG SRC="+root+"images/button-"+CurrentPage+"-clicked.gif><br>")}
else
	{document.write("<A HREF=\""+root+LineSpec+Ext+"\" onMouseOver=\"SwapImage\(\'"+i+"\',\'"+LineSpec+"-over\'\)\" onMouseOut=\"SwapImage\(\'"+i+"\',\'"+LineSpec+"-out\'\)\"><IMG SRC="+root+"images/button-"+LineSpec+"-out.gif></A><br>")}
}

function WriteMenu()
{
document.write("<DIV ID=\"leftBar\">")
document.write("<a href=index.htm><IMG SRC=\""+root+"images/topleft.gif\" width=\"176\"></A><br>")

MenuLine("index", ".htm")
MenuLine("news", ".htm")
MenuLine("phpBB3", "/")
MenuLine("tables", ".php")
// MenuLine("fixtures", ".php")
// MenuLine("stats", ".php")
MenuLine("cuppers", ".htm")
// MenuLine("singles", ".htm")
// MenuLine("doubles", ".htm")
MenuLine("contacts", ".php")
MenuLine("profiles", ".php")
// MenuLine("uni", ".htm")
// MenuLine("tournaments", ".htm")
MenuLine("rules", ".htm")
MenuLine("archive", ".htm")
MenuLine("links", ".htm")
document.write("<IMG SRC=\""+root+"images/bottomleft.gif\"><br>")
document.write("</DIV>")
}