
!function(n){n.extend(n.ui.tabs.prototype,{rotation:null,rotationDelay:null,continuing:null,rotate:function(o,i){var e=this,a=this.options;(o>1||null===e.rotationDelay)&&void 0!==o&&(e.rotationDelay=o),void 0!==i&&(e.continuing=i);var r=e._rotate||(e._rotate=function(t){clearTimeout(e.rotation),e.rotation=setTimeout(function(){var t=a.active;e.option("active",++t<e.anchors.length?t:0)},o),t&&t.stopPropagation()});e._unrotate||(e._unrotate=i?function(n){t=a.active,r()}:function(t){t.clientX&&e.rotate(null)});return o?(this.element.bind("tabsactivate",r),this.anchors.bind(a.event+".tabs",n.proxy(e.unpause,e)),r()):(clearTimeout(e.rotation),this.element.unbind("tabsactivate",r),this.anchors.unbind(a.event+".tabs",n.proxy(e.pause,e)),delete this._rotate,delete this._unrotate),1===o&&(o=e.rotationDelay),this},pause:function(){this.options;this.rotate(0)},unpause:function(){this.options;this.rotate(1,this.continuing)}})}(jQuery);