rem: if (id == "calendar-view-box") { GetMessagePane().collapsed = true; document.getElementById("threadpane-splitter").collapsed = true; gSearchBox.collapsed = true; deck.selectedPanel.style.visibility = ""; } else { document.getElementById("calendar-view-box").style.visibility = "collapse"; 
add:    if (id != "calendar-view-box") { collapseElement(document.getElementById("calendar-view-box")); uncollapseElement(GetMessagePane()); uncollapseElement(document.getElementById("threadpane-splitter")); uncollapseElement(gSearchBox); 
context: function LtnObserveDisplayDeckChange(event){    var deck = event.target;    // Bug 309505: The 'select' event also fires when we change the selected    // panel of calendar-view-box.  Workaround with this check.    if (deck.id != "displayDeck") {        return;    }    var id = null;    try { id = deck.selectedPanel.id } catch (e) { }    if (id == "calendar-view-box") {        GetMessagePane().collapsed = true;        document.getElementById("threadpane-splitter").collapsed = true;        gSearchBox.collapsed = true;        deck.selectedPanel.style.visibility = "";    } else {        document.getElementById("calendar-view-box").style.visibility = "collapse";    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8a7a0a557c1efdc372898fcb75795abcb1a43558/messenger-overlay-sidebar.js/clean/calendar/lightning/content/messenger-overlay-sidebar.js