var timer;
NS4=(document.layers);
IE4=(document.all);

layerText=new Array(
//home
'<table border="0" cellpadding="0" cellspacing="0" width="770"><tr><td align="center" class="subnav" width="770"><a href="'+dir+'home/hours_locations.html" class="subnav" target="content">Hours &amp; Locations</a> <span class="divider">|</span> <a href="'+dir+'home/hours_locations.html#our_communities" class="subnav" target="content">Our Communities</a> <span class="divider">|</span> <a href="'+dir+'home/employment.html" class="subnav" target="content">Employment Information</a> <span class="divider">|</span> <a href="http://www.recreationconnection.com" class="subnav" target="_blank">Recreation Connection</a> <span class="divider">|</span> <a href="'+dir+'memberinfo/fees_charges.html" class="subnav" target="content">Fees &amp; Charges</a> <span class="divider">|</span> <a href="'+dir+'memberinfo/fees_charges.html#disclosures" class="subnav" target="content">Account Disclosures</a> <span class="divider">|</span> <a href="'+dir+'calcs/index.html" class="subnav" target="content">Calculators</a></td></tr></table>',
//memberinfo
'<table border="0" cellpadding="0" cellspacing="0" width="770"><tr><td align="center" class="subnav" width="770"><a href="'+dir+'memberinfo/join.html" class="subnav" target="content">Who Can Join</a> <span class="divider">|</span> <a href="'+dir+'memberinfo/join.html#howto" class="subnav" target="content">How to Join</a> <span class="divider">|</span> <a href="'+dir+'memberinfo/fees_charges.html" class="subnav" target="content">Fees and Charges</a> <span class="divider">|</span> <a href="'+dir+'memberinfo/fees_charges.html#disclosures" class="subnav" target="content">Account Disclosures</a> <span class="divider">|</span> <a href="'+dir+'home/hours_locations.html" class="subnav" target="content">Hours &amp; Locations</a> <span class="divider">|</span> <a href="'+dir+'home/hours_locations.html#our_communities" class="subnav" target="content">Our Communities</a></td></tr></table>',
//personalbanking
'<table border="0" cellpadding="0" cellspacing="0" width="770"><tr><td align="center" class="subnav" width="770"><a href="'+dir+'personalbanking/onlinebanking.html" class="subnav" target="content">Online Banking</a> <span class="divider">|</span> <a href="'+dir+'personalbanking/checking.html" class="subnav" target="content">Checking</a> <span class="divider">|</span> <a href="'+dir+'personalbanking/savings.html" class="subnav" target="content">Savings</a> <span class="divider">|</span> <a href="'+dir+'personalbanking/investaccts.html" class="subnav" target="content">Investment Accounts</a> <span class="divider">|</span> <a href="'+dir+'personalbanking/clubaccts.html" class="subnav" target="content">Club Accounts</a> <span class="divider">|</span> <a href="http://www.ahfcu.org/prodserv/rates.html" class="subnav" target="content">Rates</a> <span class="divider">|</span> <a href="'+dir+'personalbanking/convserv.html" class="subnav" target="content">Convenience Services</a> <span class="divider">|</span> <a href="'+dir+'personalbanking/directdeposit.html" class="subnav" target="content">Direct Deposit</a> <span class="divider">|</span> <a href="'+dir+'personalbanking/atmvisa.html" class="subnav" target="content">ATM/VISA</a> <span class="divider">|</span> <a href="'+dir+'personalbanking/lendingserv.html" class="subnav" target="content">Lending</a> <span class="divider">|</span> <a href="'+dir+'personalbanking/creditcards.html" class="subnav" target="content">Credit Cards</a></td></tr></table>',
//businessbanking
'<table border="0" cellpadding="0" cellspacing="0" width="770"><tr><td align="center" class="subnav" width="770"><a href="'+dir+'businessbanking/checking.html" class="subnav" target="content">Business Checking</a> <span class="divider">|</span> <a href="'+dir+'businessbanking/mmarket.html" class="subnav" target="content">Business Money Market</a> <span class="divider">|</span> <a href="'+dir+'businessbanking/lending.html" class="subnav" target="content">Business Lending</a> <span class="divider">|</span> <a href="'+dir+'businessbanking/cashmanagement.html" class="subnav" target="content">Online Cash Management</a> <span class="divider">|</span> <a href="'+dir+'businessbanking/investmentserv.html" class="subnav" target="content">Investment Services</a> <span class="divider">|</span> <a href="http://www.ahfcu.org/prodserv/rates.html" class="subnav" target="content">Rates</a> <span class="divider">|</span> <a href="'+dir+'calcs/index.html" class="subnav" target="content">Calculators</a></td></tr></table>',
//insurance
'<table border="0" cellpadding="0" cellspacing="0" width="770"><tr><td align="center" class="subnav" width="770"><a href="'+dir+'home/hours_locations.html" class="subnav" target="content">Hours &amp; Locations</a> <span class="divider">|</span> <a href="'+dir+'home/hours_locations.html#our_communities" class="subnav" target="content">Our Communities</a> <span class="divider">|</span> <a href="'+dir+'calcs/index.html" class="subnav" target="content">Calculators</a></td></tr></table>',
//investments
'<table border="0" cellpadding="0" cellspacing="0" width="770"><tr><td align="center" class="subnav" width="770"><a href="'+dir+'investments/content.html" class="subnav" target="content">Investment Accounts</a> <span class="divider">|</span> <a href="'+dir+'home/hours_locations.html" class="subnav" target="content">Hours &amp; Locations</a> <span class="divider">|</span> <a href="'+dir+'home/hours_locations.html#our_communities" class="subnav" target="content">Our Communities</a> <span class="divider">|</span> <a href="'+dir+'calcs/index.html" class="subnav" target="content">Calculators</a></td></tr></table>',
//loancenter
'<table border="0" cellpadding="0" cellspacing="0" width="770"><tr><td align="center" class="subnav" width="770"><a href="'+dir+'home/hours_locations.html" class="subnav" target="content">Hours &amp; Locations</a> <span class="divider">|</span> <a href="'+dir+'home/hours_locations.html#our_communities" class="subnav" target="content">Our Communities</a> <span class="divider">|</span> <a href="'+dir+'calcs/index.html" class="subnav" target="content">Calculators</a></td></tr></table>',
//autocenter
'<table border="0" cellpadding="0" cellspacing="0" width="770"><tr><td align="center" class="subnav" width="770"><a href="'+dir+'home/hours_locations.html" class="subnav" target="content">Hours &amp; Locations</a> <span class="divider">|</span> <a href="'+dir+'home/hours_locations.html#our_communities" class="subnav" target="content">Our Communities</a> <span class="divider">|</span> <a href="'+dir+'calcs/index.html" class="subnav" target="content">Calculators</a></td></tr></table>',
//kidscorner
'<table border="0" cellpadding="0" cellspacing="0" width="770"><tr><td align="center" class="subnav" width="770"><a href="'+dir+'kidscorner/content.html" class="subnav" target="content">Penny\'s Pals</a> <span class="divider">|</span> <a href="'+dir+'kidscorner/content.html#links" class="subnav" target="content">Fun Links</a> <span class="divider">|</span> <a href="'+dir+'kidscorner/content.html#teenclub" class="subnav" target="content">Teen Club</a> <span class="divider">|</span> <a href="'+dir+'home/hours_locations.html" class="subnav" target="content">Hours &amp; Locations</a> <span class="divider">|</span> <a href="'+dir+'home/hours_locations.html#our_communities" class="subnav" target="content">Our Communities</a> <span class="divider">|</span> <a href="'+dir+'calcs/index.html" class="subnav" target="content">Calculators</a></td></tr></table>'
);

