jQuery.noConflict();

(function($) {
	$.fn.wait = function(option, options) {
		milli = 5000; 
		if (option && (typeof option == 'function' || isNaN(option)) ) { 
			options = option;
		} else if (option) { 
			milli = option;
		}
		// set defaults
		var defaults = {
			msec: milli,
			onEnd: options
		},
		settings = $.extend({},defaults, options);

		if(typeof settings.onEnd == 'function') {
			this.each(function() {
				setTimeout(settings.onEnd, settings.msec);
			});
			return this;
		} else {
			return this.queue('fx',
			function() {
				var self = this;
				setTimeout(function() { $.dequeue(self); },settings.msec);
			});
		}

	}
})(jQuery);

function loopFeed(x){
	
	document.getElementById("tickerFeed").innerHTML=tf[x];
	jQuery("div#tickerFeed").fadeIn(2000, function () {
	jQuery("div#tickerFeed").wait().fadeOut(1000, function() {
			
	if (x < (e-1)) {
		x++;
	} else if (x = e) {
		x = 0;
	}
	
	loopFeed(x);
	
	});}); 
	
	return false;
	
}	

jQuery(document).ready(function() {
	loopFeed(0);
});