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=92, finishopacity=92, style=3)";
oM.level[1]=new cm_makeLevel(160,25,"item_off","item_on",0,1,"bordercolor",0,"right",0,0,imgdir+"tri.gif",5,6);
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)
*************************************/

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

oM.makeMenu('menu1');
oM.makeMenu('menu1_1','menu1','Vision, Mission, Core Values',sitedir+'about_mission.html');
oM.makeMenu('menu1_2','menu1','History',sitedir+'about_history.html');
oM.makeMenu('menu1_3','menu1','2010 Reflections Video',sitedir+'reflections_video.html');
oM.makeMenu('menu1_4','menu1','50th Anniversary Video',sitedir+'50thanniv.html');
oM.makeMenu('menu1_5','menu1','Board of Directors',sitedir+'about_board.html');
oM.makeMenu('menu1_6','menu1','Executive Management',sitedir+'about_executive_management.html');
oM.makeMenu('menu1_7','menu1','Annual Report',sitedir+'about_annual.html');
oM.makeMenu('menu1_8','menu1','Volunteer Opportunities',sitedir+'about_volunteer.html');
oM.makeMenu('menu1_9','menu1','Employment Opportunities',sitedir+'about_employment.html');
oM.makeMenu('menu1_10','menu1','Locations',sitedir+'locations.html');

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

oM.makeMenu('menu2');
oM.makeMenu('menu2_1','menu2','Eligibility',sitedir+'membership_eligibility.html');
oM.makeMenu('menu2_2','menu2','How to Join',sitedir+'membership_how_to_join.html');
        oM.makeMenu('menu2_2_1','menu2_2','Star Youth Website',sitedir+'star/staraccounts.htm','_blank');
        oM.makeMenu('menu2_2_2','menu2_2','Membership Application','javascript:inviteWarning(\''+sitedir+'MSG 12-05.pdf\');');
        oM.makeMenu('menu2_2_3','menu2_2','NCUA','javascript:showWarning(\'http://www.ncua.gov\');');
oM.makeMenu('menu2_3','menu2','FAQs',sitedir+'membership_faqs.html');

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

oM.makeMenu('menu3');
oM.makeMenu('menu3_1','menu3','Savings',sitedir+'products_savings.html', '', 230);
        oM.makeMenu('menu3_1_1','menu3_1','Credit Union Dividend History',sitedir+'rates_savings_dividend_history.html', '', 230);
        oM.makeMenu('menu3_1_2','menu3_1','NCUA','javascript:showWarning(\'http://www.ncua.gov\');', '', 230);
oM.makeMenu('menu3_2','menu3','Visa Card',sitedir+'products_visa.html', '', 230);
        oM.makeMenu('menu3_2_1','menu3_2','Student Visa',sitedir+'products_visa_student.html', '', 230);
        oM.makeMenu('menu3_2_2','menu3_2','Loan Request',sitedir+'online_loan_app.html', '', 230);
        oM.makeMenu('menu3_2_3','menu3_2','Transfer Form','javascript:openWin_PDF(\''+sitedir+'xferformRev.pdf\');', '', 230);
        oM.makeMenu('menu3_2_4','menu3_2','Visa Travel Tips', sitedir + 'visa_travel.html', '', 230);
				oM.makeMenu('menu3_2_5','menu3_2','Design Your Own Visa&reg; Credit Card',sitedir+'products_visa_DYOC.html', '', 230);
