
/* Show and Hide Testimonials on mouse over */
$(document).ready(function(){
	
	/* Make all quotes 210 in height, not set in CSS so if user doesn't have Java enabled it will still look fine */
	$('.quotes_container').height('210px');
	
	/* Check all testimonials and append a more div to any that have a height greater than 210px */
	$('.quote').each(function() {
		if ($(this).height() > '210') {
			$(this).parent('.quotes_container').append("<div class='quoteMore'>Read More</div>");
			
		}
	});
	
	/* Expand Long Testimonial */
	$('.quotes_container').click(
	
		function(){
			/* Check and minimize any expanded testimonials */
			$('.quotes_container').stop().animate({height: '210px'},250);
			$('.quotes_container').children('.quoteMore').fadeIn('fast');	
			
			/*Expand testimonial clicked on*/
			$quoteHeight = $(this).children('.quote').height();
			$(this).stop().animate({height: $quoteHeight },350);
			$(this).children('.quoteMore').fadeOut('slow');
		});	

/* Mouse out minimize testimonial 
		$('.quotes_container').mouseout(
		function(){
			$('.quotes_container').mouseleave(function(){
			$(this).stop().animate({height: '210px'},250);
			$(this).children('.quoteMore').fadeIn('fast');			
		});	
			
	});*/
	
});

