//jQuery.noConflict();



this.randomtippp = function(){

	var pause = 14000; // define the pause for each tip (in milliseconds) 
	var length = jQuery("#whyjon li").length; 
	var temp = -1;		

	this.getRan = function(){
		// get the random number
		var ran = Math.floor(Math.random()*length) + 1;
		return ran;
	};
	this.show = function(){
		var ran = getRan();
		// to avoid repeating
		while (ran == temp){
			ran = getRan();
		}; 
		temp = ran;
		jQuery("#whyjon li").hide();	
		jQuery("#whyjon li:nth-child(" + ran + ")").fadeIn("fast");		
	};
	
	show(); setInterval(show,pause);
	
};

jQuery(document).ready(function(){	
	randomtippp();
});

