// All pastors have 20 quotes by default, increase the array object's maximum indices
// and add quotes as needed

// Jim's Quotes

var num_of_quotes = 20;
var jim = new Array(num_of_quotes);

jim[0] = 'We praise Him for all that is past and we trust Him for all that is to come.  Anon.';
jim[1] = 'Be anxious about nothing; be prayerful about everything.  Anon.';
jim[2] = 'Life is fragile, handle with prayer.  Anon.';
jim[3] = 'Fear not tomorrows, God is already there.  Anon.';
jim[4] = 'Surrender is best demonstrated in obedience and Trust. - Rick Warren';
jim[5] = 'Looking for a leader?  Look to the Lord.  Anon.';
jim[6] = 'Prayer should be our first response  not our last resort.  Anon.';
jim[7] = 'If you keep in tune with Christ, you can sing even when all is dark. - Anon.';
jim[8] = 'Never take on more work than you have time to pray about.  Anon.';
jim[9] = 'No one can know the good life without God.  Anon.';
jim[10] = 'People who follow Christ lead others in the right direction.  Anon.';
jim[11] = 'If God had a refrigerator, your picture would be on it.  Anon.';
jim[12] = 'God is more interested in our motives than our methods.  Anon.';
jim[13] = 'No one else can do the work God has for you.  Anon.';
jim[14] = 'God\s answers are often wiser than our prayers.  Anon.';
jim[15] = 'If you see people without a smile today, give them one of yours.  Anon.';
jim[16] = 'God loves us too much to let us stay as we are.  Anon.';
jim[17] = 'God gives grace just when we need it.  Anon.';
jim[18] = 'What does man gain from all his labor at which he toils under the sun? (Eccl. 1:3)  WRINKLES! - Barbara Johnson';
jim[19] = 'With perseverance the snail reached the ark.  C. H. Spurgeon';


// Phil's Quotes
var phil = new Array(num_of_quotes);

phil[0] = 'Vision is the world\s most desperate need.  W. Newman';
phil[1] = 'You have never tested God\s resources until you have attempted the impossible.  Unknown';
phil[2] = 'What would be worse than being born blind?  To have sight with no vision.  - Helen Keller';
phil[3] = 'Dreams become reality when we keep our commitments to them.  J.W. Halliday';
phil[4] = 'Honesty is the first chapter of the book of wisdom.  Thomas Jefferson';
phil[5] = 'The best way to promote honesty is to promote truth.  Unknown';
phil[6] = 'People show what they are by what they do with what they have.  Unknown';
phil[7] = 'I can do what you can\t do, and you can do what I can\t do.  Together we can do great things.  Mother Teresa';
phil[8] = 'Friendship consists of a willing ear, an understanding heart, and a helping hand. - Frank Tyger';
phil[9] = 'More people fail through lack of purpose than lack of talent.  Billy Sunday';
phil[10] = 'The greatest obstacle to discovery is not ignorance. It is the illusion of knowledge.  - Unknown';
phil[11] = 'Our only limitation is our expectation.  Unknown';
phil[12] = 'Always ask, is there a better way?  Unknown';
phil[13] = 'The thing is to understand myself, to see what God really wishes me to do...to find the idea for which I can live and die.  Soren Kierkegaard';
phil[14] = 'Unhappiness is in not knowing what we want and killing ourselves to get it.  Don Herold';
phil[15] = 'If you dont make up your mind, then your unmade mind will make you.  E.S. Jones'; 
phil[16] = 'God never puts anyone in a place too small to grow.  Unknown';
phil[17] = 'If we did all the things we are capable of doing, we would literally astonish ourselves.  Thomas Edison';
phil[18] = 'Don\t judge each day by the harvest you reap but by the seeds you plant.  Robert Louis Stevenson';
phil[19] = 'It is not what someone does that determines whether the work is sacred or secular, it is why it is done.  A.W. Tozer';



//Pete's Quotes
var pete = new Array(num_of_quotes);

