function Includes(section){
	this.makeHeader = makeHeader;
	this.makeFooter = makeFooter;
	this.getNews = getNews;
	this.section = section; 
	this.nologos = "fdic"; 
	this.background = section;
	this.overdraftOptions = overdraftOptions;

	if(section == "trust" || section == "brokerage") 
	{this.section = "investment"; this.nologos = "none";}
	if(section == "brokerage") 
	{this.background = "investment";}
	if(section == "HSA" || section == "loans")
	{this.section = "personal";}
	if(section == "no_nav" || section == "clearpix")
	{this.section = "clearpix";}
	if(section == "correspondent" || section == "business_online" || section == "farm" || section == "accounts" || section == "cash_management" || section == "loans_main")
	{this.section = "business"; }
}
var news1="Community Leadership";
var news2="Smart Plays";
var news3="Presidential Coins";
var news4="Banking at Supersonic Speed";
var news5="March Art Show";
var news6="CD Specials";

var howLong = 11; //the total number of random news to pick from
var randomNews = new Array(howLong);
var numbers = new Array();
for(i=0;i<howLong; ++i){randomNews[i]=new Array(2);}
randomNews[0][0] = news1;
randomNews[0][1] = "../aboutus/news1.html";
randomNews[1][0] = news2;
randomNews[1][1] = "../aboutus/news2.html";
randomNews[2][0] = news3;
randomNews[2][1] = "../aboutus/news3.html";
randomNews[3][0] = news4;
randomNews[3][1] = "../aboutus/news4.html";
randomNews[4][0] = news5;
randomNews[4][1] = "../aboutus/news5.html";
randomNews[5][0] = news6;
randomNews[5][1] = "../investment_products/cd_specials.html";
//randomNews[6][0] = "Full Brokerage Services";
//randomNews[6][1] = "../investment_products/brokerage.html";
//randomNews[7][0] = "Apply for a credit card";
//randomNews[7][1] = "javascript:openlink('https://www.yourbankcard.com/welcome/DynamicApp?bank=hutchinson&jumpto=none');";
//randomNews[8][0] = "HSA Accounts";
//randomNews[8][1] = "../personal_banking/HSA.html";
randomNews[6][0] = "Fight Identity Theft";
randomNews[6][1] = "../personal_banking/identity_theftPromo.html";
randomNews[7][0] = "Free Bill Pay";
randomNews[7][1] = "../personal_banking/billpay.html";
randomNews[8][0] = "Enhanced Login Security";
randomNews[8][1] = "http://files.fnbhutch.com/email/20071107ELSpg.html";
randomNews[9][0] = "Order Visa&reg; Gift Card";
randomNews[9][1] = "http://www.fnbhutchonline2.com/personal_banking/other_giftCard.html";
randomNews[10][0] = "Are my accounts safe?";
randomNews[10][1] = "javascript:vidWindow=window.open('http://bvsperformance.bvsinc.com/demoCourses/FDIC/FDICmenu.asp','FDIC','Width=400,Height=300,Top=250,Left=300,resizable=yes,status=no'); if(vidWindow.focus){vidWindow.focus()}";
//randomNews[10][0] = "renew, replace, REPLANT!";
//randomNews[10][1] = "https://www.fnbhutchonline2.com/aboutus/news_treeCampaign.pdf";


