// JavaScript Document

$(function() {
	var max_n = $("#testimonials div.testimonial").length; // total number of testimonials
	
	var rand_n = Math.floor(Math.random()*max_n);
	
	$("#testimonials div.testimonial").eq(rand_n).show();
	
	$(".ad").click(function(){
		window.location = $(this).attr('id');
	});
});