// JavaScript Document

var Quotes = new Array();
var Pick;

function randQuote()
{
	Quotes[0] = '<em>"The workshop helped me to achieve a better understanding of my colleagues and highlighted the way forward."</em><p><strong>SAP Implementation Team member</strong></p>';
	Quotes[1] = '<em>"I felt more positive about preparing myself for the restructure process.   I felt Judith had empathy with my situation, she helped me make sense of how I was feeling and that my feelings were normal.   Her approach was really supportive and she made me realise things about myself that I wouldn\'t have done before the workshop."</em><p><strong>Course Delegate</strong></p>';
	Quotes[2] = '<em>"The workshops were invaluable in terms of giving me the confidence and skill to support my team going through a very difficult time. Judith is very genuine and shows great empathy with the situation which I found most helpful."</em><p><strong>Line Manager</strong></p>';
	Quotes[3] = '<em>"It made me stop and think; to realise that I have to take action rather than wait for things to happen. Really enjoyable and thought provoking."</em><p><strong>Programme participant</strong></p>';
	Quotes[4] = '<em>"I gained a real self awareness; an understanding of my worth and my desires for the future. Talking and sharing with other delegates helped me learn to see things differently."</em><p><strong>Programme participant</strong></p>';
	Quotes[5] = '<em>"Your contribution and that of your team was excellent. Your advisor team was committed and enthusiastic as well as highly knowledgeable. Thank you again for your help."</em><p><strong>DWP Ageing Society Directorate</strong></p>';
	Quotes[6] = '<em>"Judith managed to understand our business culture and organisation quickly, and then was able to help us segment key training needs and prioritise them."</em><p><strong>Client</strong></p>';
	Quotes[7] = '<em>"The managers handbook and the training delivered on the back of this was relevant, pitched at the right level and within our budget constraints."</em><p><strong>Supply Chain Director</strong></p>';
	

	Pick = parseInt(Math.random()*(Quotes.length));
	document.write('<div id="tquote">' + 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"); });
}
