The show function is
function showPhoto(index) {
// Shows the photo with identified index
var theURL = "" + this.location;
// Strip parameters, if any present, from end of URL.
if (theURL.indexOf("?")>0) {
theURL = theURL.substring(0,theURL.indexOf("?"));
}
// Append the new...