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

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

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

}


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



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


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

//CODE GOES HERE

content[index++] = '<table width="747" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '  <tr> ';
content[index++] = '    <td rowspan="4" width="122" valign="top"><img src="' + swapout[iteratorNum] + '" width="122" height="175"></td>';
content[index++] = '    <td valign="top" background="' + imgdir + 'logobg.gif"><img src="' + imgdir + 'logo.gif" width="241" height="85" alt="The Kearny County Bank"></td>';
content[index++] = '    <td background="' + imgdir + 'logobg.gif" align="right" valign="top"><a href="https://www.kearnycountybank.com/onlineserv/HB/demo.html" target="_new"><img src="' + imgdir + 'demo.gif" width="180" height="27" alt="Online Banking Demo" border="0"></a></td>';
content[index++] = '  </tr>';
content[index++] = '  <tr> ';
content[index++] = '    <td colspan="2" background="' + imgdir + 'urlbg.gif" valign="top" align="right"><img src="' + imgdir + 'url.gif" width="430" height="53" alt="www.kearnycountybank.com"></td>';
content[index++] = '  </tr>';
content[index++] = '  <tr> ';
content[index++] = inc.headergraphic;
content[index++] = '  </tr>';
content[index++] = '  <tr> ';
content[index++] = '    <td colspan="2" bgcolor="#393AA1"><img src="' + imgdir + 'clearpix.gif" width="625" height="9"></td>';
content[index++] = '  </tr>';
content[index++] = '</table>';
content[index++] = '<table width="747" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '  <tr>';
content[index++] = inc.makeMainNav();
content[index++] = '    <td bgcolor="#FFFFFF" align="center" valign="top"> <img src="' + imgdir + 'clearpix.gif" width="625" height="25"><br>';
content[index++] = '      <table width="600" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '        <tr>';
content[index++] = '          <td class="ficontent">';
content[index++] = inc.contentgraphic;
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

//CODE GOES HERE

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

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

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

//CODE GOES HERE

content[index++] = '<td width="122" valign="top"><a href="' + sitedir + 'online.html" onMouseOver="img_act(\'onlinebanking\'); popUp(\'HM_Menu1\',event); window.status=\'Online Banking\'; return true" onMouseOut="img_inact(\'onlinebanking\'); popDown(\'HM_Menu1\');"><img src="' + imgdir + 'nav-onlinebanking-off.gif" width="122" height="25" name="onlinebanking" alt="Online Banking" border="0"></a><br>';
content[index++] = '      <a href="' + sitedir + 'deposit.html" onMouseOver="img_act(\'deposit\'); popUp(\'HM_Menu2\',event); window.status=\'Deposit Services\'; return true" onMouseOut="img_inact(\'deposit\'); popDown(\'HM_Menu2\');"><img src="' + imgdir + 'nav-deposit-off.gif" width="122" height="25" name="deposit" alt="Deposit Services" border="0"></a><br>';
content[index++] = '     <a href="' + sitedir + 'lending.html" onMouseOver="img_act(\'lending\'); popUp(\'HM_Menu3\',event); window.status=\'Lending Services\'; return true" onMouseOut="img_inact(\'lending\'); popDown(\'HM_Menu3\');"><img src="' + imgdir + 'nav-lending-off.gif" width="122" height="25" name="lending" alt="Lending Services" border="0"></a><br>';
content[index++] = '      <a href="' + sitedir + 'kcb.html" onMouseOver="img_act(\'financial\'); popUp(\'HM_Menu4\',event); window.status=\'KCB Financial Services\'; return true" onMouseOut="img_inact(\'financial\'); popDown(\'HM_Menu4\');"><img src="' + imgdir + 'nav-financial-off.gif" width="122" height="25" name="financial" alt="KCB Financial Services" border="0"></a><br>';
content[index++] = '      <a href="' + sitedir + 'calculators.html" onMouseOver="img_act(\'calculators\'); popUp(\'HM_Menu5\',event); window.status=\'Financial Calculators\'; return true" onMouseOut="img_inact(\'calculators\'); popDown(\'HM_Menu5\');"><img src="' + imgdir + 'nav-calculators-off.gif" width="122" height="25" name="calculators" alt="Financial Calculators" border="0"></a><br>';
content[index++] = '      <a href="' + sitedir + 'aboutus.html" onMouseOver="img_act(\'aboutus\'); popUp(\'HM_Menu6\',event); window.status=\'About Us\'; return true" onMouseOut="img_inact(\'aboutus\'); popDown(\'HM_Menu6\');"><img src="' + imgdir + 'nav-aboutus-off.gif" width="122" height="25" name="aboutus" alt="About Us" border="0"></a><br>';
content[index++] = '      <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="122" height="25" name="home" alt="Home" border="0"></a><br>';
content[index++] = '      <img src="' + imgdir + 'nav-bottom.gif" width="122" height="62"><br></td>';
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 = '<td colspan="2" align="right" bgcolor="#BCAB8F"><img src="' + imgdir + 'hed-' + graphic + '.gif" alt="' + alt_tag + '" border="0"></td>';
	}	
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||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++] = '        </tr>';
content[index++] = '      </table>';
content[index++] = '	  </td>';
content[index++] = '  </tr>';
content[index++] = '</table>';
content[index++] = inc.makeFooterLogos();
content.join("");


