//Random Quote Generator
//created by: Edgar Soto

//declaring the arrays that will be storing the quotes
var theQuote = new Array()
var theAuthor = new Array()

//Insert Quotes and Respective Author like listed below
//also, Please list he totals number of quotes you have
//var totalQuotes = 7
//theQuote[0] = 'Example Quote'
//theAuthor[0] = 'Example Author'


var totalQuotes = 7;

theQuote[0] = "The increase in civic engagement on college campuses bodes well for America's ability to overcome a wide variety of social challenges. Given the choice, more and more college students are opting to be good citizens, rather than spectators. Our faculty, staff and administrators play a major role, too, in linking campus vitality to community health and well-being." 
theAuthor[0] = "Chancellor Mark G. Yudof"

theQuote[1] = "We make a living by what we get. We make a life by what we give."
theAuthor[1] = "Sir Winston Churchill"

theQuote[2] = "The most satisfying thing in life is to have been able to give a large part of one's self to others." 
theAuthor[2] = "Pierre Teilhard de Chardin"

theQuote[3] = "Citizen service is the very American idea that we meet our challenges not as isolated individuals but as members of a true community, with all of us working together. Our mission is nothing less than to spark a renewed sense of obligation, a new sense of duty, a new season of service…"
theAuthor[3] = "Bill Clinton"

theQuote[4] = "No act of kindness, no matter how small, is ever wasted."
theAuthor[4] = "Aesop"

theQuote[5] = "How wonderful it is that nobody need wait a single moment before starting to improve the world."
theAuthor[5] = "Anne Frank, &quot;Diary of a Young Girl&quot;"

theQuote[6] = "We can do no great things, only small things with great love."
theAuthor[6] = "Mother Theresa"


// do not edit below this Line

function showQuote(){
	//declare and generate the random number
	var ran_unrounded=Math.random()*totalQuotes;
	var ran_number=Math.floor(ran_unrounded);
	
	//display the random quote along with the author
	document.write('<div class="quote">' +theQuote[ran_number]+'</div>');
	document.write('<span class="author">- ' +theAuthor[ran_number]+'</span>');
}