rem: var containerName = this.calendarWindow.calendarManager.getCalendarByName( calendarEventDisplay.event.parent.server ).subject.split(":")[2];  
context: DayView.prototype.createAllDayEventBox = function dayview_createAllDayEventBox( calendarEventDisplay ) {   var containerName = this.calendarWindow.calendarManager.getCalendarByName(                         calendarEventDisplay.event.parent.server ).subject.split(":")[2];   // build up the label and image for the eventbox   var eventText = calendarEventDisplay.event.title;   var locationText = calendarEventDisplay.event.location;   var newLabel = document.createElement( "label" );   newLabel.setAttribute( "class", "day-view-allday-event-title-label-class" );   if( calendarEventDisplay.event.location )      newLabel.setAttribute( "value", eventText+" (" + locationText + ")" );   else       newLabel.setAttribute( "value", eventText );   var newImage = document.createElement("image");   newImage.setAttribute( "class", "all-day-event-class" );      //create the actual event box   var eventBox = document.createElement( "hbox" );   eventBox.calendarEventDisplay = calendarEventDisplay;   eventBox.appendChild( newImage );   eventBox.appendChild( newLabel );   eventBox.setAttribute( "name", "day-view-event-box-" + calendarEventDisplay.event.id );      // set calendar name as attribute to enable calendar specific colors   eventBox.setAttribute( "class", "day-view-all-day-event-class " + containerName);      eventBox.setAttribute( "onclick", "dayEventItemClick( this, event )" );   eventBox.setAttribute( "ondblclick", "dayEventItemDoubleClick( this, event )" );   eventBox.setAttribute( "onmouseover", "gCalendarWindow.changeMouseOverInfo( calendarEventDisplay, event )" );   eventBox.setAttribute( "tooltip", "eventTooltip" );      eventBox.setAttribute( "flex", "1" );        // mark the box as selected, if the event is   if( this.calendarWindow.EventSelection.isSelectedEvent( calendarEventDisplay.event ) )      eventBox.setAttribute( "eventselected", "true" );      if( calendarEventDisplay.allDayStartsBefore )      eventBox.setAttribute("continues-left", "true");   if( calendarEventDisplay.allDayEndsAfter)      eventBox.setAttribute("continues-right", "true");      return eventBox;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4a0067a694d084344ce7f207b6a5e25d43d6df96/dayView.js/buggy/calendar/resources/content/dayView.js