oM.makeMenu('menu3_3','menu3','Loans',sitedir+'products_loans.html', '', 230);
        oM.makeMenu('menu3_3_1','menu3_3','Personal Loans',sitedir+'products_loans_personal.html', '', 230);
					oM.makeMenu('menu3_3_1_1','menu3_4_1','Short Term Personal Loans',sitedir+'products_loans_personal_short.html', '', 230);
        oM.makeMenu('menu3_3_2','menu3_3','Vehicle Loans',sitedir+'rates_vehicle.html', '', 230);
                //oM.makeMenu('menu3_3_2_1','menu3_3_2','Payment Advantage',sitedir+'products_loans_vehicle_payment.html');
					oM.makeMenu('menu3_3_2_1','menu3_3_2','Guaranteed Asset Protection (GAP)','javascript:showWarning(\'http://cefcu.q2solutions.com/ConsumerSite.asp\');', '', 230);
					oM.makeMenu('menu3_3_2_2','menu3_3_2','Kelley Blue Book','javascript:showWarning(\'http://www.kbb.com\');', '', 230);
					oM.makeMenu('menu3_3_2_3','menu3_3_2','New Car Buying Coach','javascript:showWarning(\'http://anytime.cuna.org/10897/new_car/pages/001_001_001.html\');', '', 230);
					oM.makeMenu('menu3_3_2_4','menu3_3_2','Used Car Buying Coach','javascript:showWarning(\'http://anytime.cuna.org/10897/used_car/pages/001_001_001.html\');', '', 230);
        oM.makeMenu('menu3_3_3','menu3_3','Motorcycle and RV Loans',sitedir+'products_loans_motocycle_rv.html', '', 230);
        oM.makeMenu('menu3_3_4','menu3_3','Real Estate Loans',sitedir+'products_loans_real_estate.html', '', 230);
					oM.makeMenu('menu3_3_4_1','menu3_3_4','First Trust Deed',sitedir+'products_loans_real_estate_first_trust.html', '', 230);
						oM.makeMenu('menu3_3_4_1_1','menu3_3_4_1','15 Year Fixed',sitedir + 'first_trust_deed_variable.html', '', 230);
						oM.makeMenu('menu3_3_4_1_2','menu3_3_4_1','30 Year Fixed',sitedir + 'first_trust_deed_fixed.html', '', 230);
					oM.makeMenu('menu3_3_4_2','menu3_3_4','Home Buying Coach','javascript:showWarning(\'http://anytime.cuna.org/10897/home_buying/pages/001_001_001.html\');', '', 230);
					oM.makeMenu('menu3_3_4_3','menu3_3_4','HELOC Loan Application',sitedir+'online_loan_app.html', '', 230);
				
        oM.makeMenu('menu3_3_5','menu3_3','Private Student Loans',sitedir+ 'private_student_loans.html', '', 230);
        oM.makeMenu('menu3_3_6','menu3_3','Loan Request',sitedir+ 'online_loan_app.html', '', 230);
        oM.makeMenu('menu3_3_7','menu3_3','Loan Calculator',sitedir+'products_loans_loan_calc.html', '', 230);
				oM.makeMenu('menu3_3_8','menu3_3','Documents Needed',sitedir+'required_documents_for_loan.html', '', 230);

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


oM.makeMenu('menu4');
oM.makeMenu('menu4_1','menu4','ATM Services',sitedir+'services_atm.html');
            oM.makeMenu('menu4_1_1','menu4_1','ATM Locator','javascript:showWarning(\'http://www.co-opnetwork.org\');');
            oM.makeMenu('menu4_1_2','menu4_1','ATM Card Application','javascript:openWin_PDF(\''+sitedir+'PC_Access_Mech2.pdf\');');
        //  oM.makeMenu('menu4_1_3','menu4_1','CO-OP ATM','javascript:showWarning(\'http://www.co-opnetwork.org/public/find_atm/index.cfm\');');
oM.makeMenu('menu4_2','menu4','Convenience Services',sitedir+'services_convenience.html');
            oM.makeMenu('menu4_2_1','menu4_2','Direct Deposit',sitedir+'services_convenience_direct.html');
                        oM.makeMenu('menu4_2_1_1','menu4_2_1','Direct Deposit Worksheet',sitedir+'services_convenience_direct_worksheet.html');
            oM.makeMenu('menu4_2_2','menu4_2','Payroll Deduction',sitedir+'services_convenience_payroll.html');
            oM.makeMenu('menu4_2_3','menu4_2','Travelers Cheques Services',sitedir+'services_convenience_travelers.html');
            oM.makeMenu('menu4_2_4','menu4_2','Visa Gift Cards',sitedir+'resources_giftcard.html');
