// JavaScript Document
/* 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] = "<span class=\"altTextColor\">\"Sandra Kring writes with such passion and immediacy...making us feel the characters' hope, desire, laughter, sorrow, and redemption.\"</span> <i>-Luanne Rice</i>"
  message[1] = "<span class=\"altTextColor\">\"Heartfelt.... Strong characters, a clear community portrait and a memorable protagonist whose poignant fumblings cloak an innocent wisdom demonstrate Kring’s promise.\"</span> <i>-Publishers Weekly</i>"
  message[2] = "<span class=\"altTextColor\">\“A must-read. . . . Sandra Kring weaves an intricate and heartwarming tale of family, love, and forgivenesss . . . Kring’s passionate voice is reminiscent of Faulkner, Hemingway and Steinbeck. . . . She will make you laugh, have you in tears and take you back to the days of good friends, good times, millponds and bonfires.\”</span> <i>—The Midwest Book Review</i>"
  message[3] = "<span class=\"altTextColor\">\“Touching . . . surprisingly poignant . . . builds to an emotional crescendo.\"</span> <i>—Washington Post</i>"
  message[4] = "<span class=\"altTextColor\">\“A touching novel… Kring explores the far-ranging effects of family trauma with a deft hand as her child narrator uncovers the past, bringing light and hope.\"</span> <i>—Booklist</i>"
  message[5] = "<span class=\"altTextColor\">\“A beautiful, witty story that rings with heartbreak, hope and laughter…. Kring’s brilliance lies in her powerful reversals and revelations, taking readers and characters on a dramatic, emotional roller coaster.\"</span> <i>—Publishers Weekly</i>, starred review"
  message[6] = "<span class=\"altTextColor\">\“...A surprising and insightful story about families, love, and the complexity of human beings. Excellent storytelling..\"</span> <i>—Feast</i>"

function changeText() {
  if (message.length > 0) {
    document.getElementById('quotes').innerHTML=message[text];
    text++;
  }
  if (text == 7) {text = 0; }  // change the # 4 at the left to the maximum # of message lines you want included
    window.setTimeout("changeText()", 7500); }  // 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();
});
