function gotoSearch (whichMenu) {
	theValue = eval ("document.form1." + whichMenu + ".options[document.form1." + whichMenu + ".selectedIndex].value");
	if (theValue != 0)
	document.location = "search.cfm?" + whichMenu + "=" + theValue;
}

function hideFind(e,theId) {
	if (!e) var e = window.event;
	
	// First get the event target, ie. the element the mouse moved out of. 
	var tg = (window.event) ? e.srcElement : e.target;
	
	// If the target is not the DIV (layer), end the function immediately, 
	// because the mouse has certainly not left the layer.
	if (tg.nodeName != 'DIV') {
		//alert("moved out of something other than our div");
		return;
		}
	
	// If the target is the layer, we're still not sure if the mouse left the layer
	// or entered a link within the layer. Therefore we're going to check the 
	// relatedTarget/toElement of the event, ie. the element the mouse moved to.
	var reltg = (e.relatedTarget) ? e.relatedTarget : e.toElement;
	
	// move upwards through the DOM tree until we either encounter 
	// the target of the event (ie. the DIV), or the body element.
	while (reltg != tg && reltg.nodeName != 'BODY') {
		//alert("goin' up");
		reltg= reltg.parentNode;
		}
		
	// If we encounter the target the mouse moves towards a child element of the layer, 
	// so the mouse has not actually left the layer. We stop the function.
	if (reltg== tg) {
		//alert("twords child");
		return;
		}
	
	// When the function has survived all these checks then
	// we're certain that the mouse has actually left the layer
	//alert("whee");
	document.getElementById(theId).style.visibility = "hidden";
}

function showFind() {
	document.getElementById("find").style.visibility = "visible";
}

function showFindHome() {
	document.getElementById("findHome").style.visibility = "visible";
}

function whatFrom(e) {
	if (!e) var e = window.event;
	var relTarg = e.relatedTarget || e.fromElement;
	alert(relTarg);
}
function whatTo(e) {
	if (!e) var e = window.event;
	var relTarg = e.relatedTarget || e.toElement;
	alert(relTarg);
}