if(!window.saveInnerWidth) {
  window.onresize = resize;
  window.saveInnerWidth = window.innerWidth;
  window.saveInnerHeight = window.innerHeight;
}

function resize() {
    if (saveInnerWidth < window.innerWidth ||
        saveInnerWidth > window.innerWidth ||
        saveInnerHeight > window.innerHeight ||
        saveInnerHeight < window.innerHeight )
    {
        window.history.go(0);
    }
}

function topNav()
{
var topnav= new Array();
topnav[0]='<a href="' + sitedir + 'infodesk.html" onMouseOver="popUp(\'HM_Menu1\',event); img_act(\'infodesk\'); doublerollover(1,0,0,0,0,0,0); window.status=\'Information Desk\'; return true" onMouseOut="popDown(\'HM_Menu1\'); img_inact(\'infodesk\'); doublerollover(0,0,0,0,0,0,0);"><img src="' + imgdir + 'nav-infodesk-off.gif" name="infodesk" width=83 height=30 alt="Information Desk" border="0"></a>';
topnav[1]='<a href="' + sitedir + 'checking.html" onMouseOver="popUp(\'HM_Menu2\',event); img_act(\'checking\'); doublerollover(0,1,0,0,0,0,0); window.status=\'Checking Accounts\'; return true" onMouseOut="popDown(\'HM_Menu2\'); img_inact(\'checking\'); doublerollover(0,0,0,0,0,0,0);"><img src="' + imgdir + 'nav-checking-off.gif" name="checking" width=83 height=30 alt="Checking Accounts" border="0"></a>';
topnav[2]='<a href="' + sitedir + 'deposit.html" onMouseOver="popUp(\'HM_Menu3\',event); img_act(\'deposit\'); doublerollover(0,0,1,0,0,0,0); window.status=\'Deposit Accounts\'; return true" onMouseOut="popDown(\'HM_Menu3\'); img_inact(\'deposit\'); doublerollover(0,0,0,0,0,0,0);"><img src="' + imgdir + 'nav-deposit-off.gif" name="deposit" width=83 height=30 alt="Deposit Accounts" border="0"></a>';
topnav[3]='<a href="' + sitedir + 'loans.html" onMouseOver="popUp(\'HM_Menu4\',event); img_act(\'loans\'); doublerollover(0,0,0,1,0,0,0); window.status=\'Loans\'; return true" onMouseOut="popDown(\'HM_Menu4\'); img_inact(\'loans\'); doublerollover(0,0,0,0,0,0,0);"><img src="' + imgdir + 'nav-loans-off.gif" name="loans" width=83 height=30 alt="Loans" border="0"></a>';
topnav[4]='<a href="' + sitedir + 'business.html" onMouseOver="popUp(\'HM_Menu14\',event); img_act(\'bs\'); doublerollover(0,0,0,0,1,0,0); window.status=\'Business Services\'; return true" onMouseOut="popDown(\'HM_Menu14\'); img_inact(\'bs\'); doublerollover(0,0,0,0,0,0,0);"><img src="' + imgdir + 'nav-bs-off.gif" name="bs" width=83 height=30 alt="Business Services" border="0"></a>';
topnav[5]='<a href="' + sitedir + 'other_services.html" onMouseOver="popUp(\'HM_Menu5\',event); img_act(\'otherservices\'); doublerollover(0,0,0,0,0,1,0); window.status=\'Online Services\'; return true" onMouseOut="popDown(\'HM_Menu5\'); img_inact(\'otherservices\'); doublerollover(0,0,0,0,0,0,0);"><img src="' + imgdir + 'nav-otherservices-off.gif" name="otherservices" width=66 height=30 alt="Online Services" border="0"></a>';
topnav[6]='<a href="' + sitedir + 'other_students.html" onMouseOver="img_act(\'teen\'); doublerollover(0,0,0,0,0,0,1); window.status=\'Teen Site\'; return true" onMouseOut="img_inact(\'teen\'); doublerollover(0,0,0,0,0,0,0);"><img src="' + imgdir + 'nav-teen-off.gif" name="teen" width="66" height="30" alt="Teen Site" border="0"></a>';

document.write(topnav.join(""));

}



