//<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;

	eyesoff = new Image();
	eyesoff.onload = loadCheckNav;
	eyesoff.src = sPath + "/pics/tussendespaties1.gif";

	eyeson = new Image();
	eyeson.onload = loadCheckNav;
	eyeson.src = sPath + "/pics/tussendespaties2.gif";
}


function loadCheckNav()
{
    PageButtonCount++;
	if(PageButtonCount >= 1)
	{
		NavPreLoaded=true;
	}
}

function navOverOut(navName,navSrc)
{
	if(NavPreLoaded==true)
	{
		document[navName].src=eval(navSrc+".src");
	}
}

//</SCRIPT>