var interval = 10000; // 10 seconds
var testimonialNameContainer = document.getElementById("testimonial_name");
var testimonialContainer = document.getElementById("testimonial_txt");
var testimonialCnt = document.getElementById("testimonial_cnt");
var names = ["G.C.",
			 "C.B.",
			 "D.J.",
			 "M.N."];
var testimonials = ["Yeah, right, I thought to myself as I read your website.  There's no way my girlfriend will think I'm a hero in the bedroom . . . not with my track record!<br /><br /><br /> But I was desperate, and so I ordered one bottle, expecting full well that I would be returning it . . . disappointed as usual!<br /><br />Boy was I wrong.  Now my girlfriend really does think &quot;I'm a hero in the bedroom.&quot;<br /><br />Thanks for Stamina-XL a product that finally does what it promises!",
					"Who know that sex could actually be this terrific.  Now my wife and I - after 10 years of marriage - finally have attained that &quot;sizzlin' sex life&quot; we've always imagined! Thank you Stamina-XL!",
					"And I didn't even think there was anything wrong with our sex life!  Then I discovered Stamina-XL.  My fianc&eacute; suggested we try it - just to see if our great sex life could actually get any better!<br /><br />Wow!  Who knew?   I have no words to describe our incredibly fulfilling our love life now is.<br /><br />Both my fianc&eacute; and I thank you, Stamina-XL from the bottom of our . . . hearts!",
					"I never knew there was anything wrong with our love life.  My girlfriend was satisfied - or so I thought.  But I was curious about Stamina-XL.  And I took it - without telling my partner.  I wanted to see if she noticed on her own.<br /><br />In a word:  YES!<br /><br />The evening I took Stamina-XL was the most fulfilling, most exciting, most memorable (need I go on . . . ?) of my life - and hers as well.<br /><br />Thank you Stamina-XL for a product that is beyond compare!<br /><br />Today, I'm no hero in the bedroom . . . I'm a SuperHero."];
	
var currentMessage = 0;

function showMessage()
{
	testimonialNameContainer.innerHTML = names[currentMessage];
	testimonialContainer.innerHTML = testimonials[currentMessage];
	testimonialCnt.innerHTML = (currentMessage + 1) + " of " + testimonials.length;
}

function showNextMessage()
{
	currentMessage++;
	if(currentMessage == testimonials.length)
	{
		currentMessage = 0;
	}
	showMessage();		
}

function showPreviousMessage()
{
	currentMessage--;
	if(currentMessage < 0)
	{
		currentMessage = testimonials.length - 1;
	}
	showMessage();		
}
setInterval("showNextMessage()", interval);
showMessage();
