(function($){
$.fn.assemblyLine = function(s,h,speed){
var self = this;
var hov;
var newsfeed = $(".newsfeed");
$("<div></div>").addClass("container").css("position", "relative").append(self).appendTo(newsfeed)
.children().css({"position":"absolute"})
.each(function(i){
$(this).css("top", h*i);
}).slice(s).hide();
function tick(){
$(".container").children().slice(0,1).fadeOut(speed/6, function(){
$(this).clone().appendTo(".container");
$(this).remove();
$(".container").children()
.each(function(i){
$(this).animate({top: h*i}, speed/6);
}).slice(s-1,s).fadeIn(speed/6)
});
};
kjoer = setInterval(tick, speed);
return self;
};
})(jQuery);
$(function(){
$(".title").assemblyLine(3,80, 5000);
});