function leftNav()
{
var leftnav= new Array();
leftnav[0]='<img src="' + imgdir + 'nav-bg.gif" width="117" height="7" alt="" border="0"><br><a href="'+sitedir+'other_financial_solutions.html" onMouseOver="popUp(\'HM_Menu6\',event); window.status=\'Investments\'; return true" onMouseOut="popDown(\'HM_Menu6\',event);"><img src="' + imgdir + 'dhtml-dropdown-investments.gif" width="117" height="18" alt="Investments" border="0" name="investments"></a><br>';
leftnav[1]='<img src="' + imgdir + 'nav-bg.gif" width="117" height="7" alt="" border="0"><br><a href="' + sitedir + 'rates.html" onMouseOver="popUp(\'HM_Menu7\',event); window.status=\'Rates\'; return true" onMouseOut="popDown(\'HM_Menu7\',event);"><img src="' + imgdir + 'dhtml-dropdown-rates.gif" width="117" height="18" alt="Rates" border="0" name="rates"></a><br>';
leftnav[2]='<img src="' + imgdir + 'nav-bg.gif" width="117" height="7" alt="" border="0"><br><a href="' + sitedir + 'applications.html" onMouseOver="popUp(\'HM_Menu8\',event); window.status=\'Applications\'; return true" onMouseOut="popDown(\'HM_Menu8\',event);"><img src="' + imgdir + 'dhtml-dropdown-apps.gif" width="117" height="18" alt="Applications" border="0" name="applications"></a><br>';
leftnav[3]='<img src="' + imgdir + 'nav-bg.gif" width="117" height="7" alt="" border="0"><br><!-- <a href="' + sitedir + 'calculators.html" onMouseOver="popUp(\'HM_Menu9\',event); window.status=\'Calculators\'; return true" onMouseOut="popDown(\'HM_Menu9\',event);"> --><a href="http://members.cunamutual.com/calcs/default.asp?SITE=13601221"  onMouseOver="window.status=\'Calculators\'; return true" ><img src="' + imgdir + 'dhtml-dropdown-calcs.gif" width="117" height="18" alt="Calculators" border="0" name="calculators"></a><br><img src="' + imgdir + 'nav-bg.gif" width="117" height="7" alt="" border="0"><br>';

document.write(leftnav.join(""));

}

function leftHomeNav()
{
var lefthomenav= new Array();
lefthomenav[0]='<img src="' + imgdir + 'nav-bg.gif" width="117" height="7" alt="" border="0"><br><a href="'+sitedir+'other_financial_solutions.html" onMouseOver="popUp(\'HM_Menu10\',event); window.status=\'Investments\'; return true" onMouseOut="popDown(\'HM_Menu10\',event);"><img src="' + imgdir + 'dhtml-dropdown-investments.gif" width="117" height="18" alt="Investments" border="0" name="investments"></a><br>';
lefthomenav[1]='<img src="' + imgdir + 'nav-bg.gif" width="117" height="7" alt="" border="0"><br><a href="' + sitedir + 'rates.html" onMouseOver="popUp(\'HM_Menu11\',event); window.status=\'Rates\'; return true" onMouseOut="popDown(\'HM_Menu11\',event);"><img src="' + imgdir + 'dhtml-dropdown-rates.gif" width="117" height="18" alt="Rates" border="0" name="rates"></a><br>';
lefthomenav[2]='<img src="' + imgdir + 'nav-bg.gif" width="117" height="7" alt="" border="0"><br><a href="' + sitedir + 'applications.html" onMouseOver="popUp(\'HM_Menu12\',event); window.status=\'Applications\'; return true" onMouseOut="popDown(\'HM_Menu12\',event);"><img src="' + imgdir + 'dhtml-dropdown-apps.gif" width="117" height="18" alt="Applications" border="0" name="applications"></a><br>';
lefthomenav[3]='<img src="' + imgdir + 'nav-bg.gif" width="117" height="7" alt="" border="0"><br><!-- <a href="' + sitedir + 'calculators.html" onMouseOver="popUp(\'HM_Menu13\',event); window.status=\'Calculators\'; return true" onMouseOut="popDown(\'HM_Menu13\',event);"> --><a href="http://members.cunamutual.com/calcs/default.asp?SITE=13601221" onMouseOver="window.status=\'Calculators\'; return true" ><img src="' + imgdir + 'dhtml-dropdown-calcs.gif" width="117" height="18" alt="Calculators" border="0" name="calculators"></a><br><img src="' + imgdir + 'nav-bg.gif" width="117" height="7" alt="" border="0"><br>';

document.write(lefthomenav.join(""));

}

