jQuery.fn.liScroll = function(settings) {
		settings = jQuery.extend({
			travelocity: 0.02
		}, settings);
		return this.each(function(){
				var $strip = jQuery(this);
				$strip.addClass("newsticker").css({"overflow":"hidden","position":"relative"});
				var stripWidth = 0;
				var $mask = $strip.wrap("<div class='mask'></div>");
				$(".mask").css({"width":"773px","overflow":"hidden","position":"relative"});
				var $tickercontainer = $strip.parent().wrap("<div class='tickercontainer'></div>");								
				var containerWidth = $strip.parent().parent().width();	//a.k.a. 'mask' width 	
				$strip.find("li").each(function(i){
					var w = jQuery(this).find("a").width()+50;
					jQuery(this).width(w);
					stripWidth += w;
				});
				var len = $strip.find("li").length;
				$strip.width(stripWidth+100);	
				var totalTravel = stripWidth+containerWidth;
				var defTiming = totalTravel/(0.005*len);
				
				function scrollnews(spazio, tempo){
					$strip.animate({'left': '-' + spazio+"px"}, tempo, "linear", function(){
							$strip.css("left", containerWidth);
							scrollnews(totalTravel, defTiming);
					});
				}
				scrollnews(stripWidth, stripWidth/(0.005*len));	
				
				$strip.hover(function(){
					jQuery(this).stop();
				},	function(){
					var left = $strip.offset().left;
					var dx = totalTravel -  ( (left > 0)? left : (Math.abs(left) + containerWidth) );
					scrollnews(totalTravel, dx/(0.005*len));
				});			
		});	
};