// JavaScript Document

$(document).ready(function() {
	
	function load_calendar(parameter) {
		
		$.ajax({
				method: "get",
				url: 'calendar.php',
				data: "time="+parameter,
				beforeSend: function(){
					$('#calendar').html('').fadeOut("slow");
				},
				success: function(html){
					$('#calendar').html(html).slideDown("slow");
				}
		 });
	};
	
	load_calendar(timed);
});