function navBar( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#D9DDEB';
				tableCellRef.style.cursor = 'hand';
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ccc';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#c00';
				}
		}
	} else {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#FFFFFF';
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ddd';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000';
				}
		}
	}
}

function goTo( url ) {
	window.location.href = url;
}

function navBarClick( tableCellRef, navStyle, url ) {
	navBar( tableCellRef, 0, navStyle );
	goTo( url );
}

  function litemenu(n) {
    if (document.images) {
      if (n==1) document.images["language"].src = "ef2.gif";
      else document.images["language"].src = "fe2.gif";
    }
  }

  function unlitemenu(n) {
    if (document.images) {
      if (n==1) document.images["language"].src = "ef1.gif";
      else document.images["language"].src = "fe1.gif";
    }
  }
  
  function popupimg(fn){
         bName = navigator.appName;
         bVer = parseInt(navigator.appVersion); 
         if (bName == "Netscape" && bVer >= 2) ver = "n2";
         else if (bName == "Microsoft Internet Explorer" && bVer >= 2) ver = "e3";
         if (ver == "n2" || ver == "e3"){
	       u = "showimg.php?imgloc="+fn;
           win=open(u,"winnow", 'width=222,height=341,resizable=no,scrollbars=no,left=100,top=20');
         }
  }
  
  function popupimg2(fn,w,h){
      bName = navigator.appName;
      bVer = parseInt(navigator.appVersion); 
      if (bName == "Netscape" && bVer >= 2) ver = "n2";
      else if (bName == "Microsoft Internet Explorer" && bVer >= 2) ver = "e3";
      if (ver == "n2" || ver == "e3"){
	    u = "showimg.php?imgloc="+fn;
        win=open(u,"winnow", 'width='+w+',height='+h+',resizable=yes,scrollbars=yes,left=20,top=20');
      }
  }
  
  function popup(u){
    bName = navigator.appName;
    bVer = parseInt(navigator.appVersion); 
      if      (bName == "Netscape" && bVer >= 2) ver = "n2";
      else if (bName == "Microsoft Internet Explorer" && bVer >= 2) ver = "e3";
    if (ver == "n2" || ver == "e3"){
      win=open(u,"winnow", 'width=450,height=350,resizable=yes,scrollbars=yes,left=20,top=20');
    }
  }

