var newH = 38;
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=500; 
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='3' 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,"","",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[1]=new cm_makeLevel(140,22,"item_off","item_on",0,0,"clB",0,"right",0,0,imgdir+"tri.gif",8,8);
oM.level[0].roundBorder=1;

/******************************************
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', 'Mortgage Lending', sitedir+'products_mortgage.html');
		oM.makeMenu('menu1_1_1', 'menu1_1', 'Fixed Rate Loans', sitedir+'products_mortgage_fixed.html');
		oM.makeMenu('menu1_1_2', 'menu1_1', 'Adjustable Rate loans', sitedir+'products_mortgage_adjustable.html');
		oM.makeMenu('menu1_1_3', 'menu1_1', 'Construction Loans', sitedir+'products_mortgage_construction.html');
		oM.makeMenu('menu1_1_4', 'menu1_1', 'First-Time Homebuyers', sitedir+'products_mortgage_firsttime.html');
		oM.makeMenu('menu1_1_5', 'menu1_1', 'Bi-Weekly Loans', sitedir+'products_mortgage_biweekly.html');
		oM.makeMenu('menu1_1_6', 'menu1_1', 'Mortgage Tools', sitedir+'products_mortgage_calc.html');
		oM.makeMenu('menu1_1_7', 'menu1_1', 'Glossary of Terms', sitedir+'products_mortgage_terms.html');
	oM.makeMenu('menu1_2', 'menu1', 'Borrowers Application Checklist', sitedir+'products_checklist.html');
	oM.makeMenu('menu1_3', 'menu1', 'Consumer Lending', sitedir+'products_lending.html');
		oM.makeMenu('menu1_3_1', 'menu1_3', 'Share Loans', sitedir+'products_lending_share.html');
		oM.makeMenu('menu1_3_2', 'menu1_3', 'Home Improvement Loans', sitedir+'products_lending_improvement.html');
		oM.makeMenu('menu1_3_3', 'menu1_3', 'Personal Loans', sitedir+'products_lending_loans.html');
		oM.makeMenu('menu1_3_4', 'menu1_3', 'Vehicle Loans', sitedir+'products_lending_vehicle.html');
		oM.makeMenu('menu1_3_5', 'menu1_3', 'Home Equity Loans', sitedir+'products_lending_homeequity.html');
		oM.makeMenu('menu1_3_6', 'menu1_3', 'Student Loans', sitedir+'products_lending_student.html');
	oM.makeMenu('menu1_4', 'menu1', 'Savings', sitedir+'products_savings.html');
		oM.makeMenu('menu1_4_1', 'menu1_4', 'Statement Savings', sitedir+'products_savings_statement.html');
		oM.makeMenu('menu1_4_2', 'menu1_4', 'Passbook Savings', sitedir+'products_savings_passbook.html');
		oM.makeMenu('menu1_4_3', 'menu1_4', 'Christmas Club Savings', sitedir+'products_savings_christmas.html');
		oM.makeMenu('menu1_4_4', 'menu1_4', 'Money Market Demand Account', sitedir+'products_savings_mmda.html');
	oM.makeMenu('menu1_5', 'menu1', 'Certificate Of Deposit', sitedir+'products_certificate.html');
	oM.makeMenu('menu1_6', 'menu1', 'IRAs', sitedir+'products_iras.html');
		oM.makeMenu('menu1_6_1', 'menu1_6', 'Certificate IRA', sitedir+'products_iras_certificate.html');
		oM.makeMenu('menu1_6_2', 'menu1_6', 'Passbook IRA', sitedir+'products_iras_passbook.html');
	oM.makeMenu('menu1_7', 'menu1', 'Checking', sitedir+'products_checking.html');
		oM.makeMenu('menu1_7_1', 'menu1_7', 'Now Checking', sitedir+'products_checking_now.html');
		oM.makeMenu('menu1_7_2', 'menu1_7', 'Regular Checking', sitedir+'products_checking_regular.html');
		oM.makeMenu('menu1_7_3', 'menu1_7', 'Money Market Demand Account', sitedir+'products_checking_mmda.html');
	oM.makeMenu('menu1_8', 'menu1', 'Other Services', sitedir+'products_services.html');


oM.makeMenu('menu2');
	oM.makeMenu('menu2_1', 'menu2', 'Rates and Terms', sitedir+'ratesLandingpage.html');
		oM.makeMenu('menu2_1_1', 'menu2_1', 'Mortgage Lending', sitedir+'rates.html#mortgage');
		oM.makeMenu('menu2_1_2', 'menu2_1', 'Consumer Lending', sitedir+'rates.html#consumer');
		oM.makeMenu('menu2_1_3', 'menu2_1', 'Savings', sitedir+'rates.html#savings');
		oM.makeMenu('menu2_1_4', 'menu2_1', 'CD', sitedir+'rates.html#cd');
		oM.makeMenu('menu2_1_5', 'menu2_1', 'IRA', sitedir+'rates.html#ira');
		oM.makeMenu('menu2_1_6', 'menu2_1', 'Checking', sitedir+'rates.html#checking');


oM.makeMenu('menu3');
	oM.makeMenu('menu3_1', 'menu3', 'About Us', sitedir+'aboutus.html');
		oM.makeMenu('menu3_1_1', 'menu3_1', 'History', sitedir+'aboutus_history.html');
		oM.makeMenu('menu3_1_2', 'menu3_1', 'Mission/Vision Statement', sitedir+'aboutus_mission.html');
		oM.makeMenu('menu3_1_3', 'menu3_1', 'Values Statement', sitedir+'aboutus_values.html');
		oM.makeMenu('menu3_1_4', 'menu3_1', 'Board of Directors', sitedir+'aboutus_board.html');
		oM.makeMenu('menu3_1_5', 'menu3_1', 'Mortgage Department', sitedir+'aboutus_mortgage.html');
		oM.makeMenu('menu3_1_6', 'menu3_1', 'Charitable Foundation &amp; Partners in Education', sitedir+'aboutus_charitable.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("products");
var dropmenu2 = new FindPosition("rates");
var dropmenu3 = new FindPosition("aboutus");

var xOffset = 167;
var yOffset = -1;

function showMenu(menu)
{
	switch(menu)
	{
		case "menu1":
		oM.m["menu1"].b.moveIt(dropmenu1.xPos+xOffset,dropmenu1.yPos+yOffset);
		break;
		case "menu2":
		oM.m["menu2"].b.moveIt(dropmenu2.xPos+xOffset,dropmenu2.yPos+yOffset);
		break;		
		case "menu3":
		oM.m["menu3"].b.moveIt(dropmenu3.xPos+xOffset,dropmenu3.yPos+yOffset);
		break;		
	}
	oM.showsub(menu);
}
//end of file