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='<span class="bullet">&#149; </span>';

//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,"bordercolor","bordercolor",0,0,"clB",0,"bottom",0,0,0,0,0);
//oM.level[0].filter="PROGID:DXImageTransform.Microsoft.Alpha(opacity=97, finishopacity=87, style=1)";
oM.level[1]=new cm_makeLevel(185,22,"item_off","item_on",0,0,"bordercolor",0,"right",0,0,imgdir+"dhtml-arrow.gif",9,9);
oM.level[1].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) 
*************************************/

//Online Services
oM.makeMenu('menu1');
	oM.makeMenu('menu1_1','menu1',"Online Banking &amp; Bill Pay", sitedir+"onlineserv_banking.html");
	oM.makeMenu('menu1_2','menu1',"Credit Card Account Access", "javascript:goTo('https://www.ibsnetaccess.com/NASApp/NetAccess/LoginDisplay');");
	oM.makeMenu('menu1_3','menu1',"Verified by Visa", "javascript:goTo('https://secure4.arcot.com/vpas/cns_262171115_vbvisa/enroll/index.jsp?locale=en_US&amp;bankid=494');");
	oM.makeMenu('menu1_4','menu1',"Applications", sitedir+"onlineserv_applications.html");

//Personal Banking
oM.makeMenu('menu2');
	oM.makeMenu('menu2_1','menu2',"Checking", sitedir+"personal_checking.html");
		oM.makeMenu('menu2_1_1','menu2_1',"FREEdom Checking", sitedir+"personal_checking.html#freedom");
		oM.makeMenu('menu2_1_2','menu2_1',"Heritage Checking", sitedir+"personal_checking.html#heritage");
		oM.makeMenu('menu2_1_3','menu2_1',"Regular Checking", sitedir+"personal_checking.html#regular");
		oM.makeMenu('menu2_1_4','menu2_1',"Reorder Checks", "javascript:goTo('http://www.deluxe.com/');");
	oM.makeMenu('menu2_2','menu2',"Savings", sitedir+"personal_savings.html");
		oM.makeMenu('menu2_2_1','menu2_2',"Regular Savings", sitedir+"personal_savings.html#regular");
		oM.makeMenu('menu2_2_2','menu2_2',"Money Market Advantage", sitedir+"personal_savings.html#moneymarket");
		oM.makeMenu('menu2_2_3','menu2_2',"Holiday Club", sitedir+"personal_savings.html#holiday");
		oM.makeMenu('menu2_2_4','menu2_2',"Youth Savings", sitedir+"personal_savings.html#youth");
		oM.makeMenu('menu2_2_5','menu2_2',"Certificates of Deposit", sitedir+"personal_savings.html#cd");
		oM.makeMenu('menu2_2_6','menu2_2',"Individual Retirement Accounts", sitedir+"personal_savings.html#ira");
		oM.makeMenu('menu2_2_7','menu2_2',"Rate Information", sitedir+"personal_rates.html");
		oM.makeMenu('menu2_2_8','menu2_2',"Savings Calculators", "javascript: void window.open('/calcsSav.cfm','calcs','scrollbars=yes,resizable=yes,width=500,height=450')");
	oM.makeMenu('menu2_3','menu2',"Loans", sitedir+"personal_loans.html");
		oM.makeMenu('menu2_3_1','menu2_3',"Autos, Boats &amp; Other Loans", sitedir+"personal_loans.html#auto");
		oM.makeMenu('menu2_3_2','menu2_3',"Revolving Credit Service", sitedir+"personal_loans.html#revolve");
		oM.makeMenu('menu2_3_3','menu2_3',"Savings/Certificates Secured Loans", sitedir+"personal_loans.html#secured");
		oM.makeMenu('menu2_3_4','menu2_3',"Student Loans", sitedir+"personal_loans.html#student");
		oM.makeMenu('menu2_3_5','menu2_3',"Credit Cards", sitedir+"personal_loans.html#creditcard");
		oM.makeMenu('menu2_3_6','menu2_3',"Loan Application", homedir+"apps/apply.cfm");
		oM.makeMenu('menu2_3_7','menu2_3',"Loan Calculators", "javascript: void window.open('/calcsLoan.cfm','calcs','scrollbars=yes,resizable=yes,width=500,height=450')");
		oM.makeMenu('menu2_3_10','menu2_3',"Rate Information", sitedir+"personal_rates.html");
	oM.makeMenu('menu2_4','menu2',"Mortgage Loans", sitedir+"personal_homeloans.html");
		oM.makeMenu('menu2_4_1','menu2_4',"Home Loans", sitedir+"personal_homeloans_loans.html");
		oM.makeMenu('menu2_4_2','menu2_4',"Home Equity Lines", sitedir+"personal_homeloans_equity.html");
		oM.makeMenu('menu2_4_3','menu2_4',"Mortgage Application", "javascript:goTo('http://www.heritagebank.cbo.cc/');");
		oM.makeMenu('menu2_4_4','menu2_4',"Mortgage Calculators", "javascript: void window.open('/calcsMort.cfm','calcs','scrollbars=yes,resizable=yes,width=500,height=450')");
		oM.makeMenu('menu2_4_5','menu2_4',"Newcomer Services", homedir+"apps/contactNewcomer.cfm");
	oM.makeMenu('menu2_5','menu2',"Convenient Services", sitedir+"personal_convenient.html");
		oM.makeMenu('menu2_5_1','menu2_5',"Online Banking &amp; Bill Pay", sitedir+"onlineserv_banking.html");
		oM.makeMenu('menu2_5_2','menu2_5',"Visa&reg; CheckCard", sitedir+"personal_convenient.html#visa");
		oM.makeMenu('menu2_5_3','menu2_5',"ATM Card", sitedir+"personal_convenient.html#atm");
		oM.makeMenu('menu2_5_4','menu2_5',"Heritage-Line", sitedir+"personal_convenient.html#line");
		oM.makeMenu('menu2_5_5','menu2_5',"Direct Deposit", sitedir+"onlineserv_applications_directdeposit.html");
		oM.makeMenu('menu2_5_6','menu2_5',"Payroll Deduction", sitedir+"personal_convenient.html#payroll");
		oM.makeMenu('menu2_5_7','menu2_5',"TelePhone Services Center", sitedir+"personal_convenient.html#telephone");
	oM.makeMenu('menu2_6','menu2',"Applications", sitedir+"onlineserv_applications.html");
	
