if (!window.imgdir)
{
var imgdir="http://www.csbfinley.com/images/"
var sitedir="http://www.csbfinley.com/site/"
//var securedir="https://www.csbfinley.com/site/"
var securedir="https://www.csbfinley.com/new_site/site/"
var homedir="https://www.csbfinley.com/"
}
var swapout = new Array(imgdir + "background/banner1.jpg", imgdir + "background/banner2.jpg", imgdir + "background/banner3.jpg", imgdir + "background/banner4.jpg", imgdir + "background/banner5.jpg", imgdir + "background/banner6.jpg");

function Include()
{
this.domain = "csbfinley";
this.friendly = "FRIENDLY_NAME";
this.ib = "https://www.csbfinley.com/home.html";
this.ib_demo = "https://www.csbfinley.com/home.html?demo";
this.ib_open_window = true;
this.cm_open_window = true;
this.ib_register = "https://www.csbfinley.com/onlineserv/HB/STDReg.cgi";
this.cm = "https://www.csbfinley.com/onlineserv/CM/";
this.headergraphic = "";
this.contentgraphic = "";

this.setHeaderGraphic = setHeaderGraphic;
this.setContentGraphic = setContentGraphic;
this.makeHeader = makeHeader;
this.makeTopNav = makeTopNav;
this.makeMainNav = makeMainNav;
this.makeIBLogin = makeIBLogin;
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++] = inc.makeTopNav();
content[index++] = '<link rel="stylesheet" href="'+securedir+'_styles_untethered_login.css" type="text/css" />';
content[index++] = '<!-- end 100% width navigation table -->';
content[index++] = '<!-- end 100% width navigation table -->';
content[index++] = '<!-- end 100% width navigation table -->';
content[index++] = '<!-- start 100% width navigation table -->';
content[index++] = '<!-- start 100% width navigation table -->';
content[index++] = '<!-- start 100% width navigation table -->';
content[index++] = '<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#003963">';
content[index++] = '	<tr>';
content[index++] = '		<td width="100%" valign="top">';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = '			<table width="760" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '				<tr valign="top">';
content[index++] = inc.makeMainNav();
content[index++] = '<td width="40" bgcolor="#ffffff"><img src="' + imgdir + 'clearpix.gif" width="40" height="1" alt="" border="0"></td><td width="550" class="content" bgcolor="#ffffff">';
content[index++] = inc.headergraphic;
content[index++] = '<!-- BEGIN CONTENT -->';
content[index++] = '<!-- BEGIN CONTENT -->';
content[index++] = '<!-- BEGIN CONTENT -->';
content[index++] = '<table width="550" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff">';
content[index++] = '	<tr valign="top">';
content[index++] = '	';
content[index++] = '		<!-- BEGIN LEFT KEYIN CELL -->';
content[index++] = '		<!-- BEGIN LEFT KEYIN CELL -->';
content[index++] = '		<!-- BEGIN LEFT KEYIN CELL -->';
if (!homepage){
content[index++] = '		<td class="ficontent" width="100%">';
content[index++] = inc.contentgraphic;
}
else
content[index++] = '		<td class="ficontent">';
content.join("");

//CODE GOES HERE


var index = 0;

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

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

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

//CODE GOES HERE

