// This script was supplied free by Hypergurl 
// http://www.hypergurl.com 
// JavaScript to interpolate random images into a page.
var ic = 6; // Number of alternative images 
var xoxo = new Array(ic); // Array to hold filenames
xoxo[0] = "images/graphic1.png"; 
xoxo[1] = "images/graphic2.png";
xoxo[2] = "images/graphic3.png"; 
xoxo[3] = "images/graphic4.png";
xoxo[4] = "images/graphic5.png"; 
xoxo[5] = "images/graphic6.png";
function pickRandom(range) 
{
if (Math.random) return Math.round(Math.random() * (range-1)); 
else { var now = new Date(); return (now.getTime() / 1000) % range; } 
} 
// Write out an IMG tag, using a randomly-chosen image name. 
var choice = pickRandom(ic); 