//Demonstrates function generalReplacePicts (iDirection, aPhoto, aCapt,  aCred, sPhotoID, sCaptID, sSeqID, sCredID)

//----------------------------Variables for first gallery--------------------->
var aPhotos1 = new Array();
var aCaptions1 = new Array();
var aCreds1 = new Array();

aPhotos1[0]="http://www.roadtripamerica.com/GettingOutThere/Small-Town-Texas-01.jpg";	// Pictures.
aPhotos1[1]="http://www.roadtripamerica.com/GettingOutThere/Small-Town-Texas-02.jpg";
aPhotos1[2]="http://www.roadtripamerica.com/GettingOutThere/Small-Town-Texas-03.jpg";
aPhotos1[3]="http://www.roadtripamerica.com/GettingOutThere/Small-Town-Texas-04.jpg";
aPhotos1[4]="http://www.roadtripamerica.com/GettingOutThere/Small-Town-Texas-05.jpg";
aPhotos1[5]="http://www.roadtripamerica.com/GettingOutThere/Small-Town-Texas-06.jpg";
aPhotos1[6]="http://www.roadtripamerica.com/GettingOutThere/Small-Town-Texas-07.jpg";
aPhotos1[7]="http://www.roadtripamerica.com/GettingOutThere/Small-Town-Texas-08.jpg";
aPhotos1[8]="http://www.roadtripamerica.com/GettingOutThere/Small-Town-Texas-09.jpg";
aPhotos1[9]="http://www.roadtripamerica.com/GettingOutThere/Small-Town-Texas-10.jpg";
aPhotos1[10]="http://www.roadtripamerica.com/GettingOutThere/Small-Town-Texas-11.jpg";
aPhotos1[10]=0;// Index of current photo to be displayed. Made an array element to pass by reference.

aCaptions1[0] = "A sign at the start of the one-third of a mile-long Palmetto Trail at Palmetto State Park warns visitors to 'watch for snakes.'";
aCaptions1[1] = "A number of buildings dating from the 1930s and built by the Civilian Conservation Corps dot the park. This tower is part of a water storage system that uses a hydraulic ram pump and tank to provide water during dry spells; it has been in continuous operation for more than 70 years.";
aCaptions1[2] = "Tamara picks her way through the branches of a fallen tree on the Palmetto Trail. Dead and decaying trees provide nourishment and shelter to numerous animals in the swamp.";
aCaptions1[3] = "Exotic-looking blooms, like this native trumpet creeper, dot the Palmetto Trail route.";
aCaptions1[4] = "A pair of park visitors enjoy lunch in the shade of a massive, Spanish-moss festooned tree in a picnic area above the San Marcos River.";
aCaptions1[5] = "Wine-cups and gaillardias decorate the verge of Alt. U.S. Highway 90 outside of Gonzales. The wine-cups will bloom through July, while the gaillardia -- locally known as 'Indian blanket' will persist throughout the summer.";
aCaptions1[6] = "Shiner, Texas, is still a farming community at heart, as this tractor lot at the edge of town hints.";
aCaptions1[7] = "The old brick brewhouse at the Spoetzl Brewery now serves as a visitors' center, gift shop and hospitality room.";
aCaptions1[8] = "Patrons of Howard's, a gas station and convenience store on U.S. Highway 90 on the east side of Shiner, visit and enjoy cold draft beer in the biergarten behind the store.";
aCaptions1[9] = "Friends and neighbors catch up with each other on a Friday night at tables inside Howard's.";
aCaptions1[10] = "Marty Shimek (left), Ruben Torres (center) and Howard Gloor are three-fifths of 'Los Kolaches,' the Mexican-Czech-German band that sometimes plays on the back porch at Howard's. Kolaches are traditional Czech pastries beloved of just about everyone in central Texas.";

