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

function Include()
{
this.domain = "fsbib";
this.friendly = "First Savers Bank";
this.ib = "https://www.fsbib.com/onlineserv/HB";
this.ib_demo = "https://www.fsbib.com/onlineserv/HB/demo.html";
this.ib_open_window = true;
this.cm_open_window = true;
this.ib_register = "https://www.fsbib.com/onlineserv/HB/OnlineForm.cgi?form=enhancedNDB";
this.cm = "https://www.fsbib.com/onlineserv/CM/";
this.headergraphic = "";
this.contentgraphic = "";

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

/*  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, 
	the variable in _script.js and if statement in this file under makeMainNav();*/
//this.bpSweepstakes = bpSweepstakes;

}


var phishingAlert = '<div style="text-align: center; color: #892034; font-weight: normal;">First Savers Bank does not request account numbers, passwords or Social Security numbers, or other personal information, through e-mail. If you have received requests of this nature, please delete them immediately.<br /><br />Be Aware&#133;First Savers Bank will also not call and request your ATM or Debit Card number and/or pin because of card deactivation.  If you receive this type of phone call, do not give any financial information and report it to your local branch.</div><br />';

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||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><td bgcolor="#0035AD" align="right"><img src="' + imgdir + 'pix-grey.gif" width="1" height="3"></td></tr>';
content[index++] = '</table>';
content[index++] = '<table width="760" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '	<tr><td colspan="4" align="right"><img src="' + imgdir + 'pix-grey.gif" width="1" height="1"></td></tr>';
content[index++] = '	<tr valign="top">';
content[index++] = '		<td width="200"><img src="' + imgdir + 'logo-fsbib.gif" width="200" height="124" alt="First Savers Bank" border="0"></td>';
content[index++] = '		<td width="330"><img src="' + imgdir + 'top-photo.jpg" width="330" height="124" alt="" border="0"></td>';
content[index++] = inc.makeLogin();
content[index++] = '		';
content[index++] = '		<td width="21"><img src="' + imgdir + 'clearpix.gif" width="21" height="1"></td>';
content[index++] = '	</tr>';
content[index++] = '	<tr><td colspan="4" align="right"><img src="' + imgdir + 'pix-grey.gif" width="1" height="1"></td></tr>';
content[index++] = '</table>';
content[index++] = '<table width="760" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '	<tr>';
content[index++] = '		<td bgcolor="#0035AD">';
content[index++] = inc.makeTopNav();
content[index++] = '		</td>';
content[index++] = '	</tr>';
content[index++] = '</table>';
content[index++] = '	';
content[index++] = '<!-- begin header table -->';
content[index++] = '<!-- begin header table -->';
content[index++] = '<!-- begin header table -->';
content[index++] = '<!-- begin main table -->';
content[index++] = '<!-- begin main table -->';
content[index++] = '<!-- begin main table -->';
content[index++] = '<table width="760" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '	<tr valign="top">';
content[index++] = '		<!-- begin main nav cell -->';
content[index++] = '		<!-- begin main nav cell -->';
content[index++] = '		<!-- begin main nav cell -->';
content[index++] = '		<td width="200" bgcolor="#E4E9EE">';
content[index++] = '		';
content[index++] = inc.makeMainNav();
content[index++] = '    	</td>';
content[index++] = '		<!-- end main nav cell -->';
content[index++] = '		<!-- end main nav cell -->';
content[index++] = '		<!-- end main nav cell -->';
content[index++] = '		';
content[index++] = '		<!-- begin main spacer cell -->';
content[index++] = '		<!-- begin main spacer cell -->';
content[index++] = '		<!-- begin main spacer cell -->';
content[index++] = '		<td width="30"><img src="' + imgdir + 'clearpix.gif" width="30" height="10" alt="" border="0" name=""></td>';
content[index++] = '		<!-- end main spacer cell -->';
content[index++] = '		<!-- end main spacer cell -->';
content[index++] = '		<!-- end main spacer cell -->';
content[index++] = '		';
content[index++] = '		<!-- begin main content cell -->';
content[index++] = '		<!-- begin main content cell -->';
content[index++] = '		<!-- begin main content cell -->';
content[index++] = '		<td width="530" valign="top">	';
content[index++] = '			<!-- begin nested content table -->';
content[index++] = '			<!-- begin nested content table -->';
content[index++] = '			<!-- begin nested content table -->	';
content[index++] = '			<table width="100%" border="0" cellspacing="0" cellpadding="15">';
content[index++] = '				<tr valign="top">';
if (contactUs == 1)
content[index++] = '					<td class="ficontent" valign="top">' + phishingAlert + '<table border="0"><tr valign="top"><td class="ficontent" valign="top"><div align="center" class="subheader">For your protection, we recommend that you do not email account numbers, debit card numbers, passwords, or other critical financial information.</div><br>' + inc.headergraphic + '</td><td class="ficontent" valign="top"><!-- <a href="https://www.fsbib.com/onlineserv/HB" target="_blank"><img src="' + imgdir + 'bp_laptop_small.gif" alt="Enroll Today!" border="0"></a> --><br clear="all"><br></td></tr></table>';
else if (mortgage == 1)
content[index++] = '					<td class="ficontent" valign="top">' + phishingAlert + '<img src="' + imgdir + 'clearpix.gif" width="1" height="20"><br>' + inc.headergraphic + '<br><br>';
else if (homepage = "yes")
//content[index++] = '					<td class="ficontent" valign="top"> <!-- <a href="' + imgdir + 'cdladder4-19-05.jpg" target="_blank"><img src="' + imgdir + 'cdladderlogo.gif" border="0" alt="CD Ladder" align="left"></a> --><br clear="all"><br>' + inc.headergraphic + '<!-- <a href="https://www.fsbib.com/onlineserv/HB" target="_blank"><img src="' + imgdir + 'bp_laptop_small.gif" alt="Enroll Today!" border="0"></a> --><br clear="all"><br>';
content[index++] = '					<td class="ficontent" valign="top">' + phishingAlert + '<!-- <a href="' + imgdir + 'cdladder4-19-05.jpg" target="_blank"><img src="' + imgdir + 'cdladderlogo.gif" border="0" alt="CD Ladder" align="left"></a> --><br clear="all"><br>' + inc.headergraphic + '<!-- <a href="https://www.fsbib.com/onlineserv/HB" target="_blank"><img src="' + imgdir + 'bp_laptop_small.gif" alt="Enroll Today!" border="0"></a> --><br clear="all"><br>';
else
content[index++] = '					<td class="ficontent" valign="top">' + phishingAlert + '<img src="' + imgdir + 'clearpix.gif" width="1" height="20"><br>' + inc.headergraphic + '<br><br>' + inc.contentgraphic;
content.join("");

