$().ready(function(){
	$(".calendarCellEvent a").click(function(){
		
		var cal_page = $(this).attr('href');
		
		$("#cal_hover").html('<strong>Loading...</strong>').show(200,
			function(){
				$.ajax({
					url: cal_page,
					success: function(response){
						$("#cal_hover").html(response);
						$("#cal_hover").append('<br /><a href="#" class="cal_hover_hide" style="font-weight: bold; float: right">X Close</a>');
						
						//reactivate 	hide buttons			
						$(".cal_hover_hide").unbind('click').click(function(){
							$("#cal_hover").hide(200);
							return false;
						})
					}
				})
			}
		);
		
		return false;
	})
})