var topIndex = 0;
var initialTopTimerCD = 3000;

var topTimer;

function init() {
	topTimer = setTimeout('cycle_top()', initialTopTimerCD);
}

function cycle_top() {
	topIndex = (topIndex + 1) % 9;
	tImg = document.getElementById("top-rotation");
	tImg.src = "assets/home/toprotation" + topIndex + ".jpg";
	topTimer = setTimeout('cycle_top()', initialTopTimerCD);
}