//CODE GOES HERE


var index = 0;

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

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

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

//CODE GOES HERE
content[index++] = '<td width="209" align="right" background="' + imgdir + 'top-login-bg.jpg"><img src="' + imgdir + 'clearpix.gif" width="1" height="28"><br>';
content[index++] = '			<img src="' + imgdir + 'label-ib.gif" width="168" height="11" alt="Online Banking" border="0"><br><a href="https://www.fsbib.com/onlineserv/HB" target="_new" onMouseOver="img_act(\'login_ib\'); window.status=\'Login\'; return true" onMouseOut="img_inact(\'login_ib\');"><img src="' + imgdir + 'nav-login-off.gif" width="49" height="15" alt="Login" border="0" name="login_ib"></a><a href="https://www.fsbib.com/onlineserv/HB/demo.html" target="_new" onMouseOver="img_act(\'demo_ib\'); window.status=\'Demo\'; return true" onMouseOut="img_inact(\'demo_ib\');"><img src="' + imgdir + 'nav-demo-off.gif" width="53" height="15" alt="Demo" border="0" name="demo_ib"></a><a href="' + sitedir + 'personal_internet.html" onMouseOver="img_act(\'info_ib\'); window.status=\'Info\'; return true" onMouseOut="img_inact(\'info_ib\');"><img src="' + imgdir + 'nav-info-off.gif" width="47" height="15" alt="Info" border="0" name="info_ib"></a><br><img src="' + imgdir + 'clearpix.gif" width="1" height="18"><br><img src="' + imgdir + 'label-cm.gif" width="168" height="11" alt="Business Online Banking" border="0"><br><a href="https://www.fsbib.com/onlineserv/CM/" target="_blank" onMouseOver="img_act(\'login_cm\'); window.status=\'Login\'; return true" onMouseOut="img_inact(\'login_cm\');"><img src="' + imgdir + 'nav-login-off.gif" width="49" height="15" alt="Login" border="0" name="login_cm"></a><a href="http://www.cmdemo.com" target="_blank" onMouseOver="img_act(\'demo_cm\'); window.status=\'Demo\'; return true" onMouseOut="img_inact(\'demo_cm\');"><img src="' + imgdir + 'nav-demo-off.gif" width="53" height="15" alt="Demo" border="0" name="demo_cm"></a><a href="' + sitedir + 'business_cash.html" onMouseOver="img_act(\'info_cm\'); window.status=\'Info\'; return true" onMouseOut="img_inact(\'info_cm\');"><img src="' + imgdir + 'nav-info-off.gif" width="47" height="15" alt="Info" border="0" name="info_cm"></a></td>';
content.join("");

