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 Citizens National Bank's website and will be redirected to another site.\n";	MSG = MSG + "Citizens National Bank makes no endorsements or claims about the accuracy or content of \n";	MSG = MSG + "the information contained in these sites.  The security and privacy policies on \n";	MSG = MSG + "these sites may be different than those of Citizens National Bank.";	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.cnbcrosbyton.com";	document.f.q.value = UpdateQuery;	}var NowShowing = 0;var SwitchTo = 0var RotationType = 0; // 0 = random, 1=in the same order as images array function randomHeader() {	images = new Array();	images[0] = "images/masthead-new.jpg";	images[1] = "images/masthead2.jpg";	images[2] = "images/masthead3.jpg";	images[3] = "images/masthead4.jpg";	images[4] = "images/masthead5.jpg";	if (RotationType==0)    	{		seed = (images.length);		SwitchTo = Math.floor(Math.random()*seed);		}	if (RotationType==1)		{		SwitchTo = NowShowing;		NowShowing++;		if (NowShowing==images.length) NowShowing=0;		}	myHeader = new getObj("masthead");	myHeader.style.backgroundImage = "url("+images[SwitchTo]+")";    //setTimeout('randomHeader()',2500);    }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];		   	}	 	}	}
