$(document).ready(function() {
    // Cycle through images
    $('.slideshow').each(function() {
		var $ul = $(this).find('ul');
		$ul.find('li:not(:last)').hide();
    	setInterval(function() {
        	$ul.find('li:first').appendTo($ul).fadeIn('slow', function() {
				$(this).prev().hide();
			});
    	}, 6000);
	});
});