function rotate_testimonials()
{
	var divs = document.getElementsByTagName('div');
	var count = 0;
	
	for (i = 0; i < divs.length; i++)
	{
		
		if (divs[i].className.indexOf("testimonials") != -1)
		{
			count++; 
		}
	}
	
	var rand = Math.ceil(Math.random() * (count + 3));
	
	for (i = 0; i < count; i++)
	{
		if (rand >= count) { rand = 0; }
		
		var id = 'testimonial' + rand;
		var testimonial = document.getElementById(id);
		
		if (i == rand)
		{
			var name = testimonial.className;
			var newName = name.replace('hide', 'show');
			testimonial.className = newName;
		}
	}
}