rem: switch2mail.removeAttribute("checked"); 
add: switch2task.removeAttribute("checked"); 
context: function ltnSwitch2Calendar() {  if (gCurrentMode != 'calendar') {    var switch2mail = document.getElementById("switch2mail");    var switch2calendar = document.getElementById("switch2calendar");    switch2calendar.setAttribute("checked", "true");    switch2mail.removeAttribute("checked");    gCurrentMode = 'calendar';    var mailToolbar = getMailBar();    var calendarToolbar = document.getElementById("calendar-toolbar");    mailToolbar.setAttribute("collapsed", "true");    calendarToolbar.removeAttribute("collapsed");    // the content deck should display the calendar panel    var contentDeck = document.getElementById("contentPanel");    contentDeck.selectedPanel = document.getElementById("ltnSidebar");    // display the calendar panel on the display deck    var viewBox = document.getElementById("calendar-view-box");    uncollapseElement(viewBox);    var deck = document.getElementById("displayDeck");    deck.selectedPanel = viewBox;    // show the last displayed type of calendar view    showCalendarView(gLastShownCalendarView);    document.commandDispatcher.updateCommands('mail-toolbar');    document.commandDispatcher.updateCommands('calendar_commands');  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/4f4c0eb29c387abfad079877e7c95e6882509c89/messenger-overlay-toolbar.js/buggy/calendar/lightning/content/messenger-overlay-toolbar.js