//CODE GOES HERE

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


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

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

//CODE GOES HERE
content[index++] = '<table width="760" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '				<tr>';
content[index++] = '					<td align="right"><a href="' + sitedir + 'contactus.html" onMouseOver="img_act(\'contactus\'); window.status=\'Contact Us\'; return true" onMouseOut="img_inact(\'contactus\');"><img src="' + imgdir + 'nav-contactus-off.gif" width="75" height="25" alt="Contact Us" border="0" name="contactus"></a><a href="' + sitedir + 'privacy.html" onMouseOver="img_act(\'privacy\'); window.status=\'Privacy Statement\'; return true" onMouseOut="img_inact(\'privacy\');"><img src="' + imgdir + 'nav-privacy-off.gif" width="54" height="25" alt="" border="0" name="privacy"></a><span style="font-size: 10pt; color: white; position: relative; bottom: 7px">|</span><a href="https://www.fsbib.com/onlineserv/HB/security_site/privacy.html" onMouseOver="img_act(\'security\'); window.status=\'Security\'; return true" onMouseOut="img_inact(\'security\');"><img name="security" src="' + imgdir + 'nav-security-off.gif" alt="Security" border="0" width="57" height="25"></a><a href="' + sitedir + 'faq.html" onMouseOver="img_act(\'faq\'); window.status=\'FAQs\'; return true" onMouseOut="img_inact(\'faq\');"><img src="' + imgdir + 'nav-faq-off.gif" width="43" height="25" alt="FAQs" border="0" name="faq"></a><a href="' + homedir + 'home.html" onMouseOver="img_act(\'home\'); window.status=\'Home\'; return true" onMouseOut="img_inact(\'home\');"><img src="' + imgdir + 'nav-home-off.gif" width="71" height="25" alt="Home" border="0" name="home"></a></td>';
content[index++] = '				</tr>';
content[index++] = '			</table>';
content.join("");

//CODE GOES HERE

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

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

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

//CODE GOES HERE

