var newH = 36;


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)
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=100, finishopacity=100, style=3)";
oM.level[1]=new cm_makeLevel(162,25,"item_off","item_on",1,1,"clB",0,"right",0,0,imgdir+"tri.gif",5,10);
oM.level[1].roundBorder=0;
/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/

var rootdir = "/";
if (window.location.href.indexOf('net.')>0){
    rootdir = "/staging/fhfcu/fhfcudocs/";
}
if (window.securePage){
    rootdir = "http://www.fhfcu.org/";
}

//info desk
oM.makeMenu('menu1');
	oM.makeMenu('menu1_1','menu1','Site Index',rootdir+'site-map.html');
	oM.makeMenu('menu1_2','menu1','About Us',rootdir+'information/about-us.html');
	oM.makeMenu('menu1_3','menu1','Branch Locations',rootdir+'information/branch-locations.html');
	oM.makeMenu('menu1_4','menu1','ATMs',rootdir+'information/atm-locations.html');
	oM.makeMenu('menu1_5','menu1','Routing Number / Wire Transfers',rootdir+'information/routing-number.html','parent', 162, 40);
	oM.makeMenu('menu1_6','menu1','Holidays',rootdir+'information/holidays.html');
	oM.makeMenu('menu1_7','menu1','Employment',rootdir+'information/employment.html');
	oM.makeMenu('menu1_8','menu1','Newsletters',rootdir+'information/newsletters.html');
	oM.makeMenu('menu1_9','menu1','Disclosures',rootdir+'information/disclosures/');
        oM.makeMenu('menu1_9_1','menu1_9','Privacy Policy',rootdir+'pdfs/privacy_policy.pdf');
        oM.makeMenu('menu1_9_2','menu1_9','Share Insurance (pdf)',rootdir+'pdfs/NCUA_Insurance.pdf');
        oM.makeMenu('menu1_9_3','menu1_9','The USA Patriot Act',rootdir+'information/disclosures/patriot-act.html');
        oM.makeMenu('menu1_9_4','menu1_9','Truth In Savings Brochure',rootdir+'pdfs/Privacy.pdf');
        oM.makeMenu('menu1_9_5','menu1_9','Fee Schedule',rootdir+'information/disclosures/fee-schedule.html');
        oM.makeMenu('menu1_9_6','menu1_9','VISA Disclosure',rootdir+'information/disclosures/visa_disclosure.html');
        oM.makeMenu('menu1_9_7','menu1_9','Terms and Conditions',rootdir+'pdfs/terms_and_conditions.pdf');

//membership
oM.makeMenu('menu2');
	oM.makeMenu('menu2_1','menu2','Eligibility',rootdir+'membership/eligibility.html');
	oM.makeMenu('menu2_2','menu2','Switch Kit',rootdir+'membership/switch-kit.html');
	oM.makeMenu('menu2_3','menu2','Open New Member Account',rootdir+'membership/application.html');
	oM.makeMenu('menu2_4','menu2','Add Services To Existing Account',rootdir+'membership/change_account.html','parent', 162, 40);
	
	
