rem: if (ltnCurrentMode() != 'mail') { 
add: if (gCurrentMode != 'mail') { 
context: function ltnSwitch2Mail() {  if (ltnCurrentMode() != 'mail') {    var switch2mail = document.getElementById("switch2mail");    var switch2calendar = document.getElementById("switch2calendar");    switch2mail.setAttribute("checked", "true");    switch2calendar.removeAttribute("checked");    var mailToolbar = getMailBar();    var calendarToolbar = document.getElementById("calendar-toolbar");    mailToolbar.removeAttribute("collapsed");    calendarToolbar.setAttribute("collapsed", "true");    // the content panel should display the folder tree    var contentDeck = document.getElementById("contentPanel");    contentDeck.selectedPanel = document.getElementById("folderPaneBox");        // tell thunderbird that it needs to refresh the mail list.    // basically, we fake a selection change by directly calling    // the appropriate handler while clearing out some internal    // variables in order to force a refresh of the mail views.    gMsgFolderSelected = null;    msgWindow.openFolder = null;    ShowThreadPane();    FolderPaneSelectionChange();        document.commandDispatcher.updateCommands('mail-toolbar');    document.commandDispatcher.updateCommands('calendar_commands');        gCurrentMode = 'mail';  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/4e4e553d858c94cfa63d04c3f9ae121c96902a9c/messenger-overlay-toolbar.js/clean/calendar/lightning/content/messenger-overlay-toolbar.js