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(230,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) 
*************************************/


//Loans
oM.makeMenu('menu1');
	oM.makeMenu('menu1_1','menu1',"New &amp; Used Auto", sitedir+"loans_auto.html");
	oM.makeMenu('menu1_2','menu1',"Jump Start Auto", sitedir+"loans_jumpstart.html");
	oM.makeMenu('menu1_3','menu1',"AFCU Express Dealer Financing", sitedir+"loans_auto_dlr_finance.html");
	oM.makeMenu('menu1_4','menu1',"Auto Buying Center", "javascript:autoBuyingCenter();");
	oM.makeMenu('menu1_5','menu1',"Boat", sitedir+"loans_boat.html");
	oM.makeMenu('menu1_6','menu1',"Motorcycle", sitedir+"loans_motorcycle.html");
	oM.makeMenu('menu1_7','menu1',"Recreational Vehicle", sitedir+"loans_rv.html");
	oM.makeMenu('menu1_8','menu1',"Home Equity", sitedir+"loans_hel.html");
	oM.makeMenu('menu1_9','menu1',"Platinum Rewards MasterCard", sitedir+"loans_plat_mcard.html");
	oM.makeMenu('menu1_10','menu1',"Visa Classic Credit Card", sitedir+"loans_visaclassic.html");
	oM.makeMenu('menu1_11','menu1',"Visa Secure Credit Card", sitedir+"loans_visasecured.html");
	oM.makeMenu('menu1_12','menu1',"Consumer", sitedir+"loans_consumer.html");
	oM.makeMenu('menu1_13','menu1',"Mortgage", "http://afcu.mortgagewebcenter.com" , "_blank");
	oM.makeMenu('menu1_14','menu1',"Signature", sitedir+"loans_signature.html");
	oM.makeMenu('menu1_15','menu1',"Share Pledge", sitedir+"loans_sharepledge.html");
	oM.makeMenu('menu1_16','menu1',"Credit Builder", sitedir+"loans_creditbuilder.html");
	oM.makeMenu('menu1_17','menu1',"Student", "http://afcu.studentchoice.org", "_blank");

//Deposit Accounts
oM.makeMenu('menu2');
	oM.makeMenu('menu2_1','menu2',"Free Checking", sitedir+"deposits_checking.html");
	oM.makeMenu('menu2_2','menu2',"BonusRate Checking", sitedir+"deposits_bonusRate.html");
	oM.makeMenu('menu2_3','menu2',"Military Checking", sitedir+"deposits_military.html");
	oM.makeMenu('menu2_4','menu2',"Ultimate Student Checking", sitedir+"deposits_studentChecking.html");
	oM.makeMenu('menu2_5','menu2',"Share Savings", sitedir+"deposits_sharesavings.html");
	oM.makeMenu('menu2_6','menu2',"Special Savings", sitedir+"deposits_specialsavings.html");
	oM.makeMenu('menu2_7','menu2',"Certificate", sitedir+"deposits_certificate.html");
	oM.makeMenu('menu2_8','menu2',"Individual Retirement Account (IRAs)", sitedir+"deposits_ira.html");
	oM.makeMenu('menu2_9','menu2',"Member Freedom Money Fund", sitedir+"deposits_memberFreedom.html");
	oM.makeMenu('menu2_10','menu2',"Health Savings Account", sitedir+"hsa.html");
	
//24 Hour Services
oM.makeMenu('menu3');
	oM.makeMenu('menu3_1','menu3',"Online Account Access", sitedir+"24hrserv_online.html");
	oM.makeMenu('menu3_2','menu3',"Internet Bill Payment", sitedir+"24hrserv_billpay.html");
	oM.makeMenu('menu3_3','menu3',"Automated Telephone Services", sitedir+"24hrserv_ats.html");
	oM.makeMenu('menu3_4','menu3',"Automated Teller Machines (ATMs)", sitedir+"24hrserv_atm.html");
	oM.makeMenu('menu3_5','menu3',"Mobile ACFU", imgdir+"Mobile_AFCU_Page.pdf");
    
