$(function(){
	var s = $("#s");
	s.hover(function(){
		clearInterval(scrolltimer);
	},function(){
		scrolltimer = setInterval(function(){
			scrollnews(s);
		},3000);
	}).trigger("mouseleave");
	
});

function scrollnews(obj){
	var $self = obj.find("ul");
	var lineheight = $self.find("li:first").height();
	$self.animate({"margin-top":-lineheight},600,function(){
		$self.css("margin-top",0).find("li:first").appendTo($self);
	});
}
