// first navStyle is for mouseover color
// second navStyle is for mouseout color
function CAT_navBar( tableCellRef, hoverFlag, navStyle ) {
if ( hoverFlag ) {
switch ( navStyle ) {
case 1:
tableCellRef.style.backgroundColor = '#6699cc';
break;
default:
tableCellRef.style.backgroundColor = '#6699cc';
if ( document.getElementsByTagName ) {
tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000000';
}
}
} else {
switch ( navStyle ) {
case 1:
tableCellRef.style.backgroundColor = '#003366';
break;
default:
tableCellRef.style.backgroundColor = '#003366';
if ( document.getElementsByTagName ) {
tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#ffffff';
}
}
}
}
// first navStyle is for mouseover color
// second navStyle is for mouseout color
function CAT_navBar2( tableCellRef, hoverFlag, navStyle ) {
if ( hoverFlag ) {
switch ( navStyle ) {
case 1:
tableCellRef.style.backgroundColor = '#56bac2';
break;
default:
tableCellRef.style.backgroundColor = '#56bac2';
if ( document.getElementsByTagName ) {
tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000000';
}
}
} else {
switch ( navStyle ) {
case 1:
tableCellRef.style.backgroundColor = '#167a82';
break;
default:
tableCellRef.style.backgroundColor = '#167a82';
if ( document.getElementsByTagName ) {
tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#ffffff';
}
}
}
}
function goTo( url ) {
window.location.href = url;
}
function CATnavBarClick( tableCellRef, navStyle, url ) {
CAT_navBar( tableCellRef, 0, navStyle );
goTo( url );
}