aCreds1[0] = "Photo by Aaron Reed";
aCreds1[1] = "Photo by Aaron Reed";
aCreds1[2] = "Photo by Aaron Reed";
aCreds1[3] = "Photo by Aaron Reed";
aCreds1[4] = "Photo by Aaron Reed";
aCreds1[5] = "Photo by Aaron Reed";
aCreds1[6] = "Photo by Aaron Reed";
aCreds1[7] = "Photo by Aaron Reed";
aCreds1[8] = "Photo by Aaron Reed";
aCreds1[9] = "Photo by Aaron Reed";
aCreds1[10] = "Photo by Aaron Reed";


//----------------------------Variables for second gallery--------------------->

var aPhotos2=new Array();
var aCaptions2=new Array();
var aCreds2 = new Array();

aPhotos2[0]="http://www.roadtripamerica.com/GettingOutThere/Fossicking-01.jpg";	// Pictures.
aPhotos2[1]="http://www.roadtripamerica.com/GettingOutThere/Fossicking-02.jpg";
aPhotos2[2]="http://www.roadtripamerica.com/GettingOutThere/Fossicking-03.jpg";
aPhotos2[3]="http://www.roadtripamerica.com/GettingOutThere/Fossicking-04.jpg";
aPhotos2[4]="http://www.roadtripamerica.com/GettingOutThere/Fossicking-05.jpg";
aPhotos2[5]="http://www.roadtripamerica.com/GettingOutThere/Fossicking-06.jpg";
aPhotos2[6]="http://www.roadtripamerica.com/GettingOutThere/Fossicking-07.jpg";
aPhotos2[7]="http://www.roadtripamerica.com/GettingOutThere/Fossicking-08.jpg";
aPhotos2[8]="http://www.roadtripamerica.com/GettingOutThere/Fossicking-09.jpg";
aPhotos2[9]="http://www.roadtripamerica.com/GettingOutThere/Fossicking-10.jpg";
aPhotos2[10]="http://www.roadtripamerica.com/GettingOutThere/Fossicking-11.jpg";
aPhotos2[11]=0;// Index of current photo to be displayed. Made an array element to pass by reference.

aCaptions2[0] = "Patrick scans the slope of a road cut for fossils on U.S. 183 between Lampasas and Lometa.";
aCaptions2[1] = "Cretaceous fossils, like these texagryphea oysters, are abundant in many areas.";
aCaptions2[2] = "The author notes the location of a good fossil hunting site in his handheld GPS unit.";
aCaptions2[3] = "This furniture store in Brownwood clearly has identified a niche market.";
aCaptions2[4] = "The gorge below the Lake Brownwood spillway is a jumble of car-sized boulders.";
aCaptions2[5] = "At the Lake Brownwood spillway, thin layers of shale beneath massive, overhanging limestone slabs, hold thousands of spiny sea urchin fossils.";
aCaptions2[6] = "Clear nail polish or superglue help stabilize the delicate sea urchin fossils.";
aCaptions2[7] = "Riders atop a hill of clay quarry tailings salute us as we drive slowly past on a county road.";
aCaptions2[8] = "The fossilized columns of crinoids - flower-like relatives of sea urchins and starfish - are the most common finds at the Wilson Clay Pits.";
aCaptions2[9] = "One of the two riders gallops off to take care of some cows that have broken through a fence on another part of the property.";
aCaptions2[10] = "Two different species of round sea urchins were part of the day's finds.";

aCreds2[0] = "Photo by Aaron Reed";
aCreds2[1] = "Photo by Aaron Reed";
aCreds2[2] = "Photo by Aaron Reed";
aCreds2[3] = "Photo by Aaron Reed";
aCreds2[4] = "Photo by Aaron Reed";
aCreds2[5] = "Photo by Aaron Reed";
aCreds2[6] = "Photo by Aaron Reed";
aCreds2[7] = "Photo by Aaron Reed";
aCreds2[8] = "Photo by Aaron Reed";
aCreds2[9] = "Photo by Aaron Reed";
aCreds2[10] = "Photo by Aaron Reed";

//----------------------------Variables for third gallery--------------------->

var aPhotos3=new Array();
var aCaptions3=new Array();
var aCreds3 = new Array();

