/* 
** table.js (c) Tom Broad tcbroad@gmail.com
**
** Script to initialise arrays of pictures, captions and artist 
** information. Change the values in this script to update
** the gallery. Add as many as necessary
**
**/

//Initialise arrays
var picList = new Array();
var pictures = new Array(); 
var Caption = new Array();
var thumbs = new Array();
var preLoad = new Array();
var numPics = 32;
//Set up an array of pathnames

function useNumPics(){
	var url, th, gal;
	for (i = 1; i <= numPics; i++) {
	    var f = (i < 10 ? "0" + i : "" + i);
		url = "pics/props/" + f + ".jpg";
		th = "pics/props/thumbs/" + f + ".jpg";
		pictures[i] = url;
		thumbs[i] = th;
	}
	
	for (i = 0; i < pictures.length; i++){
		preLoad[i] = new Image();
		preLoad[i].src = pictures[i];
	}
}

function usePicList(){
	for (i = 0; i < picList.length; i++);
	pictures[i] = picList[i];
}

useNumPics();
//usePicList();

