
function generate_quotes(){
// build the array for the listings...
var quote_array = new Array();
var index = 0;
// reference for array indices
// 0 id
// 1 content
// 2 author

quote_array[index] = new Array('0', 'Someone’s sitting in the shade today because someone planted a tree a long time ago. ', 'Warren Buffett');
index++;

quote_array[index] = new Array('1', 'Trees properly placed to cool urban heat-islands can lower the temperatures as much as 5 degrees F.', 'American Forests' );
index++;

quote_array[index] = new Array('2', 'The best time to plant a tree was 50 years ago…the second best time is now.', 'Chinese Proverb' );
index++;

quote_array[index] = new Array('3', 'When you plant a tree, you plant a legacy.', 'Provenzano' );
index++;

quote_array[index] = new Array('4', 'Beautification be damned! Urban and community trees should be planted for economic, environmental and social reasons.', 'Donald C. Willeke' );
index++;

quote_array[index] = new Array('5', 'No shade tree? Blame not the sun but yourself.', 'Chinese proverb' );
index++;

quote_array[index] = new Array('6', 'One generation plants the trees; another gets the shade. Keep a green tree in your heart, and perhaps a singing bird will come.', 'Chinese proverb' );
index++;


var rand = Math.floor(Math.random()*index); // generate the random number
var rand2 = Math.floor(Math.random()*index); // generate the random number

while (rand == rand2) {
    var rand2 = Math.floor(Math.random()*index); // generate another random number
}

var quote = quote_array[rand]; // get the listing from the array
var quote2 = quote_array[rand2]; // get the listing from the array

// document.write('<div id="paper_folded">');
//     document.write('<div id="paper_folded_top">');
        // output the quote
	    document.write('<p class="quote">&ldquo;' + quote[1] + '&rdquo;</p>');
        // output the author, if there is one
        if(quote[2].length > 0) {
        document.write('<p class="quote_author">~ ' + quote[2] + '</p>' );
	    }    
        // document.write('<div class="quotes_divider"></div>');
	    // output the second quote
    	// document.write('<p class="quote">' + quote2[1] + '</p>');
    	//         // output the second author, if there is one
    	//          if(quote2[2].length > 0) {
    	//         document.write('<p class="right_text quote_author">- ' + quote2[2] + '</p>' );
    	//         }
//         document.write('</div> <!-- paper_folded_top -->');
//         document.write('<div id="paper_folded_bottom"></div>');
// document.write('</div> <!-- paper_folded -->');
}
