/*! jQuery Ticker Plugin v1.0.0 | https://github.com/BenjaminRH/jquery-ticker | Copyright 2014 Benjamin Harris | Released under the MIT license */ (function(d){function s(b){for(var a=b.length-1;0g[f].length&&(f+=1,c=0,f==g.length&&(f=0),clearTimeout(k),clearTimeout(q),b()))},a.cursorSpeed)}function r(){0==c&&a.fade?(clearTimeout(k),l.fadeOut(a.fadeOutSpeed,function(){l.text(n());l.fadeIn(a.fadeInSpeed,function(){c+=1;e()})})):(l.text(n()),c+=1,clearTimeout(k),e())}function n(){var b;switch(c%2){case 1:b=a.cursorOne;break;case 0:b=a.cursorTwo}c>=g[f].length&&(b="");return g[f].slice(0,c)+b}var h=d(this),l,g=[],q,k,f=0,c=0,p=!0,m=!0;h.find("li").each(function(a,b){g.push(d(this).text())});a.random&&s(g);h.find("ul").after("
").remove();l=h.find("div");b()})};d.fn.ticker.defaults={random:!1,itemSpeed:3E3,cursorSpeed:50,pauseOnHover:!0,finishOnHover:!0,cursorOne:"_",cursorTwo:"-",fade:!0,fadeInSpeed:600,fadeOutSpeed:300}})(jQuery);