// JavaScript Document
$(document).ready(function() {
	
		var date = new Date();
		var d = date.getDate();
		var m = date.getMonth();
		var y = date.getFullYear();
		
		$('#calendar').fullCalendar({
			theme: true,
			header: {
				left: 'prev,next today',
				center: 'title',
				right: 'month,agendaWeek,agendaDay'
			},
			editable: true,
			events: [
					 
					 /* Events start from here */
				{
					title: 'Church Celebration - Team A',
					start: new Date(y, 1, 28)
				},
				{
					title: 'Church Celebration - Team B',
					start: new Date(y, 2, 7)
				},
				{
					title: 'Church Celebration; Mothers Day Guest Service - Team C',
					start: new Date(y, 2, 14)
				},
				{
					title: 'Church Celebration - Team A',
					start: new Date(y, 2, 21)
				},
				{
					title: 'Church Celebration - Team B',
					start: new Date(y, 2, 28)
				},
				{
					title: 'Church Celebration; Easter Day Guest Service - Team C',
					start: new Date(y, 3, 4)
				},
				{
					title: 'Church Celebration - Team A',
					start: new Date(y, 3, 11)
				},
				{
					title: 'Marriage - Pamelas Wedding Day',
					start: new Date(y, 3, 17)
				},
				{
					title: 'Church Celebration - Team B',
					start: new Date(y, 3, 18)
				},
				
				{
					title: '3-Day Prayer and Fasting Begin - Team B',
					start: new Date(y, 3, 20)
				},
				{
					title: '3-Day Prayer and Fasting - Team A',
					start: new Date(y, 3, 21)
				},
				{
					title: '3-Day Prayer and Fasting end - Team C',
					start: new Date(y, 3, 22)
				},
				{
					title: 'Church Celebration - Team C',
					start: new Date(y, 3, 25)
				},
				{
					title: 'Church Celebration - Team A',
					start: new Date(y, 4, 2)
				},
				{
					title: 'Church Celebration - Team B',
					start: new Date(y, 4, 9)
				},
				{
					title: 'Encounter Weekend Celebration - One service start 2pm (Team C)',
					start: new Date(y, 4, 16)
				},
				{
					title: 'Church Celebration - Team A',
					start: new Date(y, 4, 23)
				},
				{
					title: 'Church Celebration - Team B',
					start: new Date(y, 4, 30)
				},
				{
					title: 'Church Celebration - Team C',
					start: new Date(y, 5, 6)
				},
				
				/*{
					title: 'Long Event',
					start: new Date(y, m, d-5),
					end: new Date(y, m, d-5)
				},
				{
					id: 999,
					title: 'Repeating Event',
					start: new Date(y, m, d-3, 16, 0),
					allDay: false
				},
				{
					id: 999,
					title: 'Repeating Event',
					start: new Date(y, m, d+4, 16, 0),
					allDay: false
				},
				{
					title: 'Meeting',
					start: new Date(y, m, d, 10, 30),
					allDay: false
				},
				{
					title: 'Lunch',
					start: new Date(y, m, d, 12, 0),
					end: new Date(y, m, d, 14, 0),
					allDay: false
				},
				{	
					title: 'Birthday Party for Ian',
					start: new Date(y, m, d+1, 19, 0),
					end: new Date(y, m, d+1, 22, 30),
					allDay: false
				},
				{
					title: 'Click for Google',
					start: new Date(y, m, 28),
					end: new Date(y, m, 28),
					url: 'http://google.com/'
				}*/
				
				/* Events end from here */
			]
		});
		
	});
