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",1,1,"clB",0,"bottom",0,10,0,0,0);
//oM.level[0].filter="PROGID:DXImageTransform.Microsoft.Alpha(opacity=97, finishopacity=87, style=1)";
oM.level[1]=new cm_makeLevel(175,25,"item_off","item_on",1,1,"bordercolor",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) 
*************************************/

//MEMBER BENEFITS
oM.makeMenu('menu1');
oM.makeMenu('menu1_1','menu1',"How to Join", "/about/join.html");
oM.makeMenu('menu1_2','menu1',"Benefits", "/about/benefits.html");
oM.makeMenu('menu1_3','menu1',"Special Club Accounts", "/investment/club.html");
oM.makeMenu('menu1_4','menu1',"Apply Online", "/online/apply-online.html");


oM.makeMenu('menu2');
oM.makeMenu('menu2_1','menu2',"Bill Payer", "/online/billpayer.html");
oM.makeMenu('menu2_2','menu2',"Mobile Banking", "/online/mobile.html");
oM.makeMenu('menu2_3','menu2',"eStatements", "/online/estatement.html");
oM.makeMenu('menu2_4','menu2',"GoToMyCard", "/online/gotomycard.html");
oM.makeMenu('menu2_5','menu2',"Mastercard SecureCode", "/online/securecode.html");
oM.makeMenu('menu2_6','menu2',"Repos for Sale", "/online/repos/index.html");
oM.makeMenu('menu2_7','menu2',"Forms & Applications", "https://www.loanliner.com/LoanRequest/CLPPresenter/LoanList.aspx?CUID=04211167&LoanListId=998&ChannelId=7902850510200141146&LocationId=8768551210250195529&IsFramed=F","_blank");
oM.makeMenu('menu2_8','menu2',"Reorder Checks", "/message1/liberty.html","_blank");
oM.makeMenu('menu2_9','menu2',"Report Lost or Stolen Card", "/siteinfo/contact.html");
oM.makeMenu('menu2_10','menu2',"USA Patriot Act", "/about/usa.html");

oM.makeMenu('menu3');
oM.makeMenu('menu3_1','menu3',"Checking Accounts", "/investment/accounts.html");
oM.makeMenu('menu3_2','menu3',"Savings Accounts", "/investment/regular.html");
oM.makeMenu('menu3_3','menu3',"Rates", "/investment/rates.html");


//SAVINGS & CHECKING
oM.makeMenu('menu4');
oM.makeMenu('menu4_1','menu4',"Loan Rates", "/loans/rates.html");
oM.makeMenu('menu4_2','menu4',"Apply Online", "https://www.loanliner.com/LoanRequest/CLPPresenter/LoanList.aspx?CUID=04211167&LoanListId=998&ChannelId=7902850510200141146&LocationId=8768551210250195529&IsFramed=F","_blank");
oM.makeMenu('menu4_3','menu4',"Auto Loans", "/loans/auto.html");
oM.makeMenu('menu4_4','menu4',"Credit Cards", "/loans/creditcard.html");
oM.makeMenu('menu4_5','menu4',"Home Equity Loans", "/loans/homeequity.html");
oM.makeMenu('menu4_6','menu4',"Mortgage Loans", "http://firestonecommunity.mortgagewebcenter.com");
oM.makeMenu('menu4_7','menu4',"Personal Loans", "/loans/personal.html");
oM.makeMenu('menu4_8','menu4',"Line of Credit", "/loans/line-credit.html");
oM.makeMenu('menu4_9','menu4',"Other Collateral Loans", "/loans/collateral.html");
oM.makeMenu('menu4_10','menu4',"Repos for Sale", "/online/repos/index.html");
oM.makeMenu('menu4_11','menu4',"NADA", "/message1/nada.html","_blank");
oM.makeMenu('menu4_12','menu4',"Carfax", "/message1/carfax.html","_blank");
oM.makeMenu('menu4_13','menu4',"Guaranteed Asset Protection", "/loans/GAP_Brochure.pdf");
oM.makeMenu('menu4_14','menu4',"Extended Warranty", "/member/extended-warranty.html");
oM.makeMenu('menu4_15','menu4',"Payment Protection", "/loans/payment-protection.html");
oM.makeMenu('menu4_16','menu4',"Financial Calculators", "/calculators/index.html");

