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,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",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) 
*************************************/

//Electronic Services
oM.makeMenu('menu1');
	oM.makeMenu('menu1_1','menu1',"Home Teller", "javascript:openIB();");
	oM.makeMenu('menu1_2','menu1',"Visa Debit Cards", sitedir+"electronic_visacheck.html");
	oM.makeMenu('menu1_3','menu1',"ATM Cards", sitedir+"electronic_atmcards.html");
	oM.makeMenu('menu1_4','menu1',"Report a Lost or Stolen Card", sitedir+"electronic_lostcards.html");
	oM.makeMenu('menu1_5','menu1',"QT Telephone System", sitedir+"electronic_telesys.html");
	oM.makeMenu('menu1_6','menu1',"Online Credit Report", "javascript:showWarning('https://www.creditexpert.com/CE_site//Default.aspx?sc=1205');");
	oM.makeMenu('menu1_7','menu1',"Online Applications", "javascript:void(0);");
		oM.makeMenu('menu1_7_1','menu1_7',"Membership Application", "javascript:open_apps('membership_app');");
		oM.makeMenu('menu1_7_2','menu1_7',"Loan Application", "javascript:expressLender();");
		oM.makeMenu('menu1_7_3','menu1_7',"Checking Account Application", "javascript:open_apps('checking_app');");
		oM.makeMenu('menu1_7_4','menu1_7',"VISA Application", "javascript:expressLender();");
		oM.makeMenu('menu1_7_5','menu1_7',"Home Equity Application", "javascript:open_apps('homeequity_app');");
		//oM.makeMenu('menu1_7_6','menu1_7',"Check Ordering Application", "javascript:open_apps('checkorder_app');");
		//oM.makeMenu('menu1_7_7','menu1_7',"VISA Debit Card Application", "javascript:alert('Go to Home Teller, then Secure Forms Button');openIB();");
	oM.makeMenu('menu1_8','menu1',"Direct Deposit & Routing Number", sitedir+"other_services.html#directdeposit");
	
//Loans
oM.makeMenu('menu2');
	oM.makeMenu('menu2_1','menu2',"Auto Loans", sitedir+"loans_auto.html");
	oM.makeMenu('menu2_2','menu2',"Mortgage Loans", sitedir+"loans_mortgage.html");
	oM.makeMenu('menu2_3','menu2',"Home Equity Line of Credit", sitedir+"loans_heloc.html");
	oM.makeMenu('menu2_4','menu2',"Home Improvement Loans", sitedir+"loans_improvement.html");
	oM.makeMenu('menu2_5','menu2',"VISA Credit Cards", sitedir+"loans_visa.html");
	oM.makeMenu('menu2_6','menu2',"Other Secured Loans", sitedir+"loans_secured.html");
	oM.makeMenu('menu2_7','menu2',"Unsecured Loans", sitedir+"loans_unsecured.html");
	oM.makeMenu('menu2_8','menu2',"Special Promos", sitedir+"loans_special.html");
	oM.makeMenu('menu2_9','menu2',"Fee Schedule", sitedir+"fee.html");
	oM.makeMenu('menu2_10','menu2',"Career Transition Program", sitedir+"loans_career.html");

//Savings, Checking, Investments
oM.makeMenu('menu3');
	oM.makeMenu('menu3_1','menu3',"Savings Accounts", "javascript:void(0);");
		oM.makeMenu('menu3_1_1','menu3_1',"Share Savings", sitedir+"accounts_savings_share.html");
		oM.makeMenu('menu3_1_2','menu3_1',"Savings Certificates", sitedir+"accounts_savings_cert.html");
		oM.makeMenu('menu3_1_3','menu3_1',"Special Savings", sitedir+"accounts_savings_special.html");
		oM.makeMenu('menu3_1_4','menu3_1',"Trust Accounts", sitedir+"accounts_savings_trust.html");
	oM.makeMenu('menu3_2','menu3',"Checking Accounts", sitedir+"accounts_checking.html");
	oM.makeMenu('menu3_3','menu3',"Investment Accounts", "javascript:void(0);");
		oM.makeMenu('menu3_3_1','menu3_3',"Money Market Plus Accounts", sitedir+"accounts_savings_money.html");
		oM.makeMenu('menu3_3_2','menu3_3',"Savings Certificates", sitedir+"accounts_savings_cert.html");
		oM.makeMenu('menu3_3_3','menu3_3',"IRAs", sitedir+"accounts_savings_ira.html");
		oM.makeMenu('menu3_3_4','menu3_3',"Trust Accounts", sitedir+"accounts_savings_trust.html");
		oM.makeMenu('menu3_3_5','menu3_3',"Investments &amp; Financial Planning", sitedir+"other_investplan.html");
	oM.makeMenu('menu3_4','menu3',"Business & Organizational Accounts", sitedir+"accounts_business.html");
	oM.makeMenu('menu3_5','menu3',"Fee Schedule", sitedir+"fee.html");
	oM.makeMenu('menu3_6','menu3',"Financial Network", "javascript:openWin('http://www.ptcuinv.com/new/ptcuinv/');");

