function get_random(maxNum)
{
  if (Math.random && Math.round)
  {
    var ranNum= Math.round(Math.random()*(maxNum-1));
    ranNum+=1;
    return ranNum;
  }
  else
  {
  today= new Date();
  hours= today.getHours();
  mins=   today.getMinutes();
  secn=  today.getSeconds();
  if (hours==19)
   hours=18;
  var ranNum= (((hours+1)*(mins+1)*secn)%maxNum)+1;
  return ranNum;
  }
}

function getaQuote()
{
 var maxQuotes=8;
 var whichQuote=get_random(maxQuotes);
 whichQuote--;

var quote=new Array(maxQuotes)
   quote[0]="<b>In the minute it takes you to peruse this page:</b><br> 347,222 pagers will go off around the world.";
   quote[1]="<b>In the minute it takes you to peruse this page:</b><br> Americans will consume 13,467 barrels of petroleum.";
   quote[2]="<b>In the minute it takes you to peruse this page:</b><br> The Shinkansen bullet train in Japan will speed 16,368 feet closer to Osaka.";   
   quote[3]="<b>During your workday today:</b><br> San Franciscans will spend 90,000 hours in traffic jams.";
   quote[4]="<b>During your workday today:</b><br> Americans will eat approximately 100 acres of pizza.";
   quote[5]="<b>During your workday today:</b><br> Southern California will serve 7000 flights.";
   quote[6]="<b>During your workday today:</b><br> The average American will drink more than six caffeinated beverages.";
   quote[7]="<b>During your workday today:</b><br> The average person will spend over an hour trying to get somewhere.";
   quote[8]="<b>In the minute it takes you to peruse this page:</b><br> Five young people will contract the HIV virus.";


document.write(quote[whichQuote]);

}

getaQuote();
