
$(document).ready(function(){
	
	$('div.testimonial_quotes').hide();
	
	(function($) {
		$.fn.customFadeIn = function(speed, callback) {
			$(this).fadeIn(speed, function() {
				if(!$.support.opacity)
					$(this).get(0).style.removeAttribute('filter');
				if(callback != undefined)
					callback();
			});
		};
		$.fn.customFadeOut = function(speed, callback) {
			$(this).fadeOut(speed, function() {
				if(!$.support.opacity)
					$(this).get(0).style.removeAttribute('filter');
				if(callback != undefined)
					callback();
			});
		};
		$.fn.customFadeTo = function(speed,to,callback) {
			return this.animate({opacity: to}, speed, function() {
				if (to == 1 && jQuery.browser.msie)
					this.style.removeAttribute('filter');
				if (jQuery.isFunction(callback))
					callback();
			});
		};
	})(jQuery);
	
	(function($) {
		$.fn.quoteShow = function() { 
			$('div#quote_7').customFadeIn(3000);
			
			$('div#quote_7').oneTime(11000, function() {
				$('div#quote_7').hide();
				$('div#quote_8').customFadeIn(3000);
				
				$('div#quote_8').oneTime(11000, function() {
					$('div#quote_8').hide();
					$('div#quote_9').customFadeIn(3000);
					
					$('div#quote_9').oneTime(11000, function() {
						$('div#quote_9').hide();
						$('div#quote_10').customFadeIn(3000);
						
						$('div#quote_10').oneTime(11000, function() {
							$('div#quote_10').hide();
							$('div#quote_11').customFadeIn(3000);
							
							$('div#quote_11').oneTime(11000, function() {
								$('div#quote_11').hide();
								$('div#quote_6').customFadeIn(3000);
								
								$('div#quote_6').oneTime(11000, function() {
									$('div#quote_6').hide();
									$('div#quote_5').customFadeIn(3000);
									
									$('div#quote_5').oneTime(11000, function() {
										$('div#quote_5').hide();
										$('div#quote_4').customFadeIn(3000);
										
										$('div#quote_4').oneTime(11000, function() {
											$('div#quote_4').hide();
											$('div#quote_3').customFadeIn(3000);
											
											$('div#quote_3').oneTime(11000, function() {
												$('div#quote_3').hide();
												$('div#quote_2').customFadeIn(3000);
												
												$('div#quote_2').oneTime(11000, function() {
													$('div#quote_2').hide();
													$('div#quote_1').customFadeIn(3000);
													
													$('div#quote_1').oneTime(11000, function() {
														$('div#quote_1').hide();
														$('this').quoteShow();
													});
												});
											});
										});
									});
								});
							});
						});
					});
				});
			});
		};
	})(jQuery);
	
	$('this').quoteShow();
	
	$('input').click(function(){
		$(this).val("");
	});
//ending jquery
});