pete[0] = 'We sin against the ones we care about not because we don\'t love but because we don\'t imagine. - John Watson';
pete[1] = 'Abilities are like tax deductions, we use them or we lose them.';
pete[2] = 'Between the great things we can\'t do and the little things we won\'t do, the danger is we will do nothing at all.';
pete[3] = 'The church is to be a place of open affection.';
pete[4] = 'If you have accomplished everything you planned for yourself, you\'ve probably not planned enough.';
pete[5] = 'Size ain\'t got nothin\' to do with it. If it did, a cow could outrun a rabbit.';
pete[6] = 'The boy at the chalkboard to his teacher; \"I\'m not an underachiever; you\'re an overexpecter.\"';
pete[7] = 'When you get too old for pimples you go right into wrinkles.';
pete[8] = 'When the high seas are raging it\'s no time to change ships - Leon Morris';
pete[9] = 'By the time our face clears up our minds go fuzzy - James Dobson';
pete[10] = 'I wonder at this classified ad: Wedding dress for sale, never worn. Will trade for .38 pistol.';
pete[11] = 'Hate is not the opposite of love. Apathy is.';
pete[12] = 'Be who you is, cause if you ain\'t who you is, you is who you ain\'t - Harry Hein';
pete[13] = 'An unexamined life is not worth living.';
pete[14] = 'The ultimate danger of the television screen is not in the behavior it presents but in the behavior it prevents.';
pete[15] = 'You can tell a lot about a person by the way they treat those who can do nothing for them.';
pete[16] = 'Life is a grindstone. Whether it grinds you down or shines you up depends upon what you are made of - James S. Hewett';
pete[17] = 'One\'s best collateral is one\'s character.';
pete[18] = 'Child rearing is like baking a cake. You don\'t realize you have a disaster until it\'s too late - James Dobson';
pete[19] = 'Christianity has not been tried and found wanting; but perhaps has been found difficult and not tried.';


// Don's Quotes
var don = new Array(num_of_quotes);

don[0] = 'The memory is a wonderful treasure chest for those who know how to pack it. - Barbara Johnson';
don[1] = 'Home is not where you live but where they understand you.  Christian Morgenstern';
don[2] = 'Live life to the fullest by learning to forgive and forget.   Mary C. Crowley';
don[3] = 'Let someone else run the world for a while.  Jesus took time for a party...shouldnt we? - Max Lucado';
don[4] = 'I believe that God has a dream for each of us, and our greatest challenge and joy lies in finding and following that dream wherever it may lead. - Heather Whitestone';
don[5] = 'Life is a gift that God has given us.  Mother Teresa';
don[6] = 'Love is not a matter of counting the years  its making the years count.  Wolfman Jack Smith';
don[7] = 'The trick, Fletcher, is that we are trying to overcome our limitations in order, patiently.  We don\t tackle flying through rock until a little later in the program. - Jonathan Livingston Seagull';
don[8] = 'He lives! He that was dead lives!';                      
don[9] = 'Life is too important to be taken seriously.  Oscar Wilde';
don[10] = 'Being tickled to death is a great way to live.  Jumping for joy is good exercise.  Norene Firth';
don[11] = 'As the gospel of grace lays hold of us, something is radically right. -  Brennan Manning';
don[12] = 'A saint is not someone who is good but who experiences the goodness of God.  Thomas Merton';
don[13] = 'If we but turn to God, that itself is a gift of God.  St. Augustine';
don[14] = 'Keep smiling!  The luscious plum forgot to  and became a wrinkled prune.  Weight Watchers International';
don[15] = 'It is better, much better, to have wisdom and knowledge than gold and silver.  Proverbs 16:16';
don[16] = 'Kindness is Christianity with its\ working clothes on.  Anon.';
don[17] = 'We must not only give what we have; we must also give what we are. - Cardinal Mercia';
don[18] = 'We make a living by what we get.  We make a LIFE by what we GIVE. - Winston Churchill';
don[19] = 'Fill your life with experiences, not excuses. - H. Jackson Brown, Jr.';


var jimQuote,peteQuote,philQuote,donQuote;

function get_random()
{
    var ranNum= Math.round(Math.random()*num_of_quotes);
    return ranNum;
}


function quoteGen() {

	quoteNum = get_random();


	jimQuote = jim[quoteNum];
	peteQuote = pete[quoteNum];
	philQuote = phil[quoteNum];
	donQuote = don[quoteNum];
	
}


function writeQuotes() {

// this function writes the quote to the ID box on the pastor's page

	quoteGen();

	document.getElementById('donQuoteBox').innerHTML = donQuote;
	document.getElementById('peteQuoteBox').innerHTML = peteQuote;
	document.getElementById('philQuoteBox').innerHTML = philQuote;
	document.getElementById('jimQuoteBox').innerHTML = jimQuote;
}