content[index++] = '<table border="0" cellspacing="0" cellpadding="0">';
content[index++] = '				<tr><td><a href="javascript:void(0);" onMouseOver="img_act(\'aboutus\'); popUp(\'HM_Menu1\',event); window.status=\'About Us\'; return true" onMouseOut="img_inact(\'aboutus\'); popDown(\'HM_Menu1\');"><img src="' + imgdir + 'nav-aboutus-off.gif" width="200" height="28" alt="About Us" border="0" name="aboutus"></a></td></tr>';
content[index++] = '				<tr><td><a href="javascript:void(0);" onMouseOver="img_act(\'personal\'); popUp(\'HM_Menu2\',event); window.status=\'Personal Banking Services\'; return true" onMouseOut="img_inact(\'personal\'); popDown(\'HM_Menu2\');"><img src="' + imgdir + 'nav-personal-off.gif" width="200" height="28" alt="Personal Banking Services" border="0" name="personal"></a></td></tr>';
content[index++] = '				<tr><td><a href="javascript:void(0);" onMouseOver="img_act(\'business\'); popUp(\'HM_Menu3\',event); window.status=\'Business Banking Services\'; return true" onMouseOut="img_inact(\'business\'); popDown(\'HM_Menu3\');"><img src="' + imgdir + 'nav-business-off.gif" width="200" height="28" alt="Business Banking Services" border="0" name="business"></a></td></tr>';
content[index++] = '				<tr><td><a href="' + sitedir + 'mortgage.html" onMouseOver="img_act(\'mortgage\'); window.status=\'Mortgage Loans\'; return true" onMouseOut="img_inact(\'mortgage\');"><img src="' + imgdir + 'nav-mortgage-off.gif" width="200" height="28" alt="Mortgage Loans" border="0" name="mortgage"></a></td></tr>';
content[index++] = '				<tr><td><a href="javascript:void(0);" onMouseOver="img_act(\'rates\'); popUp(\'HM_Menu4\',event); window.status=\'Current Rates\'; return true" onMouseOut="img_inact(\'rates\'); popDown(\'HM_Menu4\');"><img src="' + imgdir + 'nav-rates-off.gif" width="200" height="28" alt="Current Rates" border="0" name="rates"></a></td></tr>';
content[index++] = '				<tr><td><a href="javascript:void(0);" onMouseOver="img_act(\'calculators\'); popUp(\'HM_Menu5\',event); window.status=\'Financial Calculators\'; return true" onMouseOut="img_inact(\'calculators\'); popDown(\'HM_Menu5\');"><img src="' + imgdir + 'nav-calculators-off.gif" width="200" height="28" alt="Financial Calculators" border="0" name="calculators"></a></td></tr>';
content[index++] = '				<tr><td><a href="' + sitedir + 'financial_services.html" onMouseOver="img_act(\'ffs\'); window.status=\'First Financial Services\'; return true" onMouseOut="img_inact(\'ffs\');"><img src="' + imgdir + 'nav-ffs-off.gif" width="200" height="28" alt="First Financial Services" border="0" name="ffs"></a></td></tr>';
content[index++] = '				<tr><td align="center"><img src="' + imgdir + swapout[iteratorNum] + '" width="196" height="148"></td></tr>';

