function stopError() {
  return true;
}
window.onerror = stopError;
/* CALL TO CORRECT DIRECTORY */
var imgdir;
var sitedir;
var securedir;
var homedir;
var layoutdir;
if(window.homepage)
{
imgdir="images/";
sitedir="http://www.fnbhutchonline2.com/";
securedir="";
homedir="";
layoutdir="https://www.fnbhutchonline2.com/layout/"
}
else if(window.absolutepage)
{
imgdir="http://www.fnbhutchonline2.com/images/"
sitedir="http://www.fnbhutchonline2.com/"
securedir="http://www.fnbhutchonline2.com/site/"
homedir="http://www.fnbhutchonline2.com/"
layoutdir="https://www.fnbhutchonline2.com/layout/"
}
else if(window.securepage)
{
imgdir="https://www.fnbhutchonline2.com/images/"
sitedir="http://www.fnbhutchonline2.com/site/"
securedir="https://www.fnbhutchonline2.com/site/"
homedir="http://www.fnbhutchonline2.com/"
layoutdir="https://www.fnbhutchonline2.com/layout/"
}
else
{
imgdir="../images/";
sitedir="../";
securedir="../";
homedir="../";
layoutdir="../layout/"
}
// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW
businessbanking_on = new Image(190,44);
businessbanking_on.src = imgdir + "nav-businessbanking-on.gif";

businessbanking_off = new Image(190,44);
businessbanking_off.src = imgdir + "clearpix.gif";

farm_on = new Image(249,43);
farm_on.src = imgdir + "nav-farm-on.gif";

farm_off = new Image(249,33);
farm_off.src = imgdir + "nav-farm-off.gif";

financialcalculators_on = new Image(190,44);
financialcalculators_on.src = imgdir + "nav-financialcalculators-on.gif";

financialcalculators_off = new Image(190,44);
financialcalculators_off.src = imgdir + "clearpix.gif";

help_on = new Image(190,33);
help_on.src = imgdir + "nav-help-on.gif";

help_off = new Image(190,33);
help_off.src = imgdir + "clearpix.gif";

aboutus_on = new Image(190,33);
aboutus_on.src = imgdir + "nav-aboutus-on.gif";

aboutus_off = new Image(190,33);
aboutus_off.src = imgdir + "clearpix.gif";

investment_on = new Image(190,44);
investment_on.src = imgdir + "nav-investment-on.gif";

investment_off = new Image(190,44);
investment_off.src = imgdir + "clearpix.gif";

personalbanking_on = new Image(190,44);
personalbanking_on.src = imgdir + "nav-personalbanking-on.gif";

personalbanking_off = new Image(190,44);
personalbanking_off.src = imgdir + "clearpix.gif";

pbloginlogin_on = new Image(46,16);
pbloginlogin_on.src = imgdir + "nav-pbloginlogin-on.gif";

pbloginlogin_off = new Image(46,16);
pbloginlogin_off.src = imgdir + "nav-pbloginlogin-off.gif";

bbloginlogin_on = new Image(46,16);
bbloginlogin_on.src = imgdir + "nav-bbloginlogin-on.gif";

bbloginlogin_off = new Image(46,16);
bbloginlogin_off.src = imgdir + "nav-bbloginlogin-off.gif";

kloginlogin_on = new Image(46,16);
kloginlogin_on.src = imgdir + "nav-kloginlogin-on.gif";

kloginlogin_off = new Image(46,16);
kloginlogin_off.src = imgdir + "nav-kloginlogin-off.gif";

tloginlogin_on = new Image(46,16);
tloginlogin_on.src = imgdir + "nav-tloginlogin-on.gif";

tloginlogin_off = new Image(46,16);
tloginlogin_off.src = imgdir + "nav-tloginlogin-off.gif";

pbinfo_on = new Image(40,9);
pbinfo_on.src = imgdir + "nav-pbinfo-on.gif";

pbinfo_off = new Image(40,9);
pbinfo_off.src = imgdir + "nav-pbinfo-off.gif";

bbinfo_on = new Image(40,9);
bbinfo_on.src = imgdir + "nav-bbinfo-on.gif";

bbinfo_off = new Image(40,9);
bbinfo_off.src = imgdir + "nav-bbinfo-off.gif";

