function goTo( url ) {
	window.location.href = url;
}

function navBar( tableCellRef, hoverFlag, navStyle, section ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				if (section == 1) {tableCellRef.style.backgroundColor = '#CC0000';}
				else {
				tableCellRef.style.backgroundColor = '#CC0000';}
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ccc';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#c00';
				}
		}
	} else {
		switch ( navStyle ) {
			case 1:
				if (section == 1) {tableCellRef.style.backgroundColor = '#550000';}
				else {
				tableCellRef.style.backgroundColor = '#777777';}
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ddd';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000';
				}
		}
	}
}

function navBarClick( tableCellRef, navStyle, url ) {
	navBar( tableCellRef, 0, navStyle );
	goTo( url );
}