// JavaScript Document

//////////////////////////////
// jQuery
//////////////////////////////
$(document).ready(function(){
	$("a[rel^='prettyPhoto']").prettyPhoto({
		animationSpeed: 'normal', /* fast/slow/normal */
		padding: 40, /* padding for each side of the picture */
		opacity: 0.35, /* Value betwee 0 and 1 */
		showTitle: false, /* true/false */
		allowresize: false, /* true/false */
		counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
		theme: 'light_rounded', /* light_rounded / dark_rounded / light_square / dark_square */
		callback: function(){}
	});
});

//////////////////////////////
// navBar.js
//////////////////////////////
function startList() {
	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 = function() {
	startList();
}

//////////////////////////////
// ebank_login.js
//////////////////////////////
function setAction()
{
	//Fill in the Routing number below.
	var rtNum = "252071654";
	var x = document.forms.Remote;
	
	x.action = 'https://web1.secureinternetbank.com/pbi_pbi1961/Pbi1961.asp?WCI=RemoteLogin&RT=252071654&LogonBy=connect3&PRMACCESS=Portfolio';

}
   
function doLoginRefresh()
{
	var x = document.forms.Remote;
	
	if (x.AccessIDVisible.value != "") {
		x.AccessID.value = x.AccessIDVisible.value;
		x.AccessIDVisible.value = "";
		
		setAction();
		return true;
	} else {
		alert("Please Enter a valid Access ID.  Thank you!"); 
		return false;
	}	
}
  

