var hasRotatingBanner = false;
if (!window.imgdir) 
{
var imgdir="http://www.visionbankfsb.com/images/";
var sitedir="http://www.visionbankfsb.com/site/";
var securedir="http://www.visionbankfsb.com/site/";
var homedir="http://www.visionbankfsb.com/";
}

function Include()
{
var noFdic;
this.domain = "visionbank";
this.friendly = "Vision Bank";
this.ib = "https://www.visionbankfsb.com/onlineserv/HB/";
this.ib_demo = "https://www.visionbankfsb.com/onlineserv/HB/demo.html";
this.ib_open_window = false;
this.cm_open_window = true;
this.ib_register = "https://www.visionbankfsb.com/bridge/disclosures/ib/custom_pre_reg.html";
this.cm = "https://www.visionbankfsb.com/onlineserv/CM/";
this.headergraphic = "";
this.contentgraphic = "";

this.setHeaderGraphic = setHeaderGraphic;
this.setContentGraphic = setContentGraphic;
this.makeHeader = makeHeader;
this.makeSubNav = makeSubNav;
this.makeMainNav = makeMainNav;
this.makeLoginArea = makeLoginArea;
this.makeUltraseek = makeUltraSeek;
this.makeFooter = makeFooter;
this.makeFooterLogos = makeFooterLogos;
this.openIB = openIB;
this.openIBRegister = openIBRegister;
this.openCM = openCM;

}


/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/



/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/


