$(document).ready(function() {
	
	// Counts the number of children inside of the parent div
	var n = $("div.testimonial").size()
	
	// Sets a variable equal to the a random number that will not exceed the number of children in the parent div
	var randomnumber=Math.floor(Math.random()*n);
	
	//alert(randomnumber); this is a test alert.
	
	// Fun
	$(function() {
		
		// Hides all the children
		$("#testimonial > div").hide();
		
		// Displays the random child
		$("#testimonial > div:eq(" + randomnumber + ")").show();
		
		 //set timeout for image to appear (set at 500ms)
			// setTimeout(function(){
			// 				       //fade in the random index of the image collection
			// 				       $("#container > img:eq(" + randomnumber + ")").fadeIn();
			// 				    }, 500);
		   
	});
});
