//this script is for 2 random quotes on the AutoDesk Campaign page www.safe.com/fme2008/unlock-object-data.php
//edited by R. Chan 2008-08-25

function getRandom()
{
    var ranNum= Math.round(Math.random()*1);
    return ranNum;
}

function getQuote() {
	// init some arrays
    var quote = new Array(10);

	// populate the quotes/authors
	quote[0] = "<p><img src=\"../images/quote-start.gif\" width=\"10\" height=\"8\" style=\"float: left; position: relative; left: -15px; top: 5px; margin-right: -10px; margin-bottom: -8px;\" /><em>What used to take multiple edits on paper now only takes two edits online</em> <img src=\"../images/quote-end.gif\" width=\"10\" height=\"8\" /></p><p align=\"right\">Dan Lourenco,<br /><em>IT Analyst<br />The City of Turlock</em></p>";
	quote[1] = "<p><img src=\"../images/quote-start.gif\" width=\"10\" height=\"8\" style=\"float: left; position: relative; left: -15px; top: 5px; margin-right: -10px; margin-bottom: -8px;\" /><em>The new reader is significantly faster. Eliminating the need to launch the AutoCAD application has been a significant time saver.</em> <img src=\"../images/quote-end.gif\" width=\"10\" height=\"8\" /></p><p align=\"right\">Bryan Waller,<br /><em>Midwest Surveys</em></p>";
	
	// pick one of the quotes
	var theQuote = quote[getRandom()];
	
	// write the quote out to the div section
	document.getElementById('quotes').innerHTML = theQuote;
}