// This script was supplied free by Hypergurl 
// http://www.hypergurl.com 

// JavaScript to interpolate random images into a page

var ic = 4; 

// Number of alternative images 

var arnie = new Array(ic); 

// Array to hold filenames 

arnie[0] = "images/home_page/main_image_01.jpg"; 
arnie[1] = "images/home_page/main_image_02.jpg";
arnie[2] = "images/home_page/main_image_03.jpg";
arnie[3] = "images/home_page/main_image_04.jpg";
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); 
