//<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">

var NavPreLoaded=false;
var PageButtonCount;

// Gets: sPath, string. Which is the path which should be put in front of the actual path to
// the image. This way, we can have directory structure independent preloading of
// images. sPath shouldn't have a trailing '/'. 
function preloadNavImages(sPath)
{
	PageButtonCount = 0;

	navbaloff = new Image();
	navbaloff.onload = loadCheckNav;
	navbaloff.src = sPath + "/pics/navbalempty.gif";

	navbalon = new Image();
	navbalon.onload = loadCheckNav;
	navbalon.src = sPath + "/pics/navbal.gif";

}


function loadCheckNav()
{
    PageButtonCount++;
	if(PageButtonCount >= 1)
	{
		NavPreLoaded=true;
	}
}

function navOverOut(navName,navSrc)
{
	if(NavPreLoaded==true)
	{
		document[navName].src=eval(navSrc+".src");
	}
}

//</SCRIPT>