//products
oM.makeMenu('menu3');
	oM.makeMenu('menu3_1','menu3','Savings Accounts',rootdir+'products/savings/');
        oM.makeMenu('menu3_1_1','menu3_1','Share Savings',rootdir+'products/savings/');
        oM.makeMenu('menu3_1_2','menu3_1','IRA Share Savings',rootdir+'products/savings/ira.html');
        oM.makeMenu('menu3_1_3','menu3_1','Share Certificates',rootdir+'products/savings/share-certificates.html');
        oM.makeMenu('menu3_1_4','menu3_1','Holiday Clubs',rootdir+'products/savings/holiday-clubs.html');
        oM.makeMenu('menu3_1_5','menu3_1','Vacation Clubs',rootdir+'products/savings/vacation-clubs.html');
        oM.makeMenu('menu3_1_6','menu3_1','Money Manager',rootdir+'products/savings/money-manager.html');
        oM.makeMenu('menu3_1_7','menu3_1','Kirby Kangaroo Club',rootdir+'products/kids-teens.htm');
        oM.makeMenu('menu3_1_8','menu3_1','CU Succeed Program',rootdir+'products/kids-teens.htm');
        
	oM.makeMenu('menu3_2','menu3','Checking Accounts',rootdir+'products/checking/');
        oM.makeMenu('menu3_2_1','menu3_2','EZ Free Checking',rootdir+'products/checking/#ezfree');
        oM.makeMenu('menu3_2_2','menu3_2','Basic Checking',rootdir+'products/checking/#basic');
        oM.makeMenu('menu3_2_3','menu3_2','First Choice Checking',rootdir+'products/checking/#firstchoice');
        oM.makeMenu('menu3_2_4','menu3_2','55 &amp; Better Free Checking',rootdir+'products/checking/#55');
        oM.makeMenu('menu3_2_5','menu3_2','CU Succeed Checking',rootdir+'products/kids-teens.htm');
        oM.makeMenu('menu3_2_6','menu3_2','Business Checking',rootdir+'products/checking/#business');        
    
	oM.makeMenu('menu3_3','menu3','Loans',rootdir+'products/loans/');
        oM.makeMenu('menu3_3_1','menu3_3','Personal/Signature',rootdir+'products/loans/');
        oM.makeMenu('menu3_3_2','menu3_3','Auto Loans',rootdir+'products/loans/#auto');
        oM.makeMenu('menu3_3_3','menu3_3','Boats/Campers/Cycles',rootdir+'products/loans/#recreational');
        oM.makeMenu('menu3_3_4','menu3_3','Home Equity Loans',rootdir+'products/loans/#homeequity');
        oM.makeMenu('menu3_3_5','menu3_3','Mortgages',rootdir+'products/loans/#mortgages');
        oM.makeMenu('menu3_3_6','menu3_3','Visa Gold &amp; Visa Classic',rootdir+'products/loans/#visa');
        oM.makeMenu('menu3_3_7','menu3_3','Commercial Loans',rootdir+'products/loans/#commercial');
        
	oM.makeMenu('menu3_4','menu3','Electronic Services',rootdir+'products/electronic-services/');
        oM.makeMenu('menu3_4_1','menu3_4','First Line Online Banking',rootdir+'products/electronic-services/first-line-online-banking.html');
        oM.makeMenu('menu3_4_2','menu3_4','Bill Payment',rootdir+'products/electronic-services/first-line-bill-pay.html');
        oM.makeMenu('menu3_4_3','menu3_4','SMART Line',rootdir+'products/electronic-services/smart-line.html');
        oM.makeMenu('menu3_4_4','menu3_4','Minute Money ATM Card',rootdir+'products/electronic-services/minute-money-atm-card.html');
        oM.makeMenu('menu3_4_5','menu3_4','Visa Check Card',rootdir+'products/electronic-services/visa-check-card.html');
        oM.makeMenu('menu3_4_6','menu3_4','Direct Deposit (pdf)',rootdir+'pdfs/Direct-Deposit.pdf');
    
	oM.makeMenu('menu3_5','menu3','Other Services',rootdir+'products/other/');