function makeHeader()
{
var content = new Array();
var index = 0;

//CODE GOES HERE
content[index++] = '<table width="760" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '	<tr valign="top">';
content[index++] = '		<td width="420"><map name="logoMap"><area alt="Vision Bank" coords="1,1,196,92" href="http://www.visionbankfsb.com"></map><img src="' + imgdir + 'logo.jpg" width="420" height="121" alt="Vision Bank" border="0" usemap="#logoMap"><br>';
content[index++] = '<!-- begin upper navigation -->';
content[index++] = inc.makeMainNav();
content[index++] = '<!-- end upper nav. -->';
content[index++] = '		<table width="420" border="0" cellspacing="0" cellpadding="0" >';
content[index++] = '			<tr valign="top">';
content[index++] = '				<td width="201"><img src="' + imgdir + 'mainnav_bottom.jpg" width="201" height="14" alt="" border="0"></td>';
content[index++] = '				<td width="219" valign="top" style="background-color: white;"><!-- --></td>';
content[index++] = '			</tr>';
content[index++] = '		</table>';
content[index++] = '		</td>';
content[index++] = '		<!-- begin olb/header table -->';
content[index++] = '		';
content[index++] = inc.makeLoginArea();
content[index++] = '		';
content[index++] = '	<!-- begin header -->';
content[index++] = '<br></td>';
content[index++] = '	</tr>';
content[index++] = '</table>';
content[index++] = '	<!-- end header -->';
content[index++] = '	';
content[index++] = '	<!-- end top table -->';
content[index++] = '	<!-- end top table -->';
content[index++] = '	<!-- end top table -->';
content[index++] = '	';
content[index++] = '	<!-- begin main table -->';
content[index++] = '	<!-- begin main table -->';
content[index++] = '	<!-- begin main table -->';
content[index++] = '	';
content[index++] = '<table width="760" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '	<tr valign="top">';
content[index++] = '		<td width="171" bgcolor="#EAE7D9"><img src="' + imgdir + 'subnav-top.jpg" width="171" height="33" alt="" border="0"><br>';
content[index++] = '<!-- begin subnav -->';
content[index++] = inc.makeSubNav();
content[index++] = '<!-- end subnav -->';
content[index++] = '		<br></td>';
content[index++] = '		<td width="31" bgcolor="#ffffff"><img src="' + imgdir + 'clearpix.gif" width="31" height="1" alt="" border="0"></td>';
content[index++] = '		';
content[index++] = '		<!-- begin content area -->';
content[index++] = '		';
content[index++] = '		<td width="528" bgcolor="#ffffff" valign="top" class="ficontent"><br />';
if(hasRotatingBanner) {
	content[index++] = '			<div class="rotating_banner" style="width: 528px; text-align: center;">';
	content[index++] = '				<a href="#" ><img src="images/largepromo_ccc.jpg" id="bannerImage" style="border: 0;"/></a>';
	content[index++] = '			</div>';
}
content[index++] = '			<div class="clear" style="clear: both; margin-bottom: 10px;"><!-- --></div>';
content[index++] = '			<div class="header_content" style="border-bottom: 1px solid #90A889; width: 528px; height: 30px;">';
content[index++] = '				<div class="header_image" style="width: 340px; float: right; position: relative; right: -30px">' + inc.headergraphic + '</div>';
content[index++] = '				<div class="date" style="width: 150px; height: 15px; padding-top: 17px;">' + writeDate() + '</div>';
content[index++] = '			</div>';
content[index++] = '			<div class="clear" style="clear: both; margin-bottom: 20px;"><!-- --></div>';
//CODE GOES HERE

var index = 0;

return (content.join(""));
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function makeSubNav()
{
var content = new Array();
var index = 0;

content[index++] = '		<a href="' + sitedir + 'whatsnew.html" onMouseOver="img_act(\'whatsnew\'); window.status=\'What\\\'s New\'; return true" onMouseOut="img_inact(\'whatsnew\'); "><img src="' + imgdir + 'nav-whatsnew-off.jpg" width="171" height="23" alt="whatsnew" border="0" name="whatsnew"></a><br>';
//CODE GOES HERE
content[index++] = '		<a href="' + sitedir + 'info_locations.html" onMouseOver="img_act(\'meetstaff\'); window.status=\'Meet Our Staff\'; popUp(\'HM_Menu9\',event); return true" onMouseOut="img_inact(\'meetstaff\'); popDown(\'HM_Menu9\');"><img src="' + imgdir + 'nav-meetstaff-off.jpg" width="171" height="23" alt="Meet Our Staff" border="0" name="meetstaff"></a><br>';
content[index++] = '		<a href="' + sitedir + 'trust_investments.html" onMouseOver="img_act(\'trust\'); window.status=\'Meet Our Staff\'; return true" onMouseOut="img_inact(\'trust\'); "><img src="' + imgdir + 'nav-trust-off.jpg" width="171" height="23" alt="Trust/Investments" border="0" name="trust"></a><br>';
content[index++] = '		<a href="' + sitedir + 'property_sale.html" onMouseOver="img_act(\'property\'); window.status=\'property\';  popUp(\'HM_Menu10\',event); return true" onMouseOut="img_inact(\'property\'); popDown(\'HM_Menu10\');"><img src="' + imgdir + 'nav-property-off.jpg" width="171" height="23" alt="property" border="0" name="property"></a><br>';
if (document.URL.indexOf("Signon.cgi") > 0) {
// if this is the Signon page, use the Applications menu without the link to IB
content[index++] = '		<a href="' + sitedir + 'applications.html" onMouseOver="img_act(\'applications\'); popUp(\'HM_Menu8\',event); window.status=\'Applications\'; return true" onMouseOut="img_inact(\'applications\'); popDown(\'HM_Menu8\');"><img src="' + imgdir + 'nav-applications-off.jpg" width="171" height="23" alt="Applications" border="0" name="applications"></a><br>';
}
else
// otherwise use the normal applications menu
content[index++] = '		<a href="' + sitedir + 'applications.html" onMouseOver="img_act(\'applications\'); popUp(\'HM_Menu5\',event); window.status=\'Applications\'; return true" onMouseOut="img_inact(\'applications\'); popDown(\'HM_Menu5\');"><img src="' + imgdir + 'nav-applications-off.jpg" width="171" height="23" alt="Applications" border="0" name="applications"></a><br>';

// "Calculators" nav item
content[index++] = '		<a href="' + sitedir + 'calc.html" onMouseOver="img_act(\'calc\'); window.status=\'Calculators\'; return true" onMouseOut="img_inact(\'calc\');"><img src="' + imgdir + 'nav-calc-off.jpg" width="171" height="23" alt="Calculators" border="0" name="calc"></a><br>';

//Removed in 800-215974 on 12/4/2008 content[index++] = '		<a href="' + sitedir + 'calculators.html" onMouseOver="img_act(\'calculators\'); popUp(\'HM_Menu6\',event); window.status=\'Calculators\'; return true" onMouseOut="img_inact(\'calculators\'); popDown(\'HM_Menu6\');"><img src="' + imgdir + 'nav-calculators-off.jpg" width="171" height="23" alt="Calculators" border="0" name="calculators"></a><br>';
content[index++] = '<a href="' + homedir + 'index.html" onMouseOver="img_act(\'home\'); window.status=\'Home\'; return true" onMouseOut="img_inact(\'home\');"><img src="' + imgdir + 'nav-home-off.jpg" width="171" height="23" alt="Home" border="0" name="home"></a>';
if (typeof homepage != 'undefined') {
content[index++] = '<img src="' + imgdir + 'nav-blank.jpg" width="171" height="23" border="0" /></a>';
content[index++] = '<a href="javascript:showWarning(\'https://online1.elancard.com/oad/begin?locationCode=13054\');"><img src="' + imgdir + 'promo_visa.gif" width="145" height="94" border="0"  style="margin-top:1em; padding-left:10px;" /></a>';
content[index++] = '<a href="' + sitedir + 'hsa.html"><img src="' + imgdir + 'promo_hsa.jpg" width="145" height="94" border="0"  style="margin-top:1em; padding-left:10px;" /></a>';
}
else if(typeof showvisapromo != 'undefined'){
content[index++] = '<img src="' + imgdir + 'nav-blank.jpg" width="171" height="23" border="0" /></a>';
content[index++] = '<a href="javascript:showWarning(\'https://online1.elancard.com/oad/begin?locationCode=13054\');"><img src="' + imgdir + 'promo_visa.gif" width="145" height="94" border="0"  style="margin-top:1em; padding-left:10px;" /></a>';
}
else {
content[index++] = '<img src="' + imgdir + 'nav-blank.jpg" width="171" height="23" border="0" /></a>';
}
//CODE GOES HERE

return (content.join(""));
}



/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function makeMainNav()
{
var content = new Array();
var index = 0;

//CODE GOES HERE
content[index++] = '		<a href="' + sitedir + 'personal.html" onMouseOver="img_act(\'personalservices\'); popUp(\'HM_Menu1\',event);  window.status=\'Personal Services\'; return true" onMouseOut="img_inact(\'personalservices\'); popDown(\'HM_Menu1\');"><img src="' + imgdir + 'nav-personalservices-off.jpg" width="288" height="23" alt="Personal Services" border="0" name="personalservices"></a><img src="' + imgdir + 'nav-pers-end.jpg" width="132" height="23" alt="" border="0"><br>';
content[index++] = '		<a href="' + sitedir + 'business.html" onMouseOver="img_act(\'businessservices\'); popUp(\'HM_Menu2\',event); window.status=\'Business Services\'; return true" onMouseOut="img_inact(\'businessservices\'); popDown(\'HM_Menu2\');"><img src="' + imgdir + 'nav-businessservices-off.jpg" width="231" height="23" alt="Business Services" border="0" name="businessservices"></a><img src="' + imgdir + 'nav-bus-end.jpg" width="189" height="23" alt="" border="0"><br>';
content[index++] = '		<a href="' + sitedir + 'infodesk.html" onMouseOver="img_act(\'infodesk\'); popUp(\'HM_Menu3\',event); window.status=\'Information Desk\'; return true" onMouseOut="img_inact(\'infodesk\'); popDown(\'HM_Menu3\');"><img src="' + imgdir + 'nav-infodesk-off.jpg" width="182" height="23" alt="Information Desk" border="0" name="infodesk"></a><img src="' + imgdir + 'nav-info-end.jpg" width="238" height="23" alt="" border="0"><br>';
//CODE GOES HERE

return (content.join(""));
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function setContentGraphic(graphic , alt_tag)
{
if (!alt_tag)
var alt_tag = "";

if (graphic == null)
	{
	this.contentgraphic = "";
	}
else
	{
	this.contentgraphic = '';
	}	
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function setHeaderGraphic(graphic , alt_tag)
{
if (!alt_tag)
var alt_tag = "";

if (graphic == null)
	{
	this.headergraphic = "";
	}
else
	{
	this.headergraphic = '<img src="' + imgdir + 'hed-' + graphic + '.gif" width="340" height="31" alt="' + alt_tag + '" border="0">';
	}	
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function makeLoginArea()
{
var content = new Array();
var index = 0;

//CODE GOES HERE
content[index++] = '		<td width="340" style="background-color: white;"><img src="' + imgdir + 'olbcenter.jpg" width="340" height="60" alt="Online Banking Center" border="0"><br>';
content[index++] = '		<img src="' + imgdir + 'olb-login-left.jpg" width="143" height="23" alt="" border="0"><a href="javascript:inc.openIB();" onMouseOver="img_act(\'login\'); window.status=\'Login\'; return true" onMouseOut="img_inact(\'login\');"><img src="' + imgdir + 'olb-login-off.jpg" width="56" height="23" alt="Login" border="0" name="login"></a><img src="' + imgdir + 'olb-login-right.jpg" width="141" height="23" alt="" border="0"><br>';
content[index++] = '<img src="' + imgdir + 'olb-thirdrow-left.jpg" width="106" height="18" alt="" border="0"><a href="javascript:inc.openIB(\'demo\');" onMouseOver="img_act(\'demo\'); window.status=\'Demo\'; return true" onMouseOut="img_inact(\'demo\');"><img src="' + imgdir + 'olb-demo-off.jpg" width="37" height="18" alt="Demo" border="0" name="demo"></a><a href="' + sitedir + 'faq.html" onMouseOver="img_act(\'faq\'); window.status=\'FAQ\'; return true" onMouseOut="img_inact(\'faq\');"><img src="' + imgdir + 'olb-faq-off.jpg" width="56" height="18" alt="FAQ" border="0" name="faq"></a><a href="https://www.visionbankfsb.com/bridge/disclosures/ib/custom_pre_reg.html" onMouseOver="img_act(\'apply\'); window.status=\'Apply\'; return true" onMouseOut="img_inact(\'apply\');" target="_blank"><img src="' + imgdir + 'olb-apply-off.jpg" width="38" height="18" alt="Apply" border="0" name="apply"></a><img src="' + imgdir + 'olb-thirdrow-right.jpg" width="103" height="18" alt="" border="0"><br>';
content[index++] = '<img src="' + imgdir + 'olb-bottom.jpg" width="340" height="72" alt="" border="0"><br>';
//CODE GOES HERE

return (content.join(""));
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function makeUltraSeek()
{
var content = new Array();
var index = 0;

//CODE GOES HERE

//CODE GOES HERE

return (content.join(""));
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function makeDateStamp()
{

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 = (days[day] + ", " + months[month] + " " + date + ",  " + year);


var content = new Array();
var index = 0;
content[index++] = '<td align="right" valign="middle"><font face="Verdana,Arial,Helvetica,sans-serif" size="1" color="#741533">' + finalDate + '</font><img src="' + imgdir + 'clearpix.gif" width="15" height="1" alt="" border="0"></td>';

return (content.join(""));
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/




/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/












/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/





/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/
function makeFooter()
{
var content = new Array();
var index = 0;

//CODE GOES HERE
var index = 0;
content[index++] = '		<br /><br />';
content[index++] = '		</td>';
content[index++] = '		<td width="30" bgcolor="#ffffff"><img src="' + imgdir + 'clearpix.gif" width="30" height="1" alt="" border="0"></td>';
content[index++] = '	</tr>';
content[index++] = '</table>';
content[index++] = '	';
content[index++] = inc.makeFooterLogos();
content[index++] = '</td></tr></table>';

//CODE GOES HERE

return (content.join(""));
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function makeFooterLogos()
{
var content = new Array();
var index = 0;

//CODE GOES HERE
content[index++] = '<table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#988841">';
content[index++] = '	<tr valign="top">';
content[index++] = '		<td width="760" align="center"><a href="#top"><img src="' + imgdir + 'footer-top.gif" width="171" height="29" alt="Back to Top" border="0"></a><img src="' + imgdir + 'footer-stretch.gif" width="156" height="29" alt="" border="0"><a href="' + sitedir + 'privacy_policy.pdf"; target="_blank" return true"><img src="' + imgdir + 'footer-privacy.gif" width="140" height="29" alt="Privacy Policy" border="0"></a><img src="' + imgdir + 'footer-stretch.gif" width="262" height="29" alt="" border="0"><img src="' + imgdir + 'footer-end.gif" width="31" height="29" alt="" border="0"><br>';
content[index++] = '            <img src="' + imgdir + 'footer-ehl.gif" width="90" height="107" alt="Equal Housing Lender" border="0"><!--[if lt IE 7]><script type="text/javascript" src="https://www.visionbankfsb.com/mstinc/web/js/png.js"></script><![endif]--><img src="https://www.visionbankfsb.com/mstinc/web/images/di_140x34_1c_k.png" width="140" height="34" border="0" style="margin:37px 0;" alt="Digital Insight, an Intuit company" />';
if ( this.noFdic != "true" ) {
	content[index++] = '	<a href="javascript:showWarning(\'http://www.fdic.gov/\');"><img src="' + imgdir + 'footer-FDIC.gif" width="57" height="107" alt="Member FDIC" border="0" style="margin-left:45px;"></a>';
}
content[index++] = '		<br></td>';
//content[index++] = '            <a href="javascript:showWarning(\'http://www.hud.gov\');"><img src="' + imgdir + 'footer-ehl.gif" width="90" height="107" alt="Equal Housing Lender" border="0"></a><a href="javascript:showWarning(\'http://www.digitalinsight.com\');"><!--[if lt IE 7]><script type="text/javascript" src="https://www.visionbankfsb.com/mstinc/web/js/png.js"></script><![endif]--><img src="https://www.visionbankfsb.com/mstinc/web/images/di_140x34_1c_k.png" width="140" height="34" border="0" style="margin:37px 0;" alt="Digital Insight, an Intuit company" /></a><a href="javascript:showWarning(\'http://www.fdic.gov\');"><img src="' + imgdir + 'footer-FDIC.gif" width="57" height="107" alt="Member FDIC" border="0" style="margin-left:45px;"></a><br></td>';
content[index++] = '	</tr>';
content[index++] = '</table>';
//CODE GOES HERE

return (content.join(""));
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/





function openIB(which)
{

if (which == 'demo')
	{
	if (this.ib_open_window == true)
		{
		window.open(this.ib_demo);
		}
	else
		{
		location.href = this.ib_demo;
		}
	}
else if (which == 'topdemo')
	{
		top.location.href = this.ib_demo;
	}			
else if (which == 'top')
	{
		top.location.href = this.ib;
	}	
else
	{
	if (this.ib_open_window == true)
		{
		window.open(this.ib);
		}
	else
		{
		location.href = this.ib;
		}
	}
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function openIBRegister()
{
	window.open(this.ib_register);
}

function openCM()
{
if (this.cm_open_window == true)
	{	
	window.open(this.cm);
	}
else
	{
	location.href = this.cm;
	}
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/



function make_personal_dropdown()
{

var items = new Array();
var index = -1;
items[index++] = new Array('#' , 'Make a Selection &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' , 'same');
items[index++] = new Array('javascript:void(0);' , 'Make A Selection' , 'same');
items[index++] = new Array('personal_checking.html' , 'Checking Accounts' , 'same');
items[index++] = new Array('personal_savings.html' , 'Savings Accounts' , 'same');
items[index++] = new Array('personal_loans.html' , 'Personal Loans' , 'same');
items[index++] = new Array("javascript:showWarning('http://mortgage.visionbank.net/Default.aspx')" , 'Mortgage Loans' , 'same');
items[index++] = new Array('personal_telephone.html' , 'Telephone Banking' , 'same');
items[index++] = new Array('personal_online.html' , 'Online Banking' , 'same');
items[index++] = new Array('personal_billpay.html' , 'Bill Pay Services' , 'same');
items[index++] = new Array('personal_safe.html' , 'Safe Deposit Boxes' , 'same');
items[index++] = new Array('personal_debit.html' , 'ATM/Checkcard' , 'same');
items[index++] = new Array('personal_credit.html' , 'Consumer Credit Card' , 'same');


		
writeout_dropdown(items);		
}



function make_business_dropdown()
{

var items = new Array();
var index = -1;
items[index++] = new Array('#' , 'Make a Selection &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' , 'same');
items[index++] = new Array('javascript:void(0);' , 'Make A Selection' , 'same');
items[index++] = new Array('business_checking.html' , 'Checking Accounts' , 'same');
items[index++] = new Array('business_savings.html' , 'Savings Accounts' , 'same');
items[index++] = new Array('business_loans.html' , 'Business Loans' , 'same');
items[index++] = new Array('business_merchant.html' , 'Merchant Services' , 'same');
items[index++] = new Array('business_customer.html' , 'CustomerConnect ACH' , 'same');
items[index++] = new Array('business_credit.html' , 'Business Credit Card' , 'same');
items[index++] = new Array('business_debit.html' , 'ATM/Checkcard' , 'same');
items[index++] = new Array('business_telephone.html' , 'Telephone Banking' , 'same');
items[index++] = new Array('business_online.html' , 'Online Banking' , 'same');
items[index++] = new Array('business_billpay.html' , 'Bill Pay Services' , 'same');
		
writeout_dropdown(items);		
}


function make_infodesk_dropdown()
{

var items = new Array();
var index = -1;
items[index++] = new Array('#' , 'Make a Selection &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' , 'same');
items[index++] = new Array('javascript:void(0);' , 'Make A Selection' , 'same');
/*items[index++] = new Array('info_message.html' , 'CEO Message' , 'same');
items[index++] = new Array('info_history.html' , 'Vision Bank History' , 'same');*/
//items[index++] = new Array('http://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=0001095861&owner=include' , 'Quarterly Report' , 'new');
items[index++] = new Array('info_locations.html' , 'Locations/Hours' , 'same');
items[index++] = new Array('javascript:open_apps(\'contact_app\');' , 'Send Us an Email' , 'same');
items[index++] = new Array('faq.html' , 'FAQ' , 'same');
items[index++] = new Array('info_jobs.html', 'Job Postings', 'same');
writeout_dropdown(items);		
}

function make_infodesk_dropdown_2()
{

var items = new Array();
var index = -1;
items[index++] = new Array('#' , 'Make a Selection &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' , 'same');
items[index++] = new Array('javascript:void(0);' , 'Make A Selection' , 'same');
/*items[index++] = new Array('info_message.html' , 'CEO Message' , 'same');
items[index++] = new Array('info_history.html' , 'Vision Bank History' , 'same');*/
//items[index++] = new Array('http://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=0001095861&owner=include' , 'Quarterly Report' , 'new');
items[index++] = new Array('info_locations.html' , 'Locations/Hours' , 'same');
items[index++] = new Array('javascript:open_apps(\'contact_app\');' , 'Send Us an Email' , 'same');
items[index++] = new Array('faq.html' , 'FAQ' , 'same');
items[index++] = new Array('info_jobs.html', 'Job Postings', 'same');
writeout_dropdown(items);		
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function writeout_dropdown(items)
{
var whole = '<form name="form1">';
whole += '<select name="dropdown_nav" onChange="javascript:changeLocations();" class="dropdown">';
for (i=0; i < items.length; i++)
	{
	if (items[i][2] == "new")
		{
		var target="^new";
		}
	else if (items[i][2] == "top")
		{
		var target="^top";
		}	
	else
		{
		var target="";
		}	
	whole += '<option value="' + items[i][0] + target + '">' + items[i][1] + '</option>';
	}
whole += '</select>';
document.write(whole);
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function changeLocations()
{
var location = document.form1.dropdown_nav[document.form1.dropdown_nav.selectedIndex].value;

var first = location.indexOf("^");
if (first != -1)
	{
	var target = location.substring(first + 1 , location.length);
	location = location.substring(0 , first);
	}
else
	{
	var target = "";
	}	
	
	//alert(target);
	//alert(location);
	
if (target == "new")
	{
	window.open(location);
	}
else if (target == "top")
	{
	top.location.href = location;
	}	
else
	{
	window.location.href = location;
	}	

}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function make_NAMEHERE_subnav(whichnumber , breaknumber)
{
var items = new Array();
var index = -1;

items[index++] = new Array('<a href="link1.html">' , 'LINK1' , '</a>');
items[index++] = new Array('<a href="link2.html">' , 'LINK2' , '</a>');
items[index++] = new Array('<a href="link3" target="_new">' , 'LINK3' , '</a>');
items[index++] = new Array('<a href="link4.html">' , 'LINK4' , '</a>');


writeitout(items , whichnumber , breaknumber);
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function writeitout(items , whichnumber , breaknumber)
{
var whole = '<div align="center" class="subnav">';
var spacer = ""
for (i=0; i < items.length; i++)
	{
	if (i != whichnumber)
		{
		spacer = " | ";
		if (i == items.length - 1)
			spacer = "";
		else if (i == breaknumber)
			spacer = "<br />";
		whole += items[i][0] + items[i][1] + items[i][2] + spacer;
		}
	else
		{
		spacer = " | ";
		if (i == items.length - 1)
			spacer = "";
		else if (i == breaknumber)
			spacer = "<br />";
		whole += items[i][1] + spacer;
		}
	}
whole += '</div><br />';
document.write(whole);
}


function showpopup(nameofapp , width , height) 
{
		var halfwidth = width/2;
		var halfheight = height/2;
	 	var pWidth = ( ((parseInt(screen.width) / 2)) - halfwidth)
		var pHeight = (((parseInt(screen.height) / 2)) - halfheight)
		aWindow = window.open(nameofapp,'application',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=" + width + ",height=" + height + ",top=" + pHeight + ",left=" + pWidth + ",scrollbars=1,resizable=1");
} 

function testForDemo(fileName)
{
	if("" != "__cookie.demo__")
	{
		if(confirm("In order to register, you must first exit the demo. Would you like to exit the demo?"))
		{
			document.location = "index.html";
		}
		else
		{
			document.location = "https://www.visionbankfsb.com/onlineserv/HB/demo.html";
		}
	}
	else
	{
		document.location = fileName; 
	}
	
	return false;
}
