jQuery.fn.liScroll = function(settings) {
		settings = jQuery.extend({
		travelocity: 0.05
		}, settings);		
		return this.each(function(){
				var $strip = jQuery(this);
				$strip.css( { position:'absolute', fontSize: '14px', color: '#FFCC00', margin: '0', padding: '0',width:'600px' });
				var stripWidth = $strip.width();
				
				$strip.wrap("<div class='tickercontainer'></div>");
				var $tickercontainer = $('.tickercontainer');
				//$tickercontainer.css({ position:'absolute', background:'none', width:'721px', height:'16px', margin:'0', padding:'0', top:'58px', left:'204px', overflow:'hidden' });
				$tickercontainer.css({ position:'absolute', background:'none', width:'467px', height:'16px', margin:'0', padding:'0', top:'20px', left:'554px', overflow:'hidden' });
				// Startposition
				var containerWidth = $tickercontainer.width();
				$strip.css('left', containerWidth);
				var totalTravel = containerWidth + stripWidth;

				var totalTravel = stripWidth + containerWidth;
				var theTempo = totalTravel/settings.travelocity;
				function scrollnews(spazio, tempo){
					$strip.animate({left: '-='+ spazio}, tempo, "linear", function(){ $strip.css("left", containerWidth);scrollnews(totalTravel, theTempo); });
				}
				scrollnews(totalTravel, theTempo);
				$strip.hover(function(){
						jQuery(this).stop();
					},
					function(){
						var theNewTempo = parseInt($(this).css('left')) + stripWidth/settings.travelocity;
						scrollnews(parseInt($(this).css('left')) + stripWidth, theNewTempo);
					}
				)
		});	
};

