$(document).ready(function(){
	
	function removeFirst(){
		$('.home-feature-thumbs div:first').hide('slow', function() {addLast(this);});
    }
    function addLast(first){
		$(first).insertAfter('.home-feature-thumbs div:last').show();
		$('.home-feature-thumbs div:first').show('slow');
    }
	
	// timeout is the time in milliseconds that each slide is visible
	// speed is the time it takes for the transition to happen
	$('#slideshow').cycle({
		fx:			'fade',
	    timeout:	6000, 
	    speed:		2000,
	    pause:		1,
	    after:		removeFirst
	});
	
});