// Rotate text inside id="testimonial" container

var	tIndex = 0;

// Text array - general testimonials
var	tArray = new Array (
'<br />" QiYoga<sup>&reg;</sup> has changed my life. I feel fitter, more flexible, and am able to meditate... Thank you Fiona! "<br /><strong>Judy Mason</strong>',
'<br />" I never thought I would enjoy stretching so much.  My posture has improved and the pain in my right arm has disappeared.  Thank you."<br /><strong>John Matherson</strong>',
'<br />" The corporate yoga classes leave me feeling incredibly energised for the rest of the day."<br /><strong>Zane Great</strong>',
'<br />" If you haven\'t tried QiYoga<sup>&reg;</sup> yet - what are you waiting for? It\'ll help you sleep, It\'ll help you feel fit and fabulous! I can\'t recommend it enough."<br /><strong>Karen Taylor</strong>',
'<br /><br />" There is nothing else out there as amazing as QiYoga<sup>&reg;</sup>."<br /><strong>Mark Thomas</strong>',
'<br /><br />" Thanks so much for our sessions, I felt great afterwards! "<br /><strong>Rubina Latif</strong>',
'<br /><br />" Wow! QiYoga<sup>&reg;</sup> is amazing."<br /><strong>Alan Davis</strong>',
'" QiYoga<sup>&reg;</sup> makes me feel alive, young and vibrant. I love the classes and use the DVD twice a week. QiYoga<sup>&reg;</sup> is the easiest and most enjoyable form of exercise; it\'s great for relieving my arthritic pain, improving my circulation and mobility."<br /><strong>Mavis Mahoney</strong>',
'<br /><br />" QiYoga<sup>&reg;</sup> has helped me lose 2 dress sizes in 2 months!! "<br /><strong>Natasha Breen</strong>',
'<br />" Thanks to the techniques learnt in QiYoga<sup>&reg;</sup> classes I can now sleep easily at night! No more insomnia."<br /><strong>Leo Smitherson</strong>',
'" QiYoga<sup>&reg;</sup> rejuvenates the body and gets the energy flowing. Fiona is calm and dynamic in her balanced teaching approach. Meet the demands of the modern world with QiYoga<sup>&reg;</sup> as part of your daily routine."<br /><strong>Jeremy Curtis</strong>',
'<br /><br />" It\'s very, very relaxing, and enjoyable."<br /><strong>Vicky Singer</strong>',
'<br />" I don\'t know what you did to me in the last session but I felt amazing for the rest of the week, and for the first time ever slept like a baby! "<br /><strong>Catherine Parry Jones<strong>',
'<br /><br />" I love Fiona and her work. I can\'t tell enough people about her unique skills."<br /><strong>Becca Rose</strong>'
);

// Text array - fertility testimonials
var	tfArray = new Array (
'<br />" For me it\'s been a very spiritual journey. You have helped me focus and realise what I need to do physically and spiritually to have my baby. I now have that connection. Thank you Fiona."<br /><strong>Jo Jo</strong>',
'<br /><br />" Thank you for helping me fall pregnant."<br /><strong>Rebecca</strong>',
'<br /><br />" Thanks again for the lovely workshop - it was really inspiring."<br /><strong>Sonia</strong>',
'<br />" I have told everyone about Fiona\'s amazing work. She makes me feel good and I have never felt happier on my fertility journey."<br /><strong>Judy</strong>',
'<br /><br />" It was a great workshop and Fiona is clearly very talented."<br /><strong>Helen</strong>'
);

// Text array - training testimonials
var	ttArray = new Array (
'" Doing Fiona\'s QiYoga<sup>&reg;</sup> Teacher Training Course I found numerous things valuable for my health: mental, physical and emotional. One of the techniques I learnt was Neti: it clears my mind and gives me a buzz."<br /><strong>Rosanna Gordon</strong>',
'" I think the concept you have created is amazing and your radiant, positive energy is reflected in QiYoga<sup>&reg;</sup>. I\'m so fortunate to have you teach me, and have such high standards to strive for. What an inspiration you are! "<br /><strong>Evie Collins</strong>',
'<br />" QiYoga<sup>&reg;</sup> is one of the most interesting and beneficial styles of yoga I have come across in all my years of practicing."<br /><strong>Alice Pead</strong>'
);

// Text array - Jenney's testimonials
var	tjArray = new Array (
'<br />" She\'s a great teacher. The thing I like about Jen is her down to earth and very real approach. She always makes people feel welcome and no one is ever intimidated in her class."<br /><strong><em>more...</em></strong>',
'<br />" She\'s very calm, has a gentle yet focused approach and a kind manner. Physically strong, dynamic she\'s just great! Jen made me feel good, I always felt better after her classes."<br /><strong>Ann</strong>',
'<br />" I\'m fortunate to have met Jen on my first QiYoga<sup>&reg;</sup> class, she led the class in a smooth and clear way, really enjoyable. I have to say she is an inspirational QiYoga<sup>&reg;</sup> teacher."<br /><strong>Denise Froede</strong>',
'" Jen has such a lovely, compassionate approach to her yoga. I absolutely love her De-stress classes. She encourages you to leave your busy day at the door and just be present in what we\'re doing right then and there."<br /><strong><em>more...</em></strong>',
'<br />" Whether it\'s been a deeply meditative class or a strenuous workout, the result is I always sleep incredibly well after Jen\'s classes! "<br /><strong>Kelli W.</strong>',
'<br />" Jen was the first person I met as I entered the QiYoga<sup>&reg;</sup> studio and I was instantly put at ease that this was the right place for me to be and the right people to teach me! "<br /><strong><em>more...</em></strong>',
'" She helped me improve my own practice and improve my confidence in teaching others. Her lessons are always thorough and well-rounded so you feel you have really had a go at working with and healing every part of your body and mind."<br /><strong><em>more...</em></strong>',
'" What really makes Jen\'s classes special is that her wonderful warm and open nature comes through in every aspect of her teaching - I left all her classes feeling lighter and able to once again go out and cope with the stresses of city life! "<br /><strong>Zenia Bond</strong>'
);


window.onload=setTestimonial;

function setTestimonial() {

	useArray = tArray;
	if (window.location.pathname == '/fertility') {
		useArray = tfArray;
	} else
	if (window.location.pathname == '/teacher-training' || window.location.pathname == '/training-details' || window.location.pathname == '/correspondence-course') {
		useArray = ttArray;
	} else
	if (window.location.pathname == '/jenney') {
		useArray = tjArray;
	}

	if (tIndex >= (useArray.length)) {
	tIndex = 0;
	}

	document.getElementById('testimonial').innerHTML = useArray[tIndex];
	tIndex++;

	window.setTimeout('setTestimonial()', 8000);
}
