$(document).ready(function() {

	var d = new Date();
	var y = d.getFullYear();
	var m = d.getMonth();

	if ($('#pagina').val() == "calendario.php") {
	
		$('#calendar').fullCalendar({
			buttons: true,
			draggable: false,
			weekStart: 1,
			events: [{
				id: 1,
				title: "cumple Alber",
				allDay: true,
				start: new Date(y, 1, 25)
			}, {
				id: 2,
				title: "cumple Gon",
				start: new Date(y, 2, 16)
			}, {
				id: 3,
				title: "cumple Sara",
				start: new Date(y, 4, 5)
			}, {
				id: 4,
				title: "cumple Mer",
				start: new Date(y, 6, 22)
			}, {
				id: 5,
				title: "cumple Ele",
				start: new Date(y, 7, 26)
			}, {
				id: 6,
				title: "cumple Borja",
				start: new Date(y, 10, 7)
			}, {
				id: 7,
				title: "cumple Miki",
				start: new Date(y, 10, 11)
			}, {
				id: 8,
				title: "cumple Jose",
				start: new Date(y, 11, 10)
			}]
		});
	}
	else
	{
		$('#calendar').fullCalendar({
			buttons: false,
			draggable: false,
			weekStart: 1,
			events: [{
				id: 1,
				title: "",
				allDay: true,
				start: new Date(y, 1, 25)
			}, {
				id: 2,
				title: "",
				start: new Date(y, 2, 16)
			}, {
				id: 3,
				title: "",
				start: new Date(y, 4, 5)
			}, {
				id: 4,
				title: "",
				start: new Date(y, 6, 22)
			}, {
				id: 5,
				title: "",
				start: new Date(y, 7, 26)
			}, {
				id: 6,
				title: "",
				start: new Date(y, 10, 7)
			}, {
				id: 7,
				title: "",
				start: new Date(y, 10, 11)
			}, {
				id: 8,
				title: "",
				start: new Date(y, 11, 10)
			}]
		});
	}
});
