function writeMainNav()
{
	var content = new Array();
	var index = 0;
	content[index++] = '<table width="164" border="0" cellspacing="0" cellpadding="0">';
	content[index++] = '<tr valign="top">';
	// "name" attributes in img tags act as placeholders for DHTML menus.
	content[index++] = '<td width="164"><a href="onlinebanking.html" onMouseOver="img_act(\'olb\'); window.status=\'Online Banking\'; popUp(\'HM_Menu1\', event); return true;" onMouseOut="img_inact(\'olb\'); popDown(\'HM_Menu1\'); return true;"><img src="../images/nav-olb-off.gif" width="164" height="31" alt="Online Banking" border="0" name="olb"></a><br>';
	content[index++] = '<a href="prodserv.html" onMouseOver="img_act(\'products\'); window.status=\'Products and Services\'; popUp(\'HM_Menu2\', event); return true;" onMouseOut="img_inact(\'products\'); popDown(\'HM_Menu2\'); return true;"><img src="../images/nav-products-off.gif" width="164" height="31" alt="Products and Services" border="0" name="products"></a><br>';
	content[index++] = '<a href="about.html" onMouseOver="img_act(\'about\'); window.status=\'About Us\'; popUp(\'HM_Menu3\', event); return true;" onMouseOut="img_inact(\'about\'); popDown(\'HM_Menu3\'); return true;"><img src="../images/nav-about-off.gif" width="164" height="31" alt="About Us" border="0" name="about"></a><br>';
	content[index++] = '<a href="contact-us.html" onMouseOver="img_act(\'contact\'); window.status=\'Contact Us\'; popUp(\'HM_Menu4\', event); return true;" onMouseOut="img_inact(\'contact\'); popDown(\'HM_Menu4\'); return true;"><img src="../images/nav-contact-off.gif" width="164" height="31" alt="Contact Us" border="0" name="contact"></a><br>';
	content[index++] = '<a href="infodesk.html" onMouseOver="img_act(\'info\'); window.status=\'Information Desk\'; popUp(\'HM_Menu5\', event); return true;" onMouseOut="img_inact(\'info\'); popDown(\'HM_Menu5\'); return true;"><img src="../images/nav-info-off.gif" width="164" height="31" alt="Information Desk" border="0" name="info"></a><br>';
	content[index++] = '<a href="calcs-n-links.html" onMouseOver="img_act(\'calc\'); window.status=\'Calculators & Useful Links\'; popUp(\'HM_Menu6\', event); return true;" onMouseOut="img_inact(\'calc\'); popDown(\'HM_Menu6\'); return true;"><img src="../images/nav-calc-off.gif" width="164" height="31" alt="Calculators & Useful Links" border="0" name="calc"></a><br>';
	content[index++] = '<a href="index.html" onMouseOver="img_act(\'home\'); window.status=\'Home\'; popUp(\'HM_Menu7\', event); return true;" onMouseOut="img_inact(\'home\'); popDown(\'HM_Menu7\'); return true;"><img src="../images/nav-home-off.gif" width="164" height="31" alt="Home" border="0" name="home"></a><br></td>';
	content[index++] = '</tr>';
	content[index++] = '</table>';
	document.writeln(content.join(""));
}

