/*function init_home() {
	
	init_layers();
	setFade(true);
	
	settimer();
}

function settimer() {
	window.setTimeout("rotate()", 3000);	
}

		
function rotate() {
		
	changeSlide(1);
	
	settimer();
}

function print(url) {
	window.open(url,'','scrollbars=yes,menubar=yes,resizable=yes,toolbar=no,location=no,status=no');
}
*/




var cur_image = 1;
var image_total = 18;

function settimer() {
	window.setTimeout("rotate()", 3000);
}

		
function rotate() {
	/*
	do
	{
		image_pos = image_total * Math.random();
		image_pos = Math.round(image_pos);
		if(image_pos >= image_total)
			image_pos = 0;
	}
	while(image_pos == cur_image)
	*/
	cur_image = cur_image + 1;
	
	if(cur_image > image_total)
		cur_image = 1;
		
	if(cur_image < 10)
		document.getElementById("slide").src = "img/random/S00207_00" + cur_image + ".jpg";
	else
		document.getElementById("slide").src = "img/random/S00207_0" + cur_image + ".jpg";
	settimer();
}
