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,15,"bordercolor","bordercolor",1,1,"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(190,20,"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) 
*************************************/

//PRODCUTS
oM.makeMenu('menu1');
oM.makeMenu('menu1_1','menu1',"Bill Payment", "https://www.midsouthfcu.org/online/");
	oM.makeMenu('sub01','menu1_1','Bill Payment Application','https://www.midsouthfcu.org/forms_app/discloseHB.html','',200,0);
	
oM.makeMenu('menu1_2','menu1',"eStatements", "https://www.midsouthfcu.org/online/estatements/");	

oM.makeMenu('menu1_3','menu1',"Home Banking", "https://www.ntmc-midsouth.com/cgi-bin/mcw000.cgi?MCWSTART");
	oM.makeMenu('sub001','menu1_3','Text Message Banking','https://my.mshift.com/c2ht?msestks=ntm1.xml&stk=homebase&appno=midsouth&mode=txtmsg','',200,0);
	oM.makeMenu('sub002','menu1_3','Mobile Banking','https://www.midsouthfcu.org/_assets/pdf/mobilebanking.pdf','',200,0);
	oM.makeMenu('sub003','menu1_3','Quicken Deactivate/Reactivate Instructions','https://www.midsouthfcu.org/cunews/instructions.pdf','',200,0);
    oM.makeMenu('sub004','menu1_3','Member Login Instructions','https://www.midsouthfcu.org/instructions.htm','',200,0);
	oM.makeMenu('sub005','menu1_3','New Home Banking Security','https://www.midsouthfcu.org/online/banking/security.php4','',200,0);
	oM.makeMenu('sub006','menu1_3','Quicken Conversion Instructions','https://www.midsouthfcu.org/_assets/pdf/User_Instructions_Q_W_D2W_0406.pdf','',200,0);



//SERVICES
oM.makeMenu('menu2');
oM.makeMenu('menu2_1','menu2',"Rates", "https://www.midsouthfcu.org/savings-checking/rates/");

oM.makeMenu('menu2_2','menu2',"Checking", "https://www.midsouthfcu.org/savings-checking/checking/");
	oM.makeMenu('sub0001','menu2_2','Accounts','https://www.midsouthfcu.org/savings-checking/checking/accounts/','',200,0);
	oM.makeMenu('sub0002','menu2_2','ATM Services','https://www.midsouthfcu.org/savings-checking/checking/atm/','',200,0);
	oM.makeMenu('sub0003','menu2_2','Checking Services','https://www.midsouthfcu.org/savings-checking/checking/services/','',200,0);
	
oM.makeMenu('menu2_3','menu2',"Savings", "https://www.midsouthfcu.org/savings-checking/");
	oM.makeMenu('sub00001','menu2_3','Accounts','https://www.midsouthfcu.org/savings-checking/savings/accounts/','',200,0);
	oM.makeMenu('sub00002','menu2_3','Certificates/IRA','https://www.midsouthfcu.org/savings-checking/savings/ira/','',200,0);
	oM.makeMenu('sub00003','menu2_3','Saving Services','https://www.midsouthfcu.org/savings-checking/savings/services/','',200,0);
	
oM.makeMenu('menu2_4','menu2',"Disclosures", "https://www.midsouthfcu.org/savings-checking/disclosures/index.php4");


//ABOUT US
oM.makeMenu('menu3');
oM.makeMenu('menu3_1','menu3',"VISA Credit Cards", "https://www.midsouthfcu.org/cardservices/visacredit/");
oM.makeMenu('menu3_3','menu3',"VISA Check Cards", "https://www.midsouthfcu.org/cardservices/visacheck/");
oM.makeMenu('menu3_4','menu3',"VISA Gift Cards", "https://www.midsouthfcu.org/cardservices/visagiftcard/");
oM.makeMenu('menu3_5','menu3',"Report Lost or Stolen Cards", "https://www.midsouthfcu.org/cardservices/lost-stolen/");


//FORMS AND APPLICATIONS
oM.makeMenu('menu4');
oM.makeMenu('menu4_1','menu4',"Home", "https://www.midsouthfcu.org/loans/home/");
oM.makeMenu('menu4_2','menu4',"Personal", "https://www.midsouthfcu.org/loans/personal/");
oM.makeMenu('menu4_3','menu4',"Vehicle", "https://www.midsouthfcu.org/loans/vehicle/");
	oM.makeMenu('sub000001','menu4_3','Fast Track','https://www.midsouthfcu.org/loans/vehicle/fast-track/','',200,0);
oM.makeMenu('menu4_4','menu4',"Rates","https://www.midsouthfcu.org/loans/rates/");
oM.makeMenu('menu4_5','menu4',"How to Apply","https://www.midsouthfcu.org/loans/apply/");
	oM.makeMenu('sub0000001','menu4_5','Loan Application','https://www.midsouthfcu.org/forms_app/loan.html','',200,0);


//ADDITIONAL
oM.makeMenu('menu5');
oM.makeMenu('menu5_1','menu5',"Member Education", "https://www.midsouthfcu.org/specialty/education/");
oM.makeMenu('menu5_2','menu5',"Scholarship", "https://www.midsouthfcu.org/specialty/scholarship/");


//ADDITIONAL
oM.makeMenu('menu6');
oM.makeMenu('menu6_1','menu6',"Links &amp; Resources", "https://www.midsouthfcu.org/customerservice/resources/");
oM.makeMenu('menu6_2','menu6',"EZ Call", "https://www.midsouthfcu.org/customerservice/ezcall/");
oM.makeMenu('menu6_3','menu6',"Report Lost or Stolen Card", "https://www.midsouthfcu.org/cardservices/lost-stolen/");
oM.makeMenu('menu6_4','menu6',"Stop Payment Request", "https://www.midsouthfcu.org/customerservice/stoppayment/");
oM.makeMenu('menu6_5','menu6',"Order Checks", "https://www.deluxe-check-order.com/ReorderHome.jsp", "_blank");
oM.makeMenu('menu6_6','menu6',"Shared Branching", "https://www.midsouthfcu.org/customerservice/sharedbranching/");


	
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("PRODUCTS");
var dropmenu3 = new FindPosition("CARD");
var dropmenu4 = new FindPosition("LOANS");
var dropmenu5 = new FindPosition("SERVICES");
var dropmenu6 = new FindPosition("CUSTOMER");

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;
	} 
	oM.showsub(menu);
}