function anim(){
	if($.news_stopp==1){
		return
	}
	$.liold=$.li;
	$.li++;
	if($("#newsteaser ul li:eq("+$.li+") > p.date").html()==""||$("#newsteaser ul li:eq("+$.li+") > p.date").html()==null){
		$.li=0;
	}
	$("#newsteaser p#date").html($("#newsteaser ul li:eq("+$.li+") > p.date").html());
	var color = $("#newsteaser ul li:eq("+$.li+") > p.date").css("color");
	if(color==""||color=="rgb(0, 0, 0)") color="#ea6b00";

	$("#date, #newsteaser h1.fix").animate({ color: "'"+color+"'" }, 1000);
	
	$("#newsteaser li:eq("+($.liold)+")").fadeOut(function(){
				
		$("#newsteaser li:eq("+$.li+")").fadeIn("slow");
		clearTimeout(timeout);
		timeout = setTimeout(function(){
			anim();
		},3500);
	});
}

$(document).ready(function(){
$("#newsteaser  li+li").hide();
	$.news_stopp=0;
	$("a.break+div").hide();
	$("a.break").css("display","inline-block").click(function(){
		$(this).hide().next("div").fadeIn("slow");
	});
	$.liold=$.li=0;
	$("#newsteaser p#date").html($("#newsteaser ul li:eq("+$.li+") > p.date").html()).show();
	timeout = setTimeout(function(){
		anim();
	},3000);

$("#newsteaser").hover(function(){
	$.news_stopp=1;
},function(){
   clearTimeout(timeout);
	timeout = setTimeout(function(){
		anim();
	},2000);
	$.news_stopp=0;
});


});