$(document).ready(function() {
	
		$('#calendar').fullCalendar({
		     
			 header: {
                left: 'prev,next today',
                center: 'title',
                right: 'basicWeek,basicDay,month',
            },
		
		eventSources: [			
		
			// Kellie Wilcox-Moore - Yoga
			{
				id: 'yoga',
			url: 'https://www.google.com/calendar/feeds/r9qvbeg8bqj8eg8cbbv9kltmbs%40group.calendar.google.com/public/basic' },
			
			{
				id: 'zumba',
			url: 'https://www.google.com/calendar/feeds/0up5lgp8imnag11itpnfnutrls%40group.calendar.google.com/public/basic' },
			
			
			
			// Sarah Hoffman - Small Group Training
			{
				id: 'smallgroup',
			url: 'https://www.google.com/calendar/feeds/jjar9ijuic6od645amhuqoms7g@group.calendar.google.com/public/basic'},
				
			
			{
			id: 'bootcamp',
			url: 'https://www.google.com/calendar/feeds/pt7crifhpqrubbkncbii2luo8c%40group.calendar.google.com/public/basic'},
			
			],
			
			
    
	        eventClick: function(event) {
				// opens events in a popup window
			launchWS('http://clients.mindbodyonline.com/ws.asp?studioid=6200&stype=-110&sView=week&sLoc=1');
				return false;
			},
			
			loading: function(bool) {
				if (bool) {
					$('#loading').show();
				}else{
					$('#loading').hide();
				}
			}
			
		
		});
		
		$('#calendaryoga').fullCalendar({
		     
			 header: {
                left: 'prev,next today',
                center: 'title',
                right: 'month,basicWeek,basicDay'
            },
		
		eventSources: [			
		
			// Kellie Wilcox-Moore - Yoga
			{
				id: 'yoga',
			url: 'https://www.google.com/calendar/feeds/r9qvbeg8bqj8eg8cbbv9kltmbs%40group.calendar.google.com/public/basic' },
			
			
			],
		
		 eventClick: function(event) {
				// opens events in a popup window
			launchWS('http://clients.mindbodyonline.com/ws.asp?studioid=6200&stype=-110&sTG=37&sView=week&sLoc=1');
				return false;
			},
			
			loading: function(bool) {
				if (bool) {
					$('#loading').show();
				}else{
					$('#loading').hide();
				}
			}
			
		
		});
		
		$('#calendaryogasite').fullCalendar({
		     
			 header: {
                left: 'prev,next today',
                center: 'title',
                right: 'month,basicWeek,basicDay'
            },
		
		eventSources: [			
		
			// Kellie Wilcox-Moore - Yoga
			{
				id: 'yoga',
			url: 'https://www.google.com/calendar/feeds/r9qvbeg8bqj8eg8cbbv9kltmbs%40group.calendar.google.com/public/basic' },
			
			
			],
		
		 eventClick: function(event) {
				// opens events in a popup window
			launchWS('http://clients.mindbodyonline.com/ws.asp?studioid=6200&stype=-110&sTG=37&sView=week&sLoc=1');
				return false;
			},
			
			loading: function(bool) {
				if (bool) {
					$('#loading').show();
				}else{
					$('#loading').hide();
				}
			}
			
		
		});
		
		$('#calendarzumba').fullCalendar({
		     
			 header: {
                left: 'prev,next today',
                center: 'title',
                right: 'month,basicWeek,basicDay'
            },
		
		eventSources: [		
		
		// Deanna Gayton - Zumba
			{
				id: 'zumba',
			url: 'https://www.google.com/calendar/feeds/0up5lgp8imnag11itpnfnutrls%40group.calendar.google.com/public/basic' },
			
			
			],
			
			eventClick: function(event) {
				// opens events in a popup window
			launchWS('http://clients.mindbodyonline.com/ws.asp?studioid=6200&stype=-110&sVT=19&sView=week&sLoc=1');
				return false;
			},
			
			loading: function(bool) {
				if (bool) {
					$('#loading').show();
				}else{
					$('#loading').hide();
				}
			}
			
		
		});
		
		$('#calendarzumbasite').fullCalendar({
		     
			 header: {
                left: 'prev,next today',
                center: 'title',
                right: 'month,basicWeek,basicDay'
            },
		
		eventSources: [		
		
		// Deanna Gayton - Zumba
			{
				id: 'zumba',
			url: 'https://www.google.com/calendar/feeds/m81s7vlvm3hlc48l8ob1obgs68%40group.calendar.google.com/public/basic' },
			
			
			// Gen le - Zumba
			{
				id: 'zumba',
			url: 'https://www.google.com/calendar/feeds/m3o1qmomncqbveo7in2302dbq4@group.calendar.google.com/public/basic'},
			
			
			
			// Kristi Sowell - Zumba
			{
				id: 'zumba',
			url: 'https://www.google.com/calendar/feeds/33acubfpmad2aq7truetislpmc@group.calendar.google.com/public/basic' },
			
			],
			
			eventClick: function(event) {
				// opens events in a popup window
			launchWS('http://clients.mindbodyonline.com/ws.asp?studioid=6200&stype=-110&sVT=19&sView=week&sLoc=1');
				return false;
			},
			
			loading: function(bool) {
				if (bool) {
					$('#loading').show();
				}else{
					$('#loading').hide();
				}
			}
			
		
		});
		
		
		
		$('#calendarsmall').fullCalendar({
		     
			 header: {
                left: 'prev,next today',
                center: 'title',
                right: 'month,basicWeek,basicDay'
            },
		
		eventSources: [		
		
		// Sarah Hoffman - Small Group Training
			{
				id: 'smallgroup',
			url: 'https://www.google.com/calendar/feeds/jjar9ijuic6od645amhuqoms7g@group.calendar.google.com/public/basic'},
			
			],
			
			eventClick: function(event) {
				// opens events in a popup window
			launchWS('http://clients.mindbodyonline.com/ws.asp?studioid=6200&stype=-110&sView=week&sLoc=1&sTrn=100000030');
				return false;
			},
			
			loading: function(bool) {
				if (bool) {
					$('#loading').show();
				}else{
					$('#loading').hide();
				}
			}
			
		
		});
			
			
			$('#calendarbootcamp').fullCalendar({
		     
			 header: {
                left: 'prev,next today',
                center: 'title',
                right: 'month,basicWeek,basicDay'
            },
		
		eventSources: [		
		
			
			
			//Boot Camp
			{
			id: 'bootcamp',
			url: 'https://www.google.com/calendar/feeds/pt7crifhpqrubbkncbii2luo8c%40group.calendar.google.com/public/basic'},
			
			],
			
			eventClick: function(event) {
				// opens events in a popup window
			launchWS('http://clients.mindbodyonline.com/ws.asp?studioid=6200&stype=-110&sTG=42&sView=week&sLoc=1');
				return false;
			},
			
			loading: function(bool) {
				if (bool) {
					$('#loading').show();
				}else{
					$('#loading').hide();
				}
			}
			
		
		});
			
			$('#calendarcrossfit').fullCalendar({
		     
			 header: {
                left: 'prev,next today',
                center: 'title',
                right: 'month,basicWeek,basicDay'
            },
		
		eventSources: [		
		
			
			
			//Boot Camp
			{
			id: 'crossfit',
			url: 'https://www.google.com/calendar/feeds/0obuvih4tk6lkpj43c8hkmj5no%40group.calendar.google.com/public/basic'},
			
			],
			
			eventClick: function(event) {
				// opens events in a popup window
			launchWS('http://clients.mindbodyonline.com/ws.asp?studioid=6200&stype=-110&sTG=42&sView=week&sLoc=1');
				return false;
			},
			
			loading: function(bool) {
				if (bool) {
					$('#loading').show();
				}else{
					$('#loading').hide();
				}
			}
			
		
		});
		
	});


