var pathname = window.location.pathname.toLowerCase();filename = pathname.substring(0,(pathname.lastIndexOf('nsf')+4)) ;filenameR = pathname.substring(0,(pathname.lastIndexOf('nsf')+3)) ;function getElById( IDNum ){		if( document.all)			return document.all[IDNum]		if(document.getElementById)			return document.getElementById(IDNum)		return null}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 bgColour(obj, newColour) {	obj.style.backgroundColor = newColour;}function skin_onload(){	startList();}function startList() {	navRoot = getElById("navlist");	if( navRoot){		for (i=0; i<navRoot.childNodes.length; i++) {			node = navRoot.childNodes[i];			if (node.nodeName=="LI") {				node.onmouseover=function() {	this.className+=" over";  	}				node.onmouseout=function() {  this.className=this.className.replace(" over", "");   }	   		}		}	}}function popUpMenu() {	var a,b,c,d,args=popUpMenu.arguments;	if(!document.setMenuArray) {menuArray=new Array(); document.setMenuArray=true;}	for(c=0; c<menuArray.length; c++) {		if((a=MM_findObj(menuArray[c]))!=null) {			b = (document.layers) ? a : a.style;			b.visibility = "hidden";		}	}	for(c=0; c<args.length; c++) {		if((a=MM_findObj(args[c])) != null) {			b = (document.layers) ? a : a.style;			b.visibility = "visible";			d = false;			for(j=0; j<menuArray.length; j++) {				if(args[c]==menuArray[j]) d = true;			}			if(!d) menuArray[menuArray.length++] = args[c];		}	}}function getHelp(helppage){var newWindow = window.open(filename + 'pages/' + helppage +'?Open','secondary_window','toolbar=no,location=no,scrollbars=yes,directories=no,height=300,width=400');newWindow.focus();}function popup(where,attr){ popUp = window.open(where,'',attr) ; }function SetDisplay( idnum, newval){	var obj =	getElById( idnum )	if( obj && obj.style)		obj.style.display = newval;}function showCustInfo(){//Hide the choices stuff and show the reg stuff	SetDisplay("coInfo"			,"block");	SetDisplay("hCoInfoB"	,"block");	SetDisplay("sCoInfoB"		,"none");}function hideCustInfo(){//Hide the choices stuff and show the reg stuff	SetDisplay("coInfo"			,"none");	SetDisplay("hCoInfoB"	,"none");	SetDisplay("sCoInfoB"		,"block");}function getCookieVal (offset) {  	var endstr = document.cookie.indexOf (";", offset);  	if (endstr == -1)    		endstr = document.cookie.length;  	return unescape(document.cookie.substring(offset, endstr));}function getCookie (name) {  var arg = name + "=";  var alen = arg.length;  var clen = document.cookie.length;  var i = 0;  while (i < clen) {    var j = i + alen;    if (document.cookie.substring(i, j) == arg)      return getCookieVal (j);    i = document.cookie.indexOf(" ", i) + 1;    if (i == 0) break;   }  return null;}function SetCookie ( name, value, expires, path, domain, secure ) {	document.cookie = name + "=" + (value) +	((expires) ? "; expires=" + expires.toGMTString() : "") +	((path) ? "; path=" + path : "") +	((domain) ? "; domain=" + domain : "") +	((secure) ? "; secure" : "");}function deleteCookie (name,path,domain) {  if (getCookie(name)) {    document.cookie = name + "=" +      ((path) ? "; path=" + path : "") +      ((domain) ? "; domain=" + domain : "") +      "; expires=Thu, 01-Jan-70 00:00:01 GMT";  }}function logout() {deleteCookie('gets',"/","");deleteCookie('usrm',"/","");top.document.location.href = filenameR + "?logout&RedirectTo=" + filename;}function showLinkInfo(theid) {	var theObj 		=	getElById(  theid )	var targetObj	=	getElById( "mainText" )	if( mainObj && theObj)		targetObj.innerHTML = theObj.innerHTML;	return;}function returnInfo() {	var targetObj			=	getElById( "mainText" )	var sourceObj 		=	getElById(  "holder" )	if( mainObj && theObj)		targetObj.innerHTML = sourceObj.innerHTML;	return;}function doInfoChange(thelink) {document.getElementById("mainText").src = 'pages/'+ thelink;return;}function doInfoChangeA(thelink, anchor) {document.getElementById("mainText").src = 'pages/'+ thelink + '#' + anchor;return;}function doNewsChange(thelink) {document.getElementById("mainText").src = 'newsItems/'+ thelink;return;}function doServiceChange(thelink) {document.getElementById("mainText").src = 'serviceItems/'+ thelink;return;}function doLinkChange(thelink) {document.getElementById("mainText").src = 'linkItems/'+ thelink;return;}function doStaffChange(thelink) {document.getElementById("mainText").src = 'staffItems/'+ thelink;return;}function GetFieldValue( ThisFieldName, form, mvseparator){	if( !form)		form =document.forms[0]	thisFieldObj = form[ThisFieldName]	if (!thisFieldObj)		return null	if (thisFieldObj.value){		return thisFieldObj.value;	} 	if(thisFieldObj.type=='checkbox'){		if(thisFieldObj.checked&&thisFieldObj.value)			return thisFieldObj.value;		return null;	} 	if(thisFieldObj.options){		if( thisFieldObj.selectedIndex>-1){			var option = thisFieldObj.options[thisFieldObj.selectedIndex]			if (option.value) 				return option.value			return option.text		}				return null;	}		if(thisFieldObj.length>0) {		for(var ElCount=0;ElCount<thisFieldObj.length;ElCount++)			if(thisFieldObj[ElCount].checked)				return thisFieldObj[ElCount].value;	}			return null;}