	function popUp(url, winwidth, winheight) {
		if (arguments.length > 1) {
			winwidth = arguments[1];
		}
		sealWin = window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width='+winwidth+',height='+winheight);
		self.name = "mainWin";
	}
	
	function clearSearch(textboxRef) {
		if (textboxRef.value == "Search") {
			textboxRef.value = "";
		}
	}
	
	function GoTo(strLocation) {
		if (strLocation.indexOf("http") == -1) {
			window.location = strLocation;
		} else {
			window.open(strLocation);
		}
	}
	
	function showDiv(DivId, shown) {  
		var displaystyle = "none";
		if (shown) {
			displaystyle = "block";
		}
		if (document.getElementById) { // IE5 & NS6
			document.getElementById(DivId).style.display = displaystyle;
		} else {
			if (document.all) { // IE
				document.all(DivId).style.display = displaystyle;
			} else { // NS 4
				document.getElementById(DivId).style.display = displaystyle;
			}
		}
	}
	
	function showSiteMapDiv(DivId) {
		var showdiv = false;
		if (document.getElementById) { // IE5 & NS6
			if (document.getElementById(DivId).style.display == "none") {
				showdiv = true;
			}
		} else {
			if (document.all) { // IE
				if (document.all(DivId).style.display == "none") {
					showdiv = true;
				}
			} else { // NS 4
				if (document.getElementById(DivId).style.display == "none") {
					showdiv = true;
				}
			}
		}
		showDiv(DivId, showdiv);
	}

	var currentMenu = "";
	var menuWaiting = false;
	var menuWaiter = null;
	function showSubMenu(divId) 
	{
		if (divId) {
			mOver(divId + "_Head");
			if (menuWaiting && divId == currentMenu) {
				clearTimeout( menuWaiter );
				menuWaiting = false;
			}
			showDiv(divId, true);
			currentMenu = divId;
		} else {
			menuWaiting = true;
			menuWaiter = setTimeout("showSubMenuOff('"+currentMenu+"')",100);
		}
	}
	
	function showSubMenuOff(divId)
	{
		menuWaiting = false;
		highlight();
		showDiv(divId, false);
		mOver();
	}
	
	// General Mouseovers
	var strLastOver = "";
	function mOver(strImgName) {
		if(strImgName) {
			// onmouseout not reliable on NS7
			if (strLastOver) {
				mOver();
			}
			strLastOver = strImgName;
			document.images[strImgName].src = eval(strImgName + "_on.src");
		} else {
			document.images[strLastOver].src = eval(strLastOver + "_off.src");
		}
	}
	
	oLastLink = null;
	function highlight(aLinkObj) {
		if (aLinkObj) {
			if (oLastLink && oLastLink != aLinkObj) {
				oLastLink.parentNode.className = "submenuitem";
			}			
			oLastLink = aLinkObj;
			aLinkObj.parentNode.className = "submenuitemhover";
		} else {
			if (oLastLink) {
				oLastLink.parentNode.className = "submenuitem";
			}
		}
	}
	
	function mungeIt(username, domain, linkname) {
		var atsign = "&#64;";
		var addr = username + atsign + domain;
		if (linkname == "") { linkname = addr; }
		document.write( 
          "<" + "a" + " " + "href=" + "mail" + "to:" + addr + ">" 
           + linkname +
          "<\/a>");
	}

	