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



/*
META TAGS CONTENT AND DESCRIPTION BELOW
META TAGS CONTENT AND DESCRIPTION BELOW
META TAGS CONTENT AND DESCRIPTION BELOW
*/
document.write('<meta name="keywords" content="First Savers Bank, Bank, fsbib, A financial institution of excellence, featuring secure Internet-based services including Home Banking, Bill Payment, Bill Presentment, Quicken and Money interfaces, Stock Quotes, on-line applications, financial calculators, useful links and a wealth of financial information">');


document.write('<meta name="description" content="ATM, ATM Locations, Account Access, Account Transfer, Automobile Loans, AutoVantage, Bank, Bank Account, Banking, Bill Payment, Bill Presentment, Brokerage, Cash, CDs, Certificates of Deposit, Checks, Checking Accounts, Consumer Loans, Convenience Services, Credit, Credit Card, Credit Card Applications, Credit Union, Digital Insight, Finance, Financial Calculator, Financial Institution, Financial Wizard, Loans, Home Loans, IRA, Money, Term Investment, Online Banking, Order Checks, Personal Financial Management, Rates, Mortgage Rates, Loan Rates, Terms, Retirement, Savings Accounts, Savings, Savings and Loan, Stock Quotes, Stocks, Student Loans, Student, Term Share Certificates, Thrifts, Visa Credit Cards">');
/*
META TAGS CONTENT AND DESCRIPTION ABOVE
META TAGS CONTENT AND DESCRIPTION ABOVE
META TAGS CONTENT AND DESCRIPTION ABOVE
*/


/*
CALL TO CORRECT DIRECTORY
CALL TO CORRECT DIRECTORY
CALL TO CORRECT DIRECTORY
CALL TO CORRECT DIRECTORY
*/

//if you are on homepage you need <script> var homepage = "yes";</script> to make codework properly

var imgdir;
var sitedir;
var securedir;
var homedir;
var aboutus;
var mortgage;
var contactUs;
/*  Temp variable to place Bill Pay Sweepstakes banner in left hand menu
	When removing the banner, also remove the variables from home.html, 
	personal_checking.html, personal_internet.html, personal first.html, 
	and the varible and if statement from _global.js */
//var bpSweepstakes;

if(window.homepage)
{
imgdir="images/";
sitedir="site/";
securedir="site/";
homedir="";
}
else if(window.absolutepage)
{
imgdir="http://www.fsbib.com/images/"
sitedir="http://www.fsbib.com/site/"
securedir="http://www.fsbib.com/site/"
homedir="http://www.fsbib.com/"
}
else if(window.securepage)
{
imgdir="https://www.fsbib.com/images/"
sitedir="http://www.fsbib.com/site/"
securedir="https://www.fsbib.com/site/"
homedir="http://www.fsbib.com/"
}
else
{
imgdir="../images/";
sitedir="";
securedir="";
homedir="../";
}


// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW
// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW
// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW


browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (((browserName == "Netscape") && (browserVer >= 3)) || ((browserName =="Microsoft Internet Explorer") && (browserVer >= 4)))
{
version = "ok";
login_ib_on = new Image(49,15);
login_ib_on.src = imgdir + "nav-login-on.gif";

login_ib_off = new Image(49,15);
login_ib_off.src = imgdir + "nav-login-off.gif";

demo_ib_on = new Image(53,15);
demo_ib_on.src = imgdir + "nav-demo-on.gif";

demo_ib_off = new Image(53,15);
demo_ib_off.src = imgdir + "nav-demo-off.gif";

info_ib_on = new Image(47,15);
info_ib_on.src = imgdir + "nav-info-on.gif";

info_ib_off = new Image(47,15);
info_ib_off.src = imgdir + "nav-info-off.gif";

login_cm_on = new Image(49,15);
login_cm_on.src = imgdir + "nav-login-on.gif";

login_cm_off = new Image(49,15);
login_cm_off.src = imgdir + "nav-login-off.gif";

demo_cm_on = new Image(53,15);
demo_cm_on.src = imgdir + "nav-demo-on.gif";

demo_cm_off = new Image(53,15);
demo_cm_off.src = imgdir + "nav-demo-off.gif";

info_cm_on = new Image(47,15);
info_cm_on.src = imgdir + "nav-info-on.gif";

info_cm_off = new Image(47,15);
info_cm_off.src = imgdir + "nav-info-off.gif";

contactus_on = new Image(75,25);
contactus_on.src = imgdir + "nav-contactus-on.gif";

contactus_off = new Image(75,25);
contactus_off.src = imgdir + "nav-contactus-off.gif";

faq_on = new Image(43,25);
faq_on.src = imgdir + "nav-faq-on.gif";

faq_off = new Image(43,25);
faq_off.src = imgdir + "nav-faq-off.gif";

home_on = new Image(71,25);
home_on.src = imgdir + "nav-home-on.gif";

home_off = new Image(71,25);
home_off.src = imgdir + "nav-home-off.gif";

aboutus_on = new Image(200,28);
aboutus_on.src = imgdir + "nav-aboutus-on.gif";

aboutus_off = new Image(200,28);
aboutus_off.src = imgdir + "nav-aboutus-off.gif";

personal_on = new Image(200,28);
personal_on.src = imgdir + "nav-personal-on.gif";

personal_off = new Image(200,28);
personal_off.src = imgdir + "nav-personal-off.gif";

business_on = new Image(200,28);
business_on.src = imgdir + "nav-business-on.gif";

business_off = new Image(200,28);
business_off.src = imgdir + "nav-business-off.gif";

mortgage_on = new Image(200,28);
mortgage_on.src = imgdir + "nav-mortgage-on.gif";

mortgage_off = new Image(200,28);
mortgage_off.src = imgdir + "nav-mortgage-off.gif";

rates_on = new Image(200,28);
rates_on.src = imgdir + "nav-rates-on.gif";

rates_off = new Image(200,28);
rates_off.src = imgdir + "nav-rates-off.gif";

calculators_on = new Image(200,28);
calculators_on.src = imgdir + "nav-calculators-on.gif";

calculators_off = new Image(200,28);
calculators_off.src = imgdir + "nav-calculators-off.gif";

security_on = new Image(57,25);
security_on.src = imgdir + "nav-security-on.gif";

security_off = new Image(57,25);
security_off.src = imgdir + "nav-security-off.gif";

privacy_on = new Image(54,25);
privacy_on.src = imgdir + "nav-privacy-on.gif";

privacy_off = new Image(54,25);
privacy_off.src = imgdir + "nav-privacy-off.gif";

ffs_on = new Image(200,28);
ffs_on.src = imgdir + "nav-ffs-on.gif";

ffs_off = new Image(200,28);
ffs_off.src = imgdir + "nav-ffs-off.gif";



}
else
version = "x";

