//Mouseover
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function SetFormValue(formStr,field,value) {
	
	form=(MM_findObj(formStr))
	
	if (form) {
		if (null != (form.elements[field])) {
			if ((browser == netscape)&&(form.elements[field].type=='select-one')){
				sellength=form.elements[field].length;
				for (i=0; i< sellength; i++) {
					if (form.elements[field].options[i].value==value)
						form.elements[field].options[i].selected=true;
				}
			} 
			else 
				form.elements[field].value=value;
		}		
	}
}

function SubmitForm(formStr) {
	form=(MM_findObj(formStr))
	if(form) form.submit();
}
//-->

//** Drop Nav Centered on Site **//
// IE and Mozilla friendly way to get id's
function findId(id) {
	if (document.getElementById) {
		return document.getElementById(id);
	} else if (document.all) {
		return document.all.id;
	}
}

tdLastId = "";
tdCurrentId = "";
waiting = 0;
waitTime = 50;
timeoutId = "";

function navFlip(id, that, xOffset, yPos) {
	//alert(xOffset)
	if (!xOffset) xOffset = 0;
	if (!yPos) yPos = 0;
	if (waiting) {
		if (id != tdLastId) {
			clearTimeout(timeoutId);
			that_saved = that;
			timeoutId = setTimeout('clearWait(' + xOffset + ', ' + yPos + ')', waitTime);
		}
		tdLastId = id;
		return;
	}

	if (tdCurrentId != id) {
		if (id) {
			lyr = findId(id);

			if (that) {
				lyr.style.left = findPosX(that) + xOffset;
				if (yPos) {
					lyr.style.top = yPos;
				}
			}

			lyr.style.visibility = "visible";

			waiting = id;
		}

		if (tdCurrentId) {
			//alert('dis: ' + tdCurrentId + ' waiting:' + waiting);

			lyr = findId(tdCurrentId);

			lyr.style.visibility = "hidden";
		}
		tdCurrentId = id;
	}
	tdLastId = id;
}

function clearWait(xOffset, yPos) {
	//alert('clearing: ' + waiting);
	waiting = 0;
	navFlip(tdLastId, that_saved, xOffset, yPos);
}

// Functions to find positions of static images
function findPosX(obj) {
	var curleft = 0;
	if (obj.offsetParent) {
		while (obj.offsetParent) {
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	} else if (obj.x) {
		curleft += obj.x;
	}

	return curleft;
}

function findPosY(obj) {
	var curtop = 0;
	if (obj.offsetParent) {
		while (obj.offsetParent) {
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	} else if (obj.y) {
		curtop += obj.y;
	}

	return curtop;
}

//Popup
<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//  End -->




// global variables for popups
var PopupFlag=0;
var Popup;

var isNew = 0;
var isNS4 = 0;
var isIE4 = 0;

var ClipFlag = 0;

var mousePosX = null;
var mousePosY = null;

//browser sniffer
var brows=((navigator.appName)+(parseInt(navigator.appVersion)));
if(parseInt(navigator.appVersion)>=5) 
	isNew=1;
else if (brows=="Netscape4") 
	isNS4=1;
else if (brows=="Microsoft Internet Explorer4") 
	isIE4=1;

if (isNS4||isIE4){
	if (isNS4){
		var docObj = 'document';
	}
	else{
		var docObj = 'document.all';
	}
	var styleObj = (isNS4) ? '' : '.style';
}
if (isNew){
	var docObj = 'document.getElementById';
	var styleObj = '.style';
}


// SHOW A HIDDEN DIV -----------------------------------
	function fncShowDiv(menuName,top,left)
	{
		if (isNew){
			var menu = eval(docObj + "(menuName)" + styleObj);
		}
		else if (isNS4 || isIE4){
			var menu = eval(docObj + '.' + menuName + styleObj);
		}
		else{
		}
	
		if (isIE4) { // grab the x-y position of the mouse if browser is IE
	    	mousePosX = event.clientX + document.body.scrollLeft;
	    	mousePosY = event.clientY + document.body.scrollTop;
	  	} 
		else {  // grab the x-y position of the mouse if browser is NS
			document.captureEvents(Event.MOUSEMOVE);
			document.onmousemove=mTrack;
		}
		
		//assign an offset of the mouse to the div top and left
		menu.top=(mousePosY+top);
		menu.left=(mousePosX+left);
		
		menu.visibility="visible";
	}

	/*This function finds the mouse x y coordinates*/
	function mTrack(e) {
    	mousePosX = e.pageX;
    	mousePosY = e.pageY;
	  	// catch possible negative values in NS4
	  	if (mousePosX < 0){
			mousePosX = 0;
		}
	  	if (mousePosY < 0){
			mousePos = 0;
		} 
	}


	/*This function gets the DOM depending on the browser and hides the menu.
	The id of the span is passed in as a parameter*/
	function fncHideDiv(menuName)
	{
		if (isNew){
			var menu = eval(docObj + "(menuName)" + styleObj);
		}
		else if (isNS4 || isIE4){
			var menu = eval(docObj + '.' + menuName + styleObj);
		}
		else{
		}
		menu.visibility="hidden";
	}
