function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function searchLeave(URL,newWin) {
	if(confirm('Adams County Bank has no control over information at any site hyperlinked to from this Site. Adams County Bank makes no representation concerning and is not responsible for the quality, content, nature, or reliability of any hyperlinked site and is providing this hyperlink to you only as a convenience. The inclusion of any hyperlink does not imply any endorsement, investigation, verification or monitoring by Adams County Bank of any information in any hyperlinked site. In no event shall Adams County Bank be responsible for your use of a hyperlinked site.')) 
        {document.forms.search.action=URL;document.forms.search.target=newWin;}
	else {document.forms.search.target="_self";document.location.reload();}
}

function email_disclaimer(mailto_address){
  message  = "Notice: Because there is a small risk that information transmitted\n";
  message += "via Internet email could fall into the wrong hands, we suggest that\n";
  message += "confidential information, such as account numbers or social security\n";
  message += "numbers, not be transmitted via email. Instead, please contact us\n";
  message += "directly at your nearest bank branch. Thank you.";
  
  alert(message);
  window.open('mailto:' + mailto_address);
}

var BANK_NAME = "Adams County Bank";

function external_disclaimer(goHere){
  message  = BANK_NAME + " has no control over information at any site hyperlinked\n";
  message += "to from this Site. " + BANK_NAME + " makes no representation concerning\n";
  message += "and is not responsible for the quality, content, nature, or reliability\n";
  message += "of any hyperlinked site and is providing this hyperlink to you only as a\n";
  message += "convenience. The inclusion of any hyperlink does not imply any endorsement,\n";
  message += "investigation, verification or monitoring by " + BANK_NAME + " of any\n";
  message += "information in any hyperlinked site. In no event shall " + BANK_NAME+ "\n";
  message += "be responsible for your use of a hyperlinked site.";
  
  if (confirm(message)){
	window.open(goHere, '_blank');
	}
}

