rem: gCalendarWindow.calendarManager.addCalendar( event.currentTarget.calendarObject );  event.currentTarget.calendarObject.active = true; 
add: gCalendarWindow.eventSource.gICalLib.addCalendar( calendarNode.getAttribute( "http:  calendarNode.setAttribute( "http: 
context: function switchCalendar( event ){   dump( "\nRemoveCalendar in calendarManager.js: button is "+event.button );   if (event.button != 0)    {      return;   }         //document.getElementById( "calendar-list-item-"+ThisCalendarObject.serverNumber );   if( event.currentTarget.childNodes[0].getAttribute( "checked" ) != "true" )   {      gCalendarWindow.calendarManager.addCalendar( event.currentTarget.calendarObject );      event.currentTarget.calendarObject.active = true;            event.currentTarget.childNodes[0].setAttribute( "checked", "true" );   }   else   {      gCalendarWindow.calendarManager.removeCalendar( event.currentTarget.calendarObject );      event.currentTarget.calendarObject.active = false;            event.currentTarget.childNodes[0].removeAttribute( "checked" );   }         refreshEventTree( false );   refreshToDoTree( false );      gCalendarWindow.currentView.refreshEvents();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/eccfe24949238ab11afd71e280a2c50fe7ee3ea0/calendarManager.js/buggy/calendar/resources/content/calendarManager.js