//content[index++] = '<map name="persbanking_map" id="persbanking_map">';
//content[index++] = '    <area shape="rectangle" coords="23,47,83,68" href="https://www.csbfinley.com/onlineserv/HB/" //alt="Personal Online Banking Login">';
//content[index++] = '    <area shape="rectangle" coords="0,70,45,84" href="https://www.csbfinley.com/onlineserv/HB/demo.html" alt="Personal Online Banking Demo">';
//content[index++] = '    <area shape="rectangle" coords="47,70,107,84" href="http://www.csbfinley.com/site/other_1.html#internet" alt="More Info">';
//content[index++] = '</map>';
//content[index++] = '<map name="busbanking_map" id="busbanking_map">';
//content[index++] = '    <area shape="rectangle" coords="23,47,83,68" href="https://www.csbfinley.com/onlineserv/CM/" alt="Business Online Banking Login">';
//content[index++] = '    <area shape="rectangle" coords="5,70,42,84" href="http://www.cmdemo.com/" alt="More Info">';
//content[index++] = '    <area shape="rectangle" coords="48,70,103,84" href="' + sitedir + 'bb_moreinfo.html" alt="Demo">';
//content[index++] = '</map>';
content[index++] = '<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#003963">';
content[index++] = '	<tr>';
content[index++] = '		<td width="100%" valign="top">';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = '			<table width="760" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '				<tr>';
content[index++] = '  					<td style="padding:5px;" width="760" height="115" align="right" valign="top" background="' + swapout[iteratorNum] + '"><!-- THE BACKGROUND IN THIS CELL SHOULD RANDOMIZE -->';
//content[index++] = '<img src="' + imgdir + 'clearpix.gif" width="586" height="1" alt="" border="0"><a href="https://www.csbfinley.com/onlineserv/HB" target="_blank"><img src="' + imgdir + 'clearpix.gif" width="149" height="22" alt="Enter Online Banking and Billpay" border="0"></a><img src="' + imgdir + 'clearpix.gif" width="25" height="1" alt="" border="0"><br>';
//content[index++] = '                    <img src="' + imgdir + 'login_persbanking.gif" usemap="#persbanking_map" width="107" height="84" alt="Personal Online Banking and Billpay" border="0" /><img src="' + imgdir + 'login_busbanking.gif" usemap="#busbanking_map" width="107" height="84" alt="Business Online Banking and Billpay" border="0" style="margin-left:5px;" />';
//content[index++] = '<img src="' + imgdir + 'clearpix.gif" width="586" height="20" alt="Citizens State Bank" border="0"><a href="javascript:alert(\'Coming Soon!\');"><img src="' + imgdir + 'clearpix.gif" width="149" height="47" alt="Click Here for a Demo of Internet Banking and Billpay" border="0"></a><img src="' + imgdir + 'clearpix.gif" width="25" height="1" alt="" border="0"></td>				';
content[index++] = '                    </td>				';
content[index++] = '				</tr>';
content[index++] = '			</table>';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '		</td>';
content[index++] = '	</tr>';
content[index++] = '	<tr>';
content[index++] = '		<td width="100%"><table width="760" border="0" cellspacing="0" cellpadding="0"><tr valign="top"><td width="760" background="' + imgdir + 'top-bar.gif"><img src="' + imgdir + 'clearpix.gif" width="1" height="16" alt="" border="0"></td></tr></table></td>';
content[index++] = '	</tr>';
content[index++] = '	<tr>';
content[index++] = '		<td width="100%" bgcolor="#003963">';
content[index++] = '			<table width="760" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '				<tr valign="top">';
content[index++] = '					<td width="587" bgcolor="#ffffff"><img src="' + imgdir + 'clearpix.gif" width="1" height="10" alt="" border="0"></td><td width="173" bgcolor="#ffffff"><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="30" height="16" alt="Home" border="0" name="home"></a><img src="' + imgdir + 'nav-divider.gif" width="16" height="16" alt="" border="0"><a href="' + sitedir + 'faq.html" onMouseOver="img_act(\'help\'); window.status=\'Help\'; return true" onMouseOut="img_inact(\'help\');"><img src="' + imgdir + 'nav-help-off.gif" width="24" height="16" alt="Help" border="0" name="help"></a><img src="' + imgdir + 'nav-divider.gif" width="16" height="16" alt="" border="0"><a href="' + sitedir + 'links.html" onMouseOver="img_act(\'usefullinks\'); window.status=\'Useful Links\'; return true" onMouseOut="img_inact(\'usefullinks\');"><img src="' + imgdir + 'nav-usefullinks-off.gif" width="62" height="16" alt="Useful Links" border="0" name="usefullinks"></a><img src="' + imgdir + 'clearpix.gif" width="25" height="1" alt="" border="0"></td>';
content[index++] = '				</tr>';
content[index++] = '			</table>';
content[index++] = '		</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++] = '<td width="145" background="' + imgdir + 'nav-bg.gif"><img src="' + imgdir + 'pixwhite.gif" width="145" height="14" alt="" border="0"><br>';
//content[index++] = '<a href="javascript:alert(\'Coming Soon!\');" onMouseOver="img_act(\'onlinebanking\'); window.status=\'Online Banking\'; return true" onMouseOut="img_inact(\'onlinebanking\');"><img src="' + imgdir + 'nav-onlinebanking-off.gif" width="145" height="24" alt="Online Banking" border="0" name="onlinebanking"></a><br>';
//content[index++] = '<a href="' + sitedir + 'online.html" onMouseOver="img_act(\'onlinebanking\');"  window.status=\'Online Banking\'; return true" onMouseOut="img_inact(\'onlinebanking\');"><img src="' + imgdir + 'nav-onlinebanking-off.gif" width="145" height="24" alt="Online Banking" border="0" name="onlinebanking"></a><br>';

