if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;
/*************************************************************************************/
/* js redirect to visionbankfsb.com from other domains (visionbank.net, for example */
var rdr_domainname = window.location.hostname;
if (rdr_domainname.indexOf("visionbankfsb.com") == -1 && rdr_domainname.indexOf('skynet') == -1)
{
	rdr_domainname="www.visionbankfsb.com";
	newURL = window.location.protocol+"//"+rdr_domainname+window.location.pathname;
	window.location.replace(newURL);
}
/* end js redirect */
/*************************************************************************************/

/*
META TAGS CONTENT AND DESCRIPTION BELOW
META TAGS CONTENT AND DESCRIPTION BELOW
META TAGS CONTENT AND DESCRIPTION BELOW
*/
document.write('<meta name="keywords" content="Vision Bank, Bank, visionbank, 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 tril;


if(window.homepage)
{
imgdir="images/";
sitedir="site/";
securedir="site/";
homedir="";

}
else if(window.absolutepage)
{
imgdir="http://www.visionbankfsb.com/images/"
sitedir="http://www.visionbankfsb.com/site/"
securedir="http://www.visionbankfsb.com/site/"
homedir="http://www.visionbankfsb.com/"

}
else if(window.securepage)
{
imgdir="https://www.visionbankfsb.com/images/"
sitedir="http://www.visionbankfsb.com/site/"
securedir="https://www.visionbankfsb.com/site/"
homedir="http://www.visionbankfsb.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";
personalservices_on = new Image(288,23);
personalservices_on.src = imgdir + "nav-personalservices-on.jpg";

personalservices_off = new Image(288,23);
personalservices_off.src = imgdir + "nav-personalservices-off.jpg";

businessservices_on = new Image(231,23);
businessservices_on.src = imgdir + "nav-businessservices-on.jpg";

businessservices_off = new Image(231,23);
businessservices_off.src = imgdir + "nav-businessservices-off.jpg";

infodesk_on = new Image(182,23);
infodesk_on.src = imgdir + "nav-infodesk-on.jpg";

infodesk_off = new Image(182,23);
infodesk_off.src = imgdir + "nav-infodesk-off.jpg";

login_on = new Image(56,23);
login_on.src = imgdir + "olb-login-on.jpg";

login_off = new Image(56,23);
login_off.src = imgdir + "olb-login-off.jpg";

demo_on = new Image(37,18);
demo_on.src = imgdir + "olb-demo-on.jpg";

demo_off = new Image(37,18);
demo_off.src = imgdir + "olb-demo-off.jpg";

faq_on = new Image(56,18);
faq_on.src = imgdir + "olb-faq-on.jpg";

faq_off = new Image(56,18);
faq_off.src = imgdir + "olb-faq-off.jpg";

apply_on = new Image(38,18);
apply_on.src = imgdir + "olb-apply-on.jpg";

apply_off = new Image(38,18);
apply_off.src = imgdir + "olb-apply-off.jpg";

fees_on = new Image(171,23);
fees_on.src = imgdir + "nav-fees-on.jpg";

fees_off = new Image(171,23);
fees_off.src = imgdir + "nav-fees-off.jpg";

property_on = new Image(171,23);
property_on.src = imgdir + "nav-property-on.jpg";

property_off = new Image(171,23);
property_off.src = imgdir + "nav-property-off.jpg";

applications_on = new Image(171,23);
applications_on.src = imgdir + "nav-applications-on.jpg";

applications_off = new Image(171,23);
applications_off.src = imgdir + "nav-applications-off.jpg";

calc_on = new Image(171,23);
calc_on.src = imgdir + "nav-calc-on.jpg";

calc_off = new Image(171,23);
calc_off.src = imgdir + "nav-calc-off.jpg";

calculators_on = new Image(171,23);
calculators_on.src = imgdir + "nav-calculators-on.jpg";

calculators_off = new Image(171,23);
calculators_off.src = imgdir + "nav-calculators-off.jpg";

home_on = new Image(171,23);
home_on.src = imgdir + "nav-home-on.jpg";

home_off = new Image(171,23);
home_off.src = imgdir + "nav-home-off.jpg";

whatsnew_on = new Image(171,23);
whatsnew_on.src = imgdir + "nav-whatsnew-on.jpg";

whatsnew_off = new Image(171,23);
whatsnew_off.src = imgdir + "nav-whatsnew-off.jpg";

meetstaff_on = new Image(171,23);
meetstaff_on.src = imgdir + "nav-meetstaff-on.jpg";

meetstaff_off = new Image(171,23);
meetstaff_off.src = imgdir + "nav-meetstaff-off.jpg";

trust_on = new Image(171,23);
trust_on.src = imgdir + "nav-trust-on.jpg";

trust_off = new Image(171,23);
trust_off.src = imgdir + "nav-trust-off.jpg";


}
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 = 100; //( ((parseInt(screen.width) / 2)) - 275)
var pHeight = 100; //(((parseInt(screen.height) / 2)) -240)
window.open(calc,"hello","width=620,height=700,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 open_apps(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
//aWindow = window.open('https://www.visionbankfsb.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");

location.href = 'https://www.visionbankfsb.com/Forms/OnlineForm.cgi?form=' + nameofapp + '&onWeb=TRUE';

}

function open_page(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
aWindow = window.open(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");

}


//file used to write the date in this format: TUESDAY, JUNE 11, 2002    

function writeDate (){

var myDate = new Date();
var day = myDate.getDay();
var month = myDate.getMonth();
var date = myDate.getDate();
var year = "";

if (document.all)
	{
	year = myDate.getYear();
	}
else
	{
	year =myDate.getYear() + 1900;
	}	

var months = new Array ("January", "February","March", "April", "May", "June", "July", "August", "September", "October", "November", "December");

var days = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");


//alert (days[day] + ", " + months[month] + " " + date + ",  " + year);
var finalDate = ("<span class=date>" + days[day] + ", " + months[month] + " " + date + ",  " + year + "</span>");

return (finalDate);

}

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 showWarning(page) { // alternate 3rd party popup to make it consistent w/ other sites.
	var thirdpartyurl = sitedir + 'popup_third_party.html?location=' + page;
	third_party(thirdpartyurl);
}

function galleryPopup(image, width, height, imageBase) {
	popupWidth = width || 1044;
	popupHeight = height || 788;
	popupImageBase = imageBase || "";
	imageURL = "../images/slideshow/" + popupImageBase + image;
	window.open(imageURL, 'newWin', "toolbar=0,location=0,directories=0,status=0,menubar=0,width="+popupWidth+",height="+popupHeight);
}

