/* file: shafii.js */


$(document).ready(function(){
	
	RotateFeaturedArticles();
		
});



function RotateFeaturedArticles(){

	var pause = 3000; // define the pause for each tip (in milliseconds) 
	var length = $("#FeaturedArticles li").length; 
	var temp = 1;	
	
	this.show = function(){							
		if (temp == length)
			temp = 0;		
		$("#FeaturedArticles li").hide();	
		$("#FeaturedArticles li:nth-child(" + temp + ")").fadeIn("fast");				
		temp = temp + 1;
	};
	
	show(); 
	setInterval(show,pause);
	
};
