oM=new makeCM("oM"); 
oM.resizeCheck=0; 
oM.rows=1;  
oM.onlineRoot=""
oM.offlineRoot=""
oM.pxBetween=0; 
oM.fillImg=imgdir+"cm_fill.gif"; 
oM.fromTop=0; 
oM.fromLeft=0; 
oM.wait=300; 
oM.zIndex=400;
oM.useBar=0; 
oM.barWidth="0"; 
oM.barHeight="menu"; 
oM.barX=0;
oM.barY="menu"; 
oM.barClass="clBar";
oM.barBorderX=0; 
oM.barBorderY=0;

//oM.level[0]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)
oM.level[0]=new cm_makeLevel(0,0,"clT","clTover",0,0,"clB",0,"bottom",0,0,0,0,0);
oM.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)" 
oM.level[1]=new cm_makeLevel(175,25,"clS","clSover",1,1,"clB",0,"right",0,0,imgdir+"menu_arrow.gif",8,8);



/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
oM.makeMenu('menu1');
	oM.makeMenu('menu1_1','menu1','Online Banking',sitedir+'electronic_olb.html');
	oM.makeMenu('menu1_2','menu1','Online Bill Pay',sitedir+'electronic_olb.html');
	oM.makeMenu('menu1_3','menu1','Telephone Banking',sitedir+'electronic_phone.html');
	oM.makeMenu('menu1_4','menu1','Pay your VISA bill',sitedir+'lending_credit.html');
	oM.makeMenu('menu1_5','menu1','Quick Pay - ACH Origination',sitedir+'electronic_quick.html');
	oM.makeMenu('menu1_6','menu1','Check Reorder',sitedir+'electronic_check.html');
	oM.makeMenu('menu1_7','menu1','Financial Calculators',sitedir+'calculators.html');
		oM.makeMenu('menu1_7_1','menu1_7','Kids','javascript:showCalc("'+sitedir+'calculator_kids.html")');
		oM.makeMenu('menu1_7_2','menu1_7','Loan','javascript:showCalc("'+sitedir+'calculator_loan.html")');
		oM.makeMenu('menu1_7_3','menu1_7','Loan Comparison','javascript:showCalc("'+sitedir+'calculator_loancomp.html")');
		oM.makeMenu('menu1_7_4','menu1_7','Mortgage','javascript:showCalc("'+sitedir+'calculator_mortgage.html")');
		oM.makeMenu('menu1_7_5','menu1_7','Retirement','javascript:showCalc("'+sitedir+'calculator_retirement.html")');
		oM.makeMenu('menu1_7_6','menu1_7','Savings','javascript:showCalc("'+sitedir+'calculator_savings.html")');
 		oM.makeMenu('menu1_7_7','menu1_7','More','javascript:javascript:open_link(\'http://www.mortgage-calc.com/index.html\');');
	
oM.makeMenu('menu2');
	oM.makeMenu('menu2_1','menu2','Instant Cash & Check Card',sitedir+'accounts_instant.html ');
	oM.makeMenu('menu2_2','menu2','Checking Accounts',sitedir+'accounts_checking.html ');
	oM.makeMenu('menu2_3','menu2','Deposit and Savings Accounts',sitedir+'accounts_deposit.html');
	oM.makeMenu('menu2_4','menu2','Individual Retirement Accounts',sitedir+'accounts_ira.html');
	oM.makeMenu('menu2_5','menu2','Prime Timer&lsquo;s Club',sitedir+'accounts_prime.html');
	oM.makeMenu('menu2_6','menu2','Financial Calculators',sitedir+'calculators.html');
		oM.makeMenu('menu2_6_1','menu2_6','Kids','javascript:showCalc("'+sitedir+'calculator_kids.html")');
		oM.makeMenu('menu2_6_2','menu2_6','Loan','javascript:showCalc("'+sitedir+'calculator_loan.html")');
		oM.makeMenu('menu2_6_3','menu2_6','Loan Comparison','javascript:showCalc("'+sitedir+'calculator_loancomp.html")');
		oM.makeMenu('menu2_6_4','menu2_6','Mortgage','javascript:showCalc("'+sitedir+'calculator_mortgage.html")');
		oM.makeMenu('menu2_6_5','menu2_6','Retirement','javascript:showCalc("'+sitedir+'calculator_retirement.html")');
		oM.makeMenu('menu2_6_6','menu2_6','Savings','javascript:showCalc("'+sitedir+'calculator_savings.html")');
 		oM.makeMenu('menu2_6_7','menu2_6','More','javascript:javascript:open_link(\'http://www.mortgage-calc.com/index.html\');');
 
