

if(window.event + "" == "undefined") event = null;
function showMenu(){return false};
function mout(){return false};
function dummyObject() {this.mout=mout};
oM = new dummyObject();

// CALL TO CORRECT DIRECTORY BELOW
var imgdir = "../images/";
var sitedir = "";
var securedir = "";
var homedir = "../";
if(window.homepage)
{
imgdir="images/";
sitedir="http://www.ebtonline.com/site/";
securedir="site/";
homedir="";
}
else if(window.absolutepage)
{
imgdir="http://www.ebtonline.com/images/"
sitedir="http://www.ebtonline.com/site/"
securedir="http://www.ebtonline.com/site/"
homedir="http://www.ebtonline.com/"
}
else if(window.securepage)
{
imgdir="https://www.ebtonline.com/images/"
sitedir="http://www.ebtonline.com/site/"
securedir="https://www.ebtonline.com/site/"
homedir="http://www.ebtonline.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["aboutus"] = new makeNavImage("aboutus",75,25);
navitems["personal"] = new makeNavImage("personal",122,25);
navitems["business"] = new makeNavImage("business",123,25);
navitems["private"] = new makeNavImage("private",112,25);
navitems["otherserv"] = new makeNavImage("otherserv",108,25);
navitems["calc"] = new makeNavImage("calc",89,25);
navitems["drpdwnmenu"] = new makeNavImage("drpdwnmenu",137,25);
navitems["wm"] = new makeNavImage("wm",138,13);
navitems["rm"] = new makeNavImage("rm",148,13);
navitems["cl"] = new makeNavImage("cl",131,13);
navitems["ts"] = new makeNavImage("ts",96,13);
navitems["ssg"] = new makeNavImage("ssg",144,26);
navitems["checkimg"] = new makeNavImage("checkimg",144,13);
navitems["openonline"] = new makeNavImage("openonline",144,26);
navitems["fdicins"] = new makeNavImage("fdicins",144,26);
navitems["ft"] = new makeNavImage("ft",144,13);
navitems["rdc"] = new makeNavImage("rdc",144,26);
navitems["esops"] = new makeNavImage("esops",144,26);
navitems["securityalert"] = new makeNavImage("securityalert",144,13);


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

document.write('<scr' + 'ipt type="text/javascript" src="' + securedir + '_global.js"></scr' + 'ipt>');

// 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 open_apps(nameofapp){
self.location.href = "https://www.ebtonline.com/Forms/OnlineForm.cgi?onweb=true&form=" + nameofapp;
}

function openIB(page){
if (page=="demo") self.location.href = homedir+"index.html?demo";
else if (page == "reg") openWin('https://www.ebtonline.com/onlineserv/HB/STDReg.cgi?STDRegStep1=yes&runmode=REGISTRATION', 'regWin', 800, 600, 'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=0');
else if (page == "resetPW") openWin('https://www.ebtonline.com/onlineserv/HB/ForgottenPW.html', 'resetPWWin', 800, 600, 'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=0');
else self.location.href = homedir+"index.html";
//if (page=="demo") openWin("https://www.ebtonline.com/onlineserv/HB/demo.html");
//else openWin("https://www.ebtonline.com/onlineserv/HB/")
}

function showWarning(url,target){
var target = target || "";
var content = new Array();
var index = 0;
content[index++] = "<h2>Third Party Site Disclaimer</h2>By accessing the noted link you will be leaving Evolve Bank &amp; Trust's website and entering a website hosted by another party. Evolve Bank &amp; Trust 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 Evolve Bank &amp; Trust'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 Evolve Bank &amp; Trust.";
content[index++] = "<br /><br /><br />";
content[index++] = "<div align=\"center\"><a href=\""+url+"\" target=\""+target+"\" onclick=\"document.getElementById('ex_dis').style.display = 'none'\">Continue</a>  <a href=\"javascript:void('0');\" onclick=\"document.getElementById('ex_dis').style.display = 'none'\">Decline</a></div></div>";  
document.getElementById("ex_dis").innerHTML = content.join("");
document.getElementById("ex_dis").style.display = "block";
scrollTo(0, 0);
}


document.write('<div id="ex_dis" style="background-color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; text-align: left; position:absolute; top:175px; left:250px; border: thin solid #012C64; padding: 15px; display: none; z-index: 3000; width:350px;"></div>');

//  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212;  &#8212; -

function onlineBankingInfoBox()
{
	document.write('<sel' + 'ect name="onlineBankingInfo" onchange="if (this.value != \'\') document.location.href = this.value;" style="margin-top: 12px; width: 147px;">');
	document.write('<option value="">Online Banking Info...</option>');
	document.write('<option value="javascript:comingSoon(\'an Online Banking Information page\');">Temp Option 1</option>');
	document.write('<option value="javascript:alert(\'Coming Soon\');">Temp Option 2</option>');
	document.write('<option value="javascript:alert(\'Coming Soon\');">Temp Option 3</option>');
	document.write('</sel' + 'ect>');
}

function comingSoon(link){
var content = new Array();
var index = 0;
content[index++] = "<h2>Coming Soon</h2>You have attempted to access " + link + " on Evolve Bank  &amp; Trust's website.  This page is currently being developed.  Please check back soon for this online feature.";
content[index++] = "<br /><br /><br />";
content[index++] = "<div align=\"center\"><a href=\"#\" onclick=\"document.getElementById('cs_dis').style.display = 'none'\">Close</a>  </div></div>";  
document.getElementById("cs_dis").innerHTML = content.join("");
document.getElementById("cs_dis").style.display = "block";
scrollTo(0, 0);
}

document.write('<div id="cs_dis" style="background-color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; text-align: left; position:absolute; top:175px; left:250px; border: 1px solid #1A448E; padding: 15px; display: none; z-index: 3000; width:350px;"></div>');

function showEmailWarning(email){

var content = new Array();
var index = 0;
content[index++] = "<h2>Email Security Warning</h2><p>E-mail messages sent over the Internet are not secure. Please do not include any account or personal information such as social security numbers in the message.</p>";
content[index++] = "<br /><br /><br />";
content[index++] = "<div align=\"center\"><a href=\"mailto:"+ email +"\" onclick=\"document.getElementById('email_dis').style.display = 'none'\">Continue</a>  <a href=\"#\" onclick=\"document.getElementById('email_dis').style.display = 'none'\">Decline</a></div></div>";  
document.getElementById("email_dis").innerHTML = content.join("");
document.getElementById("email_dis").style.display = "block";
scrollTo(0, 0);
}

document.write('<div id="email_dis" style="background-color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; text-align: left; position:absolute; top:175px; left:400px;  border: 1px solid #1A448E; padding: 15px; display: none; z-index: 3000; width:350px;"></div>');

// OTHER FUNCTIONS ABOVE
