/*http://cssbeauty.com/skillshare/discussion/955/change-text-every-5-seconds/*/
	
var rotatingTextElement1;
//var rotatingTextElement2;
var rotatingText = new Array();
var ctr = 0;

function initRotateText() {
rotatingTextElement1 = document.getElementById("quoteBox1");
//rotatingTextElement2 = document.getElementById("quoteBox2");
rotatingText[0] = "'My results exceeded all my expectations and I can honestly say it was a life-changing experience.'";
rotatingText[1] = "'Forrest helped me let go of the past in order to create the life I want.'";
rotatingText[2] = "'As soon as I met him, I felt at ease and reassured.'";
rotatingText[3] = "'The hypnosis sessions he provided enabled me to sleep better.'";
rotatingText[4] = "'His patience and skill, coupled with his sense of humor, enthusiasm and ability to truly listen.'";
rotatingText[5] = "'Life is fun, exciting and new.. and getting better and better. Thank you, Forrest.'";
rotatingText[6] = "'It was obvious he cared about helping me.'";
rotatingText[7] = "'I was a smoker for 41 years. ... I am smoke free and have no compulsion to smoke again.'";
rotatingText[8] = "'Forrest's approach is intuitive, intelligent and caring.'";
rotatingText[9] = "'I feel freer, more confident and excited about the future.'";
rotatingText[10] = "'I have thoroughly enjoyed my sessions with Forrest.'"
rotatingText[11] = "'I would recommend anyone, even the non-believer of Hypnosis to meet and work with him just once.'"
rotatingText[12] = "'My life has changed for the better since working with Forrest.'"
setInterval(rotateText, 7000);
}
function rotateText() {
var rt = rotatingText.length;
var whichQuotation1=Math.round(Math.random()*(rt-1));
//var whichQuotation2=Math.round(Math.random()*(rt-1));

rotatingTextElement1.innerHTML = rotatingText[whichQuotation1];
//rotatingTextElement2.innerHTML = rotatingText[whichQuotation2];
}
window.onload = initRotateText;






