	Shadowbox.init({
	    overlayOpacity: "0.8"
	});	

// Flash intro

	/*function introShow() {
		document.getElementById('flash').style.display='none';
	}*/

// Online Banking

	function doLoginRefresh() {
		if(	document.Remote.loginTo.selectedIndex == 1 && document.Remote.AccessIDVisible.value != "" && document.Remote.AccessIDVisible.value != "Enter User ID" ){
			document.Remote.action = 
			'https://www.fiservla6.com/PBI1961.asp?WCI=RemoteLogin&Rt=121144612&LogonBy=Connect3';
			document.Remote.AccessID.value = document.Remote.AccessIDVisible.value;
			document.Remote.AccessIDVisible.value = "";
			return true;
		} else if ( document.Remote.loginTo.selectedIndex == 0 && document.Remote.AccessIDVisible.value != "" && document.Remote.AccessIDVisible.value != "Enter User ID" ){
			document.Remote.nmUID.value = document.Remote.AccessIDVisible.value;
			document.Remote.action = 'https://ecorpla1.com/EBC_EBC1961/EBC1961.ASP?WCI=Process&WCE=RemoteLogon&Rt=121144612&RTN=121144612&IRL=T';
			document.Remote.AccessID.value = document.Remote.AccessIDVisible.value;
			document.Remote.AccessIDVisible.value = "";
			return true;
		} else if ( document.Remote.loginTo.selectedIndex >= 2 && document.Remote.loginTo.selectedIndex <= 8 ){
			return true;
		} else {
			alert("\n Please select an account type and enter a valid Access ID.  Thank you.\n\n\t"); 
			return false;
			}
	}

function popitup(url) {
	newwindow=window.open(url,'name','height=300,width=450');
	if (window.focus) {newwindow.focus()}
	return false;
}

$(document).ready(function() {	
	
		// Table Alternating colors
	$('table.styledtable tr:odd').addClass('odd');
	$('table.styledtable tr:even').addClass('even');	

	// Smooth Scroll Bookmarks (jQuery)
	$(function(){
	    $('a[href*=#]').click(function() {
	    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
	        && location.hostname == this.hostname) {
	            var $target = $(this.hash);
	            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
	            if ($target.length) {
	                var targetOffset = $target.offset().top;
	                $('html,body').animate({scrollTop: targetOffset}, 500);
	                return false;
	            }
	        }
	    });
	});
    									 
	
}); 
	
// Navigation 
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; }
}

	

function nav1PanelShow(obj) {
	MM_showHideLayers(obj,'','show');
};

function nav1PanelHide(obj) {
	MM_showHideLayers(obj,'','hide')
};

		function clearText(thefield){
		if (thefield.defaultValue==thefield.value)
		thefield.value = ""
		}