aPhotos3[0]="http://www.roadtripamerica.com/GettingOutThere/Road-Trip-through-Georgia-01.jpg";	// Pictures.
aPhotos3[1]="http://www.roadtripamerica.com/GettingOutThere/Road-Trip-through-Georgia-02.jpg";
aPhotos3[2]="http://www.roadtripamerica.com/GettingOutThere/Road-Trip-through-Georgia-03.jpg";
aPhotos3[3]="http://www.roadtripamerica.com/GettingOutThere/Road-Trip-through-Georgia-04.jpg";
aPhotos3[4]="http://www.roadtripamerica.com/GettingOutThere/Road-Trip-through-Georgia-05.jpg";
aPhotos3[5]="http://www.roadtripamerica.com/GettingOutThere/Road-Trip-through-Georgia-06.jpg";
aPhotos3[6]=0;// Index of current photo to be displayed. Made an array element to pass by reference.

aCaptions3[0] = "At Reed Bingham State Park a foot bridge leads to a small island where picnic tables are shaded by the large pine trees, while nearby, swimmers enjoy the lake waters and anglers bring in the day's catch.";
aCaptions3[1] = "Andersonville National Historic Site includes the Andersonville National Cemetery, where some 13,000 Union soldiers, who died at Andersonville Prison, were laid to rest.";
aCaptions3[2] = "This pecan grove, which seems to stretch for miles, is typical of the many pecan groves that dot the Georgia countryside.";
aCaptions3[3] = "The mountain streams that traverse the state add to the beauty of a road trip through Georgia, a state with constantly changing landscape.";
aCaptions3[4] = "The view from the lodge at Amicalola Falls State Park is just one of the breath taking sights at this popular state park in Northern Georgia.";
aCaptions3[5] = "How is this for a mall? The Blue Ridge Mountain Mall in Blue Ridge, Georgia, just south of the Tennessee border, leaves little doubt you are in a unique mountain town.";

aCreds3[0] = "Photo by Anne Sponholtz";
aCreds3[1] = "Photo by Anne Sponholtz";
aCreds3[2] = "Photo by Anne Sponholtz";
aCreds3[3] = "Photo by Anne Sponholtz";
aCreds3[4] = "Photo by Anne Sponholtz";
aCreds3[5] = "Photo by Anne Sponholtz";

//----------------------------Variables for fourth gallery--------------------->

var aPhotos4=new Array();
var aCaptions4=new Array();
var aCreds4 = new Array();

aPhotos4[0]="http://www.roadtripamerica.com/GettingOutThere/Road-Trip-through-Georgia-01.jpg";	// Pictures.
aPhotos4[1]="http://www.roadtripamerica.com/GettingOutThere/Road-Trip-through-Georgia-02.jpg";
aPhotos4[2]="http://www.roadtripamerica.com/GettingOutThere/Road-Trip-through-Georgia-03.jpg";
aPhotos4[3]="http://www.roadtripamerica.com/GettingOutThere/Road-Trip-through-Georgia-04.jpg";
aPhotos4[4]="http://www.roadtripamerica.com/GettingOutThere/Road-Trip-through-Georgia-05.jpg";
aPhotos4[5]="http://www.roadtripamerica.com/GettingOutThere/Road-Trip-through-Georgia-06.jpg";
aPhotos4[6]=0;// Index of current photo to be displayed. Made an array element to pass by reference.

aCaptions4[0] = "At Reed Bingham State Park a foot bridge leads to a small island where picnic tables are shaded by the large pine trees, while nearby, swimmers enjoy the lake waters and anglers bring in the day's catch.";
aCaptions4[1] = "Andersonville National Historic Site includes the Andersonville National Cemetery, where some 13,000 Union soldiers, who died at Andersonville Prison, were laid to rest.";
aCaptions4[2] = "This pecan grove, which seems to stretch for miles, is typical of the many pecan groves that dot the Georgia countryside.";
aCaptions4[3] = "The mountain streams that traverse the state add to the beauty of a road trip through Georgia, a state with constantly changing landscape.";
aCaptions4[4] = "The view from the lodge at Amicalola Falls State Park is just one of the breath taking sights at this popular state park in Northern Georgia.";
aCaptions4[5] = "How is this for a mall? The Blue Ridge Mountain Mall in Blue Ridge, Georgia, just south of the Tennessee border, leaves little doubt you are in a unique mountain town.";

