var sDemo = 0;
function demo() {
	sDemo = sDemo == 7 ? 1 : sDemo + 1;
	var $demo = $("#imgIntro img#demo" + sDemo), $next = $("#imgIntro img#demo" + (sDemo == 7 ? 1 : sDemo + 1));
	$demo.animate({ opacity: 1 }, 3000, '', function () {
		$demo.css('z-index', 2);
		$next.css('z-index', 1).show();
		$demo.fadeOut(2000, demo);
	} ) ;
}

$(document).ready(demo);