//rates
oM.makeMenu('menu4');
	oM.makeMenu('menu4_1','menu4','Share Savings Acounts',rootdir+'rates/share.html');
	oM.makeMenu('menu4_2','menu4','Share &amp; IRA Share Certificate Accounts',rootdir+'rates/share-iracertificates.html','parent', 162, 40); 
	//oM.makeMenu('menu4_2','menu4','Share &amp; IRA Share Acounts<br />Certicate Accounts',rootdir+'rates/share-iracertificates.html'); 
	oM.makeMenu('menu4_3','menu4','Loans',rootdir+'rates/loans.html');
        oM.makeMenu('menu4_3_1','menu4_3','Personal/Signature',rootdir+'rates/loans.html');
        oM.makeMenu('menu4_3_2','menu4_3','Auto Loans',rootdir+'rates/loans.html#auto');
        oM.makeMenu('menu4_3_3','menu4_3','Boats/Campers/Cycles',rootdir+'rates/loans.html#recreational');
        oM.makeMenu('menu4_3_4','menu4_3','Home Equity Loans',rootdir+'rates/loans.html#homeequity');
        oM.makeMenu('menu4_3_5','menu4_3','Mortgages',rootdir+'rates/loans.html#mortgage');
        oM.makeMenu('menu4_3_6','menu4_3','Visa Gold &amp; Visa Classic',rootdir+'rates/loans.html#visa'); 
        

//tps
oM.makeMenu('menu5');
	oM.makeMenu('menu5_1','menu5','Reorder Checks',rootdir+'external-links/checks-reorder.html');	
	/*oM.makeMenu('menu5_2','menu5','eZCard Credit Card',rootdir+'3rd-party-services/ezcard.html');*/
	oM.makeMenu('menu5_2','menu5','eZCard Credit Card',rootdir+'external-links/ezcreditcard.html');
	oM.makeMenu('menu5_3','menu5','CUC Mortgage',rootdir+'external-links/cuc-mortgage.html');	
	oM.makeMenu('menu5_4','menu5','PHH Mortgage Services',rootdir+'external-links/phh-mortgage.html');	
	oM.makeMenu('menu5_5','menu5','Verified By Visa',rootdir+'external-links/verified-by-visa.html');	
	oM.makeMenu('menu5_6','menu5','Consumer Loan Calculator',rootdir+'external-links/consumer-loan-calc.html');	
	oM.makeMenu('menu5_7','menu5','Home Equity Calculator',rootdir+'external-links/home-equity-loan-calc.html');
	oM.makeMenu('menu5_9','menu5','Auto Loan Calculator',rootdir+'external-links/auto_loan_calc.html');	  	
	oM.makeMenu('menu5_10','menu5','MEMBERS Financial Network',rootdir+'external-links/financial_network.html');	 
	oM.makeMenu('menu5_11','menu5','Electronic Federal Tax Payment System',rootdir+'external-links/eftps.html', '', '', 40);	 
//myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
    
//contact
oM.makeMenu('menu6');
	oM.makeMenu('menu6_1','menu6','Contact Us Online','https://www.fhfcu.org/Forms/OnlineForm.cgi?form=new_site_guestbook');
	oM.makeMenu('menu6_2','menu6','Key Personnel',rootdir+'contact-us/');
	
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("info");
var dropmenu2 = new  FindPosition("membership");
var dropmenu3 = new  FindPosition("prod");
var dropmenu4 = new  FindPosition("rates");
var dropmenu5 = new  FindPosition("tps");
var dropmenu6 = new  FindPosition("contact");



function showMenu(menu){
	switch(menu){
		case "menu1":
		oM.m["menu1"].b.moveIt(dropmenu1.xPos-7,dropmenu1.yPos+11);
		break;
		case "menu2":
		oM.m["menu2"].b.moveIt(dropmenu2.xPos-7,dropmenu2.yPos+11);
		break;		
		case "menu3":
		oM.m["menu3"].b.moveIt(dropmenu3.xPos-7,dropmenu3.yPos+11);
		break;		
		case "menu4":
		oM.m["menu4"].b.moveIt(dropmenu4.xPos-7,dropmenu4.yPos+11);
		break;
		case "menu5":
		oM.m["menu5"].b.moveIt(dropmenu5.xPos-7,dropmenu5.yPos+11);
		break;
		case "menu6":
		oM.m["menu6"].b.moveIt(dropmenu6.xPos-7,dropmenu6.yPos+11);
		break;

	} 
	oM.showsub(menu);
	
}

