function rndNum(topNum) {
  var a = Math.random();
  var b = Math.round(a*topNum);
  return b;
}

var upperBound = 20;
var quoteArray = new Array(upperBound);
var quoteAuthor = new Array(upperBound);
quoteArray[0] = "";
quoteAuthor[0] = "";
quoteArray[1] = "He drew a circle to keep me out, A thing of scorn, and a thing to flout. But love and I had the wit to win: We drew a circle that took him in.";
quoteAuthor[1] = "~ Edwin Markham";
quoteArray[2] = "I keep my ideals, because in spite of everything, I still believe that people are really good at heart.";
quoteAuthor[2] = "~ Anne Frank";
quoteArray[3] = "People are like stained-glass windows. They sparkle and shine when the sun is out, but when the darkness sets in, their true beauty is revealed only if there is a light from within.";
quoteAuthor[3] = "~ Elizabeth Kübler-Ross";
quoteArray[4] = "Can I see another's woe, and not be in sorrow too? Can I see another's grief, and not seek for kind relief?";
quoteAuthor[4] = "~ William Blake";
quoteArray[5] = "\"For I know the plans I have for you,\" declares the Lord, \"plans to prosper you and not to harm you, plans to give you hope and a future.\"";
quoteAuthor[5] = "~ Jeremiah 29:11";
quoteArray[6] = "The real miracle is not to walk either on water or in thin air, but to walk on earth.";
quoteAuthor[6] = "~ Thich Nhat Hanh";
quoteArray[7] = "No man is an island entire of itself ... any man's death diminishes me because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee.";
quoteAuthor[7] = "~ John Donne";
quoteArray[8] = "Better than a thousand hollow words, Is one word that brings peace.";
quoteAuthor[8] = "~ Buddha";
quoteArray[9] = "When death, the great reconciler, has come, it is never our tenderness that we repent of, but our severity.";
quoteAuthor[9] = "~ George Eliot";
quoteArray[10] = "A time to weep, and a time to laugh; A time to mourn, and a time to dance.";
quoteAuthor[10] = "~ Eccleisiastes 3:4";
quoteArray[11] = "When sorrows come, they come not single spies, but in battalions.";
quoteAuthor[11] = "~ William Shakespeare - Hamlet";
quoteArray[12] = "In separateness lies the world's great misery; in compassion lies the world's true strength.";
quoteAuthor[12] = "~ Buddha";
quoteArray[13] = "Those who commit evil in the name of Allah blaspheme the name of Allah. The terrorists are traitors to their own faith, trying, in effect, to hijack Islam itself.";
quoteAuthor[13] = "~ George W. Bush";
quoteArray[14] = "I ask you to uphold the values of America, and remember why so many have come here. We are in a fight for our principles, and our first responsibility is to live by them. No one should be singled out for unfair treatment or unkind words because of their ethnic background or religious faith.";
quoteAuthor[14] = "~ George W. Bush";
//quoteArray[15] = "The ultimate measure of a person is not where one stands in moments of comfort and convenience, but where one stands in times of challenge and controversy.";
//quoteAuthor[15] = "~ Martin Luther King, Jr.";
//quoteArray[16] = "I will permit no man to narrow and degrade my soul by making me hate him.";
//quoteAuthor[16] = "~ Booker T. Washington";
quoteArray[15] = "Truly you have formed my inmost being; you knit me in my mother's womb. I give you thanks that I am fearfully, wonderfully made; wonderful are your works. ";
quoteAuthor[15] = "~ Psalm 13:9";
//quoteArray[18] = "You cannot shake hands with a clenched fist.";
//quoteAuthor[18] = "~ Indira Gandhi";
//quoteArray[19] = "If you want to make peace with your enemy, you have to work with your enemy. Then he becomes your partner.";
//quoteAuthor[19] = "~ Nelson Mandela";
quoteArray[16] = "If we cannot end now our differences, at least we can help make the world safe for diversity. For, in the final analysis, our most common basic link is that we all inhabit this small planet. We all breathe the same air. We all cherish our children's future. And we are all mortal.";
quoteAuthor[16] = "~ John F. Kennedy";
quoteArray[17] = "Injustice anywhere is a threat to justice everywhere. We are caught in an inescapable network of mutuality, tied in a single garment of destiny.";
quoteAuthor[17] = "~ Martin Luther King, Jr."
quoteArray[18] = "The quality of mercy is not strain'd. It droppeth as the gentle rain from heaven Upon the place beneath. It is twice blest: It blesseth him that gives and him that takes.";
quoteAuthor[18] = "~ William Shakespeare - The Merchant of Venice"
//quoteArray[23] = "Kindness, nobler ever than revenge";
//quoteAuthor[23] = "~ William Shakespeare - As You Like It"
quoteArray[19] = "Alas, poor world, what treasure hast thou lost!";
quoteAuthor[19] = "~ William Shakespeare - Venus and Adonis"
quoteArray[20] = "";
quoteAuthor[20] = ""

var idx = rndNum(upperBound);
if (idx == 0) idx = 1;
if (idx == upperBound) idx--;
document.write('<div class="topquote">' + quoteArray[idx] + '</div><br>');
document.write('<div class="quoteauthor">' + quoteAuthor[idx]);