//Member Services
oM.makeMenu('menu4');
	oM.makeMenu('menu4_1','menu4',"ATM Card", sitedir+"memberserv_atmcard.html",'',290);
	oM.makeMenu('menu4_2','menu4',"Visa Check Card with Rewards", sitedir+"memberserv_visacheck.html",'',290);
	oM.makeMenu('menu4_3','menu4',"Visa Gift Cards", sitedir+"memberserv_visagift.html",'',290);
	oM.makeMenu('menu4_4','menu4',"Member Education", sitedir+"memberserv_member_edu.html",'',290);
	oM.makeMenu('menu4_5','menu4',"Repossessions/Foreclosures for Sale", sitedir+"memberserv_foreclsures.html",'',290);
	oM.makeMenu('menu4_6','menu4',"Ambassadors", sitedir+"memberserv_ambassadors.html",'',290);
	oM.makeMenu('menu4_7','menu4',"Financial Services Center", sitedir+"memberserv_financial.html",'',290);
	oM.makeMenu('menu4_8','menu4',"Direct Deposit/Payroll Deduction", sitedir+"memberserv_payroll.html",'',290);
	oM.makeMenu('menu4_9','menu4',"Savings Insurance", sitedir+"memberserv_savingsinsure.html",'',290);
	oM.makeMenu('menu4_10','menu4',"Property &amp; Casualty Insurance", sitedir+"memberserv_property_casualty.html",'',290);
	oM.makeMenu('menu4_11','menu4',"Guaranteed Asset Protection (GAP) Insurance", sitedir+"memberserv_gapinsure.html",'',290);
	oM.makeMenu('menu4_12','menu4',"Overdraft Protection", sitedir+"memberserv_overdraftprotect.html",'',290);
	oM.makeMenu('menu4_13','menu4',"Additional Services", sitedir+"memberserv_additionalserv.html",'',290);
  oM.makeMenu('menu4_14','menu4',"AFCU Downloadable PDF Forms", sitedir+"memberserv_download.html",'',290);
  //oM.makeMenu('menu4_15','menu4',"Members Only Home Rebate Program", sitedir+"memberserv_home_rebate.html",'',290);
  oM.makeMenu('menu4_15','menu4',"Privilege Pay", sitedir+"memberserv_privilegepay.html",'',290);
  oM.makeMenu('menu4_16','menu4',"Identity Theft Prevention", sitedir+"memberserv_id_theft.html",'',290);
  oM.makeMenu('menu4_17','menu4',"Fraud Alerts", sitedir+"memberserv_fraud_alerts.html",'',290);
  oM.makeMenu('menu4_18','menu4',"AFCU Transfer Center", "https://www.swbc.com/payments/afcu","_blank",290);
  oM.makeMenu('menu4_19','menu4',"AFCUDeposit", sitedir+"memberserv_afcudeposit.html","",290);
    
    //the last item is a width adjustment, and must be uniform/included for all items.  Preceding the width adjustment is an empty string.

//Locations
oM.makeMenu('menu5');
	oM.makeMenu('menu5_1','menu5',"ATM Locations", sitedir+"locations_atm.html",'',125);
	oM.makeMenu('menu5_2','menu5',"Branch Locations", sitedir+"locations_branch.html",'',125);
	oM.makeMenu('menu5_3','menu5',"CU Service Centers", sitedir+"locations_cusc.html",'',125);
    
    //the last item is a width adjustment, and must be uniform/included for all items.  Preceding the width adjustment is an empty string.

//About Us
oM.makeMenu('menu6');
	oM.makeMenu('menu6_1','menu6',"Contact Us", sitedir+"aboutus_contact.html",'',125);
	oM.makeMenu('menu6_2','menu6',"Join AFCU", sitedir+"aboutus_join.html",'',125);
	oM.makeMenu('menu6_3','menu6',"AFCU Publications", sitedir+"aboutus_publications.html",'',125);
	oM.makeMenu('menu6_4','menu6',"AFCU Logo", sitedir+"aboutus_afculogo.html",'',125);	

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("loans");
var dropmenu2 = new FindPosition("deposits");
var dropmenu3 = new FindPosition("24hrservices");
var dropmenu4 = new FindPosition("memberservices");
var dropmenu5 = new FindPosition("locations");
var dropmenu6 = new FindPosition("aboutus");

function showMenu(menu){
	switch(menu){
		case "menu1":
		oM.m["menu1"].b.moveIt(dropmenu1.xPos ,dropmenu1.yPos + 30);
		break;
		case "menu2":
		oM.m["menu2"].b.moveIt(dropmenu2.xPos ,dropmenu2.yPos + 30);
		break;
		case "menu3":
		oM.m["menu3"].b.moveIt(dropmenu3.xPos ,dropmenu3.yPos + 30);
		break;
		case "menu4":
		oM.m["menu4"].b.moveIt(dropmenu4.xPos ,dropmenu4.yPos + 30);
		break;
		case "menu5":
		oM.m["menu5"].b.moveIt(dropmenu5.xPos,dropmenu5.yPos + 18);
		break;
		case "menu6":
		oM.m["menu6"].b.moveIt(dropmenu6.xPos,dropmenu6.yPos + 18);
		break;
	} 
	oM.showsub(menu);
}
//end of file
