var dialog	=	{
	
	close:function() {
		$("div#dialog").css("display", "none");
		$("div#overlay").fadeOut("fast", function() {
			$(this).hide();
		});
	},
	
	open:function(html) {
		$("div#dialog > div > div[content]").html(html);
		$("div#dialog").each(function() {
			$(this).css({
				"display"	:	"block",
				"left"		:	$(window).scrollLeft() + ($(window).width() / 2) - ($(this).width() / 2),
				"top"		:	$(window).scrollTop() + ($(window).height() / 2) - ($(this).height() / 2)
			})
		});
		$("div#overlay").show()
			.fadeTo(0, 0)
			.fadeTo("fast", 0.67);
	}
	
};
