function popUp(evt,currElem) {
	/* checks to see if this is a DHTML browser and that currElem
		is not set to 0, in which case this was triggered by the
		HREF and cannot be treated as an event.*/
//	if ((is.ns4 && currElem != 0 && evt != null) || 
//		(is.ie4 && currElem != 0 && evt != null)) {
	if (currElem != 0 && evt != null) {
		if (document.getElementById) {
		   dom = document.getElementById(currElem).style;
		}
		else
		   dom = eval(doc + '.' + currElem + sty);
		state = dom.visibility;
		if (state == "visible" || state == "show")
			{dom.visibility = "hidden";}
		else
		// finds the position of the mouse and then offsets the
		// coordinates slightly
		{
			if (is.ns)	{
			   	if (document.getElementById) {
			   	  boxHeight = document.getElementById(currElem).offsetHeight;
			  	}
			   	else if (is.ns4) {
				  boxHeight = eval("document." + currElem + ".document.height");
			   	}
				topVal = eval(evt.pageY + 2);
				var incr = window.innerHeight -(evt.pageY - pageYOffset);
				if (incr < boxHeight)
					topVal -= boxHeight + 15;
			   	if (document.getElementById) {
			   	  boxWidth = document.getElementById(currElem).offsetWidth;
			  	}
			   	else if (is.ns4) {
				  boxWidth = eval("document." + currElem + ".document.width");
			   	}
				var incrr = window.innerWidth -(evt.pageX - pageXOffset);
				rightVal = eval(evt.pageX + boxWidth/2);
				leftVal = eval(evt.pageX  - pageXOffset - boxWidth/2);
				if (incrr < boxWidth/2 + 10)
					leftVal -= boxWidth/2 - incrr + 20;
	//			alert("incrr, bw/2= " + incrr + ", " + boxWidth/2);
}
			else if (is.ie)	{
			   	if (document.getElementById) {
			   	  boxHeight = document.getElementById(currElem).clientHeight;
				}
			   	else if (is.ie4) {
				  boxHeight = eval("document.all." + currElem + ".clientHeight");
				}
//				var ht2 = eval(document.body.scrollHeight);
				topVal = eval(event.clientY + 2);
//				topVal = eval(event.y + 2);
				var incr = document.body.clientHeight - topVal;
				var incr2 = document.body.scrollTop;
				topVal = topVal + incr2;
				if (incr < boxHeight)
					topVal -= boxHeight+25;
//					topVal -= boxHeight-incr+15;
			   	if (document.getElementById) {
			   	  boxWidth = document.getElementById(currElem).clientWidth;
				}
			   	else if (is.ie4) {
				  boxWidth = eval("document.all." + currElem + ".clientWidth");
				}
				leftVal = eval(event.clientX - boxWidth/2);
				var incrr = document.body.clientWidth - event.clientX;
				incr2 = document.body.scrollLeft;
				leftVal = leftVal + incr2;
				if (incrr < boxWidth/2 + 15)
					leftVal -= boxWidth/2 - incrr + 30;
}
		//keeps the element from going off the screen to the left
			if (leftVal < 2) {leftVal = 2;}
			dom.top = topVal;
			dom.left = leftVal;
			dom.visibility = "visible";
		}
	}
	else if (evt == null)	{
		document.location.href=HrefList[-currElem];
	}
}

