/********************************************* edit these values to suit *********************************************/

  var quotes=[
               '"I want to thank you for listening to us",-Lake Murray Homeowner',
               '"You took my "wish list" and incorporated every element into the plans",-Lake Murray Homeowner',
               '"We take great pride in recommending the services of von Ahn Design",-Prosperity Homeowner',
               '"Pete listened very intently and provided a design that met our requirements the very first time",-Prosperity Homeowner',
               '"Very creative and very professional",-Prosperity Homeowner',
               '"We highly recommend his services",-Prosperity Homeowner',
               '"We just wanted to thank you for coming up with such an outstanding design for our house",-Lake Wateree Homeowner',
               '"You repeatedly came up with solutions we each really liked",-Lake Wateree Homeowner',
               '"Very thorough in the design and planning process",-SC Master Builder',
               '"The drawings were very clear and accurate",-SC Master Builder',
               '"The planning and design were very well thought through",-SC Master Builder'
              ];

  var speed=10000; /*  this is the time between quotes in miliseconds. 5000ms = 5 seconds */

/*********************************************************************************************************************/

 var temp=null;
function showQuote() {
   obj1=document.getElementById('quote');
   obj2=document.getElementById('author');

   num=Math.floor(Math.random()*quotes.length);
if(num==temp){
   showQuote();
 }
else{
   temp=num;
   obj1.firstChild.nodeValue=quotes[num].split(',')[0];
   obj2.firstChild.nodeValue=quotes[num].split(',')[1];

  setTimeout(function(){showQuote()},speed);
  }
 }

if(window.addEventListener){
   window.addEventListener('load',showQuote,false);
 }
else { 
if(window.attachEvent){
   window.attachEvent('onload',showQuote);
  }
 }
