oM=new makeCM("oM"); 
oM.resizeCheck=1; 
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)<img src="../images/menu_arrow.gif" width="14" height="10" alt="" border="0">
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.Alpha(opacity=97, finishopacity=75, style=1)"; 
oM.level[1]=new cm_makeLevel(185,25,"clS","clSover",1,1,"clB",0,"right",0,0,imgdir+"menu_arrow.gif",8,9);


/******************************************
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/Bill Pay Info','javascript:void(\'0\');');
		oM.makeMenu('menu1_1_1','menu1_1','First Online',sitedir+'personal_banking/online.html');
		oM.makeMenu('menu1_1_2','menu1_1','Online Bill Pay &amp; Presentment',sitedir+'personal_banking/billpay.html');
	oM.makeMenu('menu1_2','menu1','Rates',sitedir+'investment_products/rates.html');
	oM.makeMenu('menu1_3','menu1','Checking &amp; Savings Accts',sitedir+'personal_banking/checking_savings.html');
	oM.makeMenu('menu1_4','menu1','Premium Pak',sitedir+'personal_banking/premiumpak.html');
	oM.makeMenu('menu1_5','menu1','Visa&reg; Debit/ATM Card',sitedir+'personal_banking/other_debit.html');
	oM.makeMenu('menu1_6','menu1','Investments','javascript:void(\'0\');');
		oM.makeMenu('menu1_6_1','menu1_6','CDs &amp; IRAs ','javascript:void(\'0\');');
			oM.makeMenu('menu1_6_1_1','menu1_6_1','CD &amp; IRA Accounts',sitedir+'investment_products/cd.html');
			oM.makeMenu('menu1_6_1_2','menu1_6_1','CD Specials',sitedir+'investment_products/cd_specials.html');
			oM.makeMenu('menu1_6_1_3','menu1_6_1','Rates',sitedir+'investment_products/rates.html');
	    oM.makeMenu('menu1_6_2','menu1_6','Trust &amp; Investment Services','http://1stwealthmanagement.com/');
		oM.makeMenu('menu1_6_3','menu1_6','Full Service Brokerage Services','http://1stwealthmanagement.com/investment-raymond_james.php');
		oM.makeMenu('menu1_6_4','menu1_6','HSA Accounts',sitedir+'personal_banking/HSA.html');
	oM.makeMenu('menu1_7','menu1','Loans','javascript:void(\'0\');');
		oM.makeMenu('menu1_7_1','menu1_7','Application Form',sitedir+'personal_banking/loan_app.pdf');
		oM.makeMenu('menu1_7_2','menu1_7','Mortgage Lending',sitedir+'personal_banking/loans_realestate.html');
		oM.makeMenu('menu1_7_3','menu1_7','Retail Lending',sitedir+'personal_banking/loans_consumer.html');
	oM.makeMenu('menu1_8','menu1','Overdraft Services','javascript:void(\'0\');');
		oM.makeMenu('menu1_8_1','menu1_8','Ready Reserve',sitedir+'personal_banking/other_ready.html');
		oM.makeMenu('menu1_8_2','menu1_8','Overdraft Funds Transfer',sitedir+'personal_banking/other_fundstransfer.html');
		oM.makeMenu('menu1_8_3','menu1_8','Occasional Overdraft Privilege',sitedir+'personal_banking/other_overdraft.html');
	oM.makeMenu('menu1_9','menu1','Other Products','javascript:void(\'0\');');
	    oM.makeMenu('menu1_9_1','menu1_9','Apply for a Credit Card','javascript:openlink("https://www.yourbankcard.com/welcome/jsp/dynapp/prodlist.jsp?bank=genericagents&agent=584&sub=000");');
		oM.makeMenu('menu1_9_2','menu1_9','DeluxeCard&#8482; Visa&reg; Gift Card',sitedir+'personal_banking/other_giftCard.html');
		oM.makeMenu('menu1_9_3','menu1_9','24 Hour Touch-Tone Banking',sitedir+'personal_banking/other_touchtone.html');
		oM.makeMenu('menu1_9_4','menu1_9','Safe Deposit Boxes',sitedir+'personal_banking/other_safe.html');
	oM.makeMenu('menu1_10','menu1','Identity Theft',sitedir+'personal_banking/identity_theft.html');
	oM.makeMenu('menu1_11','menu1','Useful Links',sitedir+'personal_banking/links.html');
	
oM.makeMenu('menu2');
	oM.makeMenu('menu2_1','menu2','Login','javascript:openCM();');
	oM.makeMenu('menu2_2','menu2','Business Online Banking',sitedir+'business_banking/business_online.html');
	oM.makeMenu('menu2_3','menu2','Business Accounts',sitedir+'business_banking/accounts.html');
	oM.makeMenu('menu2_4','menu2','Cash Management',sitedir+'business_banking/cash_management.html');
	oM.makeMenu('menu2_5','menu2','Loans &amp; Leasing','javascript:void(\'0\');');
		oM.makeMenu('menu2_5_1','menu2_5','Line of Credit',sitedir+'business_banking/loans_main.html#lines');
		oM.makeMenu('menu2_5_2','menu2_5','Term Loan',sitedir+'business_banking/loans_main.html#term');
		oM.makeMenu('menu2_5_3','menu2_5','Business Manager',sitedir+'business_banking/loans_main.html#manager');
		oM.makeMenu('menu2_5_4','menu2_5','Professional Loans',sitedir+'business_banking/loans_main.html#professional');
		oM.makeMenu('menu2_5_5','menu2_5','Real Estate/Construction Financing',sitedir+'business_banking/loans_main.html#realestate');
		oM.makeMenu('menu2_5_6','menu2_5','Agricultural Loans',sitedir+'business_banking/loans_main.html#agricultural');
		oM.makeMenu('menu2_5_7','menu2_5','SBA Loans',sitedir+'business_banking/loans_main.html#sba');
		oM.makeMenu('menu2_5_8','menu2_5','Equipment Leasing Services',sitedir+'business_banking/loans_equipment.html');
		oM.makeMenu('menu2_5_9','menu2_5','Additional Credit Services',sitedir+'business_banking/loans_main.html#additional');
    oM.makeMenu('menu2_6','menu2','Trust &amp; Investment Services','http://1stwealthmanagement.com/');
	oM.makeMenu('menu2_7','menu2','Farm Management Services','http://1stwealthmanagement.com/');
	oM.makeMenu('menu2_8','menu2','Correspondent Banking Services',sitedir+'business_banking/correspondent.html');
	oM.makeMenu('menu2_9','menu2','Useful Links',sitedir+'business_banking/links.html');
	
oM.makeMenu('menu3');
	oM.makeMenu('menu3_1','menu3','CDs &amp; IRAs ','javascript:void(\'0\');');
		oM.makeMenu('menu3_1_1','menu3_1','CD &amp; IRA Accounts',sitedir+'investment_products/cd.html');
		oM.makeMenu('menu3_1_2','menu3_1','CD Specials',sitedir+'investment_products/cd_specials.html');
		oM.makeMenu('menu3_1_3','menu3_1','Rates',sitedir+'investment_products/rates.html');
	oM.makeMenu('menu3_2','menu3','Trust &amp; Investment Services','http://1stwealthmanagement.com/');
    oM.makeMenu('menu3_3','menu3','Full Service Brokerage Services','http://1stwealthmanagement.com/investment-raymond_james.php');
	oM.makeMenu('menu3_4','menu3','HSA Accounts',sitedir+'personal_banking/HSA.html');

//about us menu
oM.makeMenu('menu4');
	oM.makeMenu('menu4_1','menu4','News &amp; Events','javascript:void(\'0\');');
		oM.makeMenu('menu4_1_1','menu4_1',news1,sitedir+'aboutus/news1.html');
		oM.makeMenu('menu4_1_2','menu4_1',news2,sitedir+'aboutus/news2.html');
		oM.makeMenu('menu4_1_3','menu4_1',news3,sitedir+'aboutus/news3.html');
		oM.makeMenu('menu4_1_4','menu4_1',news4,sitedir+'aboutus/news4.html');
		oM.makeMenu('menu4_1_5','menu4_1',news5,sitedir+'aboutus/news5.html');
		oM.makeMenu('menu4_1_6','menu4_1',news6,sitedir+'investment_products/cd_specials.html');
	oM.makeMenu('menu4_2','menu4','Newsletter Archive','http://files.fnbhutch.com/newsletters/index.html');
	oM.makeMenu('menu4_3','menu4','Email Archive','http://files.fnbhutch.com/email/index.html');
	oM.makeMenu('menu4_4','menu4','History',sitedir+'aboutus/history.html');
	oM.makeMenu('menu4_5','menu4','Branch Locations',sitedir+'aboutus/branchlocations.html');
	oM.makeMenu('menu4_6','menu4','Observed Holidays','http://files.fnbhutch.com/help/bankholidays.html');
        oM.makeMenu('menu4_7','menu4','Careers at the First','javascript:void(\'0\');');
                oM.makeMenu('menu4_7_1','menu4_7','Joining the First',sitedir+'aboutus/career_join.html');
                oM.makeMenu('menu4_7_2','menu4_7','Benefits at the First',sitedir+'aboutus/career_benefits.html');
                oM.makeMenu('menu4_7_3','menu4_7','Equal Opportunity Employer',sitedir+'aboutus/career_eoe.html');
                oM.makeMenu('menu4_7_4','menu4_7','Contact Us',sitedir+'aboutus/career_hr.html');
        oM.makeMenu('menu4_8','menu4','Contact Us',sitedir+'aboutus/contactus.html');
	
oM.makeMenu('menu5');
	oM.makeMenu('menu5_1','menu5','Loan',sitedir+'calculators/financial_calculator_loan.html');
	oM.makeMenu('menu5_2','menu5','Loan Comparison',sitedir+'calculators/financial_calculator_loancomp.html');
	oM.makeMenu('menu5_3','menu5','Mortgage',sitedir+'calculators/financial_calculator_mortgage.html');
	oM.makeMenu('menu5_4','menu5','Savings',sitedir+'calculators/financial_calculator_savings.html');
	oM.makeMenu('menu5_5','menu5','Retirement Planning',sitedir+'calculators/financial_calculator_retirement.html');
	
oM.makeMenu('menu6');
	oM.makeMenu('menu6_1','menu6','Banking 101',sitedir+'help/helpBanking.html');
	oM.makeMenu('menu6_2','menu6','Online Banking 101',sitedir+'help/helpIB.html');
	oM.makeMenu('menu6_3','menu6','Bill Pay 101',sitedir+'help/helpBP.html');
	oM.makeMenu('menu6_4','menu6','Security 101',sitedir+'help/helpSecurity.html');
	oM.makeMenu('menu6_5','menu6','Online Banking Help','http://files.fnbhutch.com/help/');

oM.makeMenu('menu7','','',sitedir+'business_banking/farm.html');
	oM.makeMenu('menu7_1','menu7','testing','javascript:void(\'0\');');
	oM.makeMenu('menu7_2','menu7','Item 2','javascript:void(\'0\');');
	oM.makeMenu('menu7_3','menu7','Item 3','javascript:void(\'0\');');
	oM.makeMenu('menu7_4','menu7','Item 4','javascript:void(\'0\');');
	
oM.makeMenu('menu8');
	oM.makeMenu('menu8_1','menu8','Item 1','javascript:void(\'0\');');
	oM.makeMenu('menu8_2','menu8','Item 2','javascript:void(\'0\');');
	oM.makeMenu('menu8_3','menu8','Item 3','javascript:void(\'0\');');
	oM.makeMenu('menu8_4','menu8','Item 4','javascript:void(\'0\');');		
	
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("personalbanking");
var dropmenu2 = new  FindPosition("businessbanking");
var dropmenu3 = new  FindPosition("investment");
var dropmenu4 = new  FindPosition("aboutus");
var dropmenu5 = new  FindPosition("financialcalculators");
var dropmenu6 = new  FindPosition("help");
var dropmenu7 = new  FindPosition("farm");
var dropmenu8 = new  FindPosition("menu8");

function showMenu(menu){
	switch(menu){
		case "menu1":
		oM.m["menu1"].b.moveIt(dropmenu1.xPos+190,dropmenu1.yPos);
		break;
		case "menu2":
		oM.m["menu2"].b.moveIt(dropmenu2.xPos+190,dropmenu2.yPos);
		break;
		case "menu3":
		oM.m["menu3"].b.moveIt(dropmenu3.xPos+190,dropmenu3.yPos);
		break;
		case "menu4":
		oM.m["menu4"].b.moveIt(dropmenu4.xPos+190,dropmenu4.yPos);
		break;
		case "menu5":
		oM.m["menu5"].b.moveIt(dropmenu5.xPos+190,dropmenu5.yPos);
		break;
		case "menu6":
		oM.m["menu6"].b.moveIt(dropmenu6.xPos+190,dropmenu6.yPos);
		break;
		case "menu7":
		oM.m["menu7"].b.moveIt(dropmenu7.xPos+190,dropmenu7.yPos);
		break;
		case "menu8":
		oM.m["menu8"].b.moveIt(dropmenu8.xPos,dropmenu8.yPos+25);
		break;

	}
	oM.showsub(menu);
	
}
//end of file