text: 
  fcViews.agendaWeek = AgendaWeekView;
  
  function AgendaWeekView(element, calendar) {
  	var t = this;
  	
  	
  	// exports
  	t.render = render;
  	
  	
  	// imports
  	AgendaView.call(t, element, calendar, 'agendaWeek');
  	var opt = t.opt;
  	var renderAgenda = t.renderAgenda;
  	var skipHiddenDays = t.skipHiddenDays;
  	var getCellsPerWeek = t.getCellsPerWeek;
  	var formatDates = calendar.formatDates;
  
  	
  	function render(date, delta) {
  
  		if (delta) {
  			addDays(date, delta * 7);
  		}
  
  		var start = addDays(cloneDate(date), -((date.getDay() - opt('firstDay') + 7) % 7));
  		var end = addDays(cloneDate(start), 7);
  
  		var visStart = cloneDate(start);
  		skipHiddenDays(visStart);
  
  		var visEnd = cloneDate(end);
  		skipHiddenDays(visEnd, -1, true);
  
  		var colCnt = getCellsPerWeek();
  
  		t.title = formatDates(
  			visStart,
  			addDays(cloneDate(visEnd), -1),
  			opt('titleFormat')
  		);
  
  		t.start = start;
  		t.end = end;
  		t.visStart = visStart;
  		t.visEnd = visEnd;
  
  		renderAgenda(colCnt);
  	}
  
  }
  