pbsignup_on = new Image(35,9);
pbsignup_on.src = imgdir + "nav-pbsignup-on.gif";

pbsignup_off = new Image(35,9);
pbsignup_off.src = imgdir + "nav-pbsignup-off.gif";

bbsignup_on = new Image(35,9);
bbsignup_on.src = imgdir + "nav-bbsignup-on.gif";

bbsignup_off = new Image(35,9);
bbsignup_off.src = imgdir + "nav-bbsignup-off.gif";

pbdemo_on = new Image(24,9);
pbdemo_on.src = imgdir + "nav-pbdemo-on.gif";

pbdemo_off = new Image(24,9);
pbdemo_off.src = imgdir + "nav-pbdemo-off.gif";

pbreset_on = new Image(84,12);
pbreset_on.src = imgdir + "nav-pbreset-on.gif";

pbreset_off = new Image(84,12);
pbreset_off.src = imgdir + "nav-pbreset-off.gif";

home_on = new Image(47,24);
home_on.src = imgdir + "nav-home-on.gif";

home_off = new Image(47,24);
home_off.src = imgdir + "nav-home-off.gif";

pbfnbreset_on = new Image(44,9);
pbfnbreset_on.src = imgdir + "nav-pbfnbreset-on.gif";

pbfnbreset_off = new Image(44,9);
pbfnbreset_off.src = imgdir + "nav-pbfnbreset-off.gif";

pbyoureset_on = new Image(44,9);
pbyoureset_on.src = imgdir + "nav-pbyoureset-on.gif";

pbyoureset_off = new Image(44,9);
pbyoureset_off.src = imgdir + "nav-pbyoureset-off.gif";

premiumPakSmall_off = new Image(44,9);
premiumPakSmall_off.src = imgdir + "premiumPakSmall-off.jpg";