oM.makeMenu('menu4_3','menu4','CEFCU@HOME',sitedir+'services_pc_access.html');
oM.makeMenu('menu4_4','menu4','Schedule of Fees',sitedir+'resources_schedule_fees.html');
//oM.makeMenu('menu4_4','menu4','Calendar',sitedir+'resources_cal.html');
//          oM.makeMenu('menu4_4_1','menu4_4','2006 Calendar','javascript:openWin_PDF(\''+sitedir+'calendars/calendar_months_06indd.pdf\');');


    //  oM.makeMenu('menu4_4_2','menu4_4','2005 Calendar','javascript:openWin_PDF(\''+sitedir+'Cal_Tech_cal_05a.pdf\');');



/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

oM.makeMenu('menu5');
oM.makeMenu('menu5_1','menu5','Savings',sitedir+'products_savings.html');
        //  oM.makeMenu('menu5_1_1','menu5_1','Dividend Article','javascript:openWin_PDF(\''+sitedir+'win01.pdf\');');
            oM.makeMenu('menu5_1_1','menu5_1','Credit Union Dividend History',sitedir+'rates_savings_dividend_history.html');
            oM.makeMenu('menu5_1_2','menu5_1','NCUA','javascript:showWarning(\'http://www.ncua.gov\');');
oM.makeMenu('menu5_2','menu5','Personal Loans',sitedir+'rates_personal.html');
oM.makeMenu('menu5_3','menu5','Vehicle Loans',sitedir+'rates_vehicle.html');
oM.makeMenu('menu5_4','menu5','Motorcycle and RV Loans',sitedir+'rates_motorcycle.html');
oM.makeMenu('menu5_5','menu5','Real Estate Loans',sitedir+'products_loans_real_estate.html');

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/*  Resources &amp; Tools  */


oM.makeMenu('menu6');
oM.makeMenu('menu6_1','menu6','Annual Report',sitedir+'about_annual.html', '', 230);
oM.makeMenu('menu6_2','menu6','Anytime Advisor','javascript:showWarning(\'http://anytime.cuna.org/10897/index.php\');', '', 230);
oM.makeMenu('menu6_3','menu6','Calculators',sitedir+'resources_calc.html', '', 230);
oM.makeMenu('menu6_4','menu6','Calendars',sitedir+'resources_cal.html', '', 230);
oM.makeMenu('menu6_5','menu6','Focus Newsletter',sitedir+'resources_focus.html', '', 230);
            oM.makeMenu('menu6_5_1','menu6_5','Current Focus Newsletter','javascript:openWin_PDF(\''+sitedir+'Focus_current_SepPages.pdf\');', '', 230);
            oM.makeMenu('menu6_5_2','menu6_5','Past Focus Newsletters',sitedir+'resources_focus_past.html', '', 230);
