function switchImage() {
	var $active = $("#imageContainer div.active");
	if ( !$active.length ) $active = $("#imageContainer div:last");
	var $next = $active.next().length ? $active.next() : $("#imageContainer div:first");
	$next.addClass("active").fadeIn(1000);
	$active.fadeOut(1000).removeClass("active");
}
$(function() {
	$("#imageContainer div:gt(0)").hide();
	setInterval( "switchImage()", 8000 );
});
