$(document).ready(function() {
	var focus = [];

	$(".zoom").fancybox({
		hideOnContentClick: true,
		zoomSpeedIn: 0,
		zoomSpeedOut: 0,
		overlayShow: true
	});

	$("#close").click(function() {
		$(this).hide();

		$.post("call/hide", { id: $notificationId }, function(d) {
			$("#notification").hide(1500);
		});
	});

	$(".clean-input").css("color", "#9d9d9d");

	$(".clean-input").focus(function() {
		if( ! focus[this] || $(this).val() == focus[this]) {
			focus[this] = $(this).val();

			$(this).css("color", "#000");
			$(this).val("");
		}
	});

	$(".clean-input").blur(function() {
		if( ! $(this).val() ) {
			$(this).css("color", "#9d9d9d");
			$(this).val(focus[this]);
		}
	});
});