var MENUS_top = 73; // previously from ecp_menu_large.js var MENUS_labelWidths = [82,108,125,125,125]; var MENUS_imgpath = '/media/images/main/ecp/nav/large/menulabel'; var MENUS_imgwidths = new Array(1,112,88,75); MENUS_btnheight = 21; var MENUS_buttonleft = 210; // var sectionRoot; var MENUS_persist = 1; var MENUS_buttontop = 73; var MENUS_itemMsoverBgColor = '#013366'; var MENUS_itemMsoutBgColor = '#5a668e'; var MENUS_subitemMsoverBgColor = '#5a668e'; var MENUS_subitemMsoutBgColor = '#013366'; // Declare standard and secure domain document root paths var docRootPath = '/brand/ecp'; var docRoot = docRootPath; var docRootSecure = 'https://secure.mbusa.com'; var appType = 'MBSkin=ecp'; // used for auto menu highlighting var isECPLocator = (window.location.href.indexOf('locator')>1); /* Home */ ILabels[0] = []; ILinks[0] = []; var MLabels; if (!isECPLocator) MLabels = ['Home','','Program Info','Purchase','Models']; else MLabels = ['Home','Purchase Inquiry']; var MLinks = new Array(); MLinks[0] = docRoot+'/index.jsp'; if (isECPLocator) { MLinks[1] = "javascript:winOpen('/MBServlet/PIController?mode=main&state=InitializeState&from=PA-Main-Nav','wPurchaseAssist',788,520,0,0,'scrollbars=0');"; ILabels[1] = []; ILinks[1] = []; MENUS_labelWidths[1] = 120; } if (!isECPLocator) { // Include usual nav items + ECP-specific items if not under HTTPS (ie. while not under ECP -> Account Info) MLinks[1] = 'javascript:void(0);'; MLinks[2] = 'javascript:void(0);'; MLinks[3] = 'javascript:void(0);'; MLinks[4] = 'javascript:void(0);'; /* Copy/modify mainsite models multi-dimensional array to temp array and assign to correct position later */ ILabelsTemp = []; ILabelsTemp = ILabels[1]; ILinksTemp = []; ILinksTemp = ILinks[1]; /* model selector menu item re-shuffling / addition of byo model selector page/link */ // ILabelsTemp[ILabelsTemp.length] = ILabelsTemp[ILabelsTemp.length-1]; // bump the last link/menu item down one // ILinksTemp[ILinksTemp.length] = ILinksTemp[ILinksTemp.length-1]; ILabelsTemp[ILabelsTemp.length] = 'Build Your Own'; // Add byo model selector link to second last menu item ILinksTemp[ILinksTemp.length] = "javascript:winOpen('http://www.mbusa.com/byo/select_another_model.jsp?samGotBack=no','BYO',788,520,0,0,'status=1,resizable=1');"; ILabels[1] = []; ILinks[1] = []; /* Program Info */ sectionRoot = '/programinfo'; ILabels[2] = []; ILabels[2][0] = 'Program Overview'; ILabels[2][1] = 'Executive Allowance Bonus Info'; ILabels[2][2] = 'FAQ'; ILabels[2][3] = 'Events Calendar'; ILinks[2] = []; ILinks[2][0] = docRoot+sectionRoot+'/overview.jsp?'+appType; ILinks[2][1] = 'javascript:subMenu(14)'; ILinks[2][2] = docRoot+sectionRoot+'/faq.jsp?'+appType; ILinks[2][3] = docRoot+sectionRoot+'/eab/events.jsp?'+appType; /* =========================== Program Info -> EAB sub-menu ============================== */ sectionRoot = '/programinfo/eab'; XLabels[14] = []; XLabels[14][0] = 'Program Overview'; XLabels[14][1] = 'How to Participate'; XLinks[14] = []; XLinks[14][0] = docRoot+sectionRoot+'/index.jsp?'+appType; XLinks[14][1] = docRoot+sectionRoot+'/participate.jsp?'+appType; /* Purchase */ sectionRoot = '/purchase'; ILabels[3] = []; ILabels[3][0] = 'Eligible Vehicles & Incentives'; ILabels[3][1] = 'How to Participate'; ILabels[3][2] = 'Terms & Conditions'; ILabels[3][3] = 'Warranty'; ILinks[3] = []; ILinks[3][0] = docRoot+sectionRoot+'/eligible.jsp?MBSkin=ecp&menu=3_0'; ILinks[3][1] = docRoot+sectionRoot+'/participate.jsp?'+appType; ILinks[3][2] = docRoot+sectionRoot+'/terms.jsp?'+appType; ILinks[3][3] = docRoot+sectionRoot+'/warranty.jsp?'+appType; /* Showroom */ /* copy temp mainsite arrays to appropriate section in nav */ ILabels[4] = []; ILabels[4] = ILabelsTemp; ILinks[4] = ILinksTemp; /* Program Details */ sectionRoot = '/programinfo'; XLinks[13] = []; XLinks[13][0] = docRoot+sectionRoot+'/program_overview.jsp'; XLinks[13][1] = docRoot+sectionRoot+'/retention_period.jsp'; XLinks[13][2] = docRoot+sectionRoot+'/vehicle_registration.jsp'; XLinks[13][3] = docRoot+sectionRoot+'/auditing.jsp'; XLinks[13][4] = docRoot+sectionRoot+'/open_ended_lease.jsp'; }