var REGEXP = Array();
REGEXP['Email'] = /^[_A-Za-z0-9-]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*$/;


Event.observe(window, 'load', cycleTestimonials);
var testimonials, currentTestimonial, lastTestimonial;

function cycleTestimonials()
{
	testimonials = "1,2,3".split(',');//document.getElementById("testimonial").getAttribute('testimonials').split(',');
	currentTestimonial = 0;
	setInterval ( hideTestimonial, 10000 );
}

function hideTestimonial()
{
	Effect.Fade('testimonial_' + testimonials[currentTestimonial]);
	currentTestimonial = ((currentTestimonial < testimonials.length - 1)?currentTestimonial = currentTestimonial + 1:0);
	setTimeout(showTestimonial, 1000);
}

function showTestimonial()
{
	Effect.Appear('testimonial_' + testimonials[currentTestimonial]);
}