function joeMouseOver( s )
{
	if (s!=document.joe.here)
	document.images[s].src= document.joe.iOver[s].src;
}

function joeMouseOut( s )
{
	if (s!=document.joe.here)
	document.images[s].src= document.joe.iOut[s].src;
}

function baseName(s2)
{
	s = ""+s2
	l = s.length;
	if (s.charAt(l-1)=='/') return "index";

	parts = s.split("/")
	l = parts.length
	last = parts[l-1]
	parts = last.split(".")
	return parts[0]
}


/***
function navButton(name,w,h)
{
if (name==document.joe.here)
response.write "<img name=""" & name & """ border=""0"" src=""images/nav_" & name & "_here.gif"" width=""" & w & """ height=""" & h & """>"

else

response.write "<a href=""" & name & ".asp"" onmouseover=""joeMouseOver('" & name & "')"" onmouseout=""joeMouseOut('" & name & "')""><img name=""" & name & """ border=""0"" alt=""Home"" src=""images/nav_" & name & "_norm.gif"" width=""" & w & """ height=""" & h & """></a>"

}
***/



function joe_preload(s)
{
	if (s!=document.joe.here)
	{
		sOut = "images/nav_" + s + "_norm.gif"
		sOver = "images/nav_" + s + "_hot.gif"

		document.joe.iOut[s] = new Image();
		document.joe.iOut[s].src = sOut
	
		document.joe.iOver[s] = new Image();
		document.joe.iOver[s].src = sOver
	}
}

function joe_here()
{
	if(document.images[document.joe.here])
		document.images[document.joe.here].src= "images/nav_" + document.joe.here + "_here.gif"
}

document.joe = new Object();
document.joe.iOver = new Array();
document.joe.iOut = new Array();
document.joe.here = baseName(document.location);

	joe_preload("index")
	joe_preload("findworker")
	joe_preload("findjob")
	joe_preload("services")
	joe_preload("testimonials")
	joe_preload("contact")


