<!--
function MM_findObj(n, d) { //v3.0
  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); 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 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];}}
}

// Expand/contract menu 
lastopened='';
function SwitchMenu(obj,arrowObj) {
	if (document.getElementById) {
		var el = document.getElementById(obj);
		var ar = document.getElementById("sidebarmenu").getElementsByTagName("ul");
		// Switch all menus off
		for (var i=0; i<ar.length; i++) {
			if (ar[i].className=="sidebarnavsub") ar[i].style.display = "none";
		}
		//Change last opened arrow off
		//MM_swapImgRestore();  //THIS DOESN'T WORK. Using next line to fix.
		if (lastopened!='') {
			MM_swapImage(lastopened,'',adjPrefix+'images/topic_arrow.gif',1);
		}
		// Switch selected menu and arrow on
		el.style.display = "block";
		if (arrowObj!=null) {
			MM_swapImage(arrowObj,'',adjPrefix+'images/topic_arrow_down.gif',1);
			lastopened=arrowObj;
		}
	}
}

function SwitchSubMenusOff() {
	if (document.getElementById) {
		var ar = document.getElementById("sidebarmenu").getElementsByTagName("ul");
		for (var i=0; i<ar.length; i++) {
			if (ar[i].className=="sidebarnavsub") ar[i].style.display = "none";
		}
	}
	if (lastopened!='') {
		MM_swapImage(lastopened,'',adjPrefix+'images/topic_arrow.gif',1);
	}
}

// Show/Hide Side bar
// To work, the side bar container gets hidden, then the colspans get readjusted, and then reversed to show

function onloadSideNavStat() {

/* Cookie operation disabled by request of Lorraine McCamley, email 11/4/03
	ShowSide=get_cookie('ShowSide');
	// If no Cookie, set default
	if (ShowSide=='') {
		// Test for cookies. If present, this is a first time visit to the page.
		set_cookie('test', 'success');
		cTest=get_cookie('test');
		if (cTest=='success') {
			// Default is to hide the side bar
			ShowSide='false';
		}
		else {
			// Cookies are available, so show the side bar
			ShowSide='true';
		}
	}
*/
	// Next two lines replace former Cookie functionality above
	if (document.getElementById) ShowSide='false';
	else ShowSide='true';

	// Now, turn off the menu if ShowSide is false, which will only happen if the ShowSide cookie was set to false
	if (ShowSide=='true') {
		ShowingSide=true;
	}
	else {
		ShowingSide=false;
	}


}

onloadSideNavStat();
cPath="/";
function toggleSideBar() {
	if (document.getElementById) {
		// Hide it
		if (ShowingSide) {
			// Turn the whole table display off temporarily - NS7 doesn't handle the movement gracefully
			document.getElementById("container").style.display="none";
			document.getElementById("rightsidecontainer").style.display="none";
			document.getElementById("rightsidecontainer").style.visibility="hidden";
			document.getElementById("mainbody").colSpan=11;
			document.getElementById("rightsidebody").colSpan=1;
			// Turn the table back on
			document.getElementById("container").style.display="block";
			//document.getElementById("container").style.width=751;
			MM_swapImage('sidenav','', adjPrefix+'images/sidenav-off.gif',1);
			set_cookie('ShowSide','false',null,cPath);
			ShowingSide=false;
		}
		// Show it
		else {
			// Turn the whole table display off temporarily - NS7 doesn't handle the movement gracefully
			document.getElementById("container").style.display="none";
			document.getElementById("rightsidecontainer").style.visibility="hidden";
			document.getElementById("rightsidecontainer").style.display="none";
			document.getElementById("mainbody").colSpan=5;
			document.getElementById("rightsidebody").colSpan=7;
			document.getElementById("rightsidecontainer").style.display="block";
			document.getElementById("rightsidecontainer").style.visibility="visible";
			MM_swapImage('sidenav','',adjPrefix+'images/sidenav-on.gif',1);
			// Turn the table back on
			document.getElementById("container").style.display="block";
			set_cookie('ShowSide','true',null,cPath);
			ShowingSide=true;
		}
	}
	return false;
}

