// I think this is the only menu script called directly from any of the web pages -- sml
function LoadMenus()
{
if (window.menu_inbox) return;
window.menu_inbox = new Menu("inbox",220,18,"Verdana, Arial, Helvetica, sans-serif",11,"#0033AB","#000000","#E5F0F6","#F9F9B9","left","middle",2,0,500,-5,7,true,true,true,0,true,true);
/*
menu_inbox.addMenuItem("eDACCA Salary Distribution Inbox", "map.url.pointTo('edacca_inbox')");
menu_inbox.addMenuItem("Procurement Card Inbox", "map.url.pointTo('jv_verify')");
menu_inbox.addMenuItem("Requisition Approver Inbox", "map.url.pointTo('req_approver')");
menu_inbox.addMenuItem("JV Inbox", "map.url.pointTo('jv_workflow')");
menu_inbox.addMenuItem("Requisition Creator Inbox", "map.url.pointTo('req_creator')");
menu_inbox.addMenuItem("RFP Inbox", "map.url.pointTo('rfp_inbox')");
*/
menu_inbox.fontWeight="bold";
menu_inbox.hideOnMouseOut=true;
menu_inbox.bgColor='#33466E';
menu_inbox.menuBorder=1;
menu_inbox.menuLiteBgColor='#33466E';
menu_inbox.menuBorderBgColor='#33466E';
window.menu_purchasing = new Menu("purchasing",198,18,"Verdana, Arial, Helvetica, sans-serif",11,"#0033AB","#000000","#E5F0F6","#F9F9B9","left","middle",2,0,500,-5,7,true,true,true,0,true,true);
/*
menu_purchasing.addMenuItem("eCAT3", "map.url.pointTo('sciquest')");
menu_purchasing.addMenuItem("External Requisition", "map.url.pointTo('create_req_ext')");
menu_purchasing.addMenuItem("Internal Requisition", "map.url.pointTo('create_req_int')");
menu_purchasing.addMenuItem("External Req (Facilities)", "map.url.pointTo('create_req_dof')");
menu_purchasing.addMenuItem("RFP Reimbursement", "map.url.pointTo('rfp_rfr')");
menu_purchasing.addMenuItem("RFP Payment", "map.url.pointTo('rfp_rfp')");
menu_purchasing.addMenuItem("Clone an RFP", "map.url.pointTo('rfp_clone')");
menu_purchasing.addMenuItem("Reimbursement Preferences", "map.url.pointTo('payment_prefs')");
menu_purchasing.addMenuItem("Concur Travel Expense", "map.url.pointTo('travel_concur')");
menu_purchasing.addMenuItem("Find Requisitions", "map.url.pointTo('disp_req')");
menu_purchasing.addMenuItem("Find Purchase Orders", "map.url.pointTo('disp_po')");
menu_purchasing.addMenuItem("Close Purchase Orders", "map.url.pointTo('close_po')");
menu_purchasing.addMenuItem("Find RFPs", "map.url.pointTo('rfp_search')");
*/
menu_purchasing.fontWeight="bold";
menu_purchasing.hideOnMouseOut=true;
menu_purchasing.bgColor='#33466E';
menu_purchasing.menuBorder=1;
menu_purchasing.menuLiteBgColor='#33466E';
menu_purchasing.menuBorderBgColor='#33466E';
window.menu_accounting = new Menu("accounting",200,18,"Verdana, Arial, Helvetica, sans-serif",11,"#0033AB","#000000","#E5F0F6","#F9F9B9","left","middle",2,0,500,-5,7,true,true,true,0,true,true);
/*
menu_accounting.addMenuItem("Create a JV", "map.url.pointTo('jv_create')");
menu_accounting.addMenuItem("Change a JV", "map.url.pointTo('jv_change')");
menu_accounting.addMenuItem("Clone a JV", "map.url.pointTo('jv_search_clone')");
menu_accounting.addMenuItem("Reverse a JV", "map.url.pointTo('jv_search_reverse')");
menu_accounting.addMenuItem("NIMBUS", "map.url.pointTo('nimbus')");
menu_accounting.addMenuItem("Display a JV", "map.url.pointTo('jv_disp')");
menu_accounting.addMenuItem("JV /Credit Card Report", "map.url.pointTo('jv_report')");
*/
menu_accounting.fontWeight="bold";
menu_accounting.hideOnMouseOut=true;
menu_accounting.bgColor='#33466E';
menu_accounting.menuBorder=1;
menu_accounting.menuLiteBgColor='#33466E';
menu_accounting.menuBorderBgColor='#33466E';
window.menu_ehs = new Menu("ehs",233,18,"Verdana, Arial, Helvetica, sans-serif",11,"#0033AB","#000000","#E5F0F6","#F9F9B9","left","middle",2,0,500,-5,7,true,true,true,0,true,true);
/*
menu_ehs.addMenuItem("DLC Preference Settings", "map.url.pointTo('ehs_dlc_pref')");
menu_ehs.addMenuItem("Room: Create/Change/Display", "map.url.pointTo('ehs_change_space')");
menu_ehs.addMenuItem("Roomset: Create New ", "map.url.pointTo('ehs_create_rs')");
menu_ehs.addMenuItem("Roomset: Change/Display", "map.url.pointTo('ehs_change_rs')");
menu_ehs.addMenuItem("Annual Chemical Reporting", "map.url.pointTo('ehs_sara')");
menu_ehs.addMenuItem("Create and Complete Inspections", "map.url.pointTo('ehs_ins')");
menu_ehs.addMenuItem("Inspection Task List", "map.url.pointTo('ehs_task_list')");
menu_ehs.addMenuItem("View Findings Assigned To Me", "map.url.pointTo('ehs_findings')");
menu_ehs.addMenuItem("Supervisor's Injury Report", "map.url.pointTo('ehs_injury')");
menu_ehs.addMenuItem("MIT Learning Center", "map.url.pointTo('training_portal')");
menu_ehs.addMenuItem("Download Reports","map.url.pointTo('ehs_warehouse_report')");
menu_ehs.addMenuItem("Waste Management","top.location='https://ehs.mit.edu/site/waste/'");
menu_ehs.addMenuItem("Chemical Waste Collection","top.location='https://ehs.mit.edu/site/content/chemical-waste-collection-form'");
menu_ehs.addMenuItem("Radioactive Waste Collection","top.location='https://ehs.mit.edu/site/content/radioactive-waste-pick'");
menu_ehs.addMenuItem("Questionnaire Maintenance", "map.url.pointTo('ehs_ins_admin')");
menu_ehs.addMenuItem("SARA Extraction Utility", "map.url.pointTo('ehs_tier2')");
*/
menu_ehs.fontWeight="bold";
menu_ehs.hideOnMouseOut=true;
menu_ehs.bgColor='#33466E';
menu_ehs.menuBorder=1;
menu_ehs.menuLiteBgColor='#33466E';
menu_ehs.menuBorderBgColor='#33466E';
window.menu_employees = new Menu("employees",250,18,"Verdana, Arial, Helvetica, sans-serif",11,"#0033AB","#000000","#E5F0F6","#F9F9B9","left","middle",2,0,500,-5,7,true,true,true,0,true,true);
/*
menu_employees.addMenuItem("Approve/Distribute Time Sheets", "map.url.pointTo('time_admin')");
menu_employees.addMenuItem("Request Time Sheet Correction", "map.url.pointTo('time_admin_corr')");
menu_employees.addMenuItem("View Time Sheets", "map.url.pointTo('time_admin_history')");
menu_employees.addMenuItem("Salary Distribution System (eSDS)", "map.url.pointTo('esds')");
menu_employees.addMenuItem("eDACCA Salary Distribution Inbox", "map.url.pointTo('edacca_inbox')");
menu_employees.addMenuItem("eDACCA Salary Distribution Search", "map.url.pointTo('edacca_search')");
menu_employees.addMenuItem("Late Salary Dist Change Request", "map.url.pointTo('vpfforms_latechg')");
menu_employees.addMenuItem("Update Personal Information", "map.url.pointTo('upi')");
menu_employees.addMenuItem("SRS Vacation Report", "map.url.pointTo('vactrac_admin')");
menu_employees.addMenuItem("Changes (Promotions, Transfers, etc.)", "map.url.pointTo('apr_changes')");
menu_employees.addMenuItem("Extend appointment", "map.url.pointTo('apr_changes_extend_appt')");
menu_employees.addMenuItem("Hires", "map.url.pointTo('apr_hires')");
menu_employees.addMenuItem("Leave of Absence", "map.url.pointTo('apr_leaves')");
menu_employees.addMenuItem("Other Actions", "map.url.pointTo('apr_changes_other')");
menu_employees.addMenuItem("Supplemental Payment", "map.url.pointTo('supplement')");
menu_employees.addMenuItem("Termination/Retirement", "map.url.pointTo('term')");
menu_employees.addMenuItem("HR Transaction Inbox", "map.url.pointTo('apr_inbox')");
menu_employees.addMenuItem("View a Transaction", "map.url.pointTo('apr_view')");
menu_employees.addMenuItem("HR Preferences", "map.url.pointTo('apr_prefs')");
*/
menu_employees.fontWeight="bold";
menu_employees.hideOnMouseOut=true;
menu_employees.bgColor='#33466E';
menu_employees.menuBorder=1;
menu_employees.menuLiteBgColor='#33466E';
menu_employees.menuBorderBgColor='#33466E';
window.menu_studentwork = new Menu("studentwork",275,18,"Verdana, Arial, Helvetica, sans-serif",11,"#0033AB","#000000","#E5F0F6","#F9F9B9","left","middle",2,0,500,-5,7,true,true,true,0,true,true);
/*
menu_studentwork.addMenuItem("Create Non UROP Appointment", "map.url.pointTo('studwork_nonurop')");
menu_studentwork.addMenuItem("Create UROP Appointment", "map.url.pointTo('studwork_urop')");
menu_studentwork.addMenuItem("Changes (Extend, Terminate, Rate, Hrs ...)", "map.url.pointTo('studwork_chg_appt')");
menu_studentwork.addMenuItem("Cancel Appointment", "map.url.pointTo('studwork_cancel_appt')");
menu_studentwork.addMenuItem("Approver Inbox", "map.url.pointTo('studwork_inbox')");
menu_studentwork.addMenuItem("View Student Appointments", "top.location='http://tiny.cc/6j4new'");
menu_studentwork.addMenuItem("View Transactions", "map.url.pointTo('studwork_view_trans')");
menu_studentwork.addMenuItem("Approve/Distribute Time Sheets", "map.url.pointTo('time_admin')");
menu_studentwork.addMenuItem("Request Time Sheet Correction", "map.url.pointTo('time_admin_corr')");
menu_studentwork.addMenuItem("View Time Sheets", "map.url.pointTo('time_admin_history')");
*/
menu_studentwork.fontWeight="bold";
menu_studentwork.hideOnMouseOut=true;
menu_studentwork.bgColor='#33466E';
menu_studentwork.menuBorder=1;
menu_studentwork.menuLiteBgColor='#33466E';
menu_studentwork.menuBorderBgColor='#33466E';
window.menu_facilities = new Menu("facilities",255,18,"Verdana, Arial, Helvetica, sans-serif",11,"#0033AB","#000000","#E5F0F6","#F9F9B9","left","middle",2,0,500,-5,7,true,true,true,0,true,true);
/*
menu_facilities.addMenuItem("Repairs: Buildings", "map.url.pointTo('bldng_srv_bldng_rpr')");
menu_facilities.addMenuItem("Repairs: Residence Halls", "map.url.pointTo('bldng_srv_dorm_rpr')");
menu_facilities.addMenuItem("Recycling & Bulk Trash", "map.url.pointTo('bldng_srv_recyc')");
menu_facilities.addMenuItem("Cleaning", "map.url.pointTo('bldng_srv_clean')");
menu_facilities.addMenuItem("Pest Control", "map.url.pointTo('bldng_srv_pest')");
menu_facilities.addMenuItem("Keys", "map.url.pointTo('bldng_srv_keys')");
menu_facilities.addMenuItem("Physical Security: Work Order Create", "map.url.pointTo('bldng_srv_secwo_create')");
menu_facilities.addMenuItem("Physical Security: Work Order Change", "map.url.pointTo('bldng_srv_secwo_change')");
menu_facilities.addMenuItem("Moving", "map.url.pointTo('bldng_srv_mov')");
menu_facilities.addMenuItem("Event Setup", "map.url.pointTo('bldng_srv_evnt')");
menu_facilities.addMenuItem("Signage", "map.url.pointTo('bldng_srv_sign')");
menu_facilities.addMenuItem("Renovations", "map.url.pointTo('bldng_srv_ren')");
menu_facilities.addMenuItem("Locks", "map.url.pointTo('bldng_srv_locks')");
menu_facilities.addMenuItem("Landscaping", "map.url.pointTo('bldng_srv_land')");
menu_facilities.addMenuItem("Reserve Visitor Parking", "map.url.pointTo('vpis_reserve')");
menu_facilities.addMenuItem("Department Parking Passes", "map.url.pointTo('park_pass_new')");
menu_facilities.addMenuItem("View Work Orders", "map.url.pointTo('work_order_display')");
menu_facilities.addMenuItem("View Parking Reservations ", "map.url.pointTo('vpis_view')");
menu_facilities.addMenuItem("Change Parking Reservations ", "map.url.pointTo('vpis_search')");
menu_facilities.addMenuItem("View Parking Pass Orders (JVs)", "map.url.pointTo('jv_disp')");
menu_facilities.addMenuItem("View Physical Security Work Orders", "map.url.pointTo('bldng_srv_secwo_view')");
*/
menu_facilities.fontWeight="bold";
menu_facilities.hideOnMouseOut=true;
menu_facilities.bgColor='#33466E';
menu_facilities.menuBorder=1;
menu_facilities.menuLiteBgColor='#33466E';
menu_facilities.menuBorderBgColor='#33466E';
window.menu_reporting = new Menu("reporting",250,18,"Verdana, Arial, Helvetica, sans-serif",11,"#0033AB","#000000","#E5F0F6","#F9F9B9","left","middle",2,0,500,-5,7,true,true,true,0,true,true);
/*
menu_reporting.addMenuItem("Cost Collector Lookup", "map.url.pointTo('cost_lookup')");
menu_reporting.addMenuItem("G/L Account Lookup", "map.url.pointTo('gl_lookup')");
menu_reporting.addMenuItem("Cumulative Account Balance Report", "map.url.pointTo('dw_cume')");
menu_reporting.addMenuItem("Funding Account Balance Report", "map.url.pointTo('dw_fund_bal')");
menu_reporting.addMenuItem("Commitment Report", "map.url.pointTo('dw_commitment')");
menu_reporting.addMenuItem("Transaction Report", "map.url.pointTo('dw_trans')");
menu_reporting.addMenuItem("MIT Learning Center Instructor", "map.url.pointTo('training_portal')");
*/
menu_reporting.fontWeight="bold";
menu_reporting.hideOnMouseOut=true;
menu_reporting.bgColor='#33466E';
menu_reporting.menuBorder=1;
menu_reporting.menuLiteBgColor='#33466E';
menu_reporting.menuBorderBgColor='#33466E';
window.menu_support = new Menu("support",208,18,"Verdana, Arial, Helvetica, sans-serif",11,"#0033AB","#000000","#E5F0F6","#F9F9B9","left","middle",2,0,500,-5,7,true,true,true,0,true,true);
/*
menu_support.addMenuItem("Get Web Certificates", "map.url.pointTo('mit_cert')");
menu_support.addMenuItem("Email Notification", "map.url.pointTo('email_pref')");
menu_support.addMenuItem("001 Settings", "map.url.pointTo('001_pref')");
menu_support.addMenuItem("View My Authorizations", "top.location='https://rolesweb.mit.edu/cgi-bin/my-auth.cgi'");
menu_support.addMenuItem("SAPgui for Windows Installer","map.url.pointTo('sapgui_win')" );
menu_support.addMenuItem("SAPgui for Mac OSX Installer", "map.url.pointTo('sapgui_mac')");
menu_support.addMenuItem("IXOS for Windows Installer", "map.url.pointTo('ixos_win')");
menu_support.addMenuItem("SAPgui Documentation", "top.location='http://web.mit.edu/sapr3/docs/webdocs/'");
*/
menu_support.fontWeight="bold";
menu_support.hideOnMouseOut=true;
menu_support.bgColor='#33466E';
menu_support.menuBorder=1;
menu_support.menuLiteBgColor='#33466E';
menu_support.menuBorderBgColor='#33466E';
menu_support.writeMenus();
} // LoadMenus()
// private scripts from here on
/**
* mm_menu 20MAR2002 Version 6.0
* Andy Finnell, March 2002
* Copyright (c) 2000-2002 Macromedia, Inc.
*
* based on menu.js
* by gary smith, July 1997
* Copyright (c) 1997-1999 Netscape Communications Corp.
*
* Netscape grants you a royalty free license to use or modify this
* software provided that this copyright notice appears on all copies.
* This software is provided "AS IS," without a warranty of any kind.
*/
function Menu(label, mw, mh, fnt, fs, fclr, fhclr, bg, bgh, halgn, valgn, pad, space, to, sx, sy, srel, opq, vert, idt, aw, ah)
{
this.version = "020320 [Menu; mm_menu.js]";
this.type = "Menu";
this.menuWidth = mw;
this.menuItemHeight = mh;
this.fontSize = fs;
this.fontWeight = "plain";
this.fontFamily = fnt;
this.fontColor = fclr;
this.fontColorHilite = fhclr;
this.bgColor = "#555555";
this.menuBorder = 1;
this.menuBgOpaque=opq;
this.menuItemBorder = 1;
this.menuItemIndent = idt;
this.menuItemBgColor = bg;
this.menuItemVAlign = valgn;
this.menuItemHAlign = halgn;
this.menuItemPadding = pad;
this.menuItemSpacing = space;
this.menuLiteBgColor = "#ffffff";
this.menuBorderBgColor = "#777777";
this.menuHiliteBgColor = bgh;
this.menuContainerBgColor = "#cccccc";
this.childMenuIcon = "arrows.gif";
this.submenuXOffset = sx;
this.submenuYOffset = sy;
this.submenuRelativeToItem = srel;
this.vertical = vert;
this.items = new Array();
this.actions = new Array();
this.childMenus = new Array();
this.hideOnMouseOut = true;
this.hideTimeout = to;
this.addMenuItem = addMenuItem;
this.writeMenus = writeMenus;
this.showMenu = showMenu;
this.onMenuItemOver = onMenuItemOver;
this.onMenuItemAction = onMenuItemAction;
this.hideMenu = hideMenu;
this.hideChildMenu = hideChildMenu;
if (!window.menus) window.menus = new Array();
this.label = " " + label;
window.menus[this.label] = this;
window.menus[window.menus.length] = this;
if (!window.activeMenus) window.activeMenus = new Array();
}
function addMenuItem(label, action) {
this.items[this.items.length] = label;
this.actions[this.actions.length] = action;
}
function FIND(item) {
if( window.mmIsOpera ) return(document.getElementById(item));
if (document.all) return(document.all[item]);
if (document.getElementById) return(document.getElementById(item));
return(false);
}
function writeMenus(container) {
if (window.triedToWriteMenus) return;
var agt = navigator.userAgent.toLowerCase();
window.mmIsOpera = agt.indexOf("opera") != -1;
if (!container && document.layers) {
window.delayWriteMenus = this.writeMenus;
var timer = setTimeout('delayWriteMenus()', 500);
container = new Layer(100);
clearTimeout(timer);
} else if (document.all || document.hasChildNodes || window.mmIsOpera) {
document.writeln('');
container = FIND("menuContainer");
}
window.mmHideMenuTimer = null;
if (!container) return;
window.triedToWriteMenus = true;
container.isContainer = true;
container.menus = new Array();
for (var i=0; i