// JavaScript Document

var Quotes = new Array();
var Pick;

function randQuote()
{
	Quotes[0] = '<em>"I was so stressed and anxious when I arrived at your rooms. I would like to thank you for putting me at ease and for just listening to me. As the session went by my sense of hopelessness dwindled and I began to feel more alive and confident. Thank you so much for all your input."</em><p><strong>Heather. R</strong></p>';
	Quotes[1] = '<em>"The non-judgmental support that Helena provides helped greatly. I would not hesitate to recommend Helena to anyone for counseling."</em><p><strong>KAT</strong></p>';
	Quotes[2] = '<em>"Thank you James for the gentle and caring way you helped me come to terms and move forward with my relationship breakdown."</em><p><strong>LR</strong></p>';
	Quotes[3] = '<em>"I came to calm suffering from panic attacks, I was anxious all of the time. I couldnt go shopping or even get on a bus.I had this horrible dread that I was going to be like this for ever. I didnt think counselling would really help. How wrong I was, Calm counselling changed my life I am now working again. I am confident and look forward to every new day. Thanks so much J"</em><p><strong>B H</strong></p>';
	Quotes[4] = '<em>"Having recently gone through a nasty divorce a severe bout of depression and anxiety came over me. Like many others I am sure, I thought those feelings could never happen to me and the confusion I felt almost cost me my job. A friend recommended Calm after I had tried two other counselors in and around Derby, Calm gave me the right assistance I needed to feel worthy and confident once again after only a few months. I would like to thank them via this web site for all the help they gave me..."</em><p><strong>K T</strong></p>';

	Pick = parseInt(Math.random()*(Quotes.length));
	document.write('<div id="tquote" style="color:#003366">' + Quotes[Pick] + '</div>');
	setInterval(changeQuote, 8000);
}

function changeQuote()
{
	if(Pick == (Quotes.length-1))
		Pick = 0;
	else
		Pick = Pick+1;
	
	$("#tquote").fadeOut("fast", function() {
		$("#tquote").html(Quotes[Pick]);								  
				$("#tquote").fadeIn("slow"); });
}