rem: EnableDisableHierarchy(modebar,!isMode); EnableDisableHierarchy(menubar,isMode); EnableDisableHierarchy(mailbar,isMode); EnableDisableHierarchy(calendarbar,isMode); 
add: EnableDisableHierarchy(modebar, !isMode); EnableDisableHierarchy(menubar, isMode); EnableDisableHierarchy(mailbar, isMode); EnableDisableHierarchy(calendarbar, isMode); 
context:   var onModeSwitch = function switchHandler(aMode) {        // assume that we're switching to the mode toolbar    var toolbox = 'mode-toolbox';    // check which toolbar is to be customized next    // and possibly switch the the appropriate mode.        if(aMode == 'mail') {      ltnSwitch2Mail();      toolbox = 'mail-toolbox';    } else if(aMode == 'calendar') {      ltnSwitch2Calendar();      toolbox = 'mail-toolbox';    }    // enable/disable all toolbar to reflect the new state    var isMode = (aMode == 'mode');    EnableDisableHierarchy(modebar,!isMode);    EnableDisableHierarchy(menubar,isMode);    EnableDisableHierarchy(mailbar,isMode);    EnableDisableHierarchy(calendarbar,isMode);        // remember the current toolbox    gCustomizeId = toolbox;        // return this appropriate toolbox element    return document.getElementById(toolbox);  };
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/49d99658257e01d5bb14d94382a0b2604eb4fa45/messenger-overlay-toolbar.js/buggy/calendar/lightning/content/messenger-overlay-toolbar.js