
$.noConflict();

/* rotator */

jQuery(document).ready(function() {
	var rotate = [];
	var ri = 0;
	jQuery("#top .stats h5").each(function(index) {
		rotate[ri] = jQuery(this);
		ri++;
	});

	rotateIn(0);
	
	function rotateOut(i) {
		var count = rotate.length;
		if(i+1 > count) i = 0;
		rotate[i].fadeOut(300);
		i++;
		setTimeout(function() { rotateIn(i); }, 300);
	}

	function rotateIn(i) {
		var count = rotate.length;
		
		if(i+1 > count) i = 0;
		rotate[i].fadeIn(300);
		setTimeout(function() { rotateOut(i); }, 4000);
	}
});

