var spotlight_count;
var spotlight_interval;
var old_spotlight = 0;
var current_spotlight = 0;

$(document).ready(function()
{
	spotlight_count = $("div.slide").size();
	$("div##spotlight").fadeIn("slow");
	$("div.slide:eq("+current_spotlight+")").fadeIn("slow");
	spotlight_interval = setInterval(spotlight_rotate,7000); //time in milliseconds
});

function spotlight_rotate()
{
	current_spotlight = (old_spotlight + 1) % spotlight_count; 
	$("div.slide:eq(" + old_spotlight + ")").fadeOut("slow");
	$("div.slide:eq(" + current_spotlight + ")").fadeIn("slow");
	old_spotlight = current_spotlight;
}