function prepareTestimonials() {
	var images = $$(".testimonial");
	
	for (var i=0; i<images.length; i++) {
		var image = images[i];
		image.observe('mouseover', function() {
			$('test-text-contents').replace('<div id="test-text-contents">' + this.readAttribute('testname') + '<p>' + this.readAttribute('alt') + '</p></div>');
			$('accent-' + this.readAttribute('accent')).show();
			Effect.Appear('test-text', {duration: 0.25});
		});
		image.observe('mouseout', function() {
			$('accent-' + this.readAttribute('accent')).hide();
			$('test-text').hide();
		});
	}
}

document.observe("dom:loaded", function() {
	prepareTestimonials();
});