//500-46884 :: the code below was causing problems with the ex_dis  <div> for the GRS banner (but not others, somehow)
//window.onresize=resize;

function resize(){
//		alert("yay");
		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.absolutepage)
{
imgdir="http://www.centralbk.com/images/"
sitedir="http://www.centralbk.com/site/"
securedir="http://www.centralbk.com/site/"
homedir="http://www.centralbk.com/"
}
else if(window.securepage)
{
imgdir="https://www.centralbk.com/images/"
sitedir="http://www.centralbk.com/site/"
securedir="https://www.centralbk.com/site/"
homedir="http://www.centralbk.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 navitems = new Array();
navitems["submit"] = new makeNavImage("submit",47,20);

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)?"toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1":(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.centralbk.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

  function showWarning(url){
	//content creation
	var content = new Array();
        var index = 0;
	content[index++] = '<h1 align="center">You are leaving www.centralbk.com</h1><p>Central Bank does not provide, and is not responsible for, the product, service, or overall website content available at a third-party site. Central Bank neither endorses the information, content, presentation, or accuracy nor makes any warranty, express or implied, regarding any external site.<br /><br />Central Bank\'s privacy policies do not apply to linked websites. You should consult the privacy disclosures on any linked site for further information.<br /><br />Thank you for visiting the Central Bank website.</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\'">OK</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis\').style.visibility = \'hidden\'">Cancel</a></div></div>';	
	document.getElementById("ex_dis").innerHTML = content.join("");
	document.getElementById("ex_dis").style.visibility = "visible";
	scrollTo(0, 0);

}
//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; position:absolute; left:100px; top:100px; margin:5% 5%; border: thin solid #002E65; padding: 15px; visibility: hidden;z-index: 100; width:350px; FILTER: progid:DXImageTransform.Microsoft.dropShadow( Color=#466A9B,offX=7,offY=8,positive=true); "></div>');
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; position:absolute; left:100px; top:100px; margin:5% 5%; border: thin solid #002E65; padding: 15px; visibility: hidden;z-index: 100; width:350px;"></div>');

  function showNewAccountProcedures(){
	//content creation
	var content = new Array();
        var index = 0;
	content[index++] = '<h1>Important Information About Procedures For Opening A New Account</h1><p>To help the government fight the funding of terrorism and money laundering activities, Federal law requires all financial institutions to obtain, verify, and record information that identifies each person who opens an account.</p><p>What this means for you: When you open an account, we will ask for your name, address, date of birth, and other information that will allow us to identify you. We may also ask to see your driver\'s license or other identifying documents.</p>';
	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";
	scrollTo(0, 0);

}
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; position:absolute; left:100px; top:100px; margin:5% 5%; border: thin solid #002E65; padding: 15px; visibility: hidden;z-index: 100; width:350px; FILTER: progid:DXImageTransform.Microsoft.dropShadow( Color=#466A9B,offX=7,offY=8,positive=true); "></div>');

  function showPreauthorizedTransfers(){
	//content creation
	var content = new Array();
        var index = 0;
	content[index++] = '<h1>Savings and Money Market Transfer Information</h1><p>Preauthorized or automatic transfers such as by check, draft, electronic means, or similar order made to third parties are limited to no more than six per statement cycle. Point of Sale (POS) transactions are not permitted if this account is attached to an ATM card or Debit MasterCard&trade;.</p>';
	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";
	scrollTo(0, 0);

}
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; position:absolute; left:100px; top:100px; margin:5% 5%; border: thin solid #002E65; padding: 15px; visibility: hidden;z-index: 100; width:350px; FILTER: progid:DXImageTransform.Microsoft.dropShadow( Color=#466A9B,offX=7,offY=8,positive=true); "></div>'); 