content[index++] = inc.makeIBLogin();

content[index++] = '<a href="' + sitedir + 'personal.html" onMouseOver="img_act(\'personalbanking\'); popUp(\'HM_Menu2\',event); window.status=\'Personal Banking\'; return true" onMouseOut="img_inact(\'personalbanking\'); popDown(\'HM_Menu2\');"><img src="' + imgdir + 'nav-personalbanking-off.gif" width="145" height="24" alt="Personal Banking" border="0" name="personalbanking"></a><br>';
content[index++] = '<a href="' + sitedir + 'commercial.html" onMouseOver="img_act(\'commercialbanking\'); popUp(\'HM_Menu3\',event); window.status=\'Commercial Banking\'; return true" onMouseOut="img_inact(\'commercialbanking\'); popDown(\'HM_Menu3\');"><img src="' + imgdir + 'nav-commercialbanking-off.gif" width="145" height="24" alt="Commercial Banking" border="0" name="commercialbanking"></a><br>';
content[index++] = '<a href="' + sitedir + 'other.html" onMouseOver="img_act(\'otherservices\'); popUp(\'HM_Menu4\',event); window.status=\'Other Services\'; return true" onMouseOut="img_inact(\'otherservices\'); popDown(\'HM_Menu4\');"><img src="' + imgdir + 'nav-otherservices-off.gif" width="145" height="24" alt="Other Services" border="0" name="otherservices"></a><br>';
content[index++] = '<a href="' + sitedir + 'calculators.html" onMouseOver="img_act(\'calcs\'); window.status=\'Financial Calculators\'; return true" onMouseOut="img_inact(\'calcs\');"><img src="' + imgdir + 'nav-calcs-off.gif" width="145" height="24" alt="Financial Calculators" border="0" name="calcs"></a><br>';
content[index++] = '<a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://www.csbinvestmentservices.com\');" onMouseOver="img_act(\'investservices\'); window.status=\'Investment Services\'; return true" onMouseOut="img_inact(\'investservices\');"><img src="' + imgdir + 'nav-investservices-off.gif" width="145" height="24" alt="Investment Services" border="0" name="investservices"></a><br>';
content[index++] = '<a href="' + sitedir + 'insurance.html" onMouseOver="img_act(\'insuranceservices\'); window.status=\'Insurance Services\'; return true" onMouseOut="img_inact(\'insuranceservices\');"><img src="' + imgdir + 'nav-insuranceservices-off.gif" width="145" height="24" alt="Insurance Services" border="0" name="insuranceservices"></a><br>';
content[index++] = '<a href="' + sitedir + 'aboutus.html" onMouseOver="img_act(\'aboutus\');popUp(\'HM_Menu5\',event); window.status=\'About Us\'; return true" onMouseOut="img_inact(\'aboutus\'); popDown(\'HM_Menu5\');"><img src="' + imgdir + 'nav-aboutus-off.gif" width="145" height="24" alt="About Us" border="0" name="aboutus"></a><br>';
content[index++] = '<a href="' + sitedir + 'rates.html" onMouseOver="img_act(\'rates\'); window.status=\'Rates\'; return true" onMouseOut="img_inact(\'rates\');"><img src="' + imgdir + 'nav-rates-off.gif" width="145" height="24" alt="Rates" border="0" name="rates"></a><br>';
content[index++] = '<a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://digen.identitytheft911.org/home.htm\');" onMouseOver="img_act(\'security\'); window.status=\'Security\'; return true" onMouseOut="img_inact(\'security\');"><img src="' + imgdir + 'nav-security-off.gif" width="145" height="24" alt="Security" border="0" name="security"></a><br>';
content[index++] = '<img src="' + imgdir + 'nav-bottom.gif" width="145" height="24" alt="" border="0"><br>';
content[index++] = '<br>';
content[index++] = '<br>';
content[index++] = '</td>';
content.join("");

