var $j = jQuery.noConflict();

function calendarPopup(){
	$j(".day a").click(function(){
		$j("<div class='overflow'></div>").prependTo("body");
		$j(".overflow").height($j(document).height());
		$j(".overflow").width($j(document).width());
		var centerArea = ($j(document).width() - $j(".popBox").width()) / 2;
		var topArea = ($j(window).height() - $j(".popBox").height()) / 2;
		$j(".popBox").css("margin-left", centerArea).css("margin-top", topArea);
		$j(".popBox").css("display", "block");
	});
	$j(".popBox a.closebox").click(function(){
		$j(".overflow").remove();
		$j(".popBox").css("display", "none");
	});
}

$j(document).ready(calendarPopup);