oM.makeMenu('menu3');
	oM.makeMenu('menu3_1','menu3','Loans Offered',sitedir+'lending_loans.html');
	oM.makeMenu('menu3_2','menu3','Ready Reserve / Lines of Credit',sitedir+'lending_reserve.html');
	oM.makeMenu('menu3_3','menu3','Credit Cards',sitedir+'lending_credit.html');
	oM.makeMenu('menu3_4','menu3','Financial Calculators',sitedir+'calculators.html');
		oM.makeMenu('menu3_4_1','menu3_4','Kids','javascript:showCalc("'+sitedir+'calculator_kids.html")');
		oM.makeMenu('menu3_4_2','menu3_4','Loan','javascript:showCalc("'+sitedir+'calculator_loan.html")');
		oM.makeMenu('menu3_4_3','menu3_4','Loan Comparison','javascript:showCalc("'+sitedir+'calculator_loancomp.html")');
		oM.makeMenu('menu3_4_4','menu3_4','Mortgage','javascript:showCalc("'+sitedir+'calculator_mortgage.html")');
		oM.makeMenu('menu3_4_5','menu3_4','Retirement','javascript:showCalc("'+sitedir+'calculator_retirement.html")');
		oM.makeMenu('menu3_4_6','menu3_4','Savings','javascript:showCalc("'+sitedir+'calculator_savings.html")');
 		oM.makeMenu('menu3_4_7','menu3_4','More','javascript:javascript:open_link(\'http://www.mortgage-calc.com/index.html\');');
	oM.makeMenu('menu3_5','menu3','Free Credit Reports',sitedir+'account_disclosures_creditreport.html');
	    
oM.makeMenu('menu4');
	oM.makeMenu('menu4_1','menu4','Frequently Asked Questions',sitedir+'faq.html ');
		oM.makeMenu('menu4_1_1','menu4_1','Banking FAQs',sitedir+'faq-banking.html ');
		oM.makeMenu('menu4_1_2','menu4_1','Internet Banking FAQs',sitedir+'faq-internetbanking.html');
		oM.makeMenu('menu4_1_3','menu4_1','Bill Pay FAQs',sitedir+'faq-billpay.html');
		oM.makeMenu('menu4_1_4','menu4_1','Security Tips',sitedir+'faq-securitytips.html');
	oM.makeMenu('menu4_2','menu4','Financial Calculators',sitedir+'calculators.html');
		oM.makeMenu('menu4_2_1','menu4_2','Kids','javascript:showCalc("'+sitedir+'calculator_kids.html")');
		oM.makeMenu('menu4_2_2','menu4_2','Loan','javascript:showCalc("'+sitedir+'calculator_loan.html")');
		oM.makeMenu('menu4_2_3','menu4_2','Loan Comparison','javascript:showCalc("'+sitedir+'calculator_loancomp.html")');
		oM.makeMenu('menu4_2_4','menu4_2','Mortgage','javascript:showCalc("'+sitedir+'calculator_mortgage.html")');
		oM.makeMenu('menu4_2_5','menu4_2','Retirement','javascript:showCalc("'+sitedir+'calculator_retirement.html")');
		oM.makeMenu('menu4_2_6','menu4_2','Savings','javascript:showCalc("'+sitedir+'calculator_savings.html")');
 		oM.makeMenu('menu4_2_7','menu4_2','More','javascript:javascript:open_link(\'http://www.mortgage-calc.com/index.html\');');
		
oM.makeMenu('menu5');
	oM.makeMenu('menu5_1','menu5','President&lsquo;s Welcome',sitedir+'about_welcome.html ');
	oM.makeMenu('menu5_2','menu5','History &amp; Mission Statement',sitedir+'about_history.html');
	oM.makeMenu('menu5_3','menu5','Community Corner','javascript:void("0");');
		oM.makeMenu('menu5_3_1','menu5_3','Milaca Community Bulletin Board',sitedir+'about_milaca.html');
		oM.makeMenu('menu5_3_2','menu5_3','Isle Community Bulletin',sitedir+'about_isle.html ');
		oM.makeMenu('menu5_3_3','menu5_3','Gilman Community Bulletin',sitedir+'about_gilman.html ');