//CODE GOES HERE

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




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

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

//CODE GOES HERE

if(typeof(homepage)!='undefined') {

content[index++] = '<!-- loginHome -->';
content[index++] = '<div class="loginAreaWrapMain">';
content[index++] = '	<div><img src="' + imgdir + 'bg_top.gif" width="144" height="9" alt="" /></div>';
content[index++] = '	<div class="loginAreaWrapOB">';
content[index++] = '		<div class="loginArea">';
content[index++] = '			<div class="loginOB">';
content[index++] = '				<h1><img src="' + imgdir + 'lock_16.png" width="16" height="16" alt="Security Information" class="securityImg" />Online Banking</h1>';
content[index++] = '				<div class="loginAlert"><a href="#">Alert</a></div><!--  -->';
content[index++] = '				<div class="alertContent">Alert Content, MOTD, etc. </div><!--  -->';
content[index++] = '				<form method="post" name="Login" action="/onlineserv/HB/Login.cgi" onsubmit="return runSubmit(this.form, this)">';
content[index++] = '					<input type="hidden" name="runmode" value="SIGN_IN" />';
content[index++] = '					<input type="hidden" name="DISESSIONID" value="" />';
content[index++] = '					<div class="loginCol">';
content[index++] = '						<label for="userNumber">ID:</label>';
content[index++] = '						<input type="text" name="userNumber" class="appfield1 userid" maxlength="32" />';
content[index++] = '					</div><!-- loginCol -->';
content[index++] = '					<div class="loginCol">';
content[index++] = '						<label for="password">Password:</label>';
content[index++] = '						<input type="password" name="password" class="appfield1 password" maxlength="8" onblur="bPasswordFocus = false;" onfocus="bPasswordFocus = true;" />';
content[index++] = '						<div class="loginForgot"><a href="/onlineserv/HB/dimlDisplayer.cgi?DIML_FILE=passwordReset.diml">Forgot Password?</a></div><!-- forgotPW -->';
content[index++] = '					</div><!-- loginCol -->';
content[index++] = '					<div class="loginCol loginBtn">';
content[index++] = '						<input type="image" src="' + imgdir + 'btn_login.gif" alt="Login" name="login" />';
	content[index++] = '				</div><!-- loginCol loginBtn -->';
content[index++] = '					<div class="loginLinks">';
content[index++] = '						<ul>';
content[index++] = '							<li class="firstLi"><a href="'+inc.ib_register+'">New User?</a></li>';
content[index++] = '							<li><a href="'+ homedir +'home.html?demo">Demo</a></li>';
content[index++] = '							<li class="lastLi"><a href="javascript:open_mvdemo(\'https://www.csbfinley.com/bridge/GRP/metavante_flash_demo/index.html\',\'mvdemo1\',\'scrollbars=yes,resizable=yes,menubar=no,status=no,width=794,height=556,left=0,top=0\')">Bill Pay</a></li>';
content[index++] = '							<li><a href="'+sitedir+'other_1.html#internet">More Info</a></li>';
content[index++] = '						</ul>';
content[index++] = '					</div><!-- loginLinks -->';
content[index++] = '				</form>';
content[index++] = '			</div><!-- loginOB -->';
content[index++] = '		</div><!-- loginArea -->';
content[index++] = '	</div><!-- loginAreaWrapOB -->';
content[index++] = '	<div class="loginAreaWrapBB">';
content[index++] = '		<div class="loginArea">';
content[index++] = '			<div class="loginBB">';
content[index++] = '				<h1><img src="' + imgdir + 'lock_16.png" width="16" height="16" alt="Security Information" class="securityImg" />Business Banking</h1>';
content[index++] = '				<div class="loginCol"><span><a href="http://www.cmdemo.com/">Demo</a><br /><a href="'+sitedir+'bb_moreinfo.html">More Info</a></span><a href="'+inc.cm+'"><img src="' + imgdir + 'btn_login.gif" width="47" height="22" alt="Login" /></a></div><!-- loginCol -->';
content[index++] = '			</div><!-- loginBB -->';
content[index++] = '		</div><!-- loginArea -->';
content[index++] = '	</div><!-- loginAreaWrapBB -->';
content[index++] = '	<div><img src="' + imgdir + 'bg_btm.gif" width="144" height="10" alt="" /></div>';
content[index++] = '</div><!-- loginAreaWrapMain -->';

} else {

content[index++] = '<!-- loginBack -->';
content[index++] = '<div class="loginAreaWrapMain">';
content[index++] = '	<div><img src="' + imgdir + 'bg_top.gif" width="144" height="9" alt="" /></div>';
content[index++] = '	<div class="loginAreaWrapOB">';
content[index++] = '		<div class="loginArea">';
content[index++] = '			<div class="loginOB">';
content[index++] = '				<h1><img src="' + imgdir + 'lock_16.png" width="16" height="16" alt="Security Information" class="securityImg" />Online Banking</h1>';
content[index++] = '				<div class="loginAlert"><a href="#">Alert</a></div><!--  -->';
content[index++] = '				<div class="alertContent">Alert Content, MOTD, etc. </div><!--  -->';
content[index++] = '				<div class="loginBack">';
content[index++] = '					<div class="loginCol loginBtn">';
content[index++] = '						<a href="'+ homedir +'home.html"><img src="' + imgdir + 'btn_login.gif" width="47" height="22" alt="Login" /></a>';
content[index++] = '					</div><!-- loginCol loginBtn -->';
content[index++] = '					<div class="loginLinks">';
content[index++] = '						<ul>';
content[index++] = '							<li class="firstLi"><a href="'+inc.ib_register+'">New User?</a></li>';
content[index++] = '							<li><a href="'+ homedir +'home.html?demo">Demo</a></li>';
content[index++] = '							<li class="lastLi"><a href="javascript:open_mvdemo(\'https://www.csbfinley.com/bridge/GRP/metavante_flash_demo/index.html\',\'mvdemo1\',\'scrollbars=yes,resizable=yes,menubar=no,status=no,width=794,height=556,left=0,top=0\')">Bill Pay</a></li>';
content[index++] = '							<li><a href="'+sitedir+'other_1.html#internet">More Info</a></li>';
content[index++] = '						</ul>';
content[index++] = '					</div><!-- loginLinks -->';
content[index++] = '				</div>';
content[index++] = '			</div><!-- loginOB -->';
content[index++] = '		</div><!-- loginArea -->';
content[index++] = '	</div><!-- loginAreaWrapOB -->';
content[index++] = '	<div class="loginAreaWrapBB">';
content[index++] = '		<div class="loginArea">';
content[index++] = '			<div class="loginBB">';
content[index++] = '				<h1><img src="' + imgdir + 'lock_16.png" width="16" height="16" alt="Security Information" class="securityImg" />Business Banking</h1>';
content[index++] = '				<div class="loginCol"><span><a href="http://www.cmdemo.com/">Demo</a><br /><a href="'+sitedir+'bb_moreinfo.html">More Info</a></span><a href="'+inc.cm+'"><img src="' + imgdir + 'btn_login.gif" width="47" height="22" alt="Login" /></a></div><!-- loginCol -->';
content[index++] = '			</div><!-- loginBB -->';
content[index++] = '		</div><!-- loginArea -->';
content[index++] = '	</div><!-- loginAreaWrapBB -->';
content[index++] = '	<div><img src="' + imgdir + 'bg_btm.gif" width="144" height="10" alt="" /></div>';
content[index++] = '</div><!-- loginAreaWrapMain -->';

}

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" width="550" height="29"><br />';
	}	
}

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


