/*! vTicker 1.21 http://richhollis.github.com/vticker/ | http://richhollis.github.com/vticker/license/ | based on Jubgits vTicker http://www.jugbit.com/jquery-vticker-vertical-news-ticker/ */ (function(d) { var g, c, f; g= { speed: 700, pause: 4E3, showItems: 1, mousePause: !0, height: 0, animate: !0, margin: 0, padding: 0, startPaused: !1, autoAppend: !0 } ; c= { moveUp:function(a, b) { return c.showNextItem(a, b, "up") } , moveDown:function(a, b) { return c.showNextItem(a, b, "down") } , nextItemState:function(a, b) { var e, c; c=a.element.children("ul"); e=a.itemHeight; 0b.itemHeight)return b.itemHeight=d(this).height() } ), a.children("ul").children("li").each(function() { return d(this).height(b.itemHeight) } ), f=c.margin+2*c.padding, a.height((b.itemHeight+f)*c.showItems+c.margin)):a.height(c.height) } , defaultStateAttribs:function(a, b) { return { itemCount: a.children("ul").children("li").length, itemHeight: 0, itemMargin: 0, element: a, animating: !1, options: b, isPaused: b.startPaused, pausedByCode: !1 } } } ; f= { init:function(a) { var b, e; d(this).data("state")&&f.stop.call(this); b=jQuery.extend( {} , g); a=d.extend(b, a); b=d(this); e=c.defaultStateAttribs(b, a); d(this).data("state", e); c.setItemLayout(b, e, a); a.startPaused||c.startInterval.call(this); if(a.mousePause)return c.bindMousePausing(b, e) } , pause:function(a) { var b; b=c.getState("pause", this); if(!c.hasMultipleItems(b))return!1; b.isPaused=a; b=b.element; if(a)return d(this).addClass("paused"), b.trigger("vticker.pause"); d(this).removeClass("paused"); return b.trigger("vticker.resume") } , next:function(a) { var b; b=c.getState("next", this); if(c.isAnimatingOrSingleItem(b))return!1; c.restartInterval.call(this); return c.moveUp(b, a) } , prev:function(a) { var b; b=c.getState("prev", this); if(c.isAnimatingOrSingleItem(b))return!1; c.restartInterval.call(this); return c.moveDown(b, a) } , stop:function() { c.getState("stop", this); return c.stopInterval.call(this) } , remove:function() { var a; a=c.getState("remove", this); c.stopInterval.call(this); a=a.element; a.unbind(); return a.remove() } } ; return d.fn.vTicker=function(a) { return f[a]?f[a].apply(this, Array.prototype.slice.call(arguments, 1)): "object"!==typeof a&&a?d.error("Method "+a+" does not exist on jQuery.vTicker"): f.init.apply(this, arguments) } } )(jQuery);