Ext.onReady(function() {
    /*
    var store = new Ext.data.JsonStore({
        id: 'id',
        fields: Tine.Calendar.EventArray,
        data: [
            {id : '1', summary: 'Breakfirst', color: '#FD0000', dtstart: '2009-05-29 08:00:00', dtend: '2009-05-29 09:00:00'},
            {id : '2', summary: 'Lunch', color: '#FD0000', dtstart: '2009-05-30 13:00:00', dtend: '2009-05-30 15:00:00'},
            {id : '3', summary: 'Supper', color: '#FD0000', dtstart: '2009-05-30 18:00:00', dtend: '2009-05-30 19:00:00'},
            {id : '4', summary: 'test', color: '#FD0000', dtstart: '2009-05-30 09:00:00', dtend: '2009-05-31 12:00:00'},
            {id : '5', summary: 'test', color: '#FD0000', dtstart: '2009-05-31 09:00:00', dtend: '2009-05-31 10:00:00'},
            {id : '6', summary: 'test event with realy very very very long title', color: '#FD0000', dtstart: '2009-06-01 10:00:00', dtend: '2009-06-01 11:00:00'},
            {id : '7', summary: 'test', color: '#FD0000', dtstart: '2009-06-01 15:00:00', dtend: '2009-06-01 18:00:00'},
            {id : '8', summary: 'test', color: '#FD0000', dtstart: '2009-06-01 15:45:00', dtend: '2009-06-01 17:30:00'},
            {id : '9', summary: 'test', color: '#FD0000', dtstart: '2009-06-01 16:30:00', dtend: '2009-06-01 19:30:00'},
            {id : '10', summary: 'whole day 1', color: '#FD0000', dtstart: '2009-05-28 00:00:00', dtend: '2009-06-03 23:59:59', 'is_all_day_event': true},
            {id : '11', summary: 'whole day 2 with realy very very very long title', color: '#FD0000', dtstart: '2009-05-29 00:00:00', dtend: '2009-05-29 23:59:59', 'is_all_day_event': true},
            {id : '12', summary: 'whole day 3', color: '#FD0000', dtstart: '2009-05-29 00:00:00', dtend: '2009-05-31 23:59:59', 'is_all_day_event': true},
            {id : '13', summary: 'whole day 4', color: '#FD0000', dtstart: '2009-06-07 00:00:00', dtend: '2009-06-07 23:59:59', 'is_all_day_event': true},
            {id : '14', summary: 'whole day 5', color: '#FD0000', dtstart: '2009-04-24 00:00:00', dtend: '2009-04-25 23:59:59', 'is_all_day_event': true}
        ]
    });
    
    new Ext.Viewport({
        layout: 'fit',
        items: new Tine.Calendar.CalendarPanel({
            //title: 'my lovely calendar',
            //tbar: new Tine.Calendar.PagingToolbar({
            //    store: store,
            //    listeners: {
            //        change: function() {console.log(arguments);}
            //    }
            //}),
            view: new Tine.Calendar.DaysView({
                //startDate: new Date().add(Date.DAY, 14),
                numOfDays: 7
            }),
            store: store
        })
    });
    */
    
    new Ext.Viewport({
        layout: 'fit',
        items: new Tine.Calendar.MainScreenCenterPanel({
            
        })
    });
});
