$(document).ready(function() {			var auto = true;	var currentTip = null;			var nextTip = null;	var nextTipTimer = null;		function getNextTip(tip) {		var count = tips.length;		var pos = $.inArray(tip, tips);				if(pos+1 == count) {			return $(tips[0]).data("tooltip");		} else {			return $(tips[pos+1]).data("tooltip");		}	}			var tips = $(".label").tooltip({ 		effect: 'fade', 		relative: 'false',		offset: [39, 0],		position: 'top center',		onBeforeShow: function() {						// hide any visible tip			if(currentTip) {				currentTip.hide();			}			// clear any existing timers			if(nextTipTimer) clearTimeout(nextTipTimer);						// wire-up timer for next tip only if this is the expected nextTip			if(nextTip && this != nextTip) {				auto = false;				nextTip = getNextTip(this.getTrigger()[0]);			} else {				nextTip = getNextTip(this.getTrigger()[0]);				nextTipTimer = setTimeout(function() { nextTip.show() }, 4000 );							}						// update currentTip			currentTip = this;		},		onBeforeHide: function() {				if(!auto) {				auto = true;				currentTip = null;				nextTipTimer = setTimeout(function() { nextTip.show() }, 4000 );			}		}	});		setTimeout(function() { 		$(tips[2]).data("tooltip").show();	}, 5000 );	});	   