//ABOUT US
oM.makeMenu('menu5');
oM.makeMenu('menu5_1','menu5',"Teleline", "/member/phone.html");
oM.makeMenu('menu5_2','menu5',"ATM/Debit Card","/investment/checkcard.html");
oM.makeMenu('menu5_3','menu5',"Safe Deposit Boxes","/member/safe-deposit.html");
oM.makeMenu('menu5_4','menu5',"Payroll Deduction","/investment/payroll.html");
oM.makeMenu('menu5_5','menu5',"Direct Deposit","/investment/directdeposit.html");
oM.makeMenu('menu5_6','menu5',"Overdraft Protection","/investment/overdraft.html");
oM.makeMenu('menu5_7','menu5',"Mastercard Payments","/investment/mastercard.html");
oM.makeMenu('menu5_8','menu5',"Notary Service","/investment/notary.html");
oM.makeMenu('menu5_9','menu5',"Wire Transfers", "/investment/wire.html");
oM.makeMenu('menu5_10','menu5',"Theme Park Tickets","/investment/theme-park.html");
oM.makeMenu('menu5_11','menu5',"Travelers Cheques","/investment/travelers-cheques.html");
oM.makeMenu('menu5_12','menu5',"Savings Bonds","/investment/bonds.html");
oM.makeMenu('menu5_13','menu5',"Money Orders","/investment/money-orders.html");
oM.makeMenu('menu5_14','menu5',"Official Checks","/investment/official.html");
oM.makeMenu('menu5_15','menu5',"Statement Printout","/investment/statement.html");



oM.makeMenu('menu6');
oM.makeMenu('menu6_1','menu6',"IRA's", "/investment/ira.html");
oM.makeMenu('menu6_2','menu6',"Share Certificates", "/investment/certificates.html");
oM.makeMenu('menu6_3','menu6',"Rates", "/investment/rates.html");
oM.makeMenu('menu6_4','menu6',"Members Financial Services", "/investment/mfs.html");
oM.makeMenu('menu6_5','menu6',"U.S. Savings Bonds", "/investment/bonds.html");
oM.makeMenu('menu6_6','menu6',"NCUA Insurance", "/investment/insurance.html");



oM.makeMenu('menu7');
oM.makeMenu('menu7_1','menu7',"Newsletter", "/newsletter/index.html");
oM.makeMenu('menu7_2','menu7',"Privacy Policy", "/resource/privacy.html");
oM.makeMenu('menu7_3','menu7',"Fraud Information", "/online/idtheft-911.html");
oM.makeMenu('menu7_4','menu7',"Disaster Information", "#");


oM.makeMenu('menu8');
oM.makeMenu('menu8_1','menu8',"Locations", "/about/locations.html");
oM.makeMenu('menu8_2','menu8',"Office Hours", "/about/hours.html");
oM.makeMenu('menu8_3','menu8',"Observed Holidays", "/about/holidays.html");
oM.makeMenu('menu8_4','menu8',"Staff Directory", "/about/directory.html");
oM.makeMenu('menu8_5','menu8',"Board of Directors", "/about/board.html");
oM.makeMenu('menu8_6','menu8',"Contact Us", "/siteinfo/contact.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("member");
var dropmenu2 = new FindPosition("online");
var dropmenu3 = new FindPosition("deposit");
var dropmenu4 = new FindPosition("lending");
var dropmenu5 = new FindPosition("convenience");
var dropmenu6 = new FindPosition("investing");
var dropmenu7 = new FindPosition("resources");
var dropmenu8 = new FindPosition("about");

function showMenu(menu){
	switch(menu){
		case "menu1":
		oM.m["menu1"].b.moveIt(dropmenu1.xPos,dropmenu1.yPos + 24);
		break;
		case "menu2":
		oM.m["menu2"].b.moveIt(dropmenu2.xPos,dropmenu2.yPos + 24);
		break;
		case "menu3":
		oM.m["menu3"].b.moveIt(dropmenu3.xPos,dropmenu3.yPos + 24);
		break;
		case "menu4":
		oM.m["menu4"].b.moveIt(dropmenu4.xPos,dropmenu4.yPos + 24);
		break;
		case "menu5":
		oM.m["menu5"].b.moveIt(dropmenu5.xPos,dropmenu5.yPos + 24);
		break;
		case "menu6":
		oM.m["menu6"].b.moveIt(dropmenu6.xPos,dropmenu6.yPos + 24);
		break;
		case "menu7":
		oM.m["menu7"].b.moveIt(dropmenu7.xPos,dropmenu7.yPos + 24);
		break;
		case "menu8":
		oM.m["menu8"].b.moveIt(dropmenu8.xPos,dropmenu8.yPos + 24);
		break;
	} 
	oM.showsub(menu);
}
