var ic = 11; 

// Number of alternative 
var xoxo = new Array(ic); 

// Array to hold filenames 
xoxo[0] = "fileadmin/templates/images/random/01.jpg"; 
xoxo[1] = "fileadmin/templates/images/random/02.jpg"; 
xoxo[2] = "fileadmin/templates/images/random/03.jpg"; 
xoxo[3] = "fileadmin/templates/images/random/04.jpg"; 
xoxo[4] = "fileadmin/templates/images/random/05.jpg";
xoxo[5] = "fileadmin/templates/images/random/06.jpg";
xoxo[6] = "fileadmin/templates/images/random/07.jpg";
xoxo[7] = "fileadmin/templates/images/random/08.jpg";
xoxo[8] = "fileadmin/templates/images/random/09.jpg";
xoxo[9] = "fileadmin/templates/images/random/10.jpg";
xoxo[10] = "fileadmin/templates/images/random/11.jpg";
xoxo[11] = "fileadmin/templates/images/random/12.jpg";

function pickRandom(range) 
{
	 if (Math.random) 
		return Math.round(Math.random() * (range-1)); 
	else { 
		var now = new Date(); 
		return (now.getTime() / 1000) % range; 
	} 
} 
