var newH = 36;
if(document.layers){
	document.write('<style>.clS,.clSover{border: 0px;}</style>');
	newH += 1;
}

oM=new makeCM("oM"); 
oM.resizeCheck=0; 
oM.rows=1;  
oM.onlineRoot=""
oM.offlineRoot=""
oM.pxBetween=0; 
oM.fillImg=imgdir+"clearpix.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="clB";
oM.barBorderX=0; 
oM.barBorderY=0; 
db="<img src='"+imgdir+"clearpix.gif' width='6' height='1' border='0' alt='' />";

//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,"clS","clS",0,0,"clB",0,"bottom",0,0,0,0,0);
oM.level[0].filter="PROGID:DXImageTransform.Microsoft.Alpha(opacity=90, finishopacity=90, style=1)"; 
oM.level[0].roundBorder=1;
oM.level[1]=new cm_makeLevel(160,21,"clS","clSover",0,0,"clB",0,"right",0,0,imgdir+"tri.gif",10,10);


/******************************************
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',db+'Loans',sitedir+'personal_loans.html');
	oM.makeMenu('menu1_2','menu1',db+'Checking Accounts',sitedir+'personal_checking.html');
	oM.makeMenu('menu1_3','menu1',db+'Savings Accounts',sitedir+'personal_savings.html');
	oM.makeMenu('menu1_4','menu1',db+'Other Services',sitedir+'personal_other.html');
	oM.makeMenu('menu1_5','menu1',db+'Internet Banking',sitedir+'personal_ib.html');
	oM.makeMenu('menu1_6','menu1',db+'Account Requirements',sitedir+'personal_requirements.html');	

oM.makeMenu('menu2');
	oM.makeMenu('menu2_1','menu2',db+'Commercial Loans',sitedir+'business_loans.html');
	oM.makeMenu('menu2_2','menu2',db+'Business Checking Accounts',sitedir+'business_checking.html');
	oM.makeMenu('menu2_3','menu2',db+'Merchant Services',sitedir+'business_merchant.html');
	oM.makeMenu('menu2_4','menu2',db+'Account Requirements',sitedir+'business_requirements.html');
	oM.makeMenu('menu2_5','menu2',db+'Classic Cash Management<br />'+db+'Online',sitedir+'business_cm.html','','',newH);
	
oM.makeMenu('menu3');
	oM.makeMenu('menu3_1','menu3',db+'About Us',sitedir+'ibr.html');
	oM.makeMenu('menu3_2','menu3',db+'Hours & Locations',sitedir+'hours.html#ibr');
	oM.makeMenu('menu3_3','menu3',db+'Personal Banking Login','https://www.ibraton.com/onlineserv/HB','_blank');		

oM.makeMenu('menu4');
	oM.makeMenu('menu4_1','menu4',db+'About Us',sitedir+'fasb.html');
	oM.makeMenu('menu4_2','menu4',db+'Hours & Locations',sitedir+'hours.html#fasb');
	oM.makeMenu('menu4_3','menu4',db+'Personal Banking Login','https://www.farmersandstockmensbank.com/onlineserv/HB','_blank');	
	
oM.makeMenu('menu5');
	oM.makeMenu('menu5_1','menu5',db+'Loan Calculator',sitedir+'calculators_loan.html');
	oM.makeMenu('menu5_2','menu5',db+'Retirement Calculator',sitedir+'calculators_retirement.html');
/*	oM.makeMenu('menu5_3','menu5',db+'Loan Comparison Calculator',sitedir+'calculators_loancomp.html');*/
	oM.makeMenu('menu5_3','menu5',db+'Mortgage Calculator',sitedir+'calculators_mortgage.html');
	oM.makeMenu('menu5_4','menu5',db+'Savings Calculator',sitedir+'calculators_savings.html');

oM.makeMenu('menu6');
	oM.makeMenu('menu6_1','menu6',db+'Frequently Asked Banking<br />'+db+'Questions',sitedir+'faqs_banking.html','','',newH);
	oM.makeMenu('menu6_2','menu6',db+'Frequently Asked Bill Pay<br />'+db+'Questions',sitedir+'faqs_bp.html','','',newH);
	oM.makeMenu('menu6_3','menu6',db+'Frequently Asked Internet<br />'+db+'Banking Questions',sitedir+'faqs_ib.html','','',newH);

oM.makeMenu('menu7');
	oM.makeMenu('menu7_1','menu7',db+'Internet Explorer','javascript:showWarning("http://www.microsoft.com/windows/ie/downloads/default.mspx");');
	oM.makeMenu('menu7_2','menu7',db+'Netscape','javascript:showWarning("http://channels.netscape.com/ns/browsers/default.jsp");');
	oM.makeMenu('menu7_3','menu7',db+'Adobe','javascript:showWarning("http://www.adobe.com/support/downloads/main.html");');
		
oM.makeMenu('menu8');
	oM.makeMenu('menu8_1','menu8',db+'Internet Security Tips',sitedir+'security_tips.html');
	oM.makeMenu('menu8_2','menu8',db+'Identity Theft',sitedir+'security_theft.html');
	
oM.makeMenu('menu9');
	oM.makeMenu('menu9_1','menu9',db+'International Bank','');	    	
		oM.makeMenu('menu9_1_1','menu9_1',db+'Email','https://www.classicbanking.com/Forms/OnlineForm.cgi?form=guestbook_app&onweb=true&branch=ibr');	
	  oM.makeMenu('menu9_1_2','menu9_1',db+'575-445-2321','');	
		
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("personal");
var dropmenu2 = new  FindPosition("business");
var dropmenu3 = new  FindPosition("international");
var dropmenu4 = new  FindPosition("farmers");
var dropmenu5 = new  FindPosition("calc");

function showMenu(menu){
	switch(menu){
		case "menu1":
		oM.m["menu1"].b.moveIt(dropmenu1.xPos+141,dropmenu1.yPos+6);
		break;
		case "menu2":
		oM.m["menu2"].b.moveIt(dropmenu2.xPos+141,dropmenu2.yPos+6);
		break;
		case "menu3":
		oM.m["menu3"].b.moveIt(dropmenu3.xPos+141,dropmenu3.yPos+6);
		break;
		case "menu4":
		oM.m["menu4"].b.moveIt(dropmenu4.xPos+141,dropmenu4.yPos+6);
		break;
		case "menu5":
		oM.m["menu5"].b.moveIt(dropmenu5.xPos+141,dropmenu5.yPos+6);
		break;
		case "menu6":
		oM.m["menu6"].b.moveIt(dropmenu5.xPos+503,dropmenu5.xPos+81);
		break;		
		case "menu7":
		oM.m["menu7"].b.moveIt(dropmenu5.xPos+545,dropmenu5.xPos+81);
		break;		
		case "menu8":
		oM.m["menu8"].b.moveIt(dropmenu5.xPos+590,dropmenu5.xPos+81);
		break;	
		case "menu9":
		oM.m["menu9"].b.moveIt(dropmenu5.xPos+428,dropmenu5.xPos+81);
		break;						
	}
	oM.showsub(menu);
}
//end of file
