// This section is for the clock

var Clock = 0;
function UpdateClock() {
   var TimeObject = new Date();
   var TimeString = "     ";
   var DateString = "       ";
   ClockHours = TimeObject.getHours();
   if( ClockHours < 12 ){
     if( !ClockHours ) {
       ClockHours = 12;
       ClockAmPm = "M"	}
     else {ClockAmPm = "AM" } }
   else {
     if( ClockHours == 12 ) {
       ClockAmPm = "PM" }
     else {ClockHours -= 12;
       ClockAmPm = "PM"	} }
   ClockMinutes = TimeObject.getMinutes();
   ClockSeconds = TimeObject.getSeconds();
   TimeString += ((ClockHours < 10) ? " " : "") + ClockHours + ":";
   TimeString += ((ClockMinutes < 10) ? "0" : "") + ClockMinutes + ":";
   TimeString += ((ClockSeconds < 10) ? "0" : "") + ClockSeconds + "";
   TimeString += " ";
   TimeString += ClockAmPm + " ";
   ClockMonth = TimeObject.getMonth() + 1;
   if( ClockMonth < 10 ) {
     ClockMonth = "0" + ClockMonth }
     ClockDate = TimeObject.getDate();
       if( ClockDate < 10 ) {
         ClockDate = "0" + ClockDate }
     ClockYear = TimeObject.getYear();
   DateString += ClockMonth+"/"+ClockDate+"/"+ClockYear;
   document.DateTimeForm.DateTimeBox.value = DateString+TimeString;
   clearTimeout( Clock );
   Clock = setTimeout( "UpdateClock()", 1000 )
}

// if(navigator.appName == "WebTV")
// {
//  alert("You're using the WebTV browser.")
// }
//  if(navigator.appName == "Netscape")
// {
//  alert("You're using a Netscape browser.")
// }
//  if(navigator.appName == "Microsoft Internet Explorer")
// {
// alert("You're using the Internet Explorer browser.")
// }

// This section is for the menu navigation

if (document.layers) {navigator.family = "nn4"}
if (document.all) {navigator.family = "ie4"}
if (window.navigator.userAgent.toLowerCase().match(/gecko/)) {navigator.family = "gecko"}
if (window.navigator.userAgent.toLowerCase().indexOf('opera') != -1) {navigator.family	= 'opera';}

toplevel="20";

function riseup (box, tab, bgcolor) {
toplevel++;
if (navigator.family == "ie4") {
	document.all[box].style.zIndex = toplevel;
	setDefaultTabColor();
	document.all[tab].style.backgroundColor = bgcolor;	/* set current tab with same color as the content */
	}
if (navigator.family == "opera" || navigator.family == "gecko") {
 	document.getElementById(box).style.zIndex = toplevel;
 	setDefaultTabColor();
 	document.getElementById(tab).style.backgroundColor = bgcolor;  	/* set current tab with same color as the content */
 	}
}
function setDefaultTabColor() {
		defaultTabColor = '2F5897';
		document.all['box1'].style.visibility = 'hidden';
		document.all['tab1'].style.backgroundColor = defaultTabColor;
		document.all['tab2'].style.backgroundColor = defaultTabColor;
		document.all['tab3'].style.backgroundColor = defaultTabColor;
		document.all['tab4'].style.backgroundColor = defaultTabColor;
		document.all['tab5'].style.backgroundColor = defaultTabColor;
		document.all['tab6'].style.backgroundColor = defaultTabColor;
		document.all['tab7'].style.backgroundColor = defaultTabColor;
		document.all['tab8'].style.backgroundColor = defaultTabColor;
		document.all['tab9'].style.backgroundColor = defaultTabColor;
}
function hideme(tab) {
	document.all[tab].style.backgroundColor = '2F5897';
	showBox1();
}
function showBox1() {
	toplevel++;
	setDefaultTabColor();
	document.all.box1.style.zIndex = toplevel;
	document.all.box1.style.visibility = "visible";	// or document.all.box1.style.visibility = "visible";
}

