function equalHeight(group) {
	tallest = 0;
	group.each(function() {
		thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}

allTestimonials = [1,2,3,4,5];
curTestimonial = 0;
fadeTime = 2000;

$(document).ready(function(){

  $("#testimonials").everyTime(12000, function () {        //everyTime repeats every 10 seconds
      $("#testimonials").fadeOut(fadeTime, onFadeOutCallback);//.fadeIn("slow");
    });

   function onFadeOutCallback() {
        $("#testimonials").load("/site/about_us/testimonials_box.php #testimonial"+allTestimonials[curTestimonial++%allTestimonials.length], '',onLoadCallback);
   }
   
   function onLoadCallback()
   {
   		$(this).hide().fadeIn( fadeTime );
   }
  
});