//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

content[index++] = '			</td>';
content[index++] = '			<!-- END RIGHT KEYIN CELL -->';
content[index++] = '			<!-- END RIGHT KEYIN CELL -->';
content[index++] = '			<!-- END RIGHT KEYIN CELL -->';
content[index++] = '	</tr>';
content[index++] = '</table>';
content[index++] = '<!-- END CONTENT -->';
content[index++] = '<!-- END CONTENT -->';
content[index++] = '<!-- END CONTENT -->';
content[index++] = '</td><td width="25" bgcolor="#ffffff"><img src="' + imgdir + 'clearpix.gif" width="25" height="1" alt="" border="0"></td>				';
content[index++] = '				</tr>';
content[index++] = '			</table>';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '		</td>';
content[index++] = '	</tr>';
content[index++] = '</table>';
content[index++] = '<!-- end 100% width navigation table -->';
content[index++] = '<!-- end 100% width navigation table -->';
content[index++] = '<!-- end 100% width navigation table -->';
content[index++] = '<!-- start 100% width navigation table -->';
content[index++] = '<!-- start 100% width navigation table -->';
content[index++] = '<!-- start 100% width navigation table -->';
content[index++] = '<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#003963">';
content[index++] = '	<tr>';
content[index++] = '		<td width="100%">';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = inc.makeFooterLogos();
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '		</td>';
content[index++] = '	</tr>';
content[index++] = '</table>';
content[index++] = '<!-- end 100% width navigation table -->';
content[index++] = '<!-- end 100% width navigation table -->';
content[index++] = '<!-- end 100% width navigation table -->';
content.join("");

