<!--
    //ROLL OVER FOR IE 6
    startList = function() {
    if (document.all&&document.getElementById) 
    {
    	navRoot = document.getElementById("nav");
    	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", "");
				}
			}
		}
	}
}
	window.onload=startList;
//-->
<!--
	//TABBED BOXES
	function changeTabsOn(tab) {
	document.getElementById(tab).style.backgroundPosition = "0 -26px";
}
	function changeTabsOff(tab1, tab2) {
	document.getElementById(tab1).style.backgroundPosition = "0 0";
	document.getElementById(tab2).style.backgroundPosition = "0 0";
}
	function showTab(tabfront, tabbehind1, tabbehind2) {
	document.getElementById(tabfront).style.display = "block";
	document.getElementById(tabbehind1).style.display = "none";
	document.getElementById(tabbehind2).style.display = "none";
}
//-->
<!--
	//LOGIN - HANDLE CHECK BOX VALUE VALIDATION
	function RemPass() {
	var remember = document.Form3.Remember.value;
	var checkval = document.Form3.CheckVal.value;
	if ((remember == 1) && (checkval == 0))
		{
		document.Form3.CheckVal.value = 1;
		}
	else
		{
		document.Form3.CheckVal.value = 0;
	}
}
//-->
<!--
	//OPEN POP-UP W/URL
	function PopWin(NewLocation, LocationLink, WVal, HVal) {
	window.open(NewLocation + "?url=" + LocationLink, "NewWindow", "width=" + WVal 
	+ ",height=" + HVal + ",scrollbars=yes,status=no,toolbar=no");	
}
//-->
<!--
	//OPEN POP-UP
	function PopWinAlt(NewLocation, WVal, HVal) {
	window.open(NewLocation, "NewWindow", "width=" + WVal 
	+ ",height=" + HVal + ",scrollbars=yes,status=no,toolbar=no");	
}
//-->
<!--
	//GO TO NEW LOCATION IN PARENT WINDOW
	function GoTo(NewLocation) {
	self.opener.open(NewLocation);
	parent.close();	
	}
//-->
<!--
	//WEATHER BUG
	function loadXML() {
		
		xmlhttp = null;
		
		// code for Mozilla, etc.
		if (window.XMLHttpRequest) {
			xmlhttp = new XMLHttpRequest();
			if (xmlhttp.overrideMimeType) {
				xmlhttp.overrideMimeType("text/xml");
			}
		}
		// code for IE
		else if (window.ActiveXObject) {
			try {
                xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
        	} 
        		catch (e) {
            try {
                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
            } 
            	catch (e) {}
            }
        } 
		if (xmlhttp!=null) {
			xmlhttp.onreadystatechange = state_Change;
			xmlhttp.open("GET", "weatherbug/weatherbug.asp", true);
			xmlhttp.send(null);
		}
		else {
			alert("Your browser does not support XMLHTTP.");
		}
}
	function state_Change() {
		
	// if xmlhttp shows "loaded"
	if (xmlhttp.readyState == 4) {
		
  		// if "OK"
		if (xmlhttp.status == 200) {
			var xmlStr = xmlhttp.responseXML.documentElement;
			var icon = "url(weatherbug/images/" + 
				xmlStr.getElementsByTagName("icon_url_name")[0].firstChild.data + ")";	
			var desc = xmlStr.getElementsByTagName("weather")[0].firstChild.data;
			var temp = xmlStr.getElementsByTagName("temp_f")[0].firstChild.data + "&deg;";
			if (String(desc).length <= 26) {
				desc = desc;
			}
			else {
				desc = String(desc).substring(0, 23) + "...";
			}
			document.getElementById("iconpos").style.backgroundImage = icon;
		    document.getElementById("strdesc").innerHTML = "<a href=\"javascript:void(0);\" " +
		    	"onclick=\"PopWinAlt('pop_forecast.htm', 415, 600)\" class=\"desclink\">" + desc + "</a>";
		    document.getElementById("strtemp").innerHTML = temp;
		}
  		else
		{
			document.getElementById("strdesc").innerHTML = "No Weather Information Available";
		    document.getElementById("strtemp").innerHTML = "";
    	}
  	}
}
//-->
<!--
	//ADD TO FAVORITES IN IE 5.5, 6, 7
	function bookMark(title, url) {

	if (window.external) {
		// IE Favorite
		window.external.AddFavorite(url, title);
	}
}
//-->
<!--
	//ONLINE BANKING LOGIN
	function setAction(frmID) {
    	if (frmID == 1) {
       		document.frmLoginPer.nmUID.value = document.frmLoginPer.AccessID.value;
     		document.frmLoginPer.action = 'https://ns.bankbyweb.net/PBI_PBI1961/pbi1961.asp?WCI=RemoteLogin&Rt=063205664&LogonBy=connect3&PRMACCESS=account';
    	}
		else {
			document.frmLoginBiz.nmUID.value = document.frmLoginBiz.AccessID.value;
			document.frmLoginBiz.action = 'https://ws2.bankbyweb.net/EBC_EBC1961/EBC1961.ASP?WCI=Process&WCE=RemoteLogon&IRL=T';
   		}
}
	function doLoginRefresh(frmID) {
		//PERSONAL BANKING LOGIN
		if (frmID == 1) {
			if (document.frmLoginPer.AccessIDVisible.value != "") {	
				document.frmLoginPer.AccessID.value = document.frmLoginPer.AccessIDVisible.value;
				document.frmLoginPer.AccessIDVisible.value = "";
				setAction(1);
				return true;
			}
			else {
				alert("\n Please Enter a valid Access ID. Thank you!\n\n\t"); 
				return false;
			}
		}
		//BUSINESS BANKING LOGIN
		else {
			if (document.frmLoginBiz.AccessIDVisible.value != "") {	
				document.frmLoginBiz.AccessID.value = document.frmLoginBiz.AccessIDVisible.value;
				document.frmLoginBiz.AccessIDVisible.value = "";
				setAction(2);
				return true;
			}
			else {
				alert("Please Enter a valid Access ID. Thank you!"); 
				return false;
			}
		}
}
//-->