<!-- hide from none Javascript Browsers

/*	mouseOver is used on all pages, hence, place scripts that are  */ 
/*	common to all pages here.									   */

//validation variables 
		gClose=true;
		gFocused = false;
		gErrTxt = "";

//control variables 

//check browser type and features
		gNS4 = (document.layers);
		gW3C = (document.getElementById && !gNS4); 
		gIE = (document.all);
		gJS = navigator.javaEnabled();

//set focus on 1st entry field between the marked formName
	function fo(formName) {
		var theForm = document.forms[formName];
		gFocused=false;
		if (theForm) {
			for (i=0; i<theForm.length && !gFocused; i++) {
				if (theForm.elements[i].type != "hidden" && !gFocused) {
					theForm.elements[i].focus();
					gFocused = true;
				}
			}
			formName.value="yes";
		}
	}

//set cookie
	function setCookie(n,v,x) {
		var expDate = new Date();
		var expDateString;
		
		if (!x) x=1;
		expDate.setTime(expDate.getTime() + x*24*60*60*1000);
		expDateString = expDate.toGMTString();
		document.cookie = n+"="+escape(v)+"; expires=" + expDateString;
	}

//get cookie
	function getCookie(n,d) {
		var v=d;
		var	m=n+"=";
		var dolCookie=document.cookie;

		if (dolCookie!="") {
			var s=dolCookie.indexOf(m);
			if (s!=-1) {
				s=s+m.length;
				var e=dolCookie.indexOf(";",s);
				if (e==-1) e=dolCookie.length;
				v=unescape(dolCookie.substring(s,e));
			}
		}
		return v;
	}

//bookmark
//test of document.all is just another to check for IE browser
 	function bookMarker(sURL,sTitle) {
    	if (document.all) {
	        window.external.AddFavorite(sURL,sTitle);
	    }
	    else
	        alert("Bookmarking script does not work on your browser, please use browser's menu bar.");
	}

//the rollOver function is based on button image array to operate by giving it the index
	function mouseOver(imgName, URIName){
		if (document.images) { 
			document.images[imgName].src = eval(URIName + ".src");
		}
	}

//display or suppress all blocked-text display
//NS4 does not react to CSS display attribute
	function toggleMenuAll(altDoc) {
		var temp;
		
		if (gClose)
			mouseOver('openClose','openClose');
		else
			mouseOver('openClose','openCloseOut');
			
		toggleMenu('textA',altDoc,false);
		if (gIE || gW3C) {
			toggleMenu('textB',altDoc,false);
			toggleMenu('textC',altDoc,false);
			toggleMenu('textD',altDoc,false);
			toggleMenu('textE',altDoc,false);
			toggleMenu('textF',altDoc,false);
			toggleMenu('textG',altDoc,false);
			toggleMenu('textH',altDoc,false);
			toggleMenu('textI',altDoc,false);
			toggleMenu('textJ',altDoc,false);
		}		

		gClose=!gClose;
	}

//display or suppress a blocked-text display
//NS4 does not react to CSS display attribute
	function toggleMenu(currMenu,altDoc,toggle) {
		var thisMenu;
		var done=true;
		
 		if (gIE) {
			if (eval("document.all." + currMenu))
				thisMenu = eval("document.all." + currMenu + ".style");
	    }
	    else
		if (gW3C) {
			if (document.getElementById(currMenu))
				thisMenu = document.getElementById(currMenu).style;
	    }
	    else
		if (location.href.indexOf(altDoc)<0) {
			if (!getCookie('gWarn',false)) {
				alert("Features on this page are not supported by your browser.\n"+
					"It is recommended that you download the latest version of NS or IE.\n"+
					"You will be redirected to the page without the advanced features.\n");
				setCookie('gWarn',true,1);
			}
			location.replace(altDoc);
		}
	    else {
			if (!getCookie('gWarn',false)) {
				alert("This feature is not supported by your browser.\n\n"
				+	"Please upgrade to NS6 or IE5.\n");
				setCookie('gWarn',true);
			}
			return true;
	    }

//block->shows and none->hides
		if (thisMenu) {
			if (!toggle&&!gClose) {
				thisMenu.display = "none";
			}
			else
			if (!toggle&&gClose){
				thisMenu.display = "block";
			}
			else
			if (thisMenu.display=="block") {
				thisMenu.display = "none";
			}
			else {
				thisMenu.display = "block";
			}
		}
		return true;

	}

// - stop hiding -->