var ic = 7;
var imgArray = new Array(ic);
imgArray[0] = "graphics/index0.jpg";
imgArray[1] = "graphics/index1.jpg";
imgArray[2] = "graphics/index2.jpg";
imgArray[3] = "graphics/index3.jpg";
imgArray[4] = "graphics/index4.jpg";
imgArray[5] = "graphics/index5.jpg";
imgArray[6] = "graphics/index6.jpg";

function pickRandom(range) {
	if (Math.random)
		return Math.round(Math.random() * (range-1));
	else {
		var now = new Date();
		return (now.getTime() / 1000) % range;
	}
}
var choice = pickRandom(ic);
