// JavaScript Document
var ic = 5; // Number of alternative images 
var xoxo = new Array(ic); // Array to hold filenames 
xoxo[0] = "http://www.spashowcase.com.au/images/hp-rotation1.jpg"; 
xoxo[1] = "http://www.spashowcase.com.au/images/hp-rotation2.jpg";
xoxo[2] = "http://www.spashowcase.com.au/images/hp-rotation3.jpg"; 
xoxo[3] = "http://www.spashowcase.com.au/images/hp-rotation4.jpg"; 
xoxo[4] = "http://www.spashowcase.com.au/images/hp-rotation5.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); // --> 