if (window.homepage)/* if homepage, display allpoint module */
{
content[index++] = '<tr><td><div align="center"><table border="0" cellspacing="0" cellpadding="0" width="164">';
content[index++] = '	<tr><td width="159" colspan="2" valign="top" align="left"><a href="#"><img border="0" src="'+imgdir+'32find.gif" width="164" height="38"></a></td></tr>';
content[index++] = '	<tr><td bgcolor="#CCCCCC"><img border="0" src="'+imgdir+'spacer.gif" width="5" height="5"></td></tr>';
content[index++] = '	<tr><td bgcolor="#CCCCCC" align="top" valign="top" colspan="2" width="164" nowrap>';
content[index++] = '	<form method="post" action="http://www.allpointnetwork.com/atm/findAtmClosest.do" target="_blank" name="atmFindNearestForm">';
content[index++] = '	<table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">';
content[index++] = '	<tr><td><img border="0" src="'+imgdir+'spacer.gif" width="10" height="10"></td><td align="left" valign="top"><input name=\'zipcode\' type=\'text\' id=\'zipcode\' size=\'8\' maxlength=\'5\' class=\'drop2\' value=\'Zip Code\' ONFOCUS=\'clearDefault(this)\'></td><td><input name=\'zip\' type=\'image\' src="'+imgdir+'25allgo.gif" border="0" name="btnSubmit"></td></form><td><img border="0" src="'+imgdir+'25alllogo.gif" width="55" height="24" alt="AllPoint"></td></tr></table></td></tr>';
content[index++] = '	<tr><td><img border="0" src="'+imgdir+'rightcorner.gif" width="164" height="15"></td></tr></table></div></td></tr>';
 /* end allpoint */
/* begin MasterCard SecureCode */
content[index++] = '<tr><td><br /><div align="center"><a href="javascript:third_party(\'site/popup_third_party.html?location=https://secure4.arcot.com/vpas/cnsmc_053273981_sc/enroll/index.jsp?locale=en_US&bankid=1864\');"><img src="' + imgdir + 'securecode.gif" border="0" alt="MasterCard SecureCode"></a></div></td></tr>';
 /* end MasterCard SecureCode*/
 
 //content[index++] = '<tr><td><br /><div align="center"><a href="javascript:third_party(\'site/popup_third_party.html?location=http://www.priceless.com/jeans/\');"><img src="' + imgdir + 'Jeans_Banner.gif" border="0" style="margin-bottom:30px;" alt="PRICELESS ESCAPE"></a></div><br /><br /></td></tr>';

 
/* begin Promontory Code */
content[index++] = '<tr><td><br /><br /><br /><br /><div align="center"><a href="javascript:third_party(\'site/popup_third_party.html?location=http://www.promnetwork.com/how-cdars-works-vid.html\');"><img src="' + imgdir + 'Promontory-CDARS.jpg" border="0" alt="Promontory Interfinancial Network, LLC."></a></div></td></tr>';
content[index++] = ' <tr><td><br /><br /><br /><br /><br /><br /><br /><br /><span class="ficontent"><center>Legal Disclosure<br>No Trespassing Notice</center><br>This is First Savers Bank’s computer system, which may be accessed and used only for authorized bank business by authorized customers.  Unauthorized access or use of this computer system will subject violators to criminal, civil, and/or administrative action.</span></td></tr>';
 /* end Promontory Code*/
}

/*  Places Bill Pay Sweepstakes banner in left hand menu
	When removing the banner, also remove the other items
	specified where the variable is defined in the top of this file
if (bpSweepstakes)
{
	content[index++] = '				<tr><td align="center"><br /><a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://www.diproductsite.com/q4_05_pay_anyone/splash/splash.html\');" style="position: relative; bottom: 5pt"><img src="' + imgdir + 'bpcontest.gif" alt="" border="0"/></a></td></tr>';
}*/

//content[index++] = '				<tr><td align="center">document.write(\'<img src="' + imgdir + swapout[iteratorNum] + '" width="196" height="148">\');</td></tr>';
content[index++] = '			</table>';


content.join("");
//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 = '<img src="' + imgdir + 'photo-' + graphic + '.jpg" alt="' + alt_tag + '" border="0" align="right">';
	}	
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||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" alt="' + alt_tag + '" border="0">';
	}	
}

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

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

//CODE GOES HERE

//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");

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 content = new Array();
var index = 0;
content[index++] = '</td>';
if (mortgage == 1){
content[index++] = '					<td class="ficontent" valign="top"><img src="' + imgdir + 'clearpix.gif" width="1" height="57"><br><br><img src="' + imgdir + 'clearpix.gif" width="14" height="1"><a href="http://www.firsttrustmortgage.com/" target="_blank"><img src="' + imgdir + 'logo-firsttrust.gif" width="122" height="79" border="0"></a>';
content[index++] = '</td>';
}
else{
content[index++] = '					<td class="ficontent" valign="top"><img src="' + imgdir + 'clearpix.gif" width="1" height="57"><br><br><img src="' + imgdir + 'clearpix.gif" width="14" height="1">';
content[index++] = '</td>';}

