
var imageAt = 1;


function rotateImages() {
	var current = imageAt;
	var next = imageAt + 1;
	if(next > 3) next = 1;
	
	$('#rotationLeft'+current).fadeOut(2000);
	$('#rotationLeft'+next).fadeIn(2000);
	$('#rotationMiddle'+current).fadeOut(2000);
	$('#rotationMiddle'+next).fadeIn(2000);
	$('#rotationRight'+current).fadeOut(2000);
	$('#rotationRight'+next).fadeIn(2000);
	imageAt = next;
}

$(document).ready(function() {
	setInterval(rotateImages, 6500);
	//setInterval(rotateImages, 800);
});
