function init()
{

	setInterval('changeImages()', 3000);
}

function changeImages()
{
	var img = document.getElementById('img' + nextImg);
	
	nextImg = ++nextImg % imgMax;
	
	if (img)	
		img.src= prefix + (1 + Math.floor(imgCount * Math.random())) + '.jpg';
	
}