content[index++] = '				</tr>';
content[index++] = '				<tr>';
content[index++] = inc.makeFooterLogos();
content[index++] = '				</tr>';
content[index++] = '			</table>';
content[index++] = '			<!-- end nested content table -->';
content[index++] = '			<!-- end nested content table -->';
content[index++] = '			<!-- end nested content table -->';
content[index++] = '		</td>';
content[index++] = '		<!-- end main content cell -->';
content[index++] = '		<!-- end main content cell -->';
content[index++] = '		<!-- end main content cell -->';
content[index++] = '	</tr>';
content[index++] = '</table>';
content.join("");


//CODE GOES HERE

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

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

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

//CODE GOES HERE

if (window.ffs)
{
content[index++] = '					<td>';
content[index++] = '<!-- BEGIN FOOTER --><br><img src="' + imgdir + 'clearpix.gif" width="1" height="10"><br>';
content[index++] = '<a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://www.hud.gov\');"><img src="' + imgdir + 'footer-ehl.gif" width="61" height="37" alt="Equal Housing Lender" border="0"></a><a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=www.fsbib.com&lang=en\');"><img src="' + imgdir + 'footer-verisign.gif" border="0"></a><a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://www.digitalinsight.com\');"><!--[if lt IE 7]><script type="text/javascript" src="https://www.fsbib.com/mstinc/web/js/png.js"></script><![endif]--><img src="https://www.fsbib.com/mstinc/web/images/di_91x22_3c.png" width="91" height="22" border="0" alt="Digital Insight, an Intuit company" /></a><a href="http://www.pfbib.com" target="_blank"><img src="' + imgdir + 'footer-plantation.gif" width="90" height="38" alt="Plantation Federal" border="0"></a><a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://www.lpl.com/fsfs\');"><img src="' + imgdir + 'fsbib-savers.gif" width="114" height="39" alt="First Savers Financial Services" border="0"></a><br>';
content[index++] = '<!-- END FOOTER -->';
content[index++] = '					</td>';
content.join("");
}
else
{
content[index++] = '					<td>';
content[index++] = '<!-- BEGIN FOOTER --><br><img src="' + imgdir + 'clearpix.gif" width="1" height="10"><br>';
content[index++] = '<a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://www.fdic.gov\');"><img src="' + imgdir + 'footer-fdic.gif" width="58" height="37" alt="Member FDIC" border="0"></a><a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://www.hud.gov\');"><img src="' + imgdir + 'footer-ehl.gif" width="61" height="37" alt="Equal Housing Lender" border="0"></a><a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=www.fsbib.com&lang=en\');"><img src="' + imgdir + 'footer-verisign.gif" border="0"></a><a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://www.digitalinsight.com\');"><!--[if lt IE 7]><script type="text/javascript" src="https://www.fsbib.com/mstinc/web/js/png.js"></script><![endif]--><img src="https://www.fsbib.com/mstinc/web/images/di_91x22_3c.png" width="91" height="22" border="0" alt="Digital Insight, an Intuit company" /></a><a href="http://www.pfbib.com" target="_blank"><img src="' + imgdir + 'footer-plantation.gif" width="90" height="38" alt="Plantation Federal" border="0"></a><a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://www.lpl.com/fsfs\');"><img src="' + imgdir + 'fsbib-savers.gif" width="114" height="39" alt="First Savers Financial Services" border="0"></a><br>';
content[index++] = '<!-- END FOOTER -->';
content[index++] = '					</td>';
content.join("");
}



//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_NAMEHERE_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('link1.html' , 'Personal Checking Accounts' , 'same');
items[index++] = new Array('checking_business.html' , 'Business Checking Accounts' , 'same');
items[index++] = new Array('checking_fastline.html' , 'Fastline' , 'same');
items[index++] = new Array('checking_local.html' , 'Local Connections' , '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);
}