function img_act(imgName)
{
if (version == "ok")
{
imgOn = eval(imgName + "_on.src");
document [imgName].src = imgOn;
}
}

function img_inact(imgName)
{
window.status = "";
 if (version == "ok")
{
imgOff = eval(imgName + "_off.src");
document [imgName].src = imgOff;
}
}

// ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE
// ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE
// ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE

//style sheet sniffer
document.write('<scr'+ 'ipt src="' + securedir + '_styles.js"></scr' + 'ipt>');

function showCalc(calc)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 275)
var pHeight = (((parseInt(screen.height) / 2)) -240)
window.open(calc,"hello","width=550,height=480,left=" + pWidth + ",top=" + pHeight + ",resizable=1,scrollbars=1");

}
function tabover(howmuch)
{
var farover = '';
farover += '<img src="../images/clearpix.gif" width="' + howmuch + '" height="1" alt="" border="0">';
document.write(farover);
}

function third_party(page)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 250)
var pHeight = (((parseInt(screen.height) / 2)) - 140)
bWindow = window.open(page,'newWin',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=500,height=280,top=" + pHeight + ",left=" + pWidth);
}

function open_apps(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
aWindow = window.open('https://www.fsbib.com/Forms/OnlineForm.cgi?form=' + nameofapp,'application',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=700,height=600,top=" + pHeight + ",left=" + pWidth + ",scrollbars=1,resizable=1,status=1");
}

var swapout = new Array("photo-nav1.jpg", "photo-nav2.jpg", "photo-nav3.jpg",  "photo-nav4.jpg", "photo-nav5.jpg", "photo-nav6.jpg", "photo-nav7.jpg");

function rand(numImages)
{
return Math.ceil((Math.random()* numImages));
}

var numImages = swapout.length;

iteratorNum = ( rand(numImages) - 1);

function popupLocations(page)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
aWindow = window.open(page,'application',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=470,height=340,top=" + pHeight + ",left=" + pWidth + ",scrollbars=1,resizable=1,status=1");
}



function showWarning(url){
var content = new Array();
var index = 0;
content[index++] = "<h3 style='margin-top: 2px;'>Third Party Site Disclaimer</h3>By accessing the noted link you will be leaving First Savers Bank's website and entering a website hosted by another party. First Savers Bank 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 First Savers Bank 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 First Savers Bank.";
content[index++] = "<br /><br /><br />";
content[index++] = "<div align=\"center\"><a href='javascript:window.location=\""+url+"\";'>Continue</a>&nbsp;&nbsp;&nbsp;<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: #FFF; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #174674; text-align: left; position:absolute; top:220px; left:300px; border: medium solid #B50101; padding: 15px; display: none; z-index: 3000; width:350px;"></div>');

function mail_warning(url){
    url = "mailto:"+url;
   //content creation
   var content = new Array();
          var index = 0;
   content[index++] = '<h3>E-mail Disclaimer</h3><br />WARNING: E-mail is an unsecure method of communication.  Any information contained in your message could be viewed by a third party.  Sensitive information such as passwords or social security numbers should be omitted from e-mail messages.';
   content[index++] = '<br /><br /><br />';
   content[index++] = '<div align="center"><a href="javascript:void(\'0\');" onclick="window.open(\''+url+'\');document.getElementById(\'ex_dis\').style.display = \'none\'">Continue</a>&nbsp;&nbsp;<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);
  }