$(document).ready(function() {
	var content;
	var menu;
	
	$(".zoomMe").mouseover(function() {
		if($(this).attr("alt") == '') {
			$(this).css('cursor','default');
		}

	
	});
	 
	 
	
	$(".zoomMe").click(function() {
		if($(this).attr("alt") != '') {
			content = $("#content").html();
			menu = $("#menu").html();
			$("#content").html('');
			$("#menu").html('');
			$("body").css("margin-top", "0");
			$("#ZoomBigView img").css("width", $(window).width()+"px");
			$("#ZoomBigView img").attr("src", $(this).attr("alt"));
			$("#ZoomBigView").show();			
		}
	});
	
	$("#ZoomBigView").click(function() {
		$("body").css("margin-top", "25px");
		$("#content").html(content);
		$("#menu").html(menu);
		
	
		$(".zoomMe").click(function() {
			if($(this).attr("alt") != '') {			
				content = $("#content").html();
				menu = $("#menu").html();
				$("#content").html('');
				$("#menu").html('');
				$("body").css("margin-top", "0");
				$("#ZoomBigView img").css("width", $(window).width()+"px");
				$("#ZoomBigView img").attr("src", $(this).attr("alt"));
				$("#ZoomBigView").show();
			}
		});
		
		$("#ZoomBigView").hide();
	});
	
});
