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=100, finishopacity=100, style=3)";
oM.level[1]=new cm_makeLevel(140,25,"item_off","item_on",1,1,"clB",0,"left",0,0,"",0,0);
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) 

http://www.midfirst.com/onlineserv/HB/

*************************************/
oM.makeMenu('menu1');
oM.makeMenu('menu1_1','menu1','Culture of Trust',sitedir+'about_culture.html');
oM.makeMenu('menu1_2','menu1','History',sitedir+'about_history.html');
oM.makeMenu('menu1_3','menu1','How To Join',sitedir+'about_join.html');
oM.makeMenu('menu1_4','menu1','Employment',sitedir+'about_employment.html');
oM.makeMenu('menu1_5','menu1','FAQ',sitedir+'about_faq.html');

oM.makeMenu('menu2')
oM.makeMenu('menu2_1','menu2','Savings',sitedir+'deposits_savings.html');
oM.makeMenu('menu2_2','menu2','Checking',sitedir+'deposits_checking.html');
//oM.makeMenu('menu2_3','menu2','Direct Deposit','services_other.html#direct_deposit');    
oM.makeMenu('menu2_4','menu2','Rates',sitedir+'rates.html');
oM.makeMenu('menu2_5','menu2','Online Banking','https://www.midfirstcu.org/onlineserv/HB/Signon.cgi');	
oM.makeMenu('menu2_6','menu2','Applications',sitedir+'applications.html'); 

oM.makeMenu('menu3')
oM.makeMenu('menu3_1','menu3','Vehicle',sitedir+'loans_auto.html');    
oM.makeMenu('menu3_2','menu3','Home Equity',sitedir+'loans_homeequity.html');
oM.makeMenu('menu3_3','menu3','Personal',sitedir+'loans_consumer.html');    
oM.makeMenu('menu3_4','menu3','First Mortgage',sitedir+'loans_first_mortgage.html');
oM.makeMenu('menu3_5','menu3','Credit Cards',sitedir+'loans_credit_card.html');    
oM.makeMenu('menu3_6','menu3','Rates',sitedir+'rates.html#loans');
oM.makeMenu('menu3_7','menu3','Online Banking','https://www.midfirstcu.org/onlineserv/HB/Signon.cgi');	
oM.makeMenu('menu3_8','menu3','Applications',sitedir+'applications.html'); 

oM.makeMenu('menu4');
oM.makeMenu('menu4_1','menu4','E-Services',sitedir+'services_e-services.html');   
    oM.makeMenu('menu4_1_1','menu4_1','Online Banking',sitedir+'services_e-services.html#olb');  
    oM.makeMenu('menu4_1_2','menu4_1','Bill Pay',sitedir+'services_e-services.html#bp');  
    oM.makeMenu('menu4_1_3','menu4_1','Check Reorder',sitedir+'services_e-services.html#cr'); 
    oM.makeMenu('menu4_1_4','menu4_1','E-Statements',sitedir+'services_e-services.html#es'); 
    oM.makeMenu('menu4_1_5','menu4_1','VISA&reg; Account Access',sitedir+'services_e-services.html#cc'); 
    oM.makeMenu('menu4_1_6','menu4_1','Mortgage Account Access',sitedir+'services_e-services.html#fm'); 
    oM.makeMenu('menu4_1_7','menu4_1','Apply for a Loan Online',sitedir+'online_loan.html'); 
    oM.makeMenu('menu4_1_8','menu4_1','Financial Calculators','javascript:popupCalcs("index");'); 		
oM.makeMenu('menu4_2','menu4','Surcharge Free ATMs',sitedir+'services_free_atm.html');   
oM.makeMenu('menu4_3','menu4','<em>Teller</em>Phone',sitedir+'services_tellerphone.html');  
oM.makeMenu('menu4_4','menu4','Other Services',sitedir+'services_other.html');  
    oM.makeMenu('menu4_4_1','menu4_4','Direct Deposit',sitedir+'services_other.html#direct_deposit'); 
    oM.makeMenu('menu4_4_2','menu4_4','Payroll Deductions',sitedir+'services_other.html#payroll_deductions'); 
    oM.makeMenu('menu4_4_3','menu4_4','VISA&reg; Check Card',sitedir+'services_other.html#visa_check_card'); 
    oM.makeMenu('menu4_4_4','menu4_4','Safe Deposit Box',sitedir+'services_other.html#safe_deposit'); 
//	oM.makeMenu('menu4_4_5','menu4_4','Travelers Cheques','javascript:alert(\'coming soon\');'); // sitedir+'services_other.html#'); 
//	oM.makeMenu('menu4_4_6','menu4_4','Money Orders','javascript:alert(\'coming soon\');'); // sitedir+'services_other.html#'); 
//	oM.makeMenu('menu4_4_7','menu4_4','Wire Transfers','javascript:alert(\'coming soon\');'); // sitedir+'services_other.html#'); 
//	oM.makeMenu('menu4_4_8','menu4_4','Notary Services','javascript:alert(\'coming soon\');'); // sitedir+'services_other.html#'); 
//  oM.makeMenu('menu4_4_9','menu4_4','Discounts',sitedir+'services_other.html#discounts'); 

