jQuery(function() {
	startHeader();
});

function startHeader() {
	var count = 1;
	var stop = false;
	
	var changeHeader = function() {
		var oldCount = count;
		if (count < 5)
			count++;
		else {
			count = 1;
			stop = true;
		}
		
		$("#header_"+oldCount).css("z-index", "100");
		$("#header_"+count).css("z-index", "101");
		
		$("#header_"+count).fadeIn("slow", function() {
			$("#header_"+oldCount).hide();
			if (!stop)
				var t = window.setTimeout(changeHeader, 3000);
		}
	)};
	
	var t = window.setTimeout(changeHeader, 3000);
}
