jQuery.fn.liScroll = function(settings) {
		settings = jQuery.extend({
		travelocity: 0.07
		}, settings);
		return this.each(function(){
				var $strip = jQuery(this);
				var timeout;
				var spazio = 0;
				$strip.addClass("newsticker")
				var stripHeight = 0;
				var newsItems = new Array();
				var counter = -1;
				var $mask = $strip.wrap("<div class='mask' style='height:110px;overflow:hidden;'></div>");
				var $tickercontainer = $strip.parent().wrap("<div class='tickercontainer'></div>");
				var containerHeight = $strip.parent().parent().height();	//a.k.a. 'mask' width
				var first = true;
				$strip.find("div").each(function(i){

				stripHeight = jQuery(this, i).height();
				newsItems.push(jQuery(this, i));
				});
				function Scrolltimeout(){

					 if(!first){
						$strip.find("div:first").remove();
						spazio=0;
						$strip.css({marginTop: 0});
						 if(counter == newsItems.length-1){
						clearTimeout(timeout);
						 counter=0;


					}else{
					 counter += 1;
					 }

					 }
					first=false;
					scrollnews();

				}
				$strip.height(stripHeight);
				var defTiming = stripHeight/settings.travelocity;
				var totalTravel = stripHeight+containerHeight;
				function moveElements(){
					if(counter >=0){
					var content = newsItems[counter].html();
					// oh nee: $strip.append('<div style="height:140px;width:270px;margin-bottom:0px;margin-top:0px;">'+content+'</div>');
					$strip.append('<div style="height:140px;margin-bottom:0px;margin-top:0px;">'+content+'</div>');
					}
					}
				function scrollnews(){
					spazio += stripHeight;
					$strip.animate({marginTop: -spazio}, "slow", "swing", function(){timeout = setTimeout(Scrolltimeout, 5000);});
					moveElements();
				}

				timeout = setTimeout(Scrolltimeout, 5000);
				$strip.hover(function(){
				clearTimeout(timeout);
				},
				function(){
				clearTimeout(timeout);
				timeout = setTimeout(Scrolltimeout, 5000);

				});
		});
};