	// At work on the home page. In CSS as 'testimonial' //
	// Testimonials from actual customers of Tomalak Tile  Stone //
	
	$(document).ready( function() {
		var textArray = [
			'"Thank you Eric - We are very, very pleased with the stone work!"',
			'"Enclosed is my final payment. Thanks for a great job. It was nice working with you and your crew."',
			'"Thanks again for doing such a great job in such a timely fashion. I hear everything looks wonderful."',
			'"Thanks Eric - I can\'t wait to see everything. I hear it looks great..."',
			'"Eric - Thank you for the professional and high quality results you and your crew acheived at our home."',
			'"Thank you so very much for doing the granite. Your men and you were very professional, clean and efficient."',
			'"Thank you for the great job you did on our granite! We love it and will gladly recommend you to friends..."',
			'"Hey guys, Randy said you were his favorite sub to work with and that the job looks great. Thank you!"',
			'"Thank you Eric. The granite is beautiful. A pleasure doing business with you..."',
			'"Eric - I look forward to working with you in the new year. Happy Holidays..."',
			'"Eric & Team, Thank you for the incredible job that you did on our kitchen. We are really happy."',
			'"We highly recommend you to anyone looking for fine craftsmanship."',
			'"The granite looks great. Will probably be calling in the future for the bar in the living room!"'
		];
		$('#text-content').loadText( textArray, 5000 ); // ( array, interval )
	});
	// custom jquery plugin loadText()
	$.fn.loadText = function( textArray, interval ) {
		return this.each( function() {
			var obj = $(this);
			obj.fadeOut( 'slow', function() { 
				obj.empty().html( random_array( textArray ) );	
				obj.fadeIn( 'slow' );
			});
			timeOut = setTimeout( function(){ obj.loadText( textArray, interval )}, interval );
			// reload random text (if not animated) -- entirely optional, can be removed, along with the reload link above (<a href="javascript:;" id="text-reload"><em>randomize</em></a>)
			$("#text-reload").click( function(){ 
				if( !obj.is(':animated') ) { clearTimeout( timeOut ); obj.loadText( textArray, interval );} // animation check prevents "too much recursion" error in jQuery 
			});
		});
	}
	//public function
	function random_array( aArray ) {
		var rand = Math.floor( Math.random() * aArray.length + aArray.length );
		var randArray = aArray[ rand - aArray.length ];
		return randArray;
	}