//Business Banking	
oM.makeMenu('menu3');
		oM.makeMenu('menu3_1','menu3',"Business Checking", sitedir+"business_checking.html");
		oM.makeMenu('menu3_1_1','menu3_1',"Business Advantage", sitedir+"business_checking.html#adv");
		oM.makeMenu('menu3_1_2','menu3_1',"Business Advantage Plus", sitedir+"business_checking.html#plus");
		oM.makeMenu('menu3_2','menu3',"Business Savings", sitedir+"business_savings.html");
		oM.makeMenu('menu3_2_1','menu3_2',"Business Savings", sitedir+"business_savings.html#sav");
		oM.makeMenu('menu3_2_2','menu3_2',"Business Money Market", sitedir+"business_savings.html#mkt");
		oM.makeMenu('menu3_3','menu3',"Business Loans", sitedir+"business_loans.html");
		oM.makeMenu('menu3_4','menu3',"Business Lines of Credit", sitedir+"business_loc.html");
		oM.makeMenu('menu3_5','menu3',"Business Credit Cards", sitedir+"business_creditcard.html");
		oM.makeMenu('menu3_6','menu3',"Contact Commerical Division", homedir+"apps/contactCommercial.cfm");
		oM.makeMenu('menu3_7','menu3',"Applications", sitedir+"onlineserv_applications.html");
	
//Investment Services
oM.makeMenu('menu4');
	oM.makeMenu('menu4_1','menu4',"Brokerage Services", sitedir+"investment_services.html#brokerage");
	oM.makeMenu('menu4_2','menu4',"Individual Retirement Accounts", sitedir+"investment_services.html#ira");
	oM.makeMenu('menu4_3','menu4',"Financial Advisors", homedir+"apps/contactInvestment.cfm");
	oM.makeMenu('menu4_4','menu4',"Simplified Employee Pension Plan", sitedir+"investment_services.html#sep");
	oM.makeMenu('menu4_5','menu4',"Qualified Retirement Plans", sitedir+"investment_services.html#qrp");
	oM.makeMenu('menu4_6','menu4',"Life Insurance", sitedir+"investment_services.html#life");
	oM.makeMenu('menu4_7','menu4',"College Savings Plans", sitedir+"investment_services.html#college");
	oM.makeMenu('menu4_8','menu4',"Seminars", sitedir+"investment_services.html#seminars");

