$(document).ready(function() {
	$("#container").corner();

	$(".item").corner().css("opacity", 0.7).hover(function() {
		$(this).css("opacity", 1.0);
	}, function() {
		$(this).css("opacity", 0.7);
	});

	if ($("#container").height() < $(window).height()) {
		$("#container").css({
			"left": "50%",
			"marginLeft": "-" + Math.floor($("#container").width() / 2) + "px",
			"marginTop": "-" + Math.floor($("#container").height() / 2) + "px",
			"position": "absolute",
			"top": "50%"
		});
	}
});