rem: var messengerDisplayDeck = document.getElementById("displayDeck"); 
context: function switchView(type) {    var messengerDisplayDeck = document.getElementById("displayDeck");    var calendarViewBox = document.getElementById("calendar-view-box");    var monthView = document.getElementById("calendar-month-view");    var multidayView = document.getElementById("calendar-multiday-view");    var selectedDay = calendarViewBox.selectedPanel.selectedDay;    if (!selectedDay)        selectedDay = today();    var d1, d2;    switch (type) {    case "month": {        d1 = selectedDay;        calendarViewBox.selectedPanel = monthView;    }        break;    case "week": {        d1 = selectedDay.startOfWeek;        d2 = selectedDay.endOfWeek;        calendarViewBox.selectedPanel = multidayView;    }        break;    case "day":    default: {        d1 = selectedDay;        d2 = selectedDay;        calendarViewBox.selectedPanel = multidayView;    }        break;    }    showCalendar(d1, d2);    calendarViewBox.selectedPanel.selectedDay = selectedDay;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/3f7875d176f49ef9d223892a8d2dbc925080d32b/messenger-overlay-sidebar.js/clean/calendar/lightning/content/messenger-overlay-sidebar.js