jQuery(document).ready(function($) {
	// prepare calendar for popups
	$("table.tec-calendar tbody tr").each(function(index) {
		// add a class of "right" to Friday & Saturday so tooltips stay onscreen
		//$(this).find("td:gt(3)").addClass("tec-right");
		$(this).find("td").addClass("tec-right");
	});

	
	// popups
	/*
	$("table.tec-calendar .tec-event a").click(function() {
		$("#day_content").html($(this).next(".tec-tooltip").html());
	});
	*/
	$("table.tec-calendar .have_event").click(function() {
		$("#day_content").html($(this).find(".tec-tooltip").html());
		//$("#day_content").html("asdf");
	});
/*
	$("table.tec-calendar .tec-event a").hover(function() {
		
		// one for IE6, one for everybody else
		if ($.browser.msie && $.browser.version == 6.0) {
			var bottomPad = $(this).parents("td").outerHeight() + 5;
		}
		else {
			var bottomPad = $(this).outerHeight() + 18;
		}
		
		$(this).next(".tec-tooltip").css('bottom', bottomPad).fadeIn(300);
	});
	}, function() {
		$(this).next(".tec-tooltip").fadeOut(100);
	});
*/
});
