// // // 1 || self.rotationDelay === null) && ms !== undefined){//only set rotationDelay if this is the first time through or if not immediately moving on from an unpause self.rotationDelay = ms; } if(continuing !== undefined){ self.continuing = continuing; } var rotate = self._rotate || ( self._rotate = function( e ) { clearTimeout( self.rotation ); self.rotation = setTimeout(function() { var t = o.selected; self.select( ++t < self.anchors.length ? t : 0 ); }, ms ); if ( e ) { e.stopPropagation(); } }); var stop = self._unrotate || ( self._unrotate = !continuing ? function(e) { if (e.clientX) { // in case of a true click self.rotate(null); } } : function( e ) { t = o.selected; rotate(); }); // start rotation if ( ms ) { this.element.bind( "tabsshow", rotate ); this.anchors.bind( o.event + ".tabs", stop ); rotate(); // stop rotation } else { clearTimeout( self.rotation ); this.element.unbind( "tabsshow", rotate ); this.anchors.unbind( o.event + ".tabs", stop ); delete this._rotate; delete this._unrotate; } //rotate immediately and then have normal rotation delay if(ms === 1){ //set ms back to what it was originally set to ms = self.rotationDelay; } return this; }, pause: function() { var self = this, o = this.options; self.rotate(0); }, unpause: function(){ var self = this, o = this.options; self.rotate(1, self.continuing); } }); })(jQuery); //function to fresh news function contentRotator(content) { var str_len = 0; if (doAnimate) { content.fadeOut("fast", function(content) { return function() { /* HIDE ALL ITEMS */ $("ul#fresh_news > li").hide(); content.fadeIn(1000, function() { /* GO BACK TO FIRST ITEM */ if ($(this).attr("id") == $("ul#fresh_news > li:last").attr("id")) { str_len = $(this).text(); if(str_len.length //