var quotes = new Array(
{type: 'free',	quote: '"The allusions to Shakespeare and shifts in time and perspective make for an intriguing read."', cite: '<i>Publisher\'s Weekly</i> on <i>Set Me Free</i>'},
{type: 'free',	quote: '"[I]nterracial relations are only part of <span class="quotetitle">Set Me Free</span>, as the book tackles a bigger theme: forgiveness as a means of relinquishing self-pity. . ."', cite: '<i>Calgary Herald</i> (Alberta) on <i>Set Me Free</i>'},
{type: 'light',	quote: '"An ambitious first novel."', cite: '<i>The New York Times Book Review</i> on <i>The Effects of Light</i>'},
{type: 'light',	quote: '"One of this season\'s finest debuts." ', cite: '<i>Seattle Post-Intelligencer</i> on <i>The Effects of Light</i>'},
{type: 'light',	quote: '"Beverly-Whittemore\'s stunning novel will stick with you long after the last page." ', cite: '<i>Marie Claire</i> on <i>The Effects of Light</i>'},
{type: 'light',	quote: '"Passionate writing, skillful plotting, and intriguing characters make this a necessary purchase. An excellent selection for a book discussion group."', cite: 'Kaite Mediatore, <i>Booklist</i> on <i>The Effects of Light</i>'},
{type: 'light',	quote: '"Miranda Beverly-Whittemore\'s complex and beautifully-written novel, <span class="quotetitle">The Effects of Light</span>, is but the first offering of what promises to be an exceptional career."', cite: 'Anita Shreve on <i>The Effects of Light</i>'},
{type: 'light',	quote: '"A thought-provoking debut...entertaining."', cite: '<i>Kirkus Reviews</i> on <i>The Effects of Light</i>'},
{type: 'light',	quote: '"Engaging...[with] far-reaching visions."', cite: '</i>Publisher\'s Weekly</i> on <i>The Effects of Light</i>'},
{type: 'light',	quote: '"A luminous story...a poignant, thought-provoking, and well-crafted debut novel." ', cite: '<i>Bookreporter.com</i> on <i>The Effects of Light</i>'},
{type: 'light',	quote: '"Here is the rare book where one is carried along as much by the author\'s surprising and original mind as by her ability to tell a good story."', cite: 'Sue Halpern on <i>The Effects of Light</i>'},
{type: 'light',	quote: '"This is the kind of book readers can easily plow through in one page-turning session, wishing that there was more to uncover once the last sentence is read." ', cite: '<i>BookPage</i> on <i>The Effects of Light</i>'},
{type: 'light',	quote: '"I loved this book. <span class="quotetitle">The Effects of Light</span> is an extraordinary debut."', cite: 'Dawn Clifton Tripp on <i>The Effects of Light</i>'},
{type: 'light',	quote: '"<span class="quotetitle">The Effects of Light</span> is a first novel of astounding depth and insight."', cite: 'Lorna J. Cook on <i>The Effects of Light</i>'},
{type: 'light',	quote: '"One compelling shock after the next will leave you breathless and awed."', cite: 'Paul Russell on <i>The Effects of Light</i>'},
{type: 'light',	quote: '"A satisfying read that will keep your brain involved long after the last page is read."', cite: '<i>EdgeBoston.com</i> on <i>The Effects of Light</i>'},
{type: 'free',	quote: '"[A] layered, satisfying tale... [Beverly-Whittemore\'s] strength as an imaginative writer is evident." ', cite: '<i>The Oregonian </i> on <i>Set Me Free</i>'}
);

function showQuote(type)
{
	var qList = new Array();
	if (type != 'any')
	{
		for (var i = 0; i < quotes.length; i++)
			if (quotes[i].type == type)
				qList.push(quotes[i]);
	} else {
		qList = quotes;
	}
	var qIndex	= (Math.floor(Math.random() * qList.length));
	var qQuote	= qList[qIndex].quote;
	var qCite	= qList[qIndex].cite;
	document.write("<p>"+ qQuote +"</p>\n<cite>&mdash;"+ qCite +"</cite>\n");
}