$(document).ready(function() {
	var speed = 5000;
	var run = setInterval('rotate()', speed);

        /*
        $('#slides').hover(
		function() {
			clearInterval(run);
		},
		function() {
			run = setInterval('rotate()', speed);
		}
	);
	*/
});

function rotate() {
	$('#slides .slide:last').fadeOut(2000, function () {
	       $('#slides .slide:first').before($('#slides .slide:last'));
	       $('#slides .slide:first').fadeIn();
	});
}
