$(document).ready(function() { 
	$("#main_calendar_div").load("listener_calendar.php");
	
	$(".calendar_day_event").mouseover(function() {
		$(this).children(".calendar_day_event_over").show();
	
	});
	
	$(".calendar_day_event").mouseout(function() {
		$(this).children(".calendar_day_event_over").hide();
	});

});

function widget_event_popup(div) {
	widget_event_off();

	$(div).children(".widget_day_event_popup").show();
	$(div).children(".widget_day_event_over").show();
}

function widget_event_off() {
	$(".widget_day_event_popup").hide();
	$(".widget_day_event_over").hide();
	$(".widget_day_over").hide();
}

function widget_day_over(div) {
	widget_event_off();

	$(div).children(".widget_day_over").show();
}

function widget_show_month(show_month, show_year) {
	$("#main_calendar_div").fadeOut("normal");

	$("#main_calendar_div").load("listener_calendar.php", { 'show_month': show_month, 'show_year': show_year });
}

