//error fix
function stopErrors() {
return true;
}
window.onerror = stopErrors;


//side navigation
if (document.images != null)
  
{
ontop = new Array (5); offtop = new Array (5);
for (i=1;i<5;i++) {ontop[i] = new Image; offtop[i] = new Image;}

ontop[1].src="/images/nav/index_.gif";
ontop[2].src="/images/nav/company_.gif";
ontop[3].src="/images/nav/contact_.gif";
ontop[4].src="/images/nav/products_.gif";

offtop[1].src="/images/nav/index.gif";
offtop[2].src="/images/nav/company.gif";
offtop[3].src="/images/nav/contact.gif";
offtop[4].src="/images/nav/products.gif";

}
function top_on(n) {if (document.images != null) {document.images["i"+(n+"")].src=ontop[n].src;}}
function top_off(n) {if (document.images != null) {document.images["i"+(n+"")].src=offtop[n].src;}}


function shad_navBar( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#4181C2';
				break;
			default:
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000066';
				}
		}
	} else {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#036';
				break;
			default:
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#fff';
				}
		}
	}
}

function shad_navBarClick( tableCellRef, navStyle, url ) {
	shad_navBar( tableCellRef, 0, navStyle );
	shad_goTo( url );
}