// Service Line Warranties of America Testimonials
var slwTestimonials = new Array();
slwTestimonials[0] = "&#34;I am completely and extremely satisfied with the service person who did the work. He was not only professional and knowledgeable, but also courteous and compassionate.&#34;<br><br><i>-- Stephen M., Marietta, GA  </i>";
slwTestimonials[1] = "&#34;I recently had a huge problem with my sewer line and I cannot begin to express how helpful it was to have this coverage. It gets increasingly difficult to keep up with repairs. Having the warranty made it easy.&#34;<br><br><i>-- Marsha B., New Brighton, PA </i>";
slwTestimonials[2] = "&#34;Your company has repaired water lines at my residence on other occasions and at no expense. The work was done in a very professional and timely manner. Thank you for the convenience.&#34;<br><br><i>-- Elmer T., Columbia, SC </i>";
slwTestimonials[3] = "&#34;After my recent home fire, it was very comforting to contact SLW and be told that my line would be immediately repaired. The fast service was truly appreciated, and I highly recommend your service - I have already recommended SLW to all my family and friends.&#34;<br><br><i>-- James H., Charleston, WV </i>";


// American Water Heaters Testimonials
var awhTestimonials = new Array();
awhTestimonials[0] = "&#34;My husband said, &#96;we&#39;re not plumbers, we could have been in a real mess without this program.&#39; And I would have had to miss a day of work and it would have been a nightmare to try and get a plumber here.&#34;<br><br><i>-- Patricia M., Lancaster, OH </i>";
awhTestimonials[1] = "&#34;It was a busy day for me and my family, so we had no time to deal with a hot water problem.  I made a quick call to AWHR and a technician was at my house to restore our hot water without delay - it was that simple.  I was also very impressed with the work and quality of the AWHR service technician.  He not only displayed genuine concern and friendly service, but made sure I was completely satisfied with the work.&#34;<br><br><i>-- Ellen H., Miami, FL</i>";
awhTestimonials[2] = "&#34;AWHR came through for me when I needed them the most.  It was close to the weekend and suddenly I had no hot water.  All I had to do is make one call and AWHR responded in a timely manner.  I was very pleased with the courtesy and professionalism of your service technician.  He was knowledgeable, respectful and efficient.  It&#39;s nice to know that I can depend on AWHR for these emergencies anytime, and with such fine service by your technician - I would have him back in a heartbeat if I should need service again.&#34;<br><br><i>-- Loretta W., Miami, FL</i>";
awhTestimonials[3] = "&#34;Overall experience was excellent. The contractor went out of his way to make sure we were satisfied with the job. Thank you very much.&#34;<br><br><i>-- Harold D., Pomeroy, OH</i>";
awhTestimonials[4] = "&#34;I had a problem in my basement and your people came right down and took care of my hot water heater. Thank you.&#34;<br><br><i>-- Rose D., Worcester, MA</i>";


function showAllQuotes(section){
  var str;
  for (quote in eval(section)){
    document.write('<div class="testimonial pullquote"><p style="background-color: white;border-bottom: 1px solid #CCC;">' + eval(section)[quote] + '</p></div>');
  }

  return true;
}

function getPullQuote(section){
  var str;
  var arrayIndex;
  var btn; 
  
  if(section == 'slwTestimonials'){
	btn = '<br><br><a class="btn" href="slw-testimonials.html">Read More Testimonials &raquo;</a>';
  } else if(section == 'awhTestimonials') {
	btn = '<br><br><a class="btn" href="awhr-testimonials.html">Read More Testimonials &raquo;</a>';
  }
  
  arrayIndex = Math.floor(Math.random()*(eval(section).length));

  str = eval(section)[arrayIndex] + btn;

  return str;
}

function resizeText(multiplier) { 
  if (multiplier == 0) {
	document.body.style.fontSize = "1.0em"; 
  } else {
    if (document.body.style.fontSize == "") { 
      document.body.style.fontSize = "1.0em"; 
    } 
    document.body.style.fontSize = parseFloat(document.body.style.fontSize) + (multiplier * 0.2) + "em"; 
  }
}