//About Us
oM.makeMenu('menu5');
	oM.makeMenu('menu5_1','menu5',"Career Opportunities", sitedir+"aboutus_career.html");
	oM.makeMenu('menu5_2','menu5',"Community", sitedir+"aboutus_community.html");
	oM.makeMenu('menu5_3','menu5',"HeritageBank's e-News", sitedir+"aboutus_enews.html");
	oM.makeMenu('menu5_4','menu5',"News Releases", sitedir+"aboutus_news.html");
	oM.makeMenu('menu5_5','menu5',"Investor Relations", sitedir+"aboutus_investorRelations.html");	
	
//Contact Us
oM.makeMenu('menu6');
	oM.makeMenu('menu6_1','menu6',"Office/ATM Locations", sitedir+"contactus_locations.html");
	oM.makeMenu('menu6_2','menu6',"Phone Numbers", sitedir+"contactus_phone.html");
	oM.makeMenu('menu6_3','menu6',"E-mail", homedir+"apps/contact.cfm");

//Help
oM.makeMenu('menu7');
	oM.makeMenu('menu7_1','menu7',"Test Your Browser", "javascript: void window.open('https://www.banksafe.com/check.cfm','test','scrollbars=yes,resizable=yes,width=400,height=450')");
	oM.makeMenu('menu7_2','menu7',"Online Banking Q & A", sitedir+"onlineserv_faq.html");
	oM.makeMenu('menu7_3','menu7',"Online Banking Security", sitedir+"onlineserv_security.html");
	oM.makeMenu('menu7_4','menu7',"User Guides", "");
		oM.makeMenu('menu7_4_1','menu7_4',"Online Banking", "javascript: void window.open('/site/Online_Banking_User_Guide.pdf')");
		oM.makeMenu('menu7_4_2','menu7_4',"Online Bill Pay", "javascript: void window.open('/site/Online_Bill_Pay_User_Guide.pdf')");
	oM.makeMenu('menu7_5','menu7',"EFT Disclosure", sitedir+"disclose.html");
	oM.makeMenu('menu7_6','menu7',"Check 21 Disclosure", "javascript: void window.open('/site/check21.pdf')");
	//oM.makeMenu('menu7_7','menu7',"Login Help", "javascript:openWin('https://www.eheritagebank.com/onlineserv/HB/login_help.html');");
	//oM.makeMenu('menu7_8','menu7',"AOL users", "javascript:openWin('https://www.eheritagebank.com/onlineserv/HB/aol.html');");
	//oM.makeMenu('menu7_9','menu7',"Forgot your password?", "https://www.netteller.com/eheritagebank/pwdSelfResetMain.cfm");

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("online");
var dropmenu2 = new FindPosition("personal");
var dropmenu3 = new FindPosition("commercial");
var dropmenu4 = new FindPosition("investment");
var dropmenu5 = new FindPosition("about");
var dropmenu6 = new FindPosition("contact");
var dropmenu7 = new FindPosition("help");

function showMenu(menu){
	switch(menu){
		case "menu1":
		oM.m["menu1"].b.moveIt(dropmenu1.xPos + 2,dropmenu1.yPos + 22);
		break;
		case "menu2":
		oM.m["menu2"].b.moveIt(dropmenu2.xPos + 2,dropmenu2.yPos + 22);
		break;
		case "menu3":
		oM.m["menu3"].b.moveIt(dropmenu3.xPos + 2,dropmenu3.yPos + 22);
		break;
		case "menu4":
		oM.m["menu4"].b.moveIt(dropmenu4.xPos + 2,dropmenu4.yPos + 22);
		break;
		case "menu5":
		oM.m["menu5"].b.moveIt(dropmenu5.xPos + 2,dropmenu5.yPos + 22);
		break;
		case "menu6":
		oM.m["menu6"].b.moveIt(dropmenu6.xPos + 2,dropmenu6.yPos + 22);
		break;
		case "menu7":
		oM.m["menu7"].b.moveIt(dropmenu7.xPos - 25,dropmenu7.yPos + 5);
		break;
	} 
	oM.showsub(menu);
}
//end of file