var undefined;function Calculator(myURL)	{	myBase = "http://gateway.fundsxpress.com/calculators/";	window.open(myBase + myURL,'','width=585,height=450,scrollbars=yes,resizable=yes');	}	function LinkAlert(URL)	{	MSG =       "You are leaving The State Bank of Pearl City's website and will be redirected to another site. ";	MSG = MSG + "The State Bank of Pearl City makes no endorsements or claims about the accuracy or content of ";	MSG = MSG + "the information contained in these sites.  The security and privacy policies on ";	MSG = MSG + "these sites may be different than those of The State Bank of Pearl City.";	if (URL!=undefined) 		{		if (confirm(MSG)) window.open(URL,"_blank");		}	else return confirm(MSG);	}	function SearchSite()	{	myQuery = document.f.NewQuery.value;	UpdateQuery = myQuery + " site:www.resourcebk.com";	document.f.q.value = UpdateQuery;	}var interval = 5000;var loop = 0;var loop2 = 0;var img = new Array();img.push("images/photos/masthead1.jpg");img.push("images/photos/masthead2.jpg");img.push("images/photos/masthead3.jpg");img.push("images/photos/masthead4.jpg");img.push("images/photos/masthead5.jpg");img.push("images/photos/masthead6.jpg");var rotate = new Array();rotate.push("images/photos/rotate1.jpg");rotate.push("images/photos/rotate2.jpg");rotate.push("images/photos/rotate3.jpg");function switch_img() {	//myLayer = new getObj("masthead");	//myLayer.style.backgroundImage = "url("+img[loop]+")";	//loop++;	//if (loop==img.length) loop = 0;	//setTimeout("switch_img()",interval);	}function switch_img2() {	myLayer = new getObj("splash");	document.splash.src = rotate[loop2];	loop2++;	if (loop2==rotate.length) loop2 = 0;	setTimeout("switch_img2()",interval);	}function loadImages() {	for (i=0;i<rotate.length;i++) {		MM_preloadImages(rotate[i]);		}	}function MM_preloadImages() { //v3.0  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}	}// This layer finds an object by ID and is cross-browser compliant.function getObj(name){ if (document.getElementById) {	   this.obj = document.getElementById(name);	   this.style = document.getElementById(name).style; } else if (document.all) {	   this.obj = document.all[name];	   this.style = document.all[name].style; } else if (document.layers) {	   if (document.layers[name])	   {	   	this.obj = document.layers[name];	   	this.style = document.layers[name];	   }	   else	   {	    this.obj = document.layers.testP.layers[name];	    this.style = document.layers.testP.layers[name];	   } }}