rem:  gICalLib = new Object();  
context: function calendarInit() {    // XXX remove this eventually    gICalLib = new Object();   // set up the CalendarWindow instance      gCalendarWindow = new CalendarWindow();      //when you switch to a view, it takes care of refreshing the events, so that call is not needed.   gCalendarWindow.currentView.switchTo( gCalendarWindow.currentView );   // set up the checkboxes variables   gOnlyWorkdayChecked = document.getElementById( "only-workday-checkbox-1" ).getAttribute("checked") ;   gDisplayToDoInViewChecked = document.getElementById( "display-todo-inview-checkbox-1" ).getAttribute("checked") ;   // set up the unifinder      prepareCalendarUnifinder();   prepareCalendarToDoUnifinder();      update_date();   checkForMailNews();   initCalendarManager();   if (("arguments" in window) && (window.arguments.length) &&       (typeof(window.arguments[0]) == "object") &&       ("channel" in window.arguments[0]) ) {       gCalendarWindow.calendarManager.checkCalendarURL(            window.arguments[0].channel );   }   // a bit of a hack since the menulist doesn't remember the selected value   var value = document.getElementById( 'event-filter-menulist' ).value;   document.getElementById( 'event-filter-menulist' ).selectedItem =        document.getElementById( 'event-filter-'+value );   var toolbox = document.getElementById("calendar-toolbox");   toolbox.customizeDone = CalendarToolboxCustomizeDone;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/b831e6d9a37212f4b6922beb7de86268078e5bbd/calendar.js/buggy/calendar/resources/content/calendar.js