function writeHomeFooter()
{
	var content= '';
	
	content+= '<table width="100%" border="0" cellspacing="0" cellpadding="0" background="images/footer-bg.gif">';
	content+= '<tr>';
	content+= '<td width="100%" valign="top">';
	content+= '<table width="760" border="0" cellspacing="0" cellpadding="0" background="images/footer-bg.gif">';
	content+= '<tr>';
	content+= '<td width="760" valign="top" align="left">';
	content+= '<a href="#top"><img src="images/footer-backtotop.gif" width="174" height="65" alt="Back to Top" border="0"></a>';
	content+= '<img src="images/clearpix.gif" width="50" height="10" alt="" border="0">';
	content+= '<img src="images/visa-deb-cred.jpg" usemap="#visa" alt="" border="0" align="top">';
	content+= '<map name="visa">';
	content+= '<area shape="rect" coords="0,0,91,25" href="javascript:showWarning(\'https://www.securesuite.net/efunds/registration/welcome.jsp?partner=1323274513cusaprcb26\');">';
	content+= '<area shape="rect" coords="91,0,182,25" href="javascript:showWarning(\'https://secure5.arcot.com/vpas/0360_001_vbvisa/enroll/index.jsp?locale=en_US&bankid=249\');">';
	content+= '</map>';
	
	content+= '<img src="images/clearpix.gif" width="5" height="1" alt="" border="0">';
	content+= '<a href="javascript:showWarning(\'http://www.digitalinsight.com\');"><!--[if lt IE 7]><script type="text/javascript" src="https://www.sofcu.com/mstinc/web/js/png.js"></script><![endif]--><img src="https://www.sofcu.com/mstinc/web/images/di_140x34_2c.png" width="140" height="34" border="0" align="top" alt="Digital Insight, an Intuit company" /></a>';
	content+= '<img src="images/clearpix.gif" width="5" height="1" alt="" border="0">';
	content+= '<img src="images/equalhl.gif" width="41" height="38" alt="Equal Housing" border="0" align="top">';
	content+= '<img src="images/clearpix.gif" width="5" height="1" alt="" border="0">';
	content+= '<!--[if lt IE 7]><script type="text/javascript" src="/mstinc/web/js/png.js"></script><![endif]--><img src="http://www.sofcu.com/mstinc/web/images/ncua_351x32_k_100.png" width="351" height="32" border="0" alt="NCUA" />';
	content+= '<img src="images/clearpix.gif" width="16" height="1" alt="" border="0">';
	content+= '</td>';
	content+= '</tr>';
	content+= '</table>';
	content+= '</td>';
	content+= '</tr>';
	content+= '</table>';
	content+= '';
	
	document.write(content);
}

function writeFooter()
{
	var content= '';
	
	content+= '<table width="100%" border="0" cellspacing="0" cellpadding="0" background="images/footer-bg.gif">';
	content+= '<tr>';
	content+= '<td width="100%" valign="top">';
	content+= '<table width="100%" border="0" cellspacing="0" cellpadding="0" background="images/footer-bg.gif">';
	content+= '<tr>';
	content+= '<td width="100%" valign="top" align="left">';
	content+= '<a href="#top"><img src="images/footer-backtotop.gif" width="174" height="65" alt="Back to Top" border="0"></a>';
	content+= '<img src="images/clearpix.gif" width="50" height="10" alt="" border="0">';
	content+= '<img src="images/visa-deb-cred.jpg" usemap="#visa" alt="" border="0" align="top">';
	content+= '<map name="visa">';
	content+= '<area shape="rect" coords="0,0,91,25" href="javascript:showWarning(\'https://www.securesuite.net/efunds/registration/welcome.jsp?partner=1323274513cusaprcb26\');">';
	content+= '<area shape="rect" coords="91,0,182,25" href="javascript:showWarning(\'https://secure5.arcot.com/vpas/0360_001_vbvisa/enroll/index.jsp?locale=en_US&bankid=249\');">';
	content+= '</map>';
	
	content+= '<img src="images/clearpix.gif" width="5" height="1" alt="" border="0">';
	content+= '<a href="javascript:showWarning(\'http://www.digitalinsight.com\');"><!--[if lt IE 7]><script type="text/javascript" src="https://www.sofcu.com/mstinc/web/js/png.js"></script><![endif]--><img src="https://www.sofcu.com/mstinc/web/images/di_140x34_2c.png" width="140" height="34" border="0" align="top" alt="Digital Insight, an Intuit company" /></a>';
	content+= '<img src="images/clearpix.gif" width="5" height="1" alt="" border="0">';
	content+= '<img src="images/equalhl.gif" width="41" height="38" alt="Equal Housing" border="0" align="top">';
	content+= '<img src="images/clearpix.gif" width="5" height="1" alt="" border="0">';
	content+= '<!--[if lt IE 7]><script type="text/javascript" src="/mstinc/web/js/png.js"></script><![endif]--><img src="http://www.sofcu.com/mstinc/web/images/ncua_351x32_k_100.png" width="351" height="32" border="0" alt="NCUA" align="top"/>';
	content+= '<img src="images/clearpix.gif" width="16" height="1" alt="" border="0">';
	content+= '</td>';
	content+= '</tr>';
	content+= '</table>';
	content+= '</td>';
	content+= '</tr>';
	content+= '</table>';
	content+= '';
	
	document.write(content);
}
