var ic = 6;
var xoxo = new Array(ic);
//array to hold filenames
xoxo[0] = "images/home-photo1.jpg";
xoxo[1] = "images/home-photo2.jpg";
xoxo[2] = "images/home-photo3.jpg";
xoxo[3] = "images/home-photo4.jpg";
xoxo[4] = "images/home-photo5.jpg";
xoxo[5] = "images/home-photo6.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);
