$(document).ready(function(){
	$(".month_selector li").bind("click", function()
	{
		$(".month_selector li").removeClass("selected");
		$(this).addClass("selected");
		
		$(".events").hide();
		var selected_month = $(this).attr('id');
		var id = selected_month.split("_");
		id = id[1];
		var increment_month = id;
		var counter = 0;
		while(counter < 3 && increment_month <= 12)
		{
			if($("#month_"+increment_month+"_section p").html() != "No events scheduled.")
			{
					$("#month_"+increment_month+"_section").show();
					counter++;
			}
			increment_month++;
		}
		if(counter == 0)
		{
			$("#"+selected_month+"_section").show();
		}
	});
 });

$(function(){
	$("#individual_event").each(function() {
		$(this).corner("round 8px").parent().css('padding', '2px').corner("round 10px")
	});
});
