$(document).ready(function() {
	var interval;	
	$('.roundabout-holder')
		.roundabout({
        minOpacity: 0.5,
        maxOpacity: 1.0,
        minScale: 0.5,
        maxScale: 1.0,
		shape: 'lazySusan'
    })
		.hover(
			function() {
				// oh no, it's the cops!
				clearInterval(interval);
			},
			function() {
				// false alarm: PARTY!
				interval = startAutoPlay();
			}
		);
	
	// let's get this party started
	interval = startAutoPlay();
});

function startAutoPlay() {
	return setInterval(function() {
		$('.roundabout-holder').roundabout_animateToNextChild();
	}, 3000);
}