function modelesswin(url,mwidth,mheight){
if (document.all&&window.print) //if ie5
eval('window.showModelessDialog(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')
else
eval('window.open(url,"cip","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
}

function mmLoadMenus() {
	if (window.mm_menu_0921131415_0) return;
  window.mm_menu_0921131415_0 = new Menu("root",178,18,"Arial, Helvetica, sans-serif",12,"#ffffff","#000000","#003366","#ffffff","left","middle",3,0,1000,0,0,true,true,true,0,true,true);
  mm_menu_0921131415_0.addMenuItem("Checking","location='p_checking.htm'");
  mm_menu_0921131415_0.addMenuItem("Savings","location='p_savings.htm'");
  mm_menu_0921131415_0.addMenuItem("Certificates&nbsp;of&nbsp;Deposit","location='inv_investment.htm#cd'");
  mm_menu_0921131415_0.addMenuItem("Individual&nbsp;Retirement&nbsp;Accounts","location='inv_investment.htm#ira'");
  mm_menu_0921131415_0.addMenuItem("Health&nbsp;Savings&nbsp;Accounts","location='inv_investment.htm#hsa'");
  mm_menu_0921131415_0.addMenuItem("Loans","location='l_loans.htm'");
  mm_menu_0921131415_0.addMenuItem("Debit/ATM&nbsp;Cards","location='s_cards.htm#debit'");
  mm_menu_0921131415_0.addMenuItem("Credit&nbsp;Cards","location='s_cards.htm#credit'");
   mm_menu_0921131415_0.hideOnMouseOut=true;
   mm_menu_0921131415_0.childMenuIcon="images/arrows.gif";
   mm_menu_0921131415_0.menuBorder=1;
   mm_menu_0921131415_0.menuLiteBgColor='#ffffff';
   mm_menu_0921131415_0.menuBorderBgColor='#555555';
   mm_menu_0921131415_0.bgColor='#cccccc';
  
 window.mm_menu_0921132111_1 = new Menu("root",130,18,"Arial, Helvetica, sans-serif",12,"#ffffff",
 "#000000","#003366","#ffffff","left","middle",3,0,1000,0,0,true,true,true,0,true,true);
  mm_menu_0921132111_1.addMenuItem("Checking","location='b_checking.htm'");
  mm_menu_0921132111_1.addMenuItem("Savings","location='b_savings.htm'");
  mm_menu_0921132111_1.addMenuItem("Certificates&nbsp;of&nbsp;Deposit","location='inv_investment.htm#cd'");
  mm_menu_0921132111_1.addMenuItem("Loans","location='l_loans.htm'");
  mm_menu_0921132111_1.addMenuItem("Debit/ATM&nbsp;Cards","location='s_cards.htm#debit'");
  mm_menu_0921132111_1.addMenuItem("Credit&nbsp;Cards","location='s_cards.htm#credit'");
  mm_menu_0921132111_1.addMenuItem("Merchant&nbsp;Services","location='s_cards.htm#merchant'");
   mm_menu_0921132111_1.hideOnMouseOut=true;
   mm_menu_0921132111_1.menuBorder=1;
   mm_menu_0921132111_1.menuLiteBgColor='#ffffff';
   mm_menu_0921132111_1.menuBorderBgColor='#555555';
   mm_menu_0921132111_1.bgColor='#cccccc';
  window.mm_menu_0921132452_2 = new Menu("root",77,18,"Arial, Helvetica, sans-serif",12,"#ffffff","#000000","#003366","#ffffff","left","middle",3,0,1000,0,0,true,true,true,0,true,true);
  mm_menu_0921132452_2.addMenuItem("Consumer","location='l_loans.htm#consumer'");
  mm_menu_0921132452_2.addMenuItem("Real&nbsp;Estate","location='l_loans.htm#real'");
  mm_menu_0921132452_2.addMenuItem("Commercial","location='l_loans.htm#commercial'");
  mm_menu_0921132452_2.addMenuItem("Agricultural","location='l_loans.htm#ag'");
   mm_menu_0921132452_2.hideOnMouseOut=true;
   mm_menu_0921132452_2.menuBorder=1;
   mm_menu_0921132452_2.menuLiteBgColor='#ffffff';
   mm_menu_0921132452_2.menuBorderBgColor='#555555';
   mm_menu_0921132452_2.bgColor='#cccccc';
  window.mm_menu_0921132802_3 = new Menu("root",178,18,"Arial, Helvetica, sans-serif",12,"#ffffff","#000000","#003366","#ffffff","left","middle",3,0,1000,0,0,true,true,true,0,true,true);
  mm_menu_0921132802_3.addMenuItem("ACB&nbsp;Group","location=\"javascript:external_disclaimer('http://www.ACBgroupsa.com');\"");
  mm_menu_0921132802_3.addMenuItem("Certificates&nbsp;of&nbsp;Deposit","location='inv_investment.htm#cd'");
  mm_menu_0921132802_3.addMenuItem("Money&nbsp;Market","location='inv_investment.htm#mm'");
  mm_menu_0921132802_3.addMenuItem("Individual&nbsp;Retirement&nbsp;Accounts","location='inv_investment.htm#ira'");
  mm_menu_0921132802_3.addMenuItem("Health&nbsp;Savings&nbsp;Accounts","location='inv_investment.htm#hsa'");
   mm_menu_0921132802_3.hideOnMouseOut=true;
   mm_menu_0921132802_3.menuBorder=1;
   mm_menu_0921132802_3.menuLiteBgColor='#ffffff';
   mm_menu_0921132802_3.menuBorderBgColor='#555555';
   mm_menu_0921132802_3.bgColor='#cccccc';
  window.mm_menu_0921132856_4 = new Menu("root",150,18,"Arial, Helvetica, sans-serif",12,"#ffffff","#000000","#003366","#ffffff","left","middle",3,0,1000,0,0,true,true,true,0,true,true);
  mm_menu_0921132856_4.addMenuItem("Rates","location='fees.htm#rates'");
  mm_menu_0921132856_4.addMenuItem("Service&nbsp;Fee&nbsp;Schedule","location='fees.htm#service'");
  mm_menu_0921132856_4.addMenuItem("ATM&frasl;VISA Check Card Fees","location='fees.htm#atm'");
  mm_menu_0921132856_4.addMenuItem("Special&nbsp;Service&nbsp;Fees","location='fees.htm#special'");
  mm_menu_0921132856_4.addMenuItem("Safe&nbsp;Deposit&nbsp;Boxes","location='fees.htm#safe'");
   mm_menu_0921132856_4.hideOnMouseOut=true;
   mm_menu_0921132856_4.menuBorder=1;
   mm_menu_0921132856_4.menuLiteBgColor='#ffffff';
   mm_menu_0921132856_4.menuBorderBgColor='#555555';
   mm_menu_0921132856_4.bgColor='#cccccc';
  window.mm_menu_0921133328_7 = new Menu("root",185,18,"Arial, Helvetica, sans-serif",12,"#ffffff","#000000","#003366","#ffffff","left","middle",3,0,1000,0,0,true,true,true,0,true,true);
  mm_menu_0921133328_7.addMenuItem("Education","location='links.htm#education'");
  mm_menu_0921133328_7.addMenuItem("Local&nbsp;&amp;&nbsp;Regional&nbsp;News","location='links.htm#news'");
  mm_menu_0921133328_7.addMenuItem("Financial&nbsp;Resources","location='links.htm#financial'");
  mm_menu_0921133328_7.addMenuItem("Agricultural&nbsp;&amp;&nbsp;Market&nbsp;Information","location='links.htm#ag'");
  mm_menu_0921133328_7.addMenuItem("Searches","location='links.htm#searches'");
   mm_menu_0921133328_7.hideOnMouseOut=true;
   mm_menu_0921133328_7.menuBorder=1;
   mm_menu_0921133328_7.menuLiteBgColor='#ffffff';
   mm_menu_0921133328_7.menuBorderBgColor='#555555';
   mm_menu_0921133328_7.bgColor='#cccccc';

  mm_menu_0921133328_7.writeMenus();
} // mmLoadMenus()

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
