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='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,"clS","clS",0,0,"clB",0,"bottom",0,0,0,0,0);
oM.level[0].filter="PROGID:DXImageTransform.Microsoft.Alpha(opacity=95, finishopacity=95, style=1)"; 
oM.level[0].roundBorder=1;
oM.level[1]=new cm_makeLevel(165,22,"clS","clSover",0,0,"clB",0,"right",0,0,imgdir+"relatedlinks-bullet-trans.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+'Personal Online Banking',sitedir+'olb_personal.html');
	    oM.makeMenu('menu1_1_1','menu1_1',db+'Personal Online Banking<br />'+db+'Logon','https://www.centralbk.com/onlineserv/HB/Signon.cgi','_blank','',newH);
	    oM.makeMenu('menu1_1_2','menu1_1',db+'Information',sitedir+'olb_personal_info.html');
		oM.makeMenu('menu1_1_3','menu1_1',db+'Bill Pay',sitedir+'olb_personal_info.html#billpay');		
	    oM.makeMenu('menu1_1_4','menu1_1',db+'Apply',sitedir+'olb_personal_info.html#apply');
		oM.makeMenu('menu1_1_5','menu1_1',db+'Frequently Asked<br />'+db+'Questions',sitedir+'about_faqs.html','','',newH);
			oM.makeMenu('menu1_1_5_1','menu1_1_5',db+'Online Banking FAQs',sitedir+'about_faqs_olb.html');		
			oM.makeMenu('menu1_1_5_2','menu1_1_5',db+'Bill Pay FAQs',sitedir+'about_faqs_bp.html');	
			oM.makeMenu('menu1_1_5_3','menu1_1_5',db+'Online Banking Security<br />'+db+'FAQs',sitedir+'about_faqs_security.html','','',newH);			
	    oM.makeMenu('menu1_1_6','menu1_1',db+'Online Banking Demo','https://www.centralbk.com/onlineserv/HB/demo.html','_blank');	
		oM.makeMenu('menu1_1_7','menu1_1',db+'New Online Banking<br />'+db+'Features',sitedir+'olb_personal_features.html','','',newH);		
	    oM.makeMenu('menu1_1_8','menu1_1',db+'Online Banking Password<br />'+db+'Reset','https://www.centralbk.com/onlineserv/HB/ForgottenPW.html','_blank','',newH);				
	oM.makeMenu('menu1_2','menu1',db+'Business Web Banking',sitedir+'olb_business.html');
	    oM.makeMenu('menu1_2_1','menu1_2',db+'Business Web Banking<br />'+db+'Logon','https://www.centralbk.com/onlineserv/CM/','_blank','',newH);		
	    oM.makeMenu('menu1_2_2','menu1_2',db+'Information',sitedir+'olb_business_info.html');			
		oM.makeMenu('menu1_2_3','menu1_2',db+'Apply',sitedir+'olb_business_info.html#apply');	

oM.makeMenu('menu2');
	oM.makeMenu('menu2_1','menu2',db+'Personal',sitedir+'prodrates_personal.html');
	    oM.makeMenu('menu2_1_1','menu2_1',db+'Checking Accounts',sitedir+'prodrates_personal_checking.html');		
	    oM.makeMenu('menu2_1_2','menu2_1',db+'Savings Accounts',sitedir+'prodrates_personal_savings.html');				
	    oM.makeMenu('menu2_1_3','menu2_1',db+'Debit MasterCard<sup>&reg;</sup>',sitedir+'prodrates_personal_atm.html');		
	    oM.makeMenu('menu2_1_4','menu2_1',db+'ATM Card',sitedir+'prodrates_personal_atm.html');				
	    oM.makeMenu('menu2_1_5','menu2_1',db+'Money Market Accounts',sitedir+'prodrates_personal_money.html');				
	    oM.makeMenu('menu2_1_6','menu2_1',db+'Certificates of Deposit',sitedir+'prodrates_personal_cds.html');				
	    oM.makeMenu('menu2_1_7','menu2_1',db+'Individual Retirement<br />'+db+'Accounts',sitedir+'prodrates_personal_iras.html','','',newH);				
	    oM.makeMenu('menu2_1_8','menu2_1',db+'Other Products and<br />'+db+'Services',sitedir+'prodrates_personal_other.html','','',newH);				
	oM.makeMenu('menu2_2','menu2',db+'Business',sitedir+'prodrates_business.html');
	    oM.makeMenu('menu2_2_1','menu2_2',db+'Business Checking<br />'+db+'Accounts',sitedir+'prodrates_business_checking.html','','',newH);
	    oM.makeMenu('menu2_2_2','menu2_2',db+'Debit BusinessCard<sup>&reg;</sup>',sitedir+'prodrates_business_debitcard.html');
		oM.makeMenu('menu2_2_3','menu2_2',db+'Business Savings Accounts',sitedir+'prodrates_business_savings.html');							
	    oM.makeMenu('menu2_2_4','menu2_2',db+'Ideal Business Money<br />'+db+'Market Account',sitedir+'prodrates_business_money.html','','',newH);						
	    oM.makeMenu('menu2_2_5','menu2_2',db+'Business Certificates of<br />'+db+'Deposit',sitedir+'prodrates_business_cds.html','','',newH);											
	oM.makeMenu('menu2_3','menu2',db+'Deposit Rates',sitedir+'prodrates_rates.html');		
	    oM.makeMenu('menu2_3_1','menu2_3',db+'Personal',sitedir+'prodrates_personal_rates.html');
	    oM.makeMenu('menu2_3_2','menu2_3',db+'Business',sitedir+'prodrates_business_rates.html');		
/*	    oM.makeMenu('menu2_3_1','menu2_3',db+'Savings Account Rates',sitedir+'prodrates_deposit.html');		
	    oM.makeMenu('menu2_3_2','menu2_3',db+'Ideal Money Market<br />'+db+'Account Rates',sitedir+'prodrates_deposit.html#money','','',newH);
	    oM.makeMenu('menu2_3_3','menu2_3',db+'CD Rates',sitedir+'prodrates_deposit.html#cds');						
	    oM.makeMenu('menu2_3_4','menu2_3',db+'IRA Rates',sitedir+'prodrates_deposit.html#iras');*/
	oM.makeMenu('menu2_4','menu2',db+'Frequently Asked<br />'+db+'Questions',sitedir+'about_faqs_general.html','','',newH);	
oM.makeMenu('menu3');
	oM.makeMenu('menu3_1','menu3',db+'Personal Loans',sitedir+'loans_info.html');
	    oM.makeMenu('menu3_1_1','menu3_1',db+'Auto Loans',sitedir+'loans_info.html#auto');					
	    oM.makeMenu('menu3_1_2','menu3_1',db+'Personal Loans',sitedir+'loans_info.html#personal');															
	    oM.makeMenu('menu3_1_3','menu3_1',db+'Special Needs Loans',sitedir+'loans_info.html#special');		
	oM.makeMenu('menu3_2','menu3',db+'Personal Loan Rates',sitedir+'loans_rates.html');			
	oM.makeMenu('menu3_3','menu3',db+'Business Loans',sitedir+'loans_info_business.html');	
		oM.makeMenu('menu3_3_1','menu3_3',db+'Apartment Building<br />'+db+'Refinancing',sitedir+'loans_info_business.html#apartment','','',newH);	
		oM.makeMenu('menu3_3_2','menu3_3',db+'Investor Mortgages',sitedir+'loans_info_business.html#investor');	
		oM.makeMenu('menu3_3_3','menu3_3',db+'Small Business Loans and<br />'+db+'Lines of Credit',sitedir+'loans_info_business.html#smallbusiness','','',newH);	
		oM.makeMenu('menu3_3_4','menu3_3',db+'Business Cash Reserve <br />'+db+'Line of Credit',sitedir+'loans_info_business.html#reserve','','',newH);	
	oM.makeMenu('menu3_4','menu3',db+'Business Loan Rates',sitedir+'mortgages_rates.html#investor');	
oM.makeMenu('menu4');
	oM.makeMenu('menu4_1','menu4',db+'Mortgage Information',sitedir+'mortgages_info.html');
		    oM.makeMenu('menu4_1_1','menu4_1',db+'Residential Mortgages',sitedir+'mortgages_info.html#residential');		
		    oM.makeMenu('menu4_1_2','menu4_1',db+'Home Equity Line of Credit',sitedir+'mortgages_info.html#heloc');					
		    oM.makeMenu('menu4_1_3','menu4_1',db+'Investment Mortgages',sitedir+'mortgages_info.html#investment');					
	oM.makeMenu('menu4_2','menu4',db+'Mortgage Rates',sitedir+'mortgages_rates.html');
		    oM.makeMenu('menu4_2_1','menu4_2',db+'Residential Mortgage Rates','http://www.centralbk.com/site/mortgages_rates.html');		
		    oM.makeMenu('menu4_2_2','menu4_2',db+'Home Equity Line of Credit<br />'+db+'Rates',sitedir+'mortgages_rates.html#heloc','','',newH);					
		    //oM.makeMenu('menu4_2_3','menu4_2',db+'Investor Mortgage Loan<br />'+db+'Rates',sitedir+'mortgages_rates.html#investor','','',newH);						
/*	oM.makeMenu('menu4_3','menu4',db+'Online Mortgage Center','http://centralbk.mortgagewebcenter.com/');  */
		
oM.makeMenu('menu5');
	oM.makeMenu('menu5_1','menu5',db+'Loan Calculator',sitedir+'calculators_loan.html');
/*	oM.makeMenu('menu5_2','menu5',db+'Loan Wizard',sitedir+'#');*/
	oM.makeMenu('menu5_2','menu5',db+'Loan Comparison<br />'+db+'Calculator',sitedir+'calculators_loancomp.html','','',newH);		
	oM.makeMenu('menu5_3','menu5',db+'Mortgage Calculator',sitedir+'calculators_mortgage.html');
	oM.makeMenu('menu5_4','menu5',db+'Retirement Calculator',sitedir+'calculators_retirement.html');		
		
oM.makeMenu('menu6');
	oM.makeMenu('menu6_1','menu6',db+'Arlington',sitedir+'branches.html');
	oM.makeMenu('menu6_2','menu6',db+'Burlington',sitedir+'branches.html');
	oM.makeMenu('menu6_3','menu6',db+'Chestnut Hill',sitedir+'branches.html');
	oM.makeMenu('menu6_4','menu6',db+'Malden',sitedir+'branches.html');
	oM.makeMenu('menu6_5','menu6',db+'Melrose',sitedir+'branches.html');
	oM.makeMenu('menu6_6','menu6',db+'Somerville',sitedir+'branches.html');
	oM.makeMenu('menu6_7','menu6',db+'Woburn Main Street',sitedir+'branches.html');					
	oM.makeMenu('menu6_8','menu6',db+'Woburn Four Corners',sitedir+'branches.html');						

oM.makeMenu('menu7');
	oM.makeMenu('menu7_1','menu7',db+'About Us',sitedir+'about_us.html');
	oM.makeMenu('menu7_2','menu7',db+'Community Corner',sitedir+'about_community.html');	
	oM.makeMenu('menu7_3','menu7',db+'Employment Opportunities',sitedir+'about_employment.html');	
	oM.makeMenu('menu7_4','menu7',db+'Press Releases',sitedir+'about_press.html');
			oM.makeMenu('menu7_4_1','menu7_4',db+'2012',sitedir+'about_press_2012.html');
			oM.makeMenu('menu7_4_2','menu7_4',db+'2011',sitedir+'about_press_2011.html');
			oM.makeMenu('menu7_4_3','menu7_4',db+'2010',sitedir+'about_press_2010.html');
			//oM.makeMenu('menu7_4_3','menu7_4',db+'2009',sitedir+'about_press_2009.html');
			//oM.makeMenu('menu7_4_3','menu7_4',db+'2008',sitedir+'about_press_2008.html');
			//oM.makeMenu('menu7_4_3','menu7_4',db+'2007',sitedir+'about_press_2007.html');
			//oM.makeMenu('menu7_4_3','menu7_4',db+'2006',sitedir+'about_press_2006.html');
	oM.makeMenu('menu7_5','menu7',db+'Shareholder Information',sitedir+'about_shareholder.html');	
	/*oM.makeMenu('menu7_6','menu7',db+'FAQs',sitedir+'about_faqs.html');			
		    oM.makeMenu('menu7_6_1','menu7_6',db+'Online Banking FAQs',sitedir+'about_faqs_olb.html');			
		    oM.makeMenu('menu7_6_2','menu7_6',db+'Bill Pay FAQs',sitedir+'about_faqs_bp.html');										
		    oM.makeMenu('menu7_6_3','menu7_6',db+'Online Banking Security<br />'+db+'FAQs',sitedir+'about_faqs_security.html','','',newH);														*/
			
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("olb");
var dropmenu2 = new  FindPosition("prodrates");
var dropmenu3 = new  FindPosition("loans");
var dropmenu4 = new  FindPosition("mortgages");
var dropmenu5 = new  FindPosition("calculators");
var dropmenu6 = new  FindPosition("branches");
var dropmenu7 = new  FindPosition("aboutus");

function showMenu(menu){
	switch(menu){
		case "menu1":
		oM.m["menu1"].b.moveIt(dropmenu1.xPos+10,dropmenu1.yPos+52);
		break;
		case "menu2":
		oM.m["menu2"].b.moveIt(dropmenu2.xPos+11,dropmenu2.yPos+52);
		break;		
		case "menu3":
		oM.m["menu3"].b.moveIt(dropmenu3.xPos+10,dropmenu3.yPos+52);
		break;		
		case "menu4":
		oM.m["menu4"].b.moveIt(dropmenu4.xPos+12,dropmenu4.yPos+52);
		break;
		case "menu5":
		oM.m["menu5"].b.moveIt(dropmenu5.xPos+12,dropmenu5.yPos+52);
		break;		
		case "menu6":
		oM.m["menu6"].b.moveIt(dropmenu6.xPos+14,dropmenu6.yPos+52);
		break;	
		case "menu7":
		oM.m["menu7"].b.moveIt(dropmenu7.xPos+14,dropmenu7.yPos+52);
		break;					
	}
	oM.showsub(menu);
}
//end of file

