window.onload = launchAll; // fileArray is an array generated by PHP that stores the folder and filenames for the stored pictures. var fileArray = new Array(); fileArray[0] = new Array("CIMG0015.JPG","CIMG0304.JPG","P7010325.JPG","P7260678.JPG","P7300703.JPG","P8040735.JPG","P8060793.JPG","P8060815.JPG","P8310857.JPG"); fileArray[0].name = "Activities"; // thisPic is a global array representing the current picture for each folder independently. var thisPic = new Array(); // currFolderNum stores the folder number of the slideshow the user chose. var currFolderNum = null; // getPicUrl takes the foldername and returns the URL for the next picture. function getPicUrl(thisFolderNum, thisPicNum) { return "images/scriptPics/gallery/" + fileArray[thisFolderNum].name + "/" + fileArray[thisFolderNum][thisPicNum]; } // Kick off the script with a bang! function launchAll() { initThumbnails(); initSlideShows(); } function initThumbnails() { initThisPic(); for (var i=0; i" + fileArray[i].name + " "; var writtenText = document.getElementById("text").innerHTML; document.getElementById("text").innerHTML = writtenText + newThumbnail; } // Loops through all links looking for the ones I just created. for (var j=0; j