/*
** 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] = "PICT1627.jpg";
titleArray[pic] = "New Carbarn - Footings";
captionArray[pic] = "The footings are in and we're ready to start the framing.";
photoCreditArray[pic] = "Stuart Greenberg";

pic++;

picArray[pic] = "PICT1630.jpg";
titleArray[pic] = "New Carbarn - Framing of the Floor";
captionArray[pic] = "Frank pauses to smile at the camera as he nails in the cross members for the carbarn floor.";
photoCreditArray[pic] = "Stuart Greenberg";

pic++;

picArray[pic] = "PICT1636.jpg";
titleArray[pic] = "New Carbarn - Floor";
captionArray[pic] = "While the framing is still proceeding, Dennis nails on the plywood floor.";
photoCreditArray[pic] = "Stuart Greenberg";

pic++;

picArray[pic] = "PICT1637.jpg";
titleArray[pic] = "New Carbarn - Floor";
captionArray[pic] = "The work crew has framed the floor. Here they are laying the plywood.";
photoCreditArray[pic] = "Stuart Greenberg";

pic++;

picArray[pic] = "PICT1638.jpg";
titleArray[pic] = "New Carbarn - Work Crew";
captionArray[pic] = "The work crew after laying the floor.";
photoCreditArray[pic] = "Stuart Greenberg";

pic++;

picArray[pic] = "PICT1647.jpg";
titleArray[pic] = "New Carbarn - Framing Continues";
captionArray[pic] = "The walls are up and the roof framing is underway.";
photoCreditArray[pic] = "Stuart Greenberg";

pic++;

picArray[pic] = "LILS-blow-down-015.jpg";
titleArray[pic] = "New Carbarn - Inside";
captionArray[pic] = "Here is a peek at the inside of the new carbarn.";
photoCreditArray[pic] = "Randy Knaub";

pic++;

picArray[pic] = "lils-blow-down--014.jpg";
titleArray[pic] = "New Carbarn - Almost Done";
captionArray[pic] = "Most of the construction is finished. Almost ready to paint.";
photoCreditArray[pic] = "Randy Knaub";

pic++;

picArray[pic] = "PICT2019.jpg";
titleArray[pic] = "New Carbarn - Painted";
captionArray[pic] = "The new carbarn is on the right. While track is laid inside, the lead tracks are being laid outside. The new carbarn will be accessible from station track 4.";
photoCreditArray[pic] = "Stuart Greenberg";

pic++;