//oM.makeMenu('menu6_7','menu6','Googolplex','javascript:showWarning(\'http://googolplex.cuna.org/googolplex/googolplex.html?sub_id=10897\');', '', 230);
//oM.makeMenu('menu6_8','menu6','Incoming Wire Instructions','javascript:openWin_PDF(\''+sitedir+'incoming_wire_instructions.pdf\');', '', 230);
oM.makeMenu('menu6_8','menu6','Foreign Currency ',sitedir+'resources_foreign_currency.html', '', 230);
oM.makeMenu('menu6_9','menu6','Internal Revenue Services ','javascript:showWarning(\'http://www.irs.gov\');', '', 230);
oM.makeMenu('menu6_10','menu6','Links',sitedir+'resources_links.html', '', 230);
            oM.makeMenu('menu6_10_1','menu6_10','Adobe Acrobat Reader','javascript:showWarning(\'http://www.adobe.com/products/acrobat/readstep2.html\');', '', 230);
            oM.makeMenu('menu6_10_2','menu6_10','ATM Locator','javascript:showWarning(\'http://www.co-opnetwork.org\');', '', 230);
            oM.makeMenu('menu6_10_3','menu6_10','Caltech Home Page','javascript:showWarning(\'http://www.caltech.edu\');', '', 230);
            oM.makeMenu('menu6_10_4','menu6_10','JPL Home Page','javascript:showWarning(\'http://www.jpl.nasa.gov\');', '', 230);
						oM.makeMenu('menu6_10_5','menu6_10','Guaranteed Asset Protection (GAP)','javascript:showWarning(\'http://cefcu.q2solutions.com/ConsumerSite.asp\');', '', 230);
            oM.makeMenu('menu6_10_6','menu6_10','Kelley Blue Book','javascript:showWarning(\'http://www.kbb.com\');', '', 230);
            oM.makeMenu('menu6_10_7','menu6_10','Redbook','javascript:showWarningrb(\'http://www.Redbook4autos.com\');', '', 230);
oM.makeMenu('menu6_11','menu6','Privacy Notice',sitedir+'resources_privacy.html', '', 230);
oM.makeMenu('menu6_12','menu6','Schedule of Fees',sitedir+'resources_schedule_fees.html', '', 230);
oM.makeMenu('menu6_13','menu6','Wiring Instructions',sitedir+'wire_instructions.html', '', 230);


/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/* Apps and Forms  */

//width (and preceeding target argument) added for 200-80581 - to increase width enough to accomidate 'CEFCU@Home Cross Account Transfer Form'  can be removed if that menu item is removed.

oM.makeMenu('menu7');
oM.makeMenu('menu7_1','menu7','Address Change','javascript:openWin_PDF(\''+sitedir+'address_change_web.pdf\');','','230');
oM.makeMenu('menu7_2','menu7','ATM Card Application','javascript:openWin_PDF(\''+sitedir+'PC_Access_Mech2.pdf\');','','230');
oM.makeMenu('menu7_3','menu7','CEFCU@Home Cross Account Transfer Form','javascript:openWin_PDF(\''+sitedir+'cross_acct_xfer_form.pdf\');','','230');
oM.makeMenu('menu7_4','menu7','Direct Deposit Agreement','javascript:openWin_PDF(\''+sitedir+'direct_deposit_agreement.pdf\');','','230');
oM.makeMenu('menu7_5','menu7','Direct Deposit Worksheet',sitedir+'applications_direct_deposit.html','','230');
oM.makeMenu('menu7_6','menu7','HELOC Loan Application',sitedir+'online_loan_app.html','','230');
oM.makeMenu('menu7_7','menu7','Loan Request',sitedir+'online_loan_app.html','','230');
oM.makeMenu('menu7_8','menu7','Membership Application','javascript:inviteWarning(\''+sitedir+'MSG 12-05.pdf\');','','230');
oM.makeMenu('menu7_9','menu7','Vehicle Loans FAQs',sitedir+'faqs_vehicle_loans.html','','230');
oM.makeMenu('menu7_10','menu7','Visa Auto Pay Form','javascript:openWin_PDF(\''+sitedir+'visa_autopay.pdf\');','','230');
oM.makeMenu('menu7_11','menu7','Visa Transfer Form','javascript:openWin_PDF(\''+sitedir+'xferformRev.pdf\');','','230');

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

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("about");
var dropmenu2 = new  FindPosition("membership");
var dropmenu3 = new  FindPosition("products");
var dropmenu4 = new  FindPosition("services");
var dropmenu5 = new  FindPosition("rates");
var dropmenu6 = new  FindPosition("resources");
var dropmenu7 = new  FindPosition("applications");

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

}