premiumPakSmall_on = new Image(44,9);
premiumPakSmall_on.src = imgdir + "premiumPakSmall-on.jpg";
function img_act(imgName)
{
	imgOn = eval(imgName + "_on.src");
	document [imgName].src = imgOn;
	return;
}
function img_inact(imgName)
{
	window.status = "";
	imgOff = eval(imgName + "_off.src");
	document [imgName].src = imgOff;
	oM.mout();
	return;
}
// ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE
function showCalc(calc)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 275)
var pHeight = (((parseInt(screen.height) / 2)) -240)
window.open(calc,"hello","width=550,height=480,left=" + pWidth + ",top=" + pHeight + ",resizable=1,scrollbars=1");
}
function open_apps(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
aWindow = window.open('https://www.fnbhutchonline2.com/Forms/OnlineForm.cgi?form=' + nameofapp,'application',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=700,height=600,top=" + pHeight + ",left=" + pWidth + ",scrollbars=1,resizable=1,status=1");
}
//function openlink(url){
//	var newin = window.open(url,'newwin');
//	newin.focus();
//	return;
//}
function motd(){
	var newin = window.open('http://files.fnbhutch.com/help/motd.html','newwin','width=560,height=400,scrollbars=yes');
	newin.focus();
	return;
}
function openIB(event){
//alert("test");
//alert(window.open(whichOne.options[whichOne.selectedIndex].value));
	if(event){
		if(event == "demo"){
			location.href="https://www.fnbhutchonline2.com/home.html?demo";
		}
		else{
			window.open('https://www.fnbhutchonline2.com/onlineserv/HB/dimlDisplayer.cgi?DIML_FILE=STDWelcome.diml');
		}
	}
	else{
		if(document.login.loginBox.options[document.login.loginBox.selectedIndex].value){window.open(whichOne.options[whichOne.selectedIndex].value);}
		else{
			window.open('https://www.fnbhutchonline2.com/onlineserv/HB/Signon.cgi');
			}
	}
}
function openCM(event){
	if(event){
		window.open('mailto:fnb@fnbhutch.com');
	}
	else{
		window.open('https://www.fnbhutchonline2.com/onlineserv/CM/');
	}
}
function openOther()
{
    window.open(document.login.loginBox.options[document.login.loginBox.selectedIndex].value);
}
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
var mydate=new Date();
var year=mydate.getYear()
if (year < 1000){year+=1900}
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10){daym="0"+daym}
var netdate= montharray[month]+' '+daym+', '+year;    
function openlink2(website){
	//page variables
	var page_bgcolor="#2859B7";
	var border_color="#cc0000";
	//content creation
	var content=new Array();
	var index = 0;
	content[index++]='<html>';
	content[index++]='<head>';
	content[index++]='<title>Disclaimer Notice</title>';
	content[index++]='</head>';
	content[index++]='<body bgcolor="' + page_bgcolor + '" onload=javascript:setTimeout(\'self.close()\',10000)>';
	content[index++]='<table bgcolor="' + border_color + '" align="center" width="300" cellspacing="2" cellpadding="0" border="0">';
	content[index++]='	<tr>';
	content[index++]='	    <td>';
	content[index++]='		<table background="'+imgdir+'leavingsite-bg.jpg" align="center" width="100%" cellspacing="1" cellpadding="1" border="0">';
	content[index++]='			<tr>';
	content[index++]='	    		<td align="center" colspan="2"><br><font style="font-size:12px;font-family:Arial,Verdana,Helvetica;" color="#FFFFFF">You will now exit our web site.  We make no representations nor do we assume any responsibility for the accuracy of information on other web sites which you visit.<br><br>By clicking on "I agree" you will continue to exit our site.  By clicking on "I disagree", you will return to our site.';                            
	content[index++]='				<br><br><br>';
	content[index++]='				</td></tr>';
	content[index++]='			<tr><td>';
	content[index++]='				<div align="center"><a style="color:#ffffcc;font-size:16px;font-weight:bold;font-family:Arial,Verdana,Helvetica;" href="'+website+'" target="_blank" onClick="setTimeout(\'self.close()\',3000)">I agree</a></div>';
	content[index++]='				</td>';
	content[index++]='				<td>';
	content[index++]='				<div align="center"><a style="color:#ffffcc;font-size:16px;font-weight:bold;font-family:Arial,Verdana,Helvetica;" href="javascript:self.close();">I disagree</a></div>';
	content[index++]='				</td>';
	content[index++]='			</tr><tr><td><br></td></tr>';
	content[index++]='		</table>';
	content[index++]='		</td>';
	content[index++]='	</tr>';
	content[index++]='</table>';
	content[index++]='</body>';
	content[index++]='</html>';
	//actual centering popup code
	var pWidth = ((parseInt(screen.width) - 340) / 2); 
	var pHeight = ((parseInt(screen.height) - 570) / 2);
    newwin = window.open("","newwin", "width=350,height=250,left="+pWidth+",top="+pHeight+", scrollbars=0");
 	newwin.document.open('text/html','replace');
	newwin.document.write(content.join(""));
	newwin.document.close();
	return;
}	
function openlink(website)
{
  var content = new Array();
  var index = 0;
  var page_bgcolor="#2859B7";
	var border_color="#cc0000";
  //content[index++] = "By accessing the noted link you will be leaving our website and entering another which is hosted and maintained by another party. Please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of our website. We encourage you to read and evaluate the privacy and security policies of the destination site which you are entering.";
  //content[index++] = "<br /><br /><br />";
  //content[index++] = "<div align=\"center\"><a href='"+url+"' onclick=\"document.getElementById('ex_dis').style.display = 'none'\">Continue</a>  <a href=\"javascript:void('0');\" onclick=\"document.getElementById('ex_dis').style.display = 'none'\">Close</a></div></div>";	
  content[index++]='<html>';
	content[index++]='<head>';
	content[index++]='<title>Disclaimer Notice</title>';
	content[index++]='</head>';
	content[index++]='<body bgcolor="' + page_bgcolor + '" onload=javascript:setTimeout(\'self.close()\',10000)>';
	content[index++]='<table bgcolor="' + border_color + '" align="center" width="100%" cellspacing="2" cellpadding="0" border="0">';
	content[index++]='	<tr>';
	content[index++]='	    <td>';
	content[index++]='		<table background="'+imgdir+'leavingsite-bg.jpg" align="center" width="100%" cellspacing="1" cellpadding="1" border="0">';
	content[index++]='			<tr>';
	content[index++]='	    		<td align="center" colspan="2"><br><font style="font-size:12px;font-family:Arial,Verdana,Helvetica;" color="#FFFFFF">You will now exit our web site.  We make no representations nor do we assume any responsibility for the accuracy of information on other web sites which you visit.<br><br>By clicking on "I agree" you will continue to exit our site.  By clicking on "I disagree", you will return to our site.';                            
	content[index++]='				<br><br><br>';
	content[index++]='				</td></tr>';
	content[index++]='			<tr><td>';
	content[index++]='				<div align="center"><a onclick="document.getElementById(\'ex_dis\').style.display = \'none\'" style="color:#ffffcc;font-size:16px;font-weight:bold;font-family:Arial,Verdana,Helvetica;" href="'+website+'" target="_blank" onClick="setTimeout(\'self.close()\',3000)">I agree</a></div>';
	content[index++]='				</td>';
	content[index++]='				<td>';
	content[index++]='				<div align="center"><a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'" style="color:#ffffcc;font-size:16px;font-weight:bold;font-family:Arial,Verdana,Helvetica;" >I disagree</a></div>';
	content[index++]='				</td>';
	content[index++]='			</tr><tr><td><br></td></tr>';
	content[index++]='		</table>';
	content[index++]='		</td>';
	content[index++]='	</tr>';
	content[index++]='</table>';
	content[index++]='</body>';
	content[index++]='</html>';
	
  document.getElementById("ex_dis").innerHTML = content.join("");
  document.getElementById("ex_dis").style.display = "block";
  scrollTo(0, 0);
}
function show(item){
	document.open('text/html','replace');
	document.write(item);
	document.close();
	return;
}
function email(address)
{
var content = new Array();
var index = 0;

content[index++] = "<strong><center><h1><img src='../images/stopIcon.gif' border = '0' align='middle'><img src='../images/clearpix.gif' width = '5' height='1' border='0'>WARNING:<img src='../images/clearpix.gif' width = '5' height='1' border='0'><img src='../images/stopIcon.gif' border = '0' align='middle'></h1></center></strong>";
content[index++] = "Email communication <strong>IS NOT SECURE</strong>. For your protection, <strong>DO NOT SEND</strong> sensitive information, like account numbers, passwords or social security numbers, through email. For this reason, <strong>WE CANNOT RESET PASSWORDS THROUGH EMAIL COMMUNICATION</strong>.  Instead, please call our online help desk during banking hours at 620.694.2334.  This email address is answered and monitored during regular banking hours, Monday thru Friday, 9am - 5pm CST.  Thank you.";
content[index++] = "";
content[index++] = "<div align=\"center\"><a href='mailto:"+address+"' onclick=\"document.getElementById('ex_dis').style.display = 'none'\">Email Us</a><img src = '../images/clearpix.gif' width = '15' border = '0'><a href=\"javascript:void('0');\" onclick=\"document.getElementById('ex_dis').style.display = 'none'\">Cancel</a></div></div>";
	//message = content.join("");
//document.write('<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:300px; border: thin solid #1A448E; padding: 15px; display: none; z-index: 3000; width:350px;"></div>');
	document.getElementById("ex_dis").innerHTML = content.join("");
    document.getElementById("ex_dis").style.display = "block";
	//alert(message);
	//window.open('mailto:' + address);
	scrollTo(0, 0);
}
function maintenance(product)
{
	var text='';
	if(product=='IB'){text='Online Banking and Cash Management will be down midnight-4 AM';}
	if(product=='BP'){text='Bill Pay will be down midnight-4 AM';}
	if(product=='BP&P'){text='Bill Pay will be down 3PM Wed to 8AM Fri';}
	alert(text);
}
function calendar()
{ window.open('http://files.fnbhutch.com/calendar/calendar.shtml','new_window','width=500,height=350,scrollbars=no');}
function quarters()
{
	var content=new Array();
	var index = 0;
	content[index++]='<html>';
	content[index++]='<head>';
	content[index++]='<title>State Issue by Year</title>';
	content[index++]='</head>';
	content[index++]='<link href="' + layoutdir + 'styles.css" rel="stylesheet" type="text/css" />';
	content[index++]='<scr'+'ipt type="text/javascript" src="' + layoutdir + '_slideShow.js">';
	content[index++]='  </scr'+'ipt>';
	content[index++]='<body>';
	content[index++]='<table width="100%" cellspacing="0" cellpadding="1" border="0" align="center">';
	content[index++]='    <tr>';
	content[index++]='      <td class="tableheader">';
	content[index++]='        <table width="100%" border="0" cellpadding="1" cellspacing="0">';
	content[index++]='          <tr>';
	content[index++]='            <td class="tableheader" colspan="2" style="text-align:center">State Issue by Year</td>';
	content[index++]='          </tr>';
	content[index++]='          <tr style="text-align:left">';
	content[index++]='            <td class="tablecontent2" width="50%">1999</td><td class="tablecontent2" width="50%">2004</td>';
	content[index++]='          </tr>';
	content[index++]='          <tr style="text-align:left">';
	content[index++]='            <td class="tablecontent1"><ul>';
	content[index++]='			<li>Delaware</li>';
	content[index++]='			<li>Pennsylvania</li>';
	content[index++]='			<li>New Jersey</li>';
	content[index++]='			<li>Georgia</li>';
	content[index++]='			<li>Connecticut</li>';
	content[index++]='		    </ul></td>';
	content[index++]='            <td class="tablecontent1"><ul>';
	content[index++]='			<li>Michigan</li>';
	content[index++]='			<li>Florida</li>';
	content[index++]='			<li>Texas</li>';
	content[index++]='			<li>Iowa</li>';
	content[index++]='			<li>Wisconsin</li>';
	content[index++]='			</ul></td>';
	content[index++]='		  </tr>';
	content[index++]='          <tr style="text-align:left">';
	content[index++]='            <td class="tablecontent2">2000</td><td class="tablecontent2">2005</td>';
	content[index++]='		  </tr>';
	content[index++]='          <tr style="text-align:left">';
	content[index++]='            <td class="tablecontent1"><ul>';
	content[index++]='			<li>Massachusetts</li>';
	content[index++]='			<li>Maryland</li>';
	content[index++]='			<li>South Carolina</li>';
	content[index++]='			<li>New Hampshire</li>';
	content[index++]='			<li>Virginia</li>';
	content[index++]='			</ul></td>';
	content[index++]='			<td class="tablecontent1"><ul>';
	content[index++]='			<li>California</li>';
	content[index++]='			<li>Minnesota</li>';
	content[index++]='			<li>Oregon</li>';
	content[index++]='			<li><strong>Kansas</strong></li>';
	content[index++]='			<li>West Virginia</li>';
	content[index++]='			</ul></td>';
	content[index++]='          </tr>';
	content[index++]='          <tr style="text-align:left">';
	content[index++]='            <td class="tablecontent2">2001</td><td class="tablecontent2">2006</td>';
	content[index++]='          </tr>';
	content[index++]='		  <tr style="text-align:left">';
	content[index++]='            <td class="tablecontent1"><ul>';
	content[index++]='			<li>New York</li>';
	content[index++]='			<li>North Carolina</li>';
	content[index++]='			<li>Rhode Island</li>';
	content[index++]='			<li>Vermont</li>';
	content[index++]='			<li>Kentucky</li>';
	content[index++]='			</ul></td>';
	content[index++]='			<td class="tablecontent1"><ul>';
	content[index++]='			<li>Nevada</li>';
	content[index++]='			<li>Nebraska</li>';
	content[index++]='			<li>Colorado</li>';
	content[index++]='			<li>North Dakota</li>';
	content[index++]='			<li>South Dakota</li>';
	content[index++]='			</ul></td>';
	content[index++]='          </tr>';
	content[index++]='		  <tr style="text-align:left">';
	content[index++]='            <td class="tablecontent2">2002</td><td class="tablecontent2">2007</td>';
	content[index++]='          </tr>';
	content[index++]='		  <tr style="text-align:left">';
	content[index++]='            <td class="tablecontent1"><ul>';
	content[index++]='			<li>Tennessee</li>';
	content[index++]='			<li>Ohio</li>';
	content[index++]='			<li>Louisiana</li>';
	content[index++]='			<li>Indiana</li>';
	content[index++]='			<li>Mississippi</li>';
	content[index++]='			</ul></td>';
	content[index++]='			<td class="tablecontent1"><ul>';
	content[index++]='			<li>Montana</li>';
	content[index++]='			<li>Washington</li>';
	content[index++]='			<li>Idaho</li>';
	content[index++]='			<li>Wyoming</li>';
	content[index++]='			<li>Utah</li>';
	content[index++]='			</ul></td>';
	content[index++]='          </tr>';
	content[index++]='		  <tr style="text-align:left">';
	content[index++]='            <td class="tablecontent2">2003</td><td class="tablecontent2">2008</td>';
	content[index++]='          </tr>';
	content[index++]='		  <tr style="text-align:left">';
	content[index++]='            <td class="tablecontent1"><ul>';
	content[index++]='			<li>Illinois</li>';
	content[index++]='			<li>Alabama</li>';
	content[index++]='			<li>Maine</li>';
	content[index++]='			<li>Missouri</li>';
	content[index++]='			<li>Arkansas</li>';
	content[index++]='			</ul></td>';
	content[index++]='			<td class="tablecontent1"><ul>';
	content[index++]='			<li>Oklahoma</li>';
	content[index++]='			<li>New Mexico</li>';
	content[index++]='			<li>Arizona</li>';
	content[index++]='			<li>Alaska</li>';
	content[index++]='			<li>Hawaii</li>';
	content[index++]='			</ul></td>';
	content[index++]='          </tr>';
	content[index++]='        </table>';
	content[index++]='      </td>';
	content[index++]='    </tr>';
	content[index++]='  	</table>';
	content[index++]='</body>';
	content[index++]='</html>';
	var pWidth = ((parseInt(screen.width) - 340) / 2); 
	var pHeight = ((parseInt(screen.height) - 570) / 2);
    newwin = window.open("","newwin", "width=270,height=575,left="+pWidth+",top="+pHeight+", scrollbars=0");
 	newwin.document.open('text/html','replace');
	newwin.document.write(content.join(""));
	newwin.document.close();
	return;
}
function president()
{
	var content=new Array();
	var index = 0;
	content[index++]='<html>';
	content[index++]='<head>';
	content[index++]='<title>Presidential Issue by Year</title>';
	content[index++]='</head>';
	content[index++]='<link href="' + layoutdir + 'styles.css" rel="stylesheet" type="text/css" />';
	content[index++]='<scr'+'ipt type="text/javascript" src="' + layoutdir + '_slideShow.js">';
	content[index++]='  </scr'+'ipt>';
	content[index++]='<body>';
	content[index++]='<table width="100%" cellspacing="0" cellpadding="1" border="0" align="center">';
	content[index++]='    <tr>';
	content[index++]='      <td class="tableheader">';
	content[index++]='        <table width="100%" border="0" cellpadding="1" cellspacing="0">';
	content[index++]='          <tr>';
	content[index++]='            <td class="tableheader" colspan="2" style="text-align:center">Presidential Issue by Year</td>';
	content[index++]='          </tr>';
	content[index++]='          <tr style="text-align:left">';
	content[index++]='            <td class="tablecontent2" width="50%">2007</td><td class="tablecontent2" width="50%">2012</td>';
	content[index++]='          </tr>';
	content[index++]='          <tr style="text-align:left">';
	content[index++]='            <td class="tablecontent1"><ul>';
	content[index++]='			<li>George Washington</li>';
	content[index++]='			<li>John Adams</li>';
	content[index++]='			<li>Thomas Jefferson</li>';
	content[index++]='			<li>James Madison</li>';
	content[index++]='		    </ul></td>';
	content[index++]='            <td class="tablecontent1"><ul>';
	content[index++]='			<li>Chester A. Arthur</li>';
	content[index++]='			<li>Grover Cleveland</li>';
	content[index++]='			<li>Benjamin Harrison</li>';
	content[index++]='			<li>Grover Cleveland</li>';
	content[index++]='			</ul></td>';
	content[index++]='		  </tr>';
	content[index++]='          <tr style="text-align:left">';
	content[index++]='            <td class="tablecontent2">2008</td><td class="tablecontent2">2013</td>';
	content[index++]='		  </tr>';
	content[index++]='          <tr style="text-align:left">';
	content[index++]='            <td class="tablecontent1"><ul>';
	content[index++]='			<li>James Monroe</li>';
	content[index++]='			<li>John Quincy Adams</li>';
	content[index++]='			<li>Andrew Jackson</li>';
	content[index++]='			<li>Martin Van Buren</li>';
	content[index++]='			</ul></td>';
	content[index++]='			<td class="tablecontent1"><ul>';
	content[index++]='			<li>William McKinley</li>';
	content[index++]='			<li>Theodore Roosevelt</li>';
	content[index++]='			<li>William Howard Taft</li>';
	content[index++]='			<li>Woodrow Wilson</li>';
	content[index++]='			</ul></td>';
	content[index++]='          </tr>';
	content[index++]='          <tr style="text-align:left">';
	content[index++]='            <td class="tablecontent2">2009</td><td class="tablecontent2">2014</td>';
	content[index++]='          </tr>';
	content[index++]='		  <tr style="text-align:left">';
	content[index++]='            <td class="tablecontent1"><ul>';
	content[index++]='			<li>William Henry Harrison</li>';
	content[index++]='			<li>John Tyler</li>';
	content[index++]='			<li>James K Polk</li>';
	content[index++]='			<li>Zachary Taylor</li>';
	content[index++]='			</ul></td>';
	content[index++]='			<td class="tablecontent1"><ul>';
	content[index++]='			<li>Warren Harding</li>';
	content[index++]='			<li>Calvin Coolidge</li>';
	content[index++]='			<li>Herbert Hoover</li>';
	content[index++]='			<li>Franklin D. Roosevelt</li>';
	content[index++]='			</ul></td>';
	content[index++]='          </tr>';
	content[index++]='		  <tr style="text-align:left">';
	content[index++]='            <td class="tablecontent2">2010</td><td class="tablecontent2">2015</td>';
	content[index++]='          </tr>';
	content[index++]='		  <tr style="text-align:left">';
	content[index++]='            <td class="tablecontent1"><ul>';
	content[index++]='			<li>Millard Fillmore</li>';
	content[index++]='			<li>Franklin Pierce</li>';
	content[index++]='			<li>James Buchanan</li>';
	content[index++]='			<li>Abraham Lincoln</li>';
	content[index++]='			</ul></td>';
	content[index++]='			<td class="tablecontent1"><ul>';
	content[index++]='			<li>Harry S. Truman</li>';
	content[index++]='			<li>Dwight D. Eisenhower</li>';
	content[index++]='			<li>John F. Kennedy</li>';
	content[index++]='			<li>Lyndon B. Johnson</li>';
	content[index++]='			</ul></td>';
	content[index++]='          </tr>';
	content[index++]='		  <tr style="text-align:left">';
	content[index++]='            <td class="tablecontent2">2011</td><td class="tablecontent2">2016</td>';
	content[index++]='          </tr>';
	content[index++]='		  <tr style="text-align:left">';
	content[index++]='            <td class="tablecontent1"><ul>';
	content[index++]='			<li>Andrew Johnson</li>';
	content[index++]='			<li>Ulysses S. Grant</li>';
	content[index++]='			<li>Rutherford B. Hayes</li>';
	content[index++]='			<li>James A. Garfield</li>';
	content[index++]='			</ul></td>';
	content[index++]='			<td class="tablecontent1" valign="top"><ul>';
	content[index++]='			<li>Richard M. Nixon</li>';
	content[index++]='			<li>Gerald Ford</li>';
	content[index++]='			</ul></td>';
	content[index++]='          </tr>';
	content[index++]='        </table>';
	content[index++]='      </td>';
	content[index++]='    </tr>';
	content[index++]='  	</table>';
	content[index++]='</body>';
	content[index++]='</html>';
	var pWidth = ((parseInt(screen.width) - 340) / 2); 
	var pHeight = ((parseInt(screen.height) - 570) / 2);
    newwin = window.open("","newwin", "width=325,height=465,left="+pWidth+",top="+pHeight+", scrollbars=0");
 	newwin.document.open('text/html','replace');
	newwin.document.write(content.join(""));
	newwin.document.close();
	return;
}

