$(document).ready(function() {
	 $('.viewNav').click(function() { //start function when any link is clicked 
							$("#viewImage").fadeOut("normal"); 
							 var content_show = $(this).attr("title"); //retrieve title of link so we can compare with php file 
								$.ajax({ 
								method: "get",url: "view2.php",data: content_show, 
								beforeSend: function(){$("#load").fadeIn("fast");}, //show loading just when link is clicked 
								complete: function(){ $("#load").fadeOut("fast");}, //stop showing loading when the process is complete 
								success: function(html){ //so, if data is retrieved, store it in html 
								$("#viewImage").fadeIn("normal"); //animation 
								$("#viewImage").html(html); //show the html inside .content div 
						 } 
					}); //close $.ajax( 
	 }); //close click( 
 
 });// JavaScript Document
