window.addEvent('domready', function(){		
	// Table Alternating colors
		function updateTableColors() {
			var count = 0;
			$$('table.styledtable tr').each(function(el) {
				el.addClass(count++ % 2 == 0 ? 'odd' : 'even');
			});
		};
		updateTableColors();
		
});

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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

// Navigation 
function nav1PanelShow(obj) {
	MM_showHideLayers(obj,'','show');
};

function nav1PanelHide(obj) {
	MM_showHideLayers(obj,'','hide')
};

// Online Banking

function setAction() {
	if(	document.Remote.loginTo.selectedIndex == 1){
		document.Remote.nmUID.value = document.Remote.AccessID.value;
		document.Remote.action = 'https://www.fiservsa1.com/ebc_ebc1961/EBC1961.ASP?WCI=Process&WCE=RemoteLogon&IRL=T';
	}
	else
	{
	document.Remote.action = 'https://www.fiservsa2.com/Pbi_Pbi1961/Pbi1961.asp?WCI=RemoteLogin&Rt=265270345&LogonBy=connect3&PRMACCESS=account';

	}
}
function doLoginRefresh(){
	if (document.Remote.AccessIDVisible.value != ""  && document.Remote.AccessIDVisible.value != "Access ID") {
		document.Remote.AccessID.value = document.Remote.AccessIDVisible.value;
		document.Remote.AccessIDVisible.value = "";
	setAction();
	}
	else
	{
	alert("\n Please Enter a valid Access ID and Password.  Thank you!\n\n\t"); 
	return false;
	}	

}