oM.makeMenu('menu6');
	oM.makeMenu('menu6_1','menu6','Hours and Locations',sitedir+'contact_locations.html');
	oM.makeMenu('menu6_2','menu6','Email Us','javascript:open_apps(\'email_app\');');
	oM.makeMenu('menu6_3','menu6','ATM Locations',sitedir+'contact_atm.html');
		
oM.makeMenu('menu7');
	oM.makeMenu('menu7_1','menu7','AOL Users','aol.html');
	oM.makeMenu('menu7_2','menu7','Reset Password','javascript:open_window(\'https://www.fnbmilaca.com/onlineserv/HB/ForgottenPW.html\');');
	oM.makeMenu('menu7_3','menu7','Security Info','javascript:open_window(\'security_site/index.html\');');
	oM.makeMenu('menu7_4','menu7','Difficulties Logging On','javascript:open_window(\'login_help.html\');');
	oM.makeMenu('menu7_5','menu7','Internet Banking FAQs','javascript:open_window(\'http://www.fnbmilaca.com/site/faq-internetbanking.html\');');

oM.makeMenu('menu8');
	oM.makeMenu('menu8_1','menu8','About Us',sitedir+'about.html');
	oM.makeMenu('menu8_2','menu8','Contact Us',sitedir+'contact.html');
	oM.makeMenu('menu8_3','menu8','Privacy Policy',sitedir+'account_disclosures_privacy.html');
	oM.makeMenu('menu8_4','menu8','Site Map',sitedir+'sitemap.html');

oM.menuPlacement=new Array(0);
oM.construct();

function FindPosition(image_name){
    if(!document.images[image_name]){
        return null;
    }
    this.image_name = image_name;
    this.xPos = 500;
    this.yPos = 500;
    this.ref_image = document.images[image_name];
    this.getRealLeft = getRealLeft;
    this.getRealTop = getRealTop;
    this.getRealLeft();
    this.getRealTop();
}

function getRealLeft(move) {
   if(!move){
        move = 0;
    }
   if(document.layers){
     this.xPos = this.ref_image.x + move;    
     return this.xPos;
   }
	this.xPos = this.ref_image.offsetLeft;
	tempEl = this.ref_image.offsetParent;
  	while (tempEl != null) {
  		this.xPos += tempEl.offsetLeft;
  		tempEl = tempEl.offsetParent;
  	}
    this.xPos = this.xPos + move;
	return this.xPos;
}

function getRealTop(move) {
    if(!move){
        move = 0;
    }
    if(document.layers){
     this.yPos = this.ref_image.y + move; 
     return this.yPos
   }
	this.yPos = this.ref_image.offsetTop;
	tempEl = this.ref_image.offsetParent;
	while (tempEl != null) {
  		this.yPos += tempEl.offsetTop;
  		tempEl = tempEl.offsetParent;
  	}
    this.yPos = this.yPos + move;
	return this.yPos;
}

var dropmenu1 = new  FindPosition("electronic");
var dropmenu2 = new  FindPosition("accounts");
var dropmenu3 = new  FindPosition("lending");
var dropmenu4 = new  FindPosition("help");
var dropmenu5 = new  FindPosition("aboutus");
var dropmenu6 = new  FindPosition("contactus");
var dropmenu7 = new  FindPosition("more");
var dropmenu8 = new  FindPosition("home");

function showMenu(menu){
	switch(menu){
		case "menu1":
		oM.m["menu1"].b.moveIt(dropmenu1.xPos+171,dropmenu1.yPos);
		break;
		case "menu2":
		oM.m["menu2"].b.moveIt(dropmenu2.xPos+171,dropmenu2.yPos);
		break;
		case "menu3":
		oM.m["menu3"].b.moveIt(dropmenu3.xPos+171,dropmenu3.yPos);
		break;
		case "menu4":
		oM.m["menu4"].b.moveIt(dropmenu4.xPos+171,dropmenu4.yPos);
		break;
		case "menu5":
		oM.m["menu5"].b.moveIt(dropmenu5.xPos,dropmenu5.yPos+15);
		break;
		case "menu6":
		oM.m["menu6"].b.moveIt(dropmenu6.xPos,dropmenu6.yPos+15);
		break;	
		case "menu7":
		oM.m["menu7"].b.moveIt(dropmenu7.xPos-178,dropmenu7.yPos);
		break;
		case "menu8":
		oM.m["menu8"].b.moveIt(dropmenu8.xPos+171,dropmenu8.yPos);
		break;	
	}

	oM.showsub(menu);
}