function branchPic(branch)
{
	var picture = new Image();
	picture.src = imgdir+branch+"Small.jpg";
	var wwidth;
	var wheight;
	switch(branch)
	{
		case "dillons": wwidth=357; wheight=340;
		break;
		case "main": wwidth=376; wheight=240;
		break;
		case "17th": wwidth=458; wheight=243;
		break;
		case "3rd": wwidth=357; wheight=293;
		break;
		case "north": wwidth=380; wheight=263;
		break;
		case "ast": wwidth=361; wheight=279;
		break;
	}
	var pWidth = ((parseInt(screen.width) - 340) / 2); 
	var pHeight = ((parseInt(screen.height) - 570) / 2);
	newwin = window.open("","newwin", "width="+wwidth+",height="+wheight+",left="+pWidth+",top="+pHeight+", scrollbars=0");
 	newwin.document.open('text/html','replace');
	newwin.document.write("<html><head><title>Photo Gallery</title></head><body bgcolor='#FFFFFF' leftmargin='0' topmargin='0'><img src='"+picture.src+"'></body></html>");
	newwin.document.close();
	return;
}
function helpNavigation()
{
	document.open('text/html','replace');
	document.write('<div align="center" class="subnav"><a href="helpBanking.html">Banking</a> | <a href="helpIB.html">Internet Banking</a> | <a href="helpSecurity.html">Security</a> | <a href="helpBP.html">Bill Pay</a>  </div>');
	document.close();
	return;
}

function openWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function testForDemo2(fileName)
{
	if(document.cookie.indexOf('demo')!=-1)
	{
		if(confirm("In order to register, you must first exit the demo. Would you like to exit the demo?"))
		{
			expireDate = new Date;
			expireDate.setDate( (expireDate.getDate() - 1) );
			document.cookie = "demo=Deleted;expires=" + expireDate.toGMTString();
			document.location = "https://www.fnbhutchonline2.com";
		}
		else
		{
			
			//document.location = "https://www.fnbhutchonline2.com";
			document.location.reload();
		}
	}
	else
	{
		document.location = fileName; 
	}
	
	return false;
}

function alertPopUp(trueOrFalse)
{
var content = new Array();
var index = 0;
//alert(netdate);
var subject="Important Bill Pay News";
var bodyText="<b>ALLTEL USERS: If you pay Alltel, be sure to set up Verizon as a new payee. Details on your first Verizon bill.</b>";
//var bodyText="In recent days, a data breach has occurred with a major national credit card processor. We have been notified that some FNB Visa&reg; Debit Card customers may be affected. If your card was affected, the following actions will be taken:<br><br><table width='95%' align='center'><tr><td>1.  Lowering daily limits on ATM & purchase transactions</td></td><tr><td>2.  Ordering you a new card which should arrive in 2-3 weeks</td></td><tr><td>3.  Sending you a letter informing you of the actions we are taking</td></td></table><br>Call us at 620-663-1521 during banking hours if you have questions! We appreciate your business and your understanding in this matter.";
//var bodyText="In recent days, a data breach has occurred with a major national credit card processor. We have been notified that some FNB Visa&reg; Debit Card customers may be affected. If your card was affected, the following actions will be taken:<li><ol>Lowering daily limits on ATM & purchase transactions</ol><ol>Ordering you a new card which should arrive in 2-3 weeks</ol><ol>Sending you a letter informing you of the actions we are taking</ol></li>Call us at 620-663-1521 during banking hours if you have questions! We appreciate your business and your understanding in this matter.";
switch(netdate)
{ 
  case "January 19, 2010":
	subject ="Online Banking Balances"; 
	bodyText="Online Banking did not update last night.  Therefore, you may not be able to see all your transactions.  We are working on the issue and hope to have it resolved soon. Thank you!<br><br>";
	break		
  	
  default:
    trueOrFalse = false;
}
	if(trueOrFalse)
	{
		content[index++] ="<table border='1' bordercolor='#000000' align='center' bgcolor='#ffffff' cellpadding='15' width='350' height='300'>";
		content[index++] ="  <tr><td valign='top' align='left'><a href=\"javascript:void('0');\" onclick=\"document.getElementById('onLoadAlert').style.display = 'none'\"><img src='images/close.gif' align='right' border='0'></a>";
		content[index++] ="	<br><br>        <span class='red'>"+ netdate +"</span><br>";
		content[index++] = "<span class='headerLarge'>"+subject+"</span><br><br>";
		content[index++] = "<span class='ficontent'>"+bodyText+" </span><br><br>";
		content[index++] = "<div align=\"center\"><a href=\"javascript:void('0');\" onclick=\"document.getElementById('onLoadAlert').style.display = 'none'\">Close window</a></div></div></td></tr></table></style>";

		document.getElementById("onLoadAlert").innerHTML = content.join("");
		document.getElementById("onLoadAlert").style.display = "block";
		scrollTo(0, 0);
	}
}
//end of file    
