// JavaScript Document
DocDom = (document.getElementById?true:false);
DocAll = (document.all?true:false);
DocStr=''
if (DocAll) DocStr="return document.all[id]"
if (DocDom) DocStr="return document.getElementById(id)"
GetRef=new Function("id", DocStr)
if (DocStr=='') { DynWrite=new Function("return false") } else {
  DynWrite=new Function("id", "S", "GetRef(id).innerHTML=S; return true") //This function writes the text to the selected div
}
function newQuote() {
 var quotearray = new Array(15); //To add new quotes, change the size of the array
 quotearray[0] = "<q>The Abundance Mentality flows out of a deep inner sense of personal worth and security. It says there is plenty out there for everyone.<\/q><br \/>Stephen R. Covey";
  quotearray[1] = "<q>By making and keeping promises to others and achieving our set goals, little by little, our honor becomes greater than our moods.<\/q><br \/>Stephen R. Covey";
   quotearray[2] = "<q>There's no such thing as a hero—only ordinary people asked extraordinary things in terrible circumstances—and delivering.<\/q><br \/>Timothy Mo";
    quotearray[3] = "<q>Keep away from people who try to belittle your ambitions.  Small people always do that, but the really great make you feel that you too, can become great.<\/q><br \/>Mark Twain";
	 quotearray[4] = "<q>I know why families were created, with all their imperfections.  They humanize you. They are made to make you forget yourself occasionally, so that the beautiful balance of life is not destroyed.<\/q><br \/>Anais Nin";
	  quotearray[5] = "<q>Better keep yourself clean and bright; you are the window through which you must see the world.<\/q><br \/>George Bernard Shaw";
	   quotearray[6] = "<q>When one is a social failure, the reasons are as clear as day.<\/q><br \/>Arnold Lobel";
	    quotearray[7] = "<q>Brave men are a city's strongest tower of defense.<\/q><br \/>Alcaeus";
		 quotearray[8] = "<q>Let us have faith that right makes might; and in that faith let us to the end dare to do our duty as we understand it.<\/q><br \/>Abraham Lincoln";
		  quotearray[9] = "<q>He that would govern others, first should be the master of himself.<\/q><br \/>Philip Massinger";
		  quotearray[10] = "<q>Few things can help an individual more than to place responsibility on him, and to let him know that you trust him.<\/q><br \/>Booker T Washington";
		  quotearray[11] = "<q>Loneliness is the poverty of self; solitude is the richness of self.<\/q><br \/>May Sarton";
		  quotearray[12] = "<q>The family is the building block for whatever solidarity there is in society.<\/q><br \/>Jill Ruckelshaus";
		  quotearray[13] = "<q>That which we persist in doing becomes easier for us to do. Not that the nature of the thing itself has changed but our power to do it is increased.<\/q><br \/>Ralph Waldo Emerson";
		  quotearray[14] = "<q>You cannot accomplish a worthy end with an unworthy mean. Ends and means are absolutely inseparable.<\/q><br \/>Stephen R. Covey";
 var number = Math.round((Math.random() * 100) - 1); //This randomly selects a number between 0-9 to use in the array; if you add quotes, you'll have to change the numbering system.
 var number2 = Math.round ((Math.random() * 10) -1);
 if (number <0) 
 {
 number=0; //This is just in case
 }
 if (number = 9)
 {
  number = number + number2;
   if (number2 > 4)
	{
		number = 9;
	}
  }

 DynWrite('flash', quotearray[number]);  
}