//CODE GOES HERE

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

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

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

//CODE GOES HERE
var content = new Array();
var index = 0;

if (footer == 1){
content[index++] = '<table width="747" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '  <tr>';
content[index++] = '    <td width="122" valign="bottom"><a href="#"><img src="' + imgdir + 'button-top.gif" width="122" height="21" border="0" alt="Back to Top"></a></td>';
content[index++] = '    <td bgcolor="#FFFFFF" align="center"><img src="' + imgdir + 'clearpix.gif" width="625" height="25"><br>';
content[index++] = '      <img src="' + imgdir + 'address.gif" alt="The Kearny County Bank | 221 N  Main St | Lakin, KS 67860 | 620-355-6222 | fax 620-355-6050"><br>';
content[index++] = '      <table width="500" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '        <tr>';
content[index++] = '          <td width="10">&nbsp;</td>';
content[index++] = '          <td width="56">&nbsp;</td>';
content[index++] = '          <td width="123"><a href="http://www.digitalinsight.com" onclick="return displayThirdPartyAlert(1,this);"><!--[if lt IE 7]><script type="text/javascript" src="https://www.kearnycountybank.com/mstinc/web/js/png.js"></script><![endif]--><img src="https://www.kearnycountybank.com/mstinc/web/images/di_91x22_2c.png" width="91" height="22" border="0" alt="Digital Insight, an Intuit company" /></a></td>';
content[index++] = '          <td width="260" align="center"><!--<a href="' + sitedir + 'deposit_eft.html">Disclosure</a> | --><a href="' + sitedir + 'privacy.html"><b>Privacy</b></a>';
content[index++] = '<!--            | <a href="' + sitedir + 'security.html">Security</a>--></td>';
content[index++] = '        </tr>';
content[index++] = '      </table></td>';
content[index++] = '  </tr>';
content[index++] = '</table>';
}
else{
content[index++] = '<table width="747" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '  <tr>';
      //For Turbo Tax icon on Homepage (TT Icon was moved)
   if(window.homepage)
   {
    content[index++] = '    <td width="122" valign="bottom">';
    //content[index++] = '<a href="http://www.turbotax.intuit.com/welcome/common/landingpage.html?source=kearny" target="_blank"><img src="' + imgdir + 'tt04.gif" width="120" height="54" border="0" alt="Turbo Tax&reg; for the Web(SM)" /></a>';
    content[index++] = '<a href="#"><img src="' + imgdir + 'button-top.gif" width="122" height="21" border="0" alt="Back to Top"></a></td>';
    }
	else
	{
    content[index++] = '    <td width="122" valign="bottom"><a href="#"><img src="' + imgdir + 'button-top.gif" width="122" height="21" border="0" alt="Back to Top"></a></td>';
    }//End of Turbo Tax
content[index++] = '    <td bgcolor="#FFFFFF" align="center"><img src="' + imgdir + 'clearpix.gif" width="625" height="25"><br>';
content[index++] = '      <img src="' + imgdir + 'address.gif" alt="The Kearny County Bank | 221 N  Main St | Lakin, KS 67860 | 620-355-6222 | fax 620-355-6050"><br>';
content[index++] = '      <table width="500" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '        <tr>';
content[index++] = '          <td width="123"><a href="http://www.digitalinsight.com" onclick="return displayThirdPartyAlert(1,this);"><!--[if lt IE 7]><script type="text/javascript" src="https://www.kearnycountybank.com/mstinc/web/js/png.js"></script><![endif]--><img src="https://www.kearnycountybank.com/mstinc/web/images/di_91x22_2c.png" width="91" height="22" border="0" alt="Digital Insight, an Intuit company" /></a></td>';
content[index++] = '          <td width="260" align="center"><!--<a href="' + sitedir + 'deposit_eft.html">Disclosure</a> | --><a href="' + sitedir + 'privacy.html"><b>Privacy</b></a>';
content[index++] = '<!--            | <a href="' + sitedir + 'security.html">Security</a>--></td>';
content[index++] = '          <td width="10"><a href="http://www.hud.gov/" onclick="return displayThirdPartyAlert(1,this);"><img src="' + imgdir + 'ehl.gif" width="62" height="46" border="0" alt="Equal Housing Lender"></a></td>';
content[index++] = '          <td width="56"><a href="http://www.fdic.gov/" onclick="return displayThirdPartyAlert(1,this);"><img src="' + imgdir + 'FDIC_StandardSize.gif" width="57" height="19" border="0" alt="Member FDIC"></a></td>';
content[index++] = '        </tr>';
content[index++] = '      </table></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);
}