/*
** This script will add photos to the gallery in the 
** current directory. If there is only one picture in
** the gallery and it is the Coming Soon placeholder, 
** the placeholder will be replaced by the first photo
** in this script.
*/

/*
** The following lines are required as is:
*/

pic = picArray.length;
if (pic == 1 && picArray[0] == "ComingSoon.jpg") {
  pic = 0;
}

/*
** The remainder of the script should contain a block of 
** code for each photo following the template below:
** 
** picArray[pic] = "filename";
** titleArray[pic] = "title text";
** captionArray[pic] = "caption text";
** photoCreditArray[pic] = "photo credit text";
** 
** pic++;
*/

picArray[pic] = "DSCN1149.jpg";
titleArray[pic] = "All Aboard Amtrak";
captionArray[pic] = "The club\'s Amtrak F40 at South Haven Station.";
photoCreditArray[pic] = "Stuart Greenberg";

pic++;

picArray[pic] = "DSCN5033.jpg";
titleArray[pic] = "Pennsy FA2";
captionArray[pic] = "Stu Greenberg at the controls of his Pennsylvania Railroad FA2.";
photoCreditArray[pic] = "Stuart Greenberg";

pic++;

picArray[pic] = "DSCN3979.jpg";
titleArray[pic] = "Diesels at the Station";
captionArray[pic] = "";
photoCreditArray[pic] = "Stuart Greenberg";

pic++;

