$(document).ready( function() {
//--------------------------------------------------
// SLIDESHOW
//--------------------------------------------------
	function slideShow() {
		var active = $('#home-slideshow .active');
		var next = active.next();
		
		if ( active.is(':last-child') ) {
			var next = $('#home-slideshow .slide:first');
		}
		
		next.addClass('next').show();
		active.fadeOut(2000, function() {
			next.removeClass('next').addClass('active');
			active.removeClass('active');
		});
	}
	
	setInterval(slideShow, 6000);
});
