//JavaScript code by Sean Jackson //Edited by Alan Williams var numGraphics = 36; // <=== Adjust the number of image files here var theGraphics = null; function getRandomNumber(n,seed) { //Returns a pseudorandom number between 1 and n today = new Date(); var bigNum = seed * today.getSeconds() * today.getTime() * Math.sqrt(today.getMinutes()); var randNum = (bigNum % n) + 1; return Math.floor(randNum); } function initArray(n) { this.length = n; for(var i = 1; i <= n; i++) { this[i] = ""; } return this; } function initGraphics() { //Name Graphics: graphicnn where nn is a whole number //in the format "01" to "99" theGraphics = new initArray(numGraphics); for(i = 1; i <= numGraphics; i++) { if (i < 10) { theGraphics[i] = "ranpic000" + i + ".jpg" } else { theGraphics[i] = "ranpic00" + i + ".jpg" } } } function getRandomGraphic(seed) { var theIndex = getRandomNumber(numGraphics,seed); return theGraphics[theIndex]; } function getGraphic(seed) { var theGraphicName = getRandomGraphic(seed); theGraphic = "ran_pics/" + theGraphicName return theGraphic } function loadGraphic(seed) { theGraphic = getGraphic(seed); var theTag = '