/* Browser sensing */
/* Set up boolean variables to record the browser type */
var isNS4 = 0;
var isNS3 = 0;
var isIE4 = 0;
var isIE3 = 0;
var isOld = 0;

// Set up other variables
var docObj;
var styleObj;
var topVal;

/* Determines the browser name and browser version */
var brow = ((navigator.appName) + (parseInt(navigator.appVersion)));

/* reassign variable depending on the browser */
if (brow == "Netscape4") 
{isNS4 = 1;}
	else if (brow == "Netscape3") 
	{isNS3 = 1;}
		else if (brow == "Microsoft Internet Explorer4") 
		{isIE4 = 1;}
			else if (brow == "Microsoft Internet Explorer3") 
			{isIE3 = 1;}
				else 
				{isOld = 1;}
				
// initalizes our Generic DOM based on the browser
if (isNS4||isIE4){
	docObj = (isNS4) ? 'document' : 'document.all';
	styleObj = (isNS4) ? '' : '.style';
	}		

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 can not be treated as an event
	if ((isNS4 && currElem != 0) || (isIE4 && currElem != 0)){
		dom = eval(docObj +  '.' + currElem + styleObj);
		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 (isNS4) {
				topVal = eval(evt.pageY + 2);
				leftVal = eval(evt.pageX - 125);}
			if (isIE4) {
				topVal = eval(event.y + 2);
				leftVal = eval(event.x - 125);}
			// keeps the element from going off screen tothe left
			if(leftVal < 2) {leftVal = 2;}	
			dom.top = topVal;
			dom.left = leftVal;
			dom.visibility = "visible";
				}
	}
}

	