//CODE GOES HERE

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

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

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

//CODE GOES HERE
if (!altfooter){
content[index++] = '<table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff">';
content[index++] = '				<tr valign="top">';
content[index++] = '  					<td width="145" align="center" valign="top"><a href="#"><img src="' + imgdir + 'footer-btt.gif" width="145" height="70" alt="Back to Top" border="0"></a></td><td width="40" bgcolor="#ffffff"><img src="' + imgdir + 'clearpix.gif" width="40" height="1" alt="" border="0"></td><td width="550"><img src="' + imgdir + 'clearpix.gif" width="1" height="17" alt="" border="0"><br>';
content[index++] = '<img src="' + imgdir + 'footer-bar-stretch.gif" width="550" height="12" alt="" border="0"><br>';
content[index++] = '<img src="' + imgdir + 'footer-address.gif" style="vertical-align: middle" width="169" height="41" alt="The Citizens State Bank 300 Central Avenue Box 255  Finley ND 58230-0255" border="0"><a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://www.fdic.gov/\');"><img src="' + imgdir + 'logo_memberfdic_57x38.gif" alt="FDIC" border="0" style="vertical-align: middle; margin-bottom: 10px;" /></a><img src="' + imgdir + 'clearpix.gif" width="5" height="1" alt="" border="0"><a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://www.hud.gov/\');"><img src="' + imgdir + 'footer-ehl.gif" width="38" height="41" alt="Equal Housing Lender" border="0" style="vertical-align: middle" /></a><img src="' + imgdir + 'clearpix.gif" width="5" height="1" alt="" border="0"><a href="' + sitedir + 'privacy.html"><img src="' + imgdir + 'footer-privacy.gif" width="37" height="41" alt="Privacy Policy" border="0" style="vertical-align: middle" /></a><img src="' + imgdir + 'clearpix.gif" width="5" height="1" alt="" border="0"><!--[if lt IE 7]><script type="text/javascript" src="https://www.csbfinley.com/mstinc/web/js/png.js"></script><![endif]--><a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://www.digitalinsight.com\');"><img src="https://www.csbfinley.com/mstinc/web/images/di_91x22_3c.png" style="vertical-align: middle; margin-bottom: 5px" width="91" height="22" border="0" alt="Digital Insight, an Intuit company" /></a><img src="' + imgdir + 'footer-phone.gif" style="vertical-align: middle" width="139" height="41" alt="Local (701)524-1921 Toll Free(888)-818-1921 Fax(701)-524-1713" border="0"></td><td width="25" bgcolor="#ffffff"><img src="' + imgdir + 'clearpix.gif" width="25" height="1" alt="" border="0"></td>					';
content[index++] = '				</tr>';
content[index++] = '			</table>';
content.join("");
}
else {
content[index++] = '<table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff">';
content[index++] = '				<tr valign="top">';
content[index++] = '  					<td width="145" align="center" valign="top"><a href="#"><img src="' + imgdir + 'footer-btt.gif" width="145" height="70" alt="Back to Top" border="0"></a></td><td width="40" bgcolor="#ffffff"><img src="' + imgdir + 'clearpix.gif" width="40" height="1" alt="" border="0"></td><td width="550"><img src="' + imgdir + 'clearpix.gif" width="1" height="17" alt="" border="0"><br>';
content[index++] = '<img src="' + imgdir + 'footer-bar-stretch.gif" width="550" height="12" alt="" border="0"><br>';
content[index++] = '<img src="' + imgdir + 'footer-address.gif" width="169" height="41" alt="The Citizens State Bank 300 Central Avenue Box 255  Finley ND 58230-0255" border="0"><img src="' + imgdir + 'clearpix.gif" width="52" height="41" border="0"><img src="' + imgdir + 'clearpix.gif" width="5" height="1" alt="" border="0"><img src="' + imgdir + 'clearpix.gif" width="38" height="41" border="0"><img src="' + imgdir + 'clearpix.gif" width="5" height="1" alt="" border="0"><a href="' + sitedir + 'privacy.html"><img src="' + imgdir + 'footer-privacy.gif" width="37" height="41" alt="Privacy Policy" border="0"></a><img src="' + imgdir + 'clearpix.gif" width="5" height="1" alt="" border="0"><!--[if lt IE 7]><script type="text/javascript" src="http://www.csbfinley.com/mstinc/web/js/png.js"></script><![endif]--><a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://www.digitalinsight.com\');"><img src="http://www.csbfinley.com/mstinc/web/images/di_91x22_3c.png" style="margin-bottom:10px;" width="91" height="22" border="0" alt="Digital Insight, an Intuit company" /></a><img src="' + imgdir + 'footer-phone.gif" width="139" height="41" alt="Local (701)524-1921 Toll Free(888)-818-1921 Fax(701)-524-1713" border="0"></td><td width="25" bgcolor="#ffffff"><img src="' + imgdir + 'clearpix.gif" width="25" height="1" alt="" border="0"></td>					';
content[index++] = '				</tr>';
content[index++] = '			</table>';
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);
}