textStyle = '<style type="text/css">';
textStyle += '.swaptext {';
textStyle += 'position:absolute;';
textStyle += 'top:94;';
textStyle += 'left:-1;';
textStyle += 'visibility:hidden;';
textStyle += '}';
textStyle += '</style>';
document.write(textStyle);

for (i=0;i<layerText.length;++i) {
  eval("text"+i+"='<div id=\"swaptext'+i+'\" class=\"swaptext\">'+layerText[i]+'</div>'");
  document.write(eval("text"+i));
}

function hideText(n) {
  if (NS4) {
    for (i=0;i<layerText.length;++i) {
      if (i!=n)	document.layers["swaptext"+i].visibility="hide";
	}
  }
  if (IE4) {
    for (i=0;i<layerText.length;++i) {
      if (i!=n) document.all["swaptext"+i].style.visibility="hidden";
    }
  }
  clearTimeout(timer);
}

function showText(n) {
  if (NS4) {
    document.layers["swaptext"+n].visibility="show";
  }
  if (IE4) {
    document.all["swaptext"+n].style.visibility="visible";
  }
  
  timer = setTimeout("resetText()", 10000);
}

function resetText() {
	hideText(defaultText);
	showText(defaultText);
}

if (NS4) {
  origWidth=innerWidth;
  origHeight=innerHeight;
  onresize=DHTMLfix;
}

function DHTMLfix() {
	if (origWidth != innerWidth || origHeight != innerHeight)
		location.reload();
}

