/*
 * Tabs 3 extensions
 *
 * Copyright (c) 2007 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/TabsExtensions
 */
(function($){$.extend($.ui.tabs.prototype,{rotation:null,rotate:function(ms){var self=this;function stop(e){if(e.clientX){clearInterval(self.rotation);}}if(ms){var t=this.options.selected;this.rotation=setInterval(function(){t=++t<self.$tabs.length?t:0;self.select(t);},ms);this.$tabs.bind(this.options.event,stop);}else{clearInterval(this.rotation);this.$tabs.unbind(this.options.event,stop);}}});})(jQuery);