function writeHeader()
{
	var content = new Array();
	var index = 0;
	content[index++] = '<!-- begin logo table -->';
	content[index++] = '<table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff">';
	content[index++] = '<tr valign="top">';
	content[index++] = '<td width="760"><img src="../images/header.gif" width="760" height="79" alt="United National Bank" border="0"></td>';
	content[index++] = '</tr>';
	content[index++] = '</table>';
	content[index++] = '<!-- end logo table -->';
	content[index++] = '<!-- end logo table -->';
	content[index++] = '<!-- begin privacy table -->';
	content[index++] = '<table width="760" cellspacing="0" cellpadding="0" bgcolor="#ffffff" border="0">';
	content[index++] = '<tr valign="top">';
	content[index++] = '<td width="760" align="right" class="privacy"><a href="javascript: popupCentered(\'iba.html\', \'popup\', 800, 500);">Disclosure</a>  |  <a href="privacy.html">Privacy</a>  |  <a href="javascript: popupCentered(\'http://www.diginsite.com/security/\', \'popup\', 800, 600);">Security</a><img src="../images/clearpix.gif" width="25" height="1" alt="" border="0"></td>';
	content[index++] = '</tr>';
	content[index++] = '</table>';
	content[index++] = '<!-- end privacy table -->';
	content[index++] = '<!-- end privacy table -->';
	content[index++] = '<!-- begin header table -->';
	content[index++] = '<table width="760" cellspacing="0" cellpadding="0" bgcolor="#ffffff" border="0">';
	content[index++] = '<tr valign="top">';
	content[index++] = '<td width="190"><img src="../images/clearpix.gif" width="190" height="27" alt="" border="0"></td>';

	// Determine which header image to display.

	var hedimg = "clearpix.gif";
	var altText = "";
	if ("undefined" == typeof(section) || "" == section)
	{
		hedimg = "clearpix.gif";
		altText = "";
	}
	else if ("online-banking" == section)
	{
		hedimg = "hed-onlinebanking.gif";
		altText = "Online Banking";
	}
	else if ("products" == section)
	{
		hedimg = "hed-products.gif";
		altText = "Products & Services";
	}
	else if ("calculators" == section)
	{
		hedimg = "hed-calc.gif";
		altText = "Calculators & Useful Links";
	}
	else if ("about-us" == section)
	{
		hedimg = "hed-aboutus.gif";
		altText = "About Us";
	}
	else if ("contact-us" == section)
	{
		hedimg = "hed-contactus.gif";
		altText = "Contact Us";
	}
	else if ("infodesk" == section)
	{
		hedimg = "hed-infodesk.gif";
		altText = "Information Desk";
	}
	else if ("undefined" != typeof(homepage) && homepage)
	{
		hedimg = "clearpix.gif";
		altText = "";
	}

	content[index++] = '<td width="356"><img src="../images/' + hedimg + '" width="356" height="27" alt="' + altText + '" border="0"></td>';
	content[index++] = '<td width="214"><img src="../images/clearpix.gif" width="214" height="27" alt="" border="0"></td>';
	content[index++] = '</tr>';
	content[index++] = '</table>';
	content[index++] = '<!-- end header table -->';
	content[index++] = '<!-- end header table -->';
	document.writeln(content.join(""));
}