//Rates
oM.makeMenu('menu4');
	oM.makeMenu('menu4_1','menu4',"Savings Rates", sitedir+"rates_savings.html");
	oM.makeMenu('menu4_2','menu4',"Loan Rates", sitedir+"rates_loan.html");
	oM.makeMenu('menu4_3','menu4',"Mortgage Rates", sitedir+"rates_loan.html#mort");
	oM.makeMenu('menu4_4','menu4',"Fee Schedule", sitedir+"fee.html");

//Other Services
oM.makeMenu('menu5');
	oM.makeMenu('menu5_1','menu5',"Investments &amp; Financial Planning", sitedir+"other_investplan.html");
	oM.makeMenu('menu5_2','menu5',"Insurance Services", sitedir+"other_services.html#insuranceservices");
	oM.makeMenu('menu5_3','menu5',"Financial Calculators", "javascript:void(0);");
		oM.makeMenu('menu5_3_1','menu5_3',"Loan Calculator", sitedir+"other_calcs_loan.html");
		oM.makeMenu('menu5_3_2','menu5_3',"Retirement Calculator", sitedir+"other_calcs_retirement.html");
		oM.makeMenu('menu5_3_3','menu5_3',"Loan Comparison Calculator", sitedir+"other_calcs_loancomp.html");
		oM.makeMenu('menu5_3_4','menu5_3',"Mortgage Calculator", sitedir+"other_calcs_mortgage.html");
	oM.makeMenu('menu5_4','menu5',"Community Links", sitedir+"other_links.html");
	oM.makeMenu('menu5_5','menu5',"Plan-It Retire Ready Toolkit", "javascript:showWarning('http://planit.cuna.org/020246/index.php');");//"javascript:showWarning('http://www.cu-village.com/village2000/?villid=cu20246');");
	oM.makeMenu('menu5_6','menu5',"Anytime Adviser", "javascript:showWarning('http://anytime.cuna.org/20246/index.php');");
		oM.makeMenu('menu5_7','menu5',"Other Services", sitedir+"other_services.html#otherservices");
	

oM.makeMenu('menu5_8','menu5',"Money Mix", "javascript:showWarning('http://moneymix.cuna.org/20246/');");	

//Join Today
oM.makeMenu('menu6');
	oM.makeMenu('menu6_1','menu6',"Membership Eligibility", sitedir+"join_eligibility.html");
	oM.makeMenu('menu6_2','menu6',"Membership Application", "javascript:open_apps('membership_app');");
	oM.makeMenu('menu6_3','menu6',"VIP Club", sitedir+"join_vipclub.html");
	
//About Us
oM.makeMenu('menu7');
	oM.makeMenu('menu7_1','menu7',"History, Whom We Serve", sitedir+"about_history.html");
	oM.makeMenu('menu7_2','menu7',"Mission Statement/Goals", sitedir+"about_mission.html");
	//oM.makeMenu('menu7_3','menu7',"Calendar of Events", sitedir+"about_events.html");
	oM.makeMenu('menu7_3','menu7',"The Outlook Newsletter", "javascript:openWin('" +sitedir+ "outlook_current.pdf');");
	oM.makeMenu('menu7_4','menu7',"Privacy Policy", "javascript:openWin('" +sitedir+ "privacy1.pdf');");

//Quick Finder
oM.makeMenu('menu8');
	
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("electronic");
var dropmenu2 = new FindPosition("loans");
var dropmenu3 = new FindPosition("savings");
var dropmenu4 = new FindPosition("rates");
var dropmenu5 = new FindPosition("other");
var dropmenu6 = new FindPosition("join");
var dropmenu7 = new FindPosition("about");
var dropmenu8 = new FindPosition("quick");

function showMenu(menu){
	switch(menu){
		case "menu1":
		oM.m["menu1"].b.moveIt(dropmenu1.xPos - 2 ,dropmenu1.yPos + 23);
		break;
		case "menu2":
		oM.m["menu2"].b.moveIt(dropmenu2.xPos - 2 ,dropmenu2.yPos + 23);
		break;
		case "menu3":
		oM.m["menu3"].b.moveIt(dropmenu3.xPos - 2 ,dropmenu3.yPos + 23);
		break;
		case "menu4":
		oM.m["menu4"].b.moveIt(dropmenu4.xPos - 2 ,dropmenu4.yPos + 23);
		break;
		case "menu5":
		oM.m["menu5"].b.moveIt(dropmenu5.xPos - 2 ,dropmenu5.yPos + 23);
		break;
		case "menu6":
		oM.m["menu6"].b.moveIt(dropmenu6.xPos - 2 ,dropmenu6.yPos + 23);
		break;
		case "menu7":
		oM.m["menu7"].b.moveIt(dropmenu7.xPos - 2 ,dropmenu7.yPos + 23);
		break;
		case "menu8":
		oM.m["menu8"].b.moveIt(dropmenu8.xPos,dropmenu8.yPos + 20);
		break;
	} 
	oM.showsub(menu);
}
