/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Sandeep Gangadharan | http://sivamdesign.com/scripts/ */
var text = 0;

var message=new Array();
  message[0] = "'I was drawn in instantly!'"
  message[1] = "'Her use of imagery is exceptional'"
  message[2] = "'The author immediately drew me in and piqued my interest'"
  message[3] = "'Everyone must read this!'"
  message[4] = "'The beginning of the story seems to automatically grab the reader at once'"
  message[5] = "'I'm hooked--loved it, can't wait to buy it!!!!'"
  message[6] = "'richly textured descriptions'"
  message[7] = "'From the opening sentence, Muldoon grabs the reader by the collar and slams them into the last century!'"
  message[8] = "'Gritty scenes, muscular characters and a deliciously dense plot make this a story you can chew on!'"
  message[9] = "'From the very first paragraph, this novel is exciting and involving'"
  message[10] = "'an absolute page turner'"
  message[11] = "'the buildup is intense'"
  message[12] = "'Great writing, vivid imagery, lively dialogue and a fast-paced story'"
  message[13] = "'Wow, what a story!'"

function changeText() {
  if (message.length > 0) {
    document.change.descript.value=message[text];
    text++;
  }
  if (text == 14) {text = 0; }  // change the # 4 at the left to the maximum # of message lines you want included
    window.setTimeout("changeText()", 5500); }  // change the # on the left to adjust the speed of the
                                               // scroll. The smaller the # the faster the speed

// Multiple onload function created by: Simon Willison
// http://simon.incutio.com/archive/2004/05/26/addLoadEvent
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(function() {
  changeText();
});