function writeFooter()
{
	var content = new Array();
	var index = 0;
 	content[index++] = '<!-- begin footer table -->';
	content[index++] = '<table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff">';
	content[index++] = '<tr valign="top">';
	content[index++] = '<td width="760" colspan="3"><img src="../images/clearpix.gif" width="760" height="18" alt="" border="0"></td>';
	content[index++] = '</tr>';
	content[index++] = '<tr valign="top">';
	content[index++] = '<td width="191"><img src="../images/footer-transition.gif" width="191" height="65" alt="" border="0"></td>';
	content[index++] = '<td width="380" bgcolor="#9C9C9C" align="center"><img src="../images/footer-address.gif" width="380" height="26" alt="United National Bank  |  702 North 2nd Street  |  Natoma, KS  67651" border="0"><br>';
    if (!window.nologo) {
      	content[index++] = '<a href="javascript: third_party(\'popup_third_party.html?location=http://www.fdic.gov\');"><img src="../images/footer-fdic.gif" width="134" height="39" alt="Member FDIC" border="0"></a><a href="javascript: third_party(\'popup_third_party.html?location=http://www.hud.gov\');"><img src="../images/footer-ehl.gif" width="70" height="39" border="0" alt="Equal Housing Lender"></a><a href="javascript: third_party(\'popup_third_party.html?location=http://www.digitalinsight.com\');"><!--[if lt IE 7]><script type="text/javascript" src="https://www.united-national.org/mstinc/web/js/png.js"></script><![endif]--><img src="https://www.united-national.org/mstinc/web/images/di_140x34_1c_w.png" width="140" height="34" border="0" alt="Digital Insight, an Intuit company" /></a><br></td>';
        }
    else {        
	     content[index++] = '<a href="javascript: third_party(\'popup_third_party.html?location=http://www.digitalinsight.com\');"><!--[if lt IE 7]><script type="text/javascript" src="https://www.united-national.org/mstinc/web/js/png.js"></script><![endif]--><img src="https://www.united-national.org/mstinc/web/images/di_91x22_1c_w.png" width="91" style="margin-bottom:10px;filter:alpha(opacity=50);-moz-opacity:.50;opacity:.50;" height="22" border="0" alt="Digital Insight, an Intuit company" /></a><br></td>';
          }
	content[index++] = '<td width="189" bgcolor="#9C9C9C"><img src="../images/clearpix.gif" width="189" height="65" alt="" border="0"></td>';
	content[index++] = '</tr>';
 	content[index++] = '</table>';
 	content[index++] = '<!-- end footer table -->';
	document.writeln(content.join(""));
}

function writeFooterTrust()
{
	var content = new Array();
	var index = 0;
 	content[index++] = '<!-- begin footer table -->';
	content[index++] = '<table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff">';
	content[index++] = '<tr valign="top">';
	content[index++] = '<td width="760" colspan="3"><img src="../images/clearpix.gif" width="760" height="18" alt="" border="0"></td>';
	content[index++] = '</tr>';
	content[index++] = '<tr valign="top">';
	content[index++] = '<td width="191"><img src="../images/footer-transition.gif" width="191" height="65" alt="" border="0"></td>';
	content[index++] = '<td width="380"  bgcolor="#9C9C9C"><img src="../images/footer-address.gif" width="380" height="26" alt="United National Bank  |  702 North 2nd Street  |  Natoma, KS  67651" border="0"><br>';
	content[index++] = '<img src="../images/clearpix.gif" width="150" height="39" alt="" border="0"><a href="javascript: popupCentered(\'http://www.digitalinsight.com\', \'popup\', 800, 600);"><!--[if lt IE 7]><script type="text/javascript" src="https://www.united-national.org/mstinc/web/js/png.js"></script><![endif]--><img src="https://www.united-national.org/mstinc/web/images/di_91x22_1c_w.png" width="91" style="margin-bottom:10px;filter:alpha(opacity=50);-moz-opacity:.50;opacity:.50;" height="22" border="0" alt="Digital Insight, an Intuit company" /></a><br></td>';
	content[index++] = '<td width="189" bgcolor="#9C9C9C"><img src="../images/clearpix.gif" width="189" height="65" alt="" border="0"></td>';
	content[index++] = '</tr>';
 	content[index++] = '</table>';
 	content[index++] = '<!-- end footer table -->';
	document.writeln(content.join(""));
}

function writeIBlogin()
{
	var content = new Array();
	var index = 0;
	content[index++] = '<img src="../images/login-olb.gif" width="163" height="17" alt="Online Banking" border="0"><br>';
	content[index++] = '<a href="https://www.united-national.org/onlineserv/HB/Signon.cgi" target="_blank"><img src="../images/login-login.gif" width="163" height="20" alt="Login to My Account" border="0"></a><br>';
	content[index++] = '<a href="https://www.united-national.org/onlineserv/HB/demo.html" target="_blank"><img src="../images/login-demo.gif" width="67" height="20" alt="Demo" border="0"></a><a href="faq-internetbanking.html"><img src="../images/login-moreinfo.gif" width="96" height="20" alt="More Info" border="0"></a><br>';
	document.writeln(content.join(""));
}
