var quotes = new Array();
quotes[0] = '&quot;Ryan is a person who really cares about your needs and goals when it comes to a healthy lifestyle.&quot; - Joanna';
quotes[1] = "&quot;He believed in me even on the days I didn\\'t believe in myself.&quot; - Jennifer";
quotes[2] = '&quot;Ryan has shown me a wide variety of exercises over the past 2 years,<br> making each workout more challenging, and more interesting than the last.&quot; - Kathy';
quotes[3] = '&quot;If you could have done it on your own, you would have done it by now.&quot;<br> - Vince Gironda (Master Trainer)';
quotes[4] = '&quot;Without change, there is no change.&quot; ';
quotes[5] = '&quot;Training and living a healthy lifestyle is like charity, it truly matters the most when no one is around to see how much you give.&quot; - Ryan Jobs';
quotes[6] = '&quot;Thanks to Ryan I have a six pack for the first time in my life. Anyone can achieve their fitness goals, they just need a great coach, and I found one!&quot; - Ali';
quotes[7] = '&quot;He pushes me hard and keeps things interesting, I always have fun going to the gym.&quot; - Shane';



var fadetime = 1000;
var displaytime = 6000;
var lastquote = -1;

function rotateQuote()
{
	fade("out");
	setTimeout("setQuote('"+quotes[randomNumber()]+"')",fadetime);
}

function fade(direction)
{
	if(direction == "in")
		opacity("quotes", 0, 100, fadetime);
	else if (direction == "out")
		opacity("quotes", 100, 0, fadetime);
}

function randomNumber()
{
	return Math.floor( Math.random() * (quotes.length) );
}

function setQuote(quotestring)
{
	while(quotestring == lastquote)
		quotestring = quotes[randomNumber()];

	lastquote = quotestring;
	getObj("quotes").innerHTML = quotestring;	
	fade("in");
	setTimeout("rotateQuote()", displaytime);
}