window.onresize=resize;
function resize(){
self.location.href=self.location.href;
}

if(window.event + "" == "undefined") event = null;
// FOR HM_MENU BELOW
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;
//FOR HM_MENU ABOVE
//FOR COOLMENU BELOW
function showMenu(){return false};
function mout(){return false};
function dummyObject() {this.mout=mout};
oM = new dummyObject();
// FOR COOLMENU ABOVE


//CALL TO CORRECT DIRECTORY BELOW - if you are on homepage you need <script> var homepage = "yes";</script> to make codework properly
var imgdir = "../images/";
var sitedir = "";
var securedir = "";
var homedir = "../";
if(window.homepage)
{
imgdir="images/";
sitedir="site/";
securedir="site/";
homedir="";
}
else if(window.absolute)
{
imgdir="https://www.classicbanking.com/images/"
sitedir="http://www.classicbanking.com/site/"
securedir="https://www.classicbanking.com/site/"
homedir="http://www.classicbanking.com/"
}
else if(window.secure)
{
imgdir="https://www.classicbanking.com/images/"
sitedir="http://www.classicbanking.com/site/"
securedir="https://www.classicbanking.com/site/"
homedir="http://www.classicbanking.com/"
}
//CALL TO CORRECT DIRECTORY ABOVE

// ROLLOVER CODE BELOW
function makeNavImage(name,width,height){
this.name_on="nav-" + name +"-on.gif";
this.name_off="nav-" + name +"-off.gif";
this.width=width;
this.height=height;
this.newimage_on = new Image(width,height);
this.newimage_on.src = imgdir + this.name_on;
this.newimage_off = new Image(width,height);
this.newimage_off.src = imgdir + this.name_off;
}

var nav_widths=143;
var nav_heights=40;

var navitems = new Array();
navitems["personal"] = new makeNavImage("personal",143,40);
navitems["business"] = new makeNavImage("business",143,40);
navitems["international"] = new makeNavImage("international",143,40);
navitems["colorado"] = new makeNavImage("colorado",143,40);
navitems["farmers"] = new makeNavImage("farmers",143,40);
navitems["hours"] = new makeNavImage("hours",143,40);
navitems["career"] = new makeNavImage("career",143,40);
navitems["calc"] = new makeNavImage("calc",143,40);

function img_act(imgName){
document[imgName].src = navitems[imgName].newimage_on.src;
}

function img_inact(imgName){
window.status = "";
document[imgName].src = navitems[imgName].newimage_off.src;
}
// ROLLOVER CODE ABOVE


// OTHER FUNCTIONS BELOW
function openWin(url,name,width,height,options){
var n = name;
var w = width;
var h = height;
var o = options;
n = (n==null)?"_blank":n;
w = (isNaN(w) || w==null)?700:w;
h = (isNaN(h) || h==null)?600:h;
o = (o==null)?o:(o.indexOf(",")!=0)?","+o:o;

var posX = Math.ceil((parseInt(screen.width) - w) / 2);
var posY = Math.ceil((parseInt(screen.height) - h) / 2);
aWindow = window.open(url,n,"width=" + w + ",height=" + h + ",left=" + posX + ",top=" + posY + o);
}

function showCalc(calc){
openWin(calc,"calc",550,480,"resizable=1,scrollbars=1");
}

function open_apps(nameofapp){
openWin("https://www.classicbanking.com/Forms/OnlineForm.cgi?form=" + nameofapp,"application",700,600,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,status=1");
}
// OTHER FUNCTIONS ABOVE


  /****
  *useage: <a href="javascript:show_warning('http://www.hotmail.com');">Test Link</a>
  *
  *author:Erron Austin
  */
function showWarning(url){
	//content creation
	var content = new Array();
        var index = 0;
	content[index++] = '<h2>Third Party Site Disclaimer</h2><p align="left">By accessing the noted link you will be leaving your financial institution\'s website and entering a website hosted by another party. Your financial institution has not approved this as a reliable partner site.  Please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of your financial institution\'s website. We encourage you to read and evaluate the privacy and security policies of the site you are entering, which may be different than those of your financial institution\'s.</p>';
	content[index++] = '<br>';
	content[index++] = '<div align="center"><a href="javascript:void(\'0\');" onclick="window.open(\''+url+'\');document.getElementById(\'ex_dis\').style.visibility = \'hidden\'">Continue</a>&nbsp;&nbsp;<a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis\').style.visibility = \'hidden\'">Decline</a></div></div>';	
	document.getElementById("ex_dis").innerHTML = content.join("");
	document.getElementById("ex_dis").style.visibility = "visible";

}
function showRedirect(){
	//content creation
	var content = new Array();
        var index = 0;


	content[index++] = '<p align="center">Please visit our new website:<br /><br /><a href="http://www.fandsbank.com" onclick="document.getElementById(\'ex_dis\').style.visibility = \'hidden\'" target="_blank">fandsbank.com</a></p>';
	content[index++] = '<br>';
	content[index++] = '<div align="center"><a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis\').style.visibility = \'hidden\'">Close</a></div></div>';	
	document.getElementById("ex_dis").innerHTML = content.join("");
	document.getElementById("ex_dis").style.visibility = "visible";

	return false;

}
document.write('<div id="ex_dis" style="background-color: #ffffff; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; text-align: center; position:absolute; margin:25% 25%; border: thin solid #154515; padding: 15px; visibility: hidden;z-index: 300; width:350px; FILTER: progid:DXImageTransform.Microsoft.dropShadow( Color=#649264,offX=7,offY=8,positive=true); "></div>');





