	function insertRandomTestimonial()
	{
		// generate a random digit between 1 and 6
		myTestimonial = parseInt(Math.random()*3)+1;
		// make the random div visible
		document.getElementById('randomtestimonial-' + myTestimonial).style.display = "block";
		// Now write the number of teh item to the div
		document.getElementById('displayedTestimonialNumber').innerHTML = myTestimonial;

	}
	function switchRandomTestimonial(incrementType)
	{
		//forward or backwards?
		currentTestimonial = document.getElementById('displayedTestimonialNumber').innerHTML;
		newTestimonialNumber = parseInt(currentTestimonial) + parseInt(incrementType);
		//alert(newTestimonialNumber);
		if(newTestimonialNumber > 3)
		{
			newTestimonialNumber = 1;
		}
		if(newTestimonialNumber < 1)
		{
			newTestimonialNumber = 3;
		}
		// Set the displayed testimonial number in the div so we can read it later
		document.getElementById('displayedTestimonialNumber').innerHTML = newTestimonialNumber; 
		//Now hide all the divs
		for(count = 1; count <=3; count++)
		{
			document.getElementById('randomtestimonial-' + count).style.display = "none";
		}
		//Now show the div we want
		document.getElementById('randomtestimonial-' + newTestimonialNumber).style.display = "block";
		// and write the itemnumber to the div
	}
	
	var timer
	function rotateTestimonial()
	{
		// here's where we change the testimonial every 20 seconds - or 20 seconds after they change it manually.
		switchRandomTestimonial(1);
		timer = setTimeout("rotateTestimonial()", 12000);
	}
	
	function resetTimer()
	{
		clearTimeout(timer);
		timer = setTimeout("rotateTestimonial()", 12000);
	}

	

