<!--
function suppressError() 
{
	return true
}

window.onerror = suppressError /* to suppress error in nn3 on resize, and stop errors
caused by rollover functions being called before script loaded */

function preloadNav(level) 
{
// preload images so that they are cached before mouseOver occurs

	navArray = ''

	if (level == 0)
	{
		path = 'shared/images/';
	}
	else if (level == 1)
	{
		path = '../shared/images/';
	}
	else if (level == 2)
	{
		path = '../../shared/images/';
	}
	else
	{
		path = 'shared/images/';
	}			
	
	
	navArray = new Array('home','water','hv','metering','handheld','archive');
	navOut = new Array();
	navOver = new Array();

	if (document.images){ // nn3+
		for (var i=0;i<navArray.length;i++){
			navOut[i] = new Image();
			navOut[i].src = path + navArray[i] + ".gif";
			navOver[i] = new Image();
			navOver[i].src = path + navArray[i] + "_over.gif";
		}
	}
}

function rollOver(j) 
{
// match current with correct over in navArray
	i = eval(j-1) // array starts from 0, nav easier to work with from 1
	document.images[navArray[i]].src = (navOver[i].src);

}

function rollOut(j) 
{
	i = eval(j-1)
	document.images[navArray[i]].src = (navOut[i].src);
}
//-->