add:  if( window.arguments && window.arguments[0].url ) { var arrayForNames = window.arguments[0].url.split( "/" ); var CalendarNameWithExtension = arrayForNames[ arrayForNames.length - 1 ]; var CalendarName = CalendarNameWithExtension.replace( ".ics", "" );  gCalendarWindow.calendarManager.launchAddCalendarDialog( CalendarName, window.arguments[0].url ); } 
context: function calendarInit() {	// get the calendar event data source   gEventSource = new CalendarEventDataSource();      // get the Ical Library   gICalLib = gEventSource.getICalLib();      // set up the CalendarWindow instance      gCalendarWindow = new CalendarWindow( gEventSource );      //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 unifinder      prepareCalendarUnifinder();   prepareCalendarToDoUnifinder();      update_date();   		checkForMailNews();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ede3be3e455c257c3f0066989dbf2653bb2c6a27/calendar.js/buggy/calendar/resources/content/calendar.js