add:   var calendarViewBox = document.getElementById("calendar-view-box"); if (calendarViewBox.style.visibility == "collapse") { collapseElement(GetMessagePane()); collapseElement(document.getElementById("threadpane-splitter")); collapseElement(gSearchBox); uncollapseElement(calendarViewBox); }  
context: function showCalendar(aDate1, aDate2){    var view = currentView();    if (view.displayCalendar != getCompositeCalendar()) {        view.displayCalendar = getCompositeCalendar();        view.controller = ltnCalendarViewController;    }    if (aDate1 && !aDate2)        view.showDate(aDate1);    else if (aDate1 && aDate2)        view.setDateRange(aDate1, aDate2);    document.getElementById("displayDeck").selectedPanel =        document.getElementById("calendar-view-box");}
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