var text = new Array(
"<p class=\"testimonial\"><em>&quot;All we need is your claim information and we can expedite your repairs.&quot;</em></p>",
"<p class=\"testimonial\"><em>&quot;You are not required by law to obtain more than one estimate.&quot;</em></p>",
"<p class=\"testimonial\"><em>&quot;We work directly with all insurance companies on your behalf.&quot;</em></p>",
"<p class=\"testimonial\"><em>&quot;Distracted driving is one of the most frequent causes of auto accidents.&quot;</em></p>"
);

var i = 0;
var amount = text.length;


function fadeout()
{
		$("#testimonials").fadeOut("slow",cycletext);
}

function cycletext()
{
  if (i == amount) 
  {
    i = 0;
  }
  document.getElementById('testimonials').innerHTML = text[i];
  fadein();
  i++;
}

function fadein()
{
  $("#testimonials").fadeIn("slow");
}

window.setInterval("fadeout()",5000);