function makeHeader(){

	var header = new Array();
	var index = 0;
	//alert(self.location.href.indexOf('https:')>0);
if(self.location.href.indexOf('https:')>0){
	self.location.replace("http://www.fnbhutchonline2.com");
  }
	header[index++] = '<table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff">';
	header[index++] = '<tr valign="top">';
	header[index++] = '<td width="545" bgcolor="#ffffff"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="6" alt="" border="0" /><br />';
	header[index++] = '<a href="http://www.fnbhutchonline2.com"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="6" alt="" border="0">';
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/header-logo.gif" width="465" height="81" alt="First National Bank of Hutchinson" border="0" /></a><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="90" height="1" alt="" border="0" /><br />';
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="8" alt="" border="0" /><br />';
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="23" height="1" alt="" border="0" /><span class="red">'+netdate+'</span></td>';
	header[index++] = '<td>';
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="5" alt="" border="0" /><br />';
	header[index++] = '<table width="206" border="0" cellspacing="0" cellpadding="0">';
	header[index++] = '	<tr>';
	header[index++] = '		<td width="100%" colspan="5" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0"></td>';
	header[index++] = '	</tr>';
	header[index++] = '	<tr valign="top">';
	header[index++] = '		<td width="1" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0"></td>';
	header[index++] = '		<td background="http://www.fnbhutchonline2.com/images/login-bg2.gif" width="100%" align="center"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="206" height="1" alt="" border="0"><br>';
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/login-pb1.gif" width="75" height="12" alt="" border="0"><img src="http://www.fnbhutchonline2.com/images/login-bb2.gif" width="65" height="12" alt="" border="0"><br>';
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="5" height="11" alt="" border="0" />';
	header[index++] = '<a href="javascript:goDemo();" style="color:#FFFFCC; font-size:9px;" onmouseover="window.status=\'Online Banking Demo\'; return true;" onmouseout="window.status=\'\'; return true;">Demo</a>';
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/login-divider.gif" width="7" height="9" alt="" border="0"><a href="javascript://" onclick="window.open(\'https://www.fnbhutchonline2.com/onlineserv/HB/BrowserTest.cgi\',\'btwin\',\'width=800,height=600,resizable,scrollbars\');" onMouseOver="img_act(\'pbinfo\'); window.status=\'Test Browser\'; return true" style="color:#FFFFCC; font-size:9px;" onMouseOut="img_inact(\'pbinfo\');">Test Browser</a>';
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/login-divider.gif" width="7" height="9" alt="" border="0"><a href="javascript:openIB(\'register\');" style="color:#FFFFCC; font-size:9px;" onMouseOver="img_act(\'pbsignup\'); window.status=\'Personal Banking Signup\'; return true" onMouseOut="img_inact(\'pbsignup\');" class="logintext">Sign-up</a>';
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/login-divider.gif" width="7" height="9" alt="" border="0">';
	header[index++] = '<a href="https://www.fnbhutchonline2.com/onlineserv/HB/ForgottenPW.html"  target="_blank" onMouseOver="img_act(\'pbyoureset\'); window.status=\'You Reset Password\'; return true" onMouseOut="img_inact(\'pbyoureset\');" style="color:#FFFFCC; font-size:9px;">Password Reset</a><br>';
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="3" alt="" border="0"></td>';
	header[index++] = '		<td width="1" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0"></td>';
	header[index++] = '		<td width="47" valign="middle" bgcolor="#cc0000"><a href="http://www.fnbhutchonline2.com/home.html" onmouseover="img_act(\'pbloginlogin\'); window.status=\'Personal Banking Login\'; return true" onmouseout="img_inact(\'pbloginlogin\');"><img src="http://www.fnbhutchonline2.com/images/nav-pbloginlogin-off.gif" width="46" height="16" alt="Personal Banking Login" border="0" name="pbloginlogin"></a></td>';
	header[index++] = '		<td width="1" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0"></td>';
	header[index++] = '	</tr>';
	header[index++] = '	<tr>';
	header[index++] = '		<td width="100%" colspan="5" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0"></td>';
	header[index++] = '	</tr>';
	header[index++] = '</table>';
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="3" alt="" border="0" /><br />';
	header[index++] = '<table width="206" border="0" cellspacing="0" cellpadding="0">';
	header[index++] = '	<tr>';
	header[index++] = '		<td width="100%" colspan="5" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0"></td>';
	header[index++] = '	</tr>';
	header[index++] = '	<tr valign="top">';
	header[index++] = '		<td width="1" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0"></td>';
	header[index++] = '		<td background="http://www.fnbhutchonline2.com/images/login-bg2.gif" width="100%" align="center"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="206" height="1" alt="" border="0"><br>';
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/login-bb1.gif" width="71" height="12" alt="" border="0"><img src="http://www.fnbhutchonline2.com/images/login-bb2.gif" width="65" height="12" alt="" border="0"><br>';
//	header[index++] = '<a href="http://www.fnbhutchonline2.com/business_banking/cash_management.html" onMouseOver="img_act(\'bbinfo\'); window.status=\'More Business Banking Info\'; return true" onMouseOut="img_inact(\'bbinfo\');" style="color:#FFFFCC; font-size:9px;">More Info</a><img src="../images/login-divider.gif" width="13" height="9" alt="" border="0"><a href="javascript:openCM(\'register\');" onMouseOver="img_act(\'bbsignup\'); window.status=\'Business Banking Signup\'; return true" onMouseOut="img_inact(\'bbsignup\');" style="color:#FFFFCC; font-size:9px;">Sign-up<br>';
header[index++] = '<a href="http://www.fnbhutchonline2.com/business_banking/business_online.html" onMouseOver="img_act(\'bbinfo\'); window.status=\'More Business Banking Info\'; return true" onMouseOut="img_inact(\'bbinfo\');" style="color:#FFFFCC; font-size:9px;">More Info</a>';
header[index++] = '<img src="http://www.fnbhutchonline2.com/images/login-divider.gif" width="7" height="9" alt="" border="0"><a href="javascript://" onclick="window.open(\'https://www.fnbhutchonline2.com/onlineserv/HB/BrowserTest.cgi\',\'btwin\',\'width=800,height=600,resizable,scrollbars\');" onMouseOver="img_act(\'pbinfo\'); window.status=\'Test Browser\'; return true" style="color:#FFFFCC; font-size:9px;" onMouseOut="img_inact(\'pbinfo\');">Test Browser</a>';
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="3" alt="" border="0"></a></td>';
	header[index++] = '		<td width="1" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0"></td>';
	header[index++] = '		<td width="47" valign="middle" bgcolor="#cc0000"><a href="javascript:openCM();" onmouseover="img_act(\'bbloginlogin\'); window.status=\'Business Banking Login\'; return true" onmouseout="img_inact(\'bbloginlogin\');"><img src="http://www.fnbhutchonline2.com/images/nav-bbloginlogin-off.gif" width="46" height="16" alt="Business Banking Login" border="0" name="bbloginlogin"></a></td>';
	header[index++] = '		<td width="1" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0"></td>';
	header[index++] = '	</tr>';
	header[index++] = '	<tr>';
	header[index++] = '		<td width="100%" colspan="5" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0"></td>';
	header[index++] = '	</tr>';
	header[index++] = '</table>';
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="3" alt="" border="0" /><br />';
	header[index++] = '<table width="206" border="0" cellspacing="0" cellpadding="0">';
	header[index++] = '	<tr>';
	header[index++] = '		<td width="100%" colspan="5" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0"></td>';
	header[index++] = '	</tr>';
	header[index++] = '	<tr valign="top">';
	header[index++] = '		<td width="1" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0"></td>';
	header[index++] = '		<td background="http://www.fnbhutchonline2.com/images/login-bg2.gif" width="100%" align="center"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="206" height="1" alt="" border="0"><br>';
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/login-401K1.gif" width="56" height="12" alt="" border="0"><img src="http://www.fnbhutchonline2.com/images/login-401K2.gif" width="50" height="12" alt="" border="0"><br>';
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="3" alt="" border="0"></td>';
	header[index++] = '		<td width="1" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0"></td>';
	header[index++] = '		<td width="47" valign="middle" bgcolor="#cc0000"><a href="https://401k.fnbhutch.com" onmouseover="img_act(\'kloginlogin\'); window.status=\'401 K Account Login\'; return true" onmouseout="img_inact(\'kloginlogin\');" target="_blank"><img src="http://www.fnbhutchonline2.com/images/nav-kloginlogin-off.gif" width="46" height="16" alt="401 K Account Login" border="0" name="kloginlogin"></a></td>';
	header[index++] = '		<td width="1" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0"></td>';
	header[index++] = '	</tr>';
	header[index++] = '	<tr>';
	header[index++] = '		<td width="100%" colspan="5" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0"></td>';
	header[index++] = '	</tr>';
	header[index++] = '</table>';
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="3" alt="" border="0" /><br />';
	header[index++] = '<table width="206" border="0" cellspacing="0" cellpadding="0">';
	header[index++] = '	<tr>';
	header[index++] = '		<td width="100%" colspan="5" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0"></td>';
	header[index++] = '	</tr>';
	header[index++] = '	<tr valign="top">';
	header[index++] = '		<td width="1" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0"></td>';
	header[index++] = '		<td background="http://www.fnbhutchonline2.com/images/login-bg2.gif" width="100%" align="center"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="206" height="1" alt="" border="0"><br>';
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/login-trust1.gif" width="92" height="12" alt="" border="0"><img src="http://www.fnbhutchonline2.com/images/login-trust2.gif" width="50" height="12" alt="" border="0"><br>';
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="3" alt="" border="0"></td>';
	header[index++] = '		<td width="1" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0"></td>';
	header[index++] = '		<td width="47" valign="middle" bgcolor="#cc0000"><a href="https://www.mauiweb1.com/0201/" onmouseover="img_act(\'tloginlogin\'); window.status=\'Investment and Trust Account Login\'; return true" onmouseout="img_inact(\'tloginlogin\');" target="_blank"><img src="http://www.fnbhutchonline2.com/images/nav-tloginlogin-off.gif" width="46" height="16" alt="Investment and Trust Account Login" border="0" name="tloginlogin"></a></td>';
	header[index++] = '		<td width="1" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0"></td>';
	header[index++] = '	</tr>';
	header[index++] = '	<tr>';
	header[index++] = '		<td width="100%" colspan="5" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0"></td>';
	header[index++] = '	</tr>';
	header[index++] = '</table>';
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="3" alt="" border="0" /><br />';
	header[index++] = '</td>';
	header[index++] = '</tr>';
	header[index++] = '</table>';
	header[index++] = '<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#002A8F">';
	header[index++] = '<tr>';
	header[index++] = '<td width="100%" align="left" valign="top">';
	header[index++] = '<table width="760" border="0" cellspacing="0" cellpadding="0">';
	header[index++] = '<tr>';
	header[index++] = '<td width="760" align="left" valign="top"><img src="http://www.fnbhutchonline2.com/images/header-slogan.gif" width="555" height="24" alt="Same Bank, Same Town, Same Commitment" border="0" /><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="149" height="1" alt="" border="0" /><a href="'+homedir+'home.html" onmouseover="img_act(\'home\'); window.status=\'Home\'; return true" onmouseout="img_inact(\'home\');"><img src="http://www.fnbhutchonline2.com/images/nav-home-off.gif" width="47" height="24" alt="Home" border="0" name="home" /></a></td>';
	header[index++] = '</tr>';
	header[index++] = '</table>';
	header[index++] = '</td>';
	header[index++] = '</tr>';
	header[index++] = '</table>';
	header[index++] = '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
	header[index++] = '<tr valign="top">';
	header[index++] = '<td width="100%">';
	header[index++] = '<table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff">';
	header[index++] = '<tr valign="top">';
	header[index++] = '<td width="190">';
	header[index++] = '<table width="190" border="0" cellspacing="0" cellpadding="0">';
	header[index++] = '<tr valign="top">';
	header[index++] = '<td width="190" background="http://www.fnbhutchonline2.com/images/bg-back-'+this.background+'.jpg"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="15" alt="" border="0" /><br />';
	header[index++] = '<a onmouseover="img_act(\'personalbanking\'); showMenu(\'menu1\'); window.status=\'Personal Banking\'; return true" onmouseout="img_inact(\'personalbanking\');"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="190" height="44" alt="Personal Banking" border="0" name="personalbanking" /></a><br />';
	header[index++] = '<a onmouseover="img_act(\'businessbanking\'); showMenu(\'menu2\'); window.status=\'Business Banking\'; return true" onmouseout="img_inact(\'businessbanking\');"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="190" height="44" alt="Business Banking" border="0" name="businessbanking" /></a><br />';
	header[index++] = '<a onmouseover="img_act(\'investment\'); showMenu(\'menu3\'); window.status=\'Investment Products\'; return true" onmouseout="img_inact(\'investment\');"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="190" height="44" alt="Investment Products" border="0" name="investment" /></a><br />';
	header[index++] = '<a onmouseover="img_act(\'aboutus\'); showMenu(\'menu4\'); window.status=\'About Us\'; return true" onmouseout="img_inact(\'aboutus\');"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="190" height="33" alt="About Us" border="0" name="aboutus" /></a><br />';
	header[index++] = '<a onmouseover="img_act(\'financialcalculators\'); showMenu(\'menu5\'); window.status=\'Financial Calculators\'; return true" onmouseout="img_inact(\'financialcalculators\');"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="190" height="44" alt="Financial Calculators" border="0" name="financialcalculators" /></a><br />';
	header[index++] = '<a onmouseover="img_act(\'help\'); showMenu(\'menu6\'); window.status=\'Help\'; return true" onmouseout="img_inact(\'help\');"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="190" height="33" alt="Help" border="0" name="help" /></a><br />';
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="190" height="33" alt="" border="0" /></td>';
	header[index++] = '</tr>';
	header[index++] = '</table><br />';
	header[index++] = '</td>';
	header[index++] = '<td width="11"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="11" height="1" alt="" border="0" /></td>';
	header[index++] = '<td width="550" class="ficontent">';
	if(this.section != "clearpix"){
	header[index++] = '<img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="550" height="15" alt="" border="0" /><br /><img src="http://www.fnbhutchonline2.com/images/hed-'+this.section+'.gif" width="345" height="23" alt="" border="0" /><br />';
	}
	header[index++] = '<div id="ex_dis" style="background-color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; text-align: left; position:absolute; top:125px; left:150px; border: thin solid #1A448E; padding: 15px; display: none; z-index: 3000; width:350px;"></div>';
	document.open('text/html','replace');
	document.write(header.join(""));
	document.close();
	return;
}
function makeFooter(nologos){
	this.nologos = nologos
	if(this.nologos == "fdic")logos = '<img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="55" height="40" alt="" border="0" />' ;
	else logos='<a href="javascript:openlink(\'http://www.fdic.gov\');" onmouseover="window.status=\'FDIC Website\'; return true;" onmouseout="window.status=\'\'; return true;"><img src="http://www.fnbhutchonline2.com/images/footer-fdic.gif" width="55" height="40" alt="" border="0" /></a>';

	var footer = new Array();
	var index = 0;
	footer[index++] = '<br />';
	footer[index++] = '<br /></td>';
	footer[index++] = '<td width="9"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="9" height="1" alt="" border="0" /></td>';
	footer[index++] = '</tr>';
	footer[index++] = '</table>';
	footer[index++] = '</td>';
	footer[index++] = '</tr>';
	footer[index++] = '</table>';	
	footer[index++] = '<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#538CE1">';
	footer[index++] = '<tr>';
	footer[index++] = '<td width="100%" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0" /></td>';
	footer[index++] = '</tr>';
	footer[index++] = '<tr>';
	footer[index++] = '<td width="100%" align="left" valign="top">';
	footer[index++] = '<table width="760" border="0" cellspacing="0" cellpadding="0" background="http://www.fnbhutchonline2.com/images/footer-background.jpg">';
	footer[index++] = '<tr>';
	footer[index++] = '<td class="yellow"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="253" height="5" alt="" border="0" /><br />';
	footer[index++] = '&nbsp;&nbsp;&nbsp;&nbsp;One N. Main Street, Hutchinson, KS 67501<br />';
	footer[index++] = '&nbsp;&nbsp;&nbsp;&nbsp;Phone: 620.663.1521<br />';
	footer[index++] = '&nbsp;&nbsp;&nbsp;&nbsp;Fax:620.694.2317<br />';
	footer[index++] = '</td>';
	footer[index++] = '<td align="center" ><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="253" height="5" border="0"><br><a href="javascript:scrollTo(0,0);" onmouseover="window.status=\'Back To Top\ return true;" onmouseout="window.status=\'\'; return true;"><img src="http://www.fnbhutchonline2.com/images/footer-backtotop.gif" alt="Back to Top" width="93" height="40" border="0"/></a></td>';
	footer[index++] = '<td nowrap="nowrap" align="center" ><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="253" height="5" border="0"><br>'+logos+'<a href="javascript:openlink(\'http://www.hud.gov\');" onmouseover="window.status=\'US Department of Housing and Urban Development\'; return true;" onmouseout="window.status=\'\'; return true;"><img src="http://www.fnbhutchonline2.com/images/footer-ehl.gif" width="42" height="40" alt="" border="0" /></a><a href="javascript:openlink(\'http://www.digitalinsight.com\');" onmouseover="window.status=\'Digital Insight\'; return true;" onmouseout="window.status=\'\'; return true;"><img src="https://www.fnbhutchonline2.com/images/di_91x22_1c_w.gif" alt="Digital Insight, an Intuit company" align="bottom" border="0" height="22" width="91"></a></td>';
	footer[index++] = '</tr>';
	
	footer[index++] = '<tr>';
	footer[index++] = '<td colspan="4" align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
	footer[index++] = '<a href="http://www.fnbhutchonline2.com/aboutus/disclosure_privacyNotice.html" style="color:#FFFFCC; font-size:9px"  onmouseover="window.status=\'Schedule of Fees and Charges\'; return true;" onmouseout="window.status=\'\'; return true;">';
	footer[index++] = 'Privacy Notice</a>&nbsp;&nbsp;&nbsp;';
	footer[index++] = '<a href="http://www.fnbhutchonline2.com/aboutus/disclosure_feeSchedule.html" style="color:#FFFFCC; font-size:9px"  onmouseover="window.status=\'Schedule of Fees and Charges\'; return true;" onmouseout="window.status=\'\'; return true;">';
	footer[index++] = 'Schedule of Fees and Charges</a>&nbsp;&nbsp;&nbsp;';
	footer[index++] = '<a href="https://web1.zixmail.net/s/login?b=fnbhutch" style="color:#FFFFCC; font-size:9px"  onmouseover="window.status=\'Send us a secure email\'; return true;" onmouseout="window.status=\'\'; return true;">';
	footer[index++] = 'secure email to FNB</a>&nbsp;&nbsp;&nbsp;';
	footer[index++] = '<a href="https://www.fnbhutchonline2.com/aboutus/InternetDisclosure.html" style="color:#FFFFCC; font-size:9px" onmouseover="window.status=\'Online Banking Agreement\'; return true;" onmouseout="window.status=\'\'; return true;">';
	footer[index++] = 'Online Agreement</a>&nbsp;&nbsp;&nbsp;<a href="javascript://" onclick="window.open(\'https://www.fnbhutchonline2.com/onlineserv/HB/BrowserTest.cgi\',\'btwin\',\'width=800,height=600,resizable,scrollbars\');" style="color:#FFFFCC; font-size:9px" onmouseover="window.status=\'Test Browser\'; return true;" onmouseout="window.status=\'\'; return true;">Test Browser</a><br>';
	footer[index++] = '<img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="5" alt="" border="0" valign="top">';
	footer[index++] = '	</td>';
	footer[index++] = '</tr>';
	
	footer[index++] = '</table>';
	footer[index++] = '</td>';
	footer[index++] = '</tr>';
	footer[index++] = '<tr>';
	footer[index++] = '<td width="100%" bgcolor="#002A8F"><img src="http://www.fnbhutchonline2.com/images/clearpix.gif" width="1" height="1" alt="" border="0" /></td>';
	footer[index++] = '</tr>';
	footer[index++] = '</table>';

	document.open('text/html','replace');
	document.write(footer.join(""));
	document.close();
	return;
}
function getNews(where)
{
	var news=new Array();
	var index=0;
	if(where=="sitemap")
	{
		news[index++]='<ul>';
		news[index++]='	<li><a href="http://www.fnbhutchonline2.com/aboutus/news1.html">'+news1+'</a></li>';
		news[index++]=' <li><a href="http://www.fnbhutchonline2.com/aboutus/news2.html">'+news2+'</a></li>';
		news[index++]='	<li><a href="http://www.fnbhutchonline2.com/aboutus/news3.html">'+news3+'</a></li>';
		news[index++]=' <li><a href="http://www.fnbhutchonline2.com/aboutus/news4.html">'+news4+'</a></li>';
		news[index++]='	<li><a href="http://www.fnbhutchonline2.com/aboutus/news5.html">'+news5+'</a></li>';
		news[index++]='	<li><a href="http://www.fnbhutchonline2.com/investment_products/cd_specials.html">'+news6+'</a></li>';
		news[index++]='</ul>';
	}
	if(where=="news")
	{		
		news[index++]='<div align="center" class="subnav">';
		news[index++]='<a href="http://www.fnbhutchonline2.com/aboutus/news1.html" onMouseOver="window.status='+'\''+news1+'\''+'; return true;" onmouseout="window.status=\'\'";>'+news1+'</a> l ';
		news[index++]='<a href="http://www.fnbhutchonline2.com/aboutus/news2.html" onMouseOver="window.status='+'\''+news2+'\''+'; return true;" onmouseout="window.status=\'\'";>'+news2+'</a> l ';
		news[index++]='<a href="http://www.fnbhutchonline2.com/aboutus/news3.html" onMouseOver="window.status='+'\''+news3+'\''+'; return true;" onmouseout="window.status=\'\'";>'+news3+'</a> l ';
		news[index++]='<a href="http://www.fnbhutchonline2.com/aboutus/news4.html" onMouseOver="window.status='+'\''+news4+'\''+'; return true;" onmouseout="window.status=\'\'";>'+news4+'</a> l ';
		news[index++]='<a href="http://www.fnbhutchonline2.com/aboutus/news5.html" onMouseOver="window.status='+'\''+news5+'\''+'; return true;" onmouseout="window.status=\'\'";>'+news5+'</a> l ';
		news[index++]='<a href="http://www.fnbhutchonline2.com/investment_products/cd_specials.html" onMouseOver="window.status='+'\''+news6+'\''+'; return true;" onmouseout="window.status=\'\'";>'+news6+'</a>';
		news[index++]='</div>';
		news[index++]='<br />';
	}
	if(where=="side")
	{		
		getRandomNews("side");
	}
	document.open('text/html','replace');
	document.write(news.join(""));
	document.close();
	return;
}
function getRandomNews(where)
{
	var news=new Array();
	var index=0;
	var randomNumbers = new Array();
	drawNumbers(5);
	randomNumbers = numbers;

	if(where=="side")
	{		
		news[index++]= '<table width="150" cellspacing="0" cellpadding="1" border="0" align="right">';
   		news[index++]= '<tr>';
    	news[index++]= '  <td class="tableheader">';
	    news[index++]= '    <table width="100%" border="0" cellpadding="1" cellspacing="0" style="text-align:center" class="tablecontent1" align="right">';
    	news[index++]= '      <tr><td class="tableheader">What\'s New</td></tr>';
		news[index++]= '     <tr><td><a href="'+randomNews[randomNumbers[0]][1]+'" onMouseOver="window.status='+'\''+randomNews[randomNumbers[0]][0]+'\''+'; return true;" onmouseout="window.status=\'\'";>'+randomNews[randomNumbers[0]][0]+'</a></td></tr>';
		news[index++]= '     <tr><td><a href="'+randomNews[randomNumbers[1]][1]+'" onMouseOver="window.status='+'\''+randomNews[randomNumbers[1]][0]+'\''+'; return true;" onmouseout="window.status=\'\'";>'+randomNews[randomNumbers[1]][0]+'</a></td></tr>';
		news[index++]= '     <tr><td><a href="'+randomNews[randomNumbers[2]][1]+'" onMouseOver="window.status='+'\''+randomNews[randomNumbers[2]][0]+'\''+'; return true;" onmouseout="window.status=\'\'";>'+randomNews[randomNumbers[2]][0]+'</a></td></tr>';
		news[index++]= '     <tr><td><a href="'+randomNews[randomNumbers[3]][1]+'" onMouseOver="window.status='+'\''+randomNews[randomNumbers[3]][0]+'\''+'; return true;" onmouseout="window.status=\'\'";>'+randomNews[randomNumbers[3]][0]+'</a></td></tr>';
		news[index++]= '     <tr><td><a href="'+randomNews[randomNumbers[4]][1]+'" onMouseOver="window.status='+'\''+randomNews[randomNumbers[4]][0]+'\''+'; return true;" onmouseout="window.status=\'\'";>'+randomNews[randomNumbers[4]][0]+'</a></td></tr>';
    	news[index++]= '    </table>';
	    news[index++]= '  </td>';
    	news[index++]= '</tr>';
	    news[index++]= '</table>';
	}
	
	document.open('text/html','replace');
	document.write(news.join(""));
	document.close();
	return;
}

function drawNumbers(howMany)//only works for relatively small collection to draw from -- howMany represents how many are drawn from teh bag
{
	var indexArray= new Array();//the 'bag' of numbers to chose from
	//var numbers = new Array(howMany);//the 'drawn' numbers in order
	var index = 0;
	var indexArrayLength = howLong;
	var randomNumber;//the random number that is 'drawn' that corresponds to a # left in the bag
	var x;
	var y;
	var indexString="indexArray ";
	while (index < howLong)//creates the 'bag' to draw from
	{
	//alert(index);
	indexArray[index]=index;
	indexString=indexString+indexArray[index];
	index++;
	//indexString=indexString+indexArray[index];
	}
	index=0;
	//alert(indexString);
	//alert("indexArray "+indexArray[0]+" "+indexArray[1]+" "+indexArray[2]+" "+indexArray[3]+" "+indexArray[4]+" "+indexArray[5]);
	while(index < howMany)
	{
		randomNumber = Math.ceil((Math.random()* indexArrayLength));
		//alert("randomNumber "+randomNumber+" index "+index);
		numbers[index++]=indexArray[randomNumber-1];
		x=0; y=0;
		while(x<(indexArrayLength-1))//reindex the indexArray
		{
			if(x==(randomNumber-1)){y++;}
			indexArray[x]=indexArray[y];
			x++; y++;
		}indexArrayLength--;
		//alert("indexArray "+indexArray[0]+" "+indexArray[1]+" "+indexArray[2]+" "+indexArray[3]+" "+indexArray[4]+" "+indexArray[5]+" numbers "+numbers[0]+" "+numbers[1]+" "+numbers[2]+" "+numbers[3]+" "+numbers[4]+" "+numbers[5]);
	}
	//return numbers;
	//alert("numbers "+numbers[0]+" "+numbers[1]+" "+numbers[2]+" "+numbers[3]+" "+numbers[4]+" "+numbers[5]);
	return;
}
function makeDisclosureTable()
{
	var disclosure = new Array();
	var index = 0;
	disclosure[index++] = '<table width="50%" cellspacing="0" cellpadding="1" border="0" align="center">';
    disclosure[index++] = '<tr>';
    disclosure[index++] = '  <td class="tableheader">';
    disclosure[index++] = '    <table width="100%" border="0" cellpadding="1" cellspacing="0" style="text-align:center" class="tablecontent1">';
    disclosure[index++] = '      <tr><td class="tableheader">Disclosures</td></tr>';
    disclosure[index++] = '     <tr><td><a href="../aboutus/disclosures.html#privacy" onmouseover="window.status=\'Privacy Notice\'; return true;" onmouseout="window.status=\'\'; return true;">Privacy Notice</a></td></tr>';
    disclosure[index++] = '      <tr><td><a href="../aboutus/disclosures.html#eft" onmouseover="window.status=\'Electronic Fund Transfer\'; return true;" onmouseout="window.status=\'\'; return true;">Electronic Fund Transfer Disclosure</a></td></tr>';
    disclosure[index++] = '      <tr><td><a href="../aboutus/disclosures.html#truth" onmouseover="window.status=\'Truth-in-savings\'; return true;" onmouseout="window.status=\'\'; return true;">Truth-in-savings Disclosure</a></td></tr>';
    disclosure[index++] = '      <tr><td><a href="../aboutus/disclosures.html#funds" onmouseover="window.status=\'Funds Availability\'; return true;" onmouseout="window.status=\'\'; return true;">Funds Availability Disclosure Deposit Agreement</a></td></tr>';
    disclosure[index++] = '     <tr><td><a href="../aboutus/disclosures.html#fees" onmouseover="window.status=\'Schedule of Fees and Charges\'; return true;" onmouseout="window.status=\'\'; return true;">Schedule of Fees and Charges</a></td></tr>';
    disclosure[index++] = '    </table>';
    disclosure[index++] = '  </td>';
    disclosure[index++] = '</tr>';
    disclosure[index++] = '</table>';
    document.open('text/html','replace');
	document.write(disclosure.join(""));
	document.close();
	return;
}
function onlineInfoTable()
{
	var online = new Array();
    var index = 0;
	online[index++] = '<table cellpadding="4" align="center"><tr>';
	online[index++] = '<td rowspan="2" valign="middle" width="250" height=90%" class="tableheader" align="center">';
	online[index++] = '		<table class="tablecontent2" width="100%" height="90%" align="center">';
	online[index++] = '			<tr><td><a href="javascript:openIB(\'register\');" class="table"><img src="http://www.fnbhutchonline2.com/images/register.gif" width="20" height="20" border="0"></a></td>';
	online[index++] = '			<td align="left"><a href="javascript:openIB(\'register\');" class="table">Sign up Here</a></td></tr>';
	online[index++] = '			<tr align="left"><td height="100%"><a href="javascript:calendar();" class="table"><img src="http://www.fnbhutchonline2.com/images/calendar.gif" width="20" height="20" border="0"></a></td>';
	online[index++] = '			<td><a href="javascript:calendar();" class="table">Maintenance Calendar</a></td></tr>';
	online[index++] = '			<tr><td><a href="javascript:openIB(\'register\');" class="table"><img src="http://www.fnbhutchonline2.com/images/info.gif" width="20" height="20" border="0"></a></td>';
	online[index++] = '			<td align="left"><a href="http://www.fnbhutchonline2.com/help/help.html" class="table">More Information</a></td></tr>';
	online[index++] = '	  </table>';
	online[index++] = '</td>';
	online[index++] = '</tr></table>';
	document.open('text/html','replace');
    document.write(online.join(""));
    document.close();
    return;
}
function overdraftOptions()
{
	var overdraft = new Array();
    var index = 0;

	overdraft[index++] = '<table cellspacing="0" cellpadding="1" border="0" align="right" width="175">';
	overdraft[index++] = '    <tr><td class="tableheader">';
    overdraft[index++] = '    <table width="100%" border="0" cellpadding="1" cellspacing="0" style="text-align:center">';
    overdraft[index++] = '      <tr><td class="tableheader">Overdraft Services</td></tr>';
    overdraft[index++] = '      <tr><td class="tablecontent1"><a href="../personal_banking/other_ready.html">Ready Reserve</a></td></tr>';
    overdraft[index++] = '      <tr><td class="tablecontent1"><a href="../personal_banking/other_fundstransfer.html">Overdraft Funds Transfer</a></td></tr>';
    overdraft[index++] = '      <tr><td class="tablecontent1"><a href="../personal_banking/other_overdraft.html">Occasional Overdraft Priviledge</a></td></tr>';
    overdraft[index++] = '    </table></td></tr></table>';

	document.open('text/html','replace');
    document.write(overdraft.join(""));
    document.close();
    return;
}
//end of file