// Testimonials by Matt Ditter (Nov. 2008)
// Adding/removing testimonials from HTML should
// not require modification of this script.
var testimonials = [], testCtr = 0;
function initTestimonials() {
 var main = document.getElementById('testimonials');
 if (!main) return;
 var mainDivs = main.getElementsByTagName('div');
 for (var i=0, div; div = mainDivs[i]; i++) {
  if (div.className.match(/\btestimonial\b/)) {
   if (i) div.style.display = 'none';
   testimonials[testimonials.length] = div;
}}}
function nextTestimonial() {
 for (var i=0, testimonial; testimonial = testimonials[i]; i++)
  testimonial.style.display = 'none';
 testCtr++;
 if (testCtr == testimonials.length) testCtr = 0;
 testimonials[testCtr].style.display = 'block';
}
