var images = new Array ('rotator/testimonial1.png', 'rotator/testimonial2.png', 'rotator/testimonial3.png', 'rotator/testimonial4.png');
var index = 1;
 
function rotateImage()
{
  $('#myImage').fadeOut('slow', function()
  {
    $(this).attr('src', images[index]);
 
    $(this).fadeIn('slow', function()
    {
      if (index == images.length-1)
      {
        index = 0;
      }
      else
      {
        index++;
      }
    });
  });
}
 
$(document).ready(function()
{
  setInterval (rotateImage, 7000);
});
