app = new Object();

function rotateImages()
{
	app.rotation = new Object();
	app.rotation.id = 0;
	app.rotation.img = 0;
	app.rotation.limit = 3;
	app.rotation.names = new Array('orissa','kaleen','tavis','devon','corwin','david','liana','kendra');
	setInterval(rotateImage, 1600);
}

function rotateImage()
{
	var img = document.getElementById('square' + (app.rotation.id + 1));
	img.src = 'img/squares/' + app.rotation.names[app.rotation.id] + (app.rotation.img + 1) + '.jpg';

	app.rotation.id++;
	app.rotation.id %= 8;

	if (app.rotation.id == 0)
	{
		app.rotation.img++;
		app.rotation.img %= app.rotation.limit;
	}
}