// Cookie functions
function set_cookie (name, value) {
	var argv = set_cookie.arguments;
	var argc = set_cookie.arguments.length;
	var expires = (2 < argc) ? argv[2] : null;
	var path = (3 < argc) ? argv[3] : null;
	var domain = (4 < argc) ? argv[4] : null;
	var secure = (5 < argc) ? argv[5] : false;
	document.cookie = name + "=" + escape (value) +
		((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
		((path == null) ? "" : ("; path=" + path)) +
		((domain == null) ? "" : ("; domain=" + domain)) +
		((secure == true) ? "; secure" : "");
}

function get_cookie(Name) {
	var search = Name + "="
	var returnvalue = "";
	if (document.cookie.length > 0) {
    	offset = document.cookie.indexOf(search)
    	// if cookie exists
	    if (offset != -1) { 
	    	offset += search.length
	      	// set index of beginning of value
	      	end = document.cookie.indexOf(";", offset);
	      	// set index of end of cookie value
	      	if (end == -1) end = document.cookie.length;
	      		returnvalue=unescape(document.cookie.substring(offset, end))
	    }
   	}
  	return returnvalue;
}


String.prototype.Trim=new Function("return this.replace(/^\\s+|\\s+$/g,'')");

function ValidateField(fieldName,errorMessage) {
	checkField = fieldName.value.Trim();
	if (checkField.length < 1) {
		alert(errorMessage);
		fieldName.value.Trim();
		fieldName.focus();
		fieldName.select();
		return false;
	}
	else return true;
}

function popLoginWin() {
	WinH=525;
	WinW=700;
	Xpos=(screen.width/2)-(WinW/2);
	Ypos=(screen.height/2)-(WinH/2);
	MetaXP = window.open('opening.htm','MetaXPWin','width='+WinW+',height='+WinH+',scrollbars=auto,resizable=1,toolbar=0,location=0,menubar=0,status=0,directories=0,screenx='+Xpos+',screeny='+Ypos+',left='+Xpos+',top='+Ypos+',alwaysRaised',true);
   	MetaXP.focus();
}

if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

var preloadArray = new Array();
var menuItem = "initItem";
var menuNum = 0;

//sets the base properties for the menu items
HM_PG_MenuWidth = 130;
HM_PG_FontFamily = "Verdana,sans-serif";
if (navigator.appVersion.indexOf("Mac") !=-1){
HM_PG_FontSize = 9;
}
else {
HM_PG_FontSize = 9;
}
HM_PG_FontBold = 1;
HM_PG_FontItalic = 0;
HM_PG_FontColor = "#003366";
HM_PG_FontColorOver = "#003366";
HM_PG_BGColor = "#CCAE51";
HM_PG_BGColorOver = "#B6C1CC";
HM_PG_ItemPadding = 1;

HM_PG_BorderWidth = 1;
HM_PG_BorderColor = "#003366";
HM_PG_BorderStyle = "solid";
HM_PG_SeparatorSize = 1;
HM_PG_SeparatorColor = "#003366";
HM_PG_ImageSrc = "images/more.gif";
HM_PG_ImageSrcLeft = "images/more.gif";

HM_PG_ImageSize = 8;
HM_PG_ImageHorizSpace = 1;
HM_PG_ImageVertSpace = 2;

HM_PG_KeepHilite = true; 
HM_PG_ClickStart = 0;
HM_PG_ClickKill = false;
HM_PG_ChildOverlap = 1;
HM_PG_ChildOffset = -1;
HM_PG_ChildPerCentOver = null;
HM_PG_TopSecondsVisible = .1;
HM_PG_StatusDisplayBuild =0;
HM_PG_StatusDisplayLink = 0;
HM_PG_UponDisplay = null;
HM_PG_UponHide = null;
HM_PG_RightToLeft = false;

HM_PG_CreateTopOnly = 1;
HM_PG_ShowLinkCursor = 1;
HM_PG_NSFontOver = true;


//-->

