function ST_navBar( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#666666';//'#7BAED6'
				//tableCellRef.style.borderTopColor = 'white';
				//tableCellRef.style.borderRightColor = 'white';
				//tableCellRef.style.borderLeftColor = 'white';
				//tableCellRef.style.borderBottomColor = 'white';
				//tableCellRef.style.display = "block";
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ccc';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#c00';
				}
		}
	} else {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#008FF5';
				//tableCellRef.style.display = "block";
				//tableCellRef.style.borderTopColor = '#008FF5';
				//tableCellRef.style.borderRightColor = '#008FF5';
				//tableCellRef.style.borderLeftColor = '#008FF5';
				//tableCellRef.style.borderBottomColor = '#008FF5';
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ddd';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000';
				}
		}
	}
}

function ST_TopnavBar( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#7BAED6';
				break;
			default:
//				tableCellRef.style.backgroundColor = '#7BAED6';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#c00';
				}
		}
	} else {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#008FF5';
				break;
			default:
//				tableCellRef.style.backgroundColor = '#008FF5';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000';
				}
		}
	}
}

function ST_goTo( url ) {
	window.location.href = url;
}


function ST_navBarClick( tableCellRef, navStyle, url ) {
	ST_navBar( tableCellRef, 0, navStyle );
	ST_goTo( url );
}

