/**
 * @author Brandon Johnson
 * @package WordPress
 * @subpackage Tender_Years_Child_Care
 * @since Tender Years Child Care 1.0
 */

function changeQuotes(){
	var quotes = new Array(
		"&quot;After a number of bad experiences with other child care centers, a friend suggested I check out Tender Years. I toured the facility and loved what they offered. I felt that my daughter would be in good hands. Now three years later, I know I made the right decision for my daughter and believe Tender Years really cares about my child.&quot;",
		"&quot;As a working mom, it was hard for me to initially put my kids with \"strangers\". I have been fortunate that Tender Years treats us like family and my kids look forward to going. My kids have done very well in each class they've been in. The structure of the classes has been wonderful for my kids' learning, growth, and development.&quot;",
		"&quot;My child loves Tender Years and the staff is top-notch! I would definitely recommend them to any family who wants their child to excell!&quot;"
	);
	var customers = new Array("- Mary M.", "- Katie S.", "- Nancy T.");
	//$('customer_testimony').fade({duration:1.0, from: 1, to: 0})
	//$('customer_testimony_name').fade({duration:1.0, from: 1, to: 0})
	//Effect.toggle('customer_testimony','appear');
	//Effect.toggle('customer_testimony_name','appear');
	$('customer_testimony').update(quotes[window.nextQuote]);
	$('customer_testimony_name').update(customers[window.nextQuote]);
	window.nextQuote = window.nextQuote + 1;
	if(window.nextQuote > 2){
		window.nextQuote = 0;
	}
	//Effect.toggle('customer_testimony','appear');
	//Effect.toggle('customer_testimony_name','appear');
	//$('customer_testimony').appear({duration:1.0});
	//$('customer_testimony_name').appear({duration:1.0});
}

function quoteUpdater(){
	setInterval(changeQuotes,9000);
}

function btnContainerChangeOver(){
	$('feedback_btn').removeClassName('feedback_btn');
	$('feedback_btn').addClassName('feedback_btn_hover');
}

function btnContainerChangeOut(){
	$('feedback_btn').removeClassName('feedback_btn_hover');
	$('feedback_btn').addClassName('feedback_btn');
}