aCreds4[0] = "Photo by Anne Sponholtz";
aCreds4[1] = "Photo by Anne Sponholtz";
aCreds4[2] = "Photo by Anne Sponholtz";
aCreds4[3] = "Photo by Anne Sponholtz";
aCreds4[4] = "Photo by Anne Sponholtz";
aCreds4[5] = "Photo by Anne Sponholtz";

//----------------------------Variables for fifth gallery--------------------->

var aPhotos5=new Array();
var aCaptions5=new Array();
var aCreds5 = new Array();

aPhotos5[0]="http://www.roadtripamerica.com/GettingOutThere/Genealogy-Road-Trip-01.jpg";	// Pictures.
aPhotos5[1]="http://www.roadtripamerica.com/GettingOutThere/Genealogy-Road-Trip-02.jpg";
aPhotos5[2]="http://www.roadtripamerica.com/GettingOutThere/Genealogy-Road-Trip-03.jpg";
aPhotos5[3]="http://www.roadtripamerica.com/GettingOutThere/Genealogy-Road-Trip-04.jpg";
aPhotos5[4]="http://www.roadtripamerica.com/GettingOutThere/Genealogy-Road-Trip-05.jpg";
aPhotos5[5]="http://www.roadtripamerica.com/GettingOutThere/Genealogy-Road-Trip-06.jpg";
aPhotos5[6]="http://www.roadtripamerica.com/GettingOutThere/Genealogy-Road-Trip-07.jpg";
aPhotos5[7]="http://www.roadtripamerica.com/GettingOutThere/Genealogy-Road-Trip-08.jpg";
aPhotos5[8]="http://www.roadtripamerica.com/GettingOutThere/Genealogy-Road-Trip-09.jpg";
aPhotos5[9]="http://www.roadtripamerica.com/GettingOutThere/Genealogy-Road-Trip-10.jpg";
aPhotos5[10]=0;// Index of current photo to be displayed. Made an array element to pass by reference.

aCaptions5[0] = "At Reed Bingham State Park a foot bridge leads to a small island where picnic tables are shaded by the large pine trees, while nearby, swimmers enjoy the lake waters and anglers bring in the day's catch.";
aCaptions5[1] = "Andersonville National Historic Site includes the Andersonville National Cemetery, where some 13,000 Union soldiers, who died at Andersonville Prison, were laid to rest.";
aCaptions5[2] = "This pecan grove, which seems to stretch for miles, is typical of the many pecan groves that dot the Georgia countryside.";
aCaptions5[3] = "The mountain streams that traverse the state add to the beauty of a road trip through Georgia, a state with constantly changing landscape.";
aCaptions5[4] = "The view from the lodge at Amicalola Falls State Park is just one of the breath taking sights at this popular state park in Northern Georgia.";
aCaptions5[5] = "town.";
aCaptions5[6] = "town.";
aCaptions5[7] = "town.";
aCaptions5[8] = "town.";
aCaptions5[9] = "town.";

aCreds5[0] = "Photo by Anne Sponholtz";
aCreds5[1] = "Photo by Anne Sponholtz";
aCreds5[2] = "Photo by Anne Sponholtz";
aCreds5[3] = "Photo by Anne Sponholtz";
aCreds5[4] = "Photo by Anne Sponholtz";
aCreds5[5] = "Photo by Anne Sponholtz";
aCreds5[6] = "Photo by Anne Sponholtz";
aCreds5[7] = "Photo by Anne Sponholtz";
aCreds5[8] = "Photo by Anne Sponholtz";
aCreds5[9] = "Photo by Anne Sponholtz";