oM.makeMenu('menu5');
oM.makeMenu('menu5_1','menu5','Getting Married',sitedir+'mylife_getting_married.html');  
oM.makeMenu('menu5_2','menu5','Buying a Home',sitedir+'mylife_buying_home.html');  
oM.makeMenu('menu5_3','menu5','Having a Child',sitedir+'mylife_having_child.html');  
oM.makeMenu('menu5_4','menu5','Planning for College',sitedir+'mylife_planning_college.html'); 
oM.makeMenu('menu5_5','menu5','Changing Jobs',sitedir+'mylife_changing_jobs.html'); 
oM.makeMenu('menu5_6','menu5','Planning for Retirement',sitedir+'mylife_planning_retirement.html');  

/*
	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('menu6');
oM.makeMenu('menu6_1','menu6','E-Statements',sitedir+'services_e-services.html#es');  
oM.makeMenu('menu6_2','menu6','Membership',sitedir+'pdf/newmemberapp2.pdf', '_blank');  
oM.makeMenu('menu6_3','menu6','Address Change',sitedir+'pdf/changeinfoapp2.pdf', '_blank');  
oM.makeMenu('menu6_4','menu6','Loans',sitedir+'loans.html');
    oM.makeMenu('menu6_4_1','menu6_4','First Mortgage',sitedir+'loans_first_mortgage.html'); 
    oM.makeMenu('menu6_4_2','menu6_4','VISA&reg;','javascript:alert(\'coming soon\');'); 
    oM.makeMenu('menu6_4_3','menu6_4','Home Equity',sitedir+'loans_homeequity.html'); 
    oM.makeMenu('menu6_4_4','menu6_4','All Other Loans',sitedir+'loans.html'); 
oM.makeMenu('menu6_5','menu6','New Account',sitedir+'pdf/newacctapp2.pdf', '_blank');  
oM.makeMenu('menu6_6','menu6','Home Equity',sitedir+'loans_homeequity.html');  
oM.makeMenu('menu6_7','menu6','Online Banking',sitedir+'pdf/onlinebankingapp2.pdf', '_blank');  
oM.makeMenu('menu6_8','menu6','Check Reorder',sitedir+'services_e-services.html#cr');  
oM.makeMenu('menu6_9','menu6','Additional Info','javascript:alert(\'coming soon\');');  
oM.makeMenu('menu6_10','menu6','VISA&reg; Check Card',sitedir+'pdf/replacecard2.pdf', '_blank');  
oM.makeMenu('menu6_11','menu6','Payroll Deduction',sitedir+'services_other.html#payroll_deductions');  
oM.makeMenu('menu6_12','menu6','Direct Deposit',sitedir+'services_other.html#direct_deposit');  
oM.makeMenu('menu6_13','menu6','Certificate','javascript:alert(\'coming soon\');');  
oM.makeMenu('menu6_14','menu6','Wire Transfer','javascript:alert(\'coming soon\');');  
//oM.makeMenu('menu6_15','menu6','Employment',sitedir+'pdf/employmentapp2.pdf', '_blank');  

	
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) {
	return this.ref_image.style.left;
}

function getRealTop(move) {
	return this.ref_image.style.top;
}
*/

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("about");
var dropmenu2 = new  FindPosition("deposits");
var dropmenu3 = new  FindPosition("loans");
var dropmenu4 = new  FindPosition("cs");
var dropmenu5 = new  FindPosition("mylife");
var dropmenu6 = new  FindPosition("apps");

function showMenu(menu){


//alert(resizeOffset);

	switch(menu){
		case "menu1":
		oM.m["menu1"].b.moveIt(dropmenu1.xPos+0,dropmenu1.yPos+43);
		break;
		case "menu2":
        oM.m["menu2"].b.moveIt(dropmenu2.xPos+0,dropmenu2.yPos+43);
		break;
		case "menu3":
		oM.m["menu3"].b.moveIt(dropmenu3.xPos+0,dropmenu3.yPos+43);
		break;
		case "menu4":
		oM.m["menu4"].b.moveIt(dropmenu4.xPos+0,dropmenu4.yPos+43);
		break;
        case "menu5":
		oM.m["menu5"].b.moveIt(dropmenu5.xPos-80,dropmenu5.yPos+43);
		break;
		case "menu6":
		oM.m["menu6"].b.moveIt(dropmenu6.xPos+0,dropmenu6.yPos+20);
		break;
	} 
	oM.showsub(menu);
	
}




