$(document).ready(function() {
	$(".dummy_link").click(function(e){
			e.preventDefault();
									});
	$("#aerial1_thumb").click(function(e){
		   e.preventDefault();
		   $("#preview_container").css("visibility","visible");
		   $("#preview").fadeOut(500, function(){
		   				$("#preview").empty()
						.append("<img src='images/AAP_0008e_web.jpg' /><br /><a href='#' id='closeX'>Close X</a>&nbsp;|&nbsp;Right-click the image and click \"Save Image As\" to download this image")
						.fadeIn(500,function(){
								$("#closeX").click(function(event){
										event.preventDefault();
										$("#preview").fadeOut(500,function(){
												$("#preview_container").css("visibility","hidden");
													});
						});
				});
		 });
	});
	
	$("#aerial2_thumb").click(function(e){
	   e.preventDefault();
	   $("#preview_container").css("visibility","visible");
	   $("#preview").fadeOut(500, function(){
		   			$("#preview").empty()
					.append("<img src='images/AAP_0041e_web.jpg' /><br /><a href='#' id='closeX'>Close X</a>&nbsp;|&nbsp;Right-click the image and click \"Save Image As\" to download this image")
					.fadeIn(500,function(){
							$("#closeX").click(function(event){
									event.preventDefault();
									$("#preview").fadeOut(500,function(){
											$("#preview_container").css("visibility","hidden");
												});
							});
					});
		 });
	});
	
	$("#aerial3_thumb").click(function(e){
	   e.preventDefault();
	   $("#preview_container").css("visibility","visible");
	   $("#preview").fadeOut(500, function(){
		   			$("#preview").empty()
					.append("<img src='images/AAP_0154e_web.jpg' /><br /><a href='#' id='closeX'>Close X</a>&nbsp;|&nbsp;Right-click the image and click \"Save Image As\" to download this image")
					.fadeIn(500,function(){
							$("#closeX").click(function(event){
									event.preventDefault();
									$("#preview").fadeOut(500,function(){
											$("#preview_container").css("visibility","hidden");
												});
					});
				 });
		 });
	});

});
