$(document).ready(function() {
	$('div.slideshow img:first').addClass('active');
	setInterval(function() {
		var active = $('div.slideshow img.active');
		var next =  active.next().length ? active.next() : $('div.slideshow img:first');
		$('div.slideshow img.last').removeClass('last');
		active.addClass('last').removeClass('active');
		next.fadeOut(0).addClass('active').fadeIn(1000);
	}, 4000);
});
