
/********************************************* edit these values to suit *********************************************/

  var quotes=[
               '"Audiences are laughing so hard, they cry.";Associated Press',
               '"...a wonderful time"; BBC Radio',
               '"A laugh-out-loud look at old age and growing gray disgracefully";Naples Daily News',
               '"Zany, irreverent and fun";Naples Daily News',
               '"...an exercise in non-traditional medicine.";Fort Meyers News Press',
               '"Compton and Bennett amuse and delight";Fort Meyers News Press'
              ];

  var speed=5000; /*  this is the time between quotes in miliseconds. 5000ms = 5 seconds */

/*********************************************************************************************************************/

 var temp=null;
function showQuote() {
   obj1=document.getElementById('quote');
   obj2=document.getElementById('author5');

   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);
  }
 }

