$.fn.newsticker=function(settings){
	settings=$.extend({
		tempo:50
	},settings);	
	return this.each(function(){
		var frame=$(this).addClass("ui-newsticker");
		frame.children("ul").each(function(){
			var strip=$(this);
			var stripWidth=strip.width();
			var max=Math.ceil(frame.width()/stripWidth);
			for(var i=0;i<max;i++)strip.append(strip.children("li").clone());
			function startAnimation(){
				strip.css("left","0");
				strip.animate({"left":'-'+stripWidth+"px"},stripWidth*settings.tempo,"linear",startAnimation);
			};
			startAnimation();
		});
	});	
};