
function globalNavigate(URL) {
  document.write(URL);
}

function fieldOver(ID) {
	document.getElementById("A"+ID).style.backgroundColor = "#000099";
	document.getElementById("B"+ID).style.backgroundColor = "#000099";
	document.getElementById("C"+ID).style.backgroundColor = "#000099";
	document.getElementById("D"+ID).style.visibility = "visible";
}

function fieldOut(ID) {
	document.getElementById("A"+ID).style.backgroundColor = "#A6A6A8";
	document.getElementById("B"+ID).style.backgroundColor = "#A6A6A8";
	document.getElementById("C"+ID).style.backgroundColor = "#FFFFFF";
	document.getElementById("D"+ID).style.visibility = "hidden";
}

function loadPath(path) {
	document.location.href = path;
}

function loadID(ID) {
	document.location.href = "/default.aspx?path="+ID;
}

function printWindow(ID) {
	win1 = open(ID,"SecWin","width=666,height=571,scrollbars=yes");
}

function officeShow(file) {
	document.getElementById("offices").src = file;
}

function officeHide() {
	document.getElementById("offices").src = "/images/blank.gif";
}

// ***********************************
var oldLinkID = "";

function showSubLevel(ID,sID,total,linkID) {
  var elm
	if(document.getElementById("lev3")) {
		document.getElementById("lev3").style.visibility = "hidden";
	}
	if(document.getElementById("lineTwo")) {
		document.getElementById("lineTwo").style.visibility = "hidden";
	}
	for(i=1;i<=total;i++) {
	  elm = document.getElementById(sID+i);
	  if(elm){
		  elm.style.visibility = "hidden";
		}
	}
	elm = document.getElementById("lineOne");
	if(elm) {
	  elm.style.visibility = "visible";
	}
	elm =	document.getElementById(ID);
	if(elm) {
	  elm.style.visibility = "visible";
	}
	document.getElementById(linkID).style.textDecoration = "underline";
	if(oldLinkID!="") {
		document.getElementById(oldLinkID).style.textDecoration = "none";
	}
	oldLinkID = linkID;
}

function showMenu() {
	document.getElementById("dropdown").style.visibility = "visible";
	document.getElementById("dropdown").style.zIndex = "100";
}

function hideMenu() {
	document.getElementById("dropdown").style.visibility = "hidden";
	document.getElementById("dropdown").style.zIndex = "-100";
}

function showMenuIE() 
{
  // to fix print bug in IE it is required to move the back in view, see below
  document.getElementById("dropdown").style.top="18px";
  showMenu();
}

function hideMenuIE() 
{
  // to fix print bug in IE it is required to move the div out of view.....
  // because when you print from IE if even if the visablity is set to hidden the border is still printed
  document.getElementById("dropdown").style.top="-1000px";
  hideMenu();
}

function menuOver(ID) {
	document.getElementById(ID).style.backgroundColor = "#CC0000";
}

function menuOut(ID) {
	document.getElementById(ID).style.backgroundColor = "#CFCFD9";
}


function pageInit() {
	document.getElementById("dropdown").style.visibility = "visible";
	document.getElementById("dropdown").style.visibility = "hidden";
	if(navigator.appName=='Netscape') {
		document.getElementById("dropdown").style.top = "177px";
	}
}

function vcardOn(ID) {
	document.getElementById(ID).src = "/images/vcardIconOn.gif";
}

function vcardOff(ID) {
	document.getElementById(ID).src = "/images/vcardIcon.gif";
}

function topOn(ID) {
	document.getElementById(ID).src = "/images/arrowUpOn.gif";
}

function topOff(ID) {
	document.getElementById(ID).src = "/images/arrowUp.gif";
}

function rowOn(ID) {
	document.getElementById(ID+1).style.backgroundColor = "#CDCDD0";
	document.getElementById(ID+2).style.backgroundColor = "#CDCDD0";
	document.getElementById(ID+3).style.backgroundColor = "#CDCDD0";
	document.getElementById(ID+4).style.backgroundColor = "#CDCDD0";
}

function rowOff1(ID) {
	document.getElementById(ID+1).style.backgroundColor = "#A6A6A8";
	document.getElementById(ID+2).style.backgroundColor = "#A6A6A8";
	document.getElementById(ID+3).style.backgroundColor = "#A6A6A8";
	document.getElementById(ID+4).style.backgroundColor = "#A6A6A8";
}

function rowOff2(ID) {
	document.getElementById(ID+1).style.backgroundColor = "#B8B8BC";
	document.getElementById(ID+2).style.backgroundColor = "#B8B8BC";
	document.getElementById(ID+3).style.backgroundColor = "#B8B8BC";
	document.getElementById(ID+4).style.backgroundColor = "#B8B8BC";
}

