var old_headline = 0;
var current_headline = 1;

$(document).ready(function(){
	headline_count = $("div.slide").size();
	$("div.slide").hide();
	$("div.slide:eq("+current_headline+")").fadeIn("slow");
	headline_interval = setInterval(headline_rotate,5000);
	$('#block_zmzteam').hover(function() {
		clearInterval(headline_interval);
		}, function() {
		headline_interval = setInterval(headline_rotate,5000);
		headline_rotate();
	});
});

 
function headline_rotate() {
	current_headline = (old_headline + 1) % headline_count;
	$("div.slide:eq(" + old_headline + ")")
	.fadeOut("fast");
	$("div.slide:eq(" + current_headline + ")")
	.fadeIn("slow"); 
	old_headline = current_headline;
}











