// Function CreateButton that creates and returns a button object
function CreatePraise(QuoteTEXT )
{
 this.QuoteTEXT = QuoteTEXT ;
}

// Function to display a subset of the button data starting at a random index in the array
// Randomness is determined by what second it is, so visits at different times will get different buttons
function DisplayQuote(arrayButtons,lTotal)
{
 var now=new Date();
 var fraction=(now.getSeconds())/60;
 var lIndex=Math.round( (arrayButtons.length-1) * fraction );
 var sHTML;

 for ( var lCount = 0; lCount < lTotal; lCount++ )
 {
  if ( lIndex < arrayButtons.length - 1 )
    lIndex++;
  else
    lIndex = 0;
  // build button HTML - replace this with IMG tags
  sHTML =  '';
  sHTML += arrayButtons[lIndex].QuoteTEXT ;
  document.writeln( sHTML );
 }
}
