var totNo = 6;    
var divHTMLs = new Array(totNo);
divHTMLs[0] = "<div id='quotes1'><div class='quote'><p><img src='images/index/img_abc.gif' alt='abc' width='34' height='33' align='right' /><span class='description'>Folks who did Dahn Yoga experienced significant improvements and health, coordinated life across all kinds of domains functioning including their physical well being, emotional well being, vitality, social well being.<br /><span class='media'>- ABC, Healthy Life!</span></span></p></div></div>";
divHTMLs[1] = "<div id='quotes2'><div class='quote'><p><img src='images/index/img_abc.gif' alt='abc' width='34' height='33' align='right' /><span class='description'>There is a new kind of yoga making its way into the mainstream and it's called Dahn Yoga.<br /><span class='media'>- ABC-KOAT, Healthy Beat</span></span></p></div></div>";
divHTMLs[2] = "<div id='quotes3'><div class='quote'><p><img src='images/index/img_nbc.gif' alt='abc' width='47' height='32' align='right' /><span class='description'>As you are doing [Dahn Yoga] exercises, we become much more mind-body connected because you are actually concentrating on that area of your body at the same time. That's working on your brain.<br /><span class='media'>- NBC News, Night Beat!</span></span></p></div></div>";
divHTMLs[3] = "<div id='quotes4'><div class='quote'><p><img src='images/index/img_fox.gif' alt='abc' width='49' height='24' align='right' /><span class='description'>In fact, Brain Wave Vibration also comes from an Asian tradition: a unique form of yoga called Dahn Yoga, which incorporates movements, music and meditation to increase fitness, general health and wellness, and happiness<br /><span class='media'>- FOX News</span></span></p></div></div>";
divHTMLs[4] = "<div id='quotes5'><div class='quote'><p><img src='images/index/img_forbes.gif' alt='abc' width='54' height='27' align='right' /><span class='description'>The study, as published in the Journal of General Internal Medicine, found that after three months of Dahn Yoga classes, participants in a cohort study reported fewer depressive symptoms, less anxiety, and greater self-efficacy...<br /><span class='media'>- Forbes.com</span></span></p></div></div>";
divHTMLs[5] = "<div id='quotes6'><div class='quote'><p><img src='images/index/img_reinventingbeauty.gif' alt='abc' width='87' height='18' align='right' /><span class='description'>These [Dahn Yoga exercises] set  the tone for the whole day. Yoga can be very vigorous, but you can approach it gently, and it will prepare the body and mind for rest of the day.<br /><span class='media'>- Reinventing Beauty</span></span></p></div></div>";

var cc = 0;
var ss;
ss = setTimeout("rotateQuotes()",1500);

function rotateQuotes() {
	if (cc%totNo == 0) swapQuoteAuto(0);
	if (cc%totNo == 1) swapQuoteAuto(1);
	if (cc%totNo == 2) swapQuoteAuto(2);
	if (cc%totNo == 3) swapQuoteAuto(3);
	if (cc%totNo == 4) swapQuoteAuto(4);
	if (cc%totNo == 5) swapQuoteAuto(5);
	cc = cc + 1;
	ss = setTimeout("rotateQuotes()",5000);
}

function swapQuoteAuto(quoteIndex) {
	document.getElementById("quotes").innerHTML = divHTMLs[quoteIndex];
}

function swapQuote(quoteIndex) {
	clearTimeout(ss);
	document.getElementById("quotes").innerHTML = divHTMLs[quoteIndex];
}

function stopQuoteRotate() {
	clearTimeout(ss);
}   

function startQuoteRotate() {
	ss = setTimeout("rotateQuotes()",1500);    
}

