(function(a){a.fn.newsTicker=a.fn.newsticker=function(b){b=b||4000;initTicker=function(c){a.newsticker.clear(c);c.items=a("li",c);c.items.not(":eq(0)").hide().end();c.currentitem=0;startTicker(c)};startTicker=function(c){c.tickfn=setInterval(function(){doTick(c)},b)};doTick=function(c){if(c.pause){return}a.newsticker.pause(c);a(c.items[c.currentitem]).fadeOut("slow",function(){a(this).hide();c.currentitem=++c.currentitem%(c.items.size());a(c.items[c.currentitem]).fadeIn("slow",function(){a.newsticker.resume(c)})})};this.each(function(){if(this.nodeName.toLowerCase()!="ul"){return}initTicker(this)}).addClass("newsticker").hover(function(){a.newsticker.pause(this)},function(){a.newsticker.resume(this)});return this};a.newsticker=a.newsTicker={pause:function(b){(b.jquery?b[0]:b).pause=true},resume:function(b){(b.jquery?b[0]:b).pause=false},clear:function(b){b=(b.jquery?b[0]:b);clearInterval(b.tickfn);b.tickfn=null;b.items=null;b.currentItem=null}}})(jQuery);