function navBar( tableCellRef, hoverFlag, navStyle ) {
  color2='#767d5e';
  color1='#9ca67c';
  if ( hoverFlag ) {
    switch ( navStyle ) {
    case 1:
      tableCellRef.style.backgroundColor = color1;
      break;
    default:
      if ( document.getElementsByTagName ) {
	tableCellRef.getElementsByTagName( 'a' )[0].style.color = color2;
      }
    }
  } else {
    switch ( navStyle ) {
    case 1:
      tableCellRef.style.backgroundColor = color2;
      break;
    default:
      if ( document.getElementsByTagName ) {
        tableCellRef.getElementsByTagName( 'a' )[0].style.color = color1;
      }
    }
  }
}
