add:    if (deck.id != "displayDeck") { return; }  
context: function LtnObserveDisplayDeckChange(event){    var deck = event.target;    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/bbb6879fe4e53d231615326a9065417defb9f788/messenger-overlay-sidebar.js/buggy/calendar/lightning/content/messenger-overlay-sidebar.js