function getPhoto(pID) {
	$.getJSON(
		rootURL+'modules/gallery/scripts/getPhoto.php', 
		{ pID : pID }, 
		function (json) {
	    var img = document.createElement("img");
      $(img).attr('src', json.rel_path+json.filename);
      $(img).css('display','none');
      $("#pub-photo-loader").append(img);
		  $("#current-photo img").fadeOut("slow", function() {
        $("#current-photo").empty();
        $("#current-photo").append(img);
        $("#current-photo img").fadeIn("slow");
        var h3 = document.createElement("h3");
        $(h3).html(json.photoTitle);
        var p = document.createElement("p");
        $(p).addClass('description');
        $(p).html(json.photoDescription);
        $("#current-photo").append(h3);
        $("#current-photo").append(p);
        $("#pub-photo-loader").empty();
		  });
		}
	);
}