function p_goTo( url ) {
	window.location.href = url;
}

function p_navBar( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				// tableCellRef.style.backgroundColor = '#69c';
				tableCellRef.style.backgroundColor = '#33ff66';
				// tableCellRef.style.color = '#ffffff';
				break;
			default:
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#33ff66';
				}
		}
	} else {
		switch ( navStyle ) {
			case 1:
				// tableCellRef.style.backgroundColor = '#036';
				tableCellRef.style.backgroundColor = '#C9F3AF';
				// tableCellRef.style.color = '#ff9900';
				break;
			default:
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#C9F3AF';
				}
		}
	}
}

function p_navBarClick( tableCellRef, navStyle, url ) {
	p_navBar( tableCellRef, 0, navStyle );
	p_goTo( url );
}
