// hide script from old browsers

//store the quotations in arrays
    var verses  = new Array();
    var ref = new Array();

verses[0] = "And we know that in all things<br>"+
            "God works for the good of those who love Him,<br>"+
            "who have been called according to His purpose.";
ref[0] = "Romans 8:28";

verses[1] = "Do all things without murmurings and disputings.";
ref[1] = "Philipians 2:14";

verses[2] = "But godliness with contentment is great gain.";
ref[2] = "I Timothy 6:6";

verses[3] = "Thou wilt show me the path of life.<br>"+
            "In thy presence is fullness of joy.<br>"+
            "At thy right hand there are pleasures forevermore."; 
ref[3] = "Psalm 16:11";

verses[4] = "For God so loved the world<br>"+
            "that He gave His only begotten son,<br>"+
            "that whosoever believeth in Him<br>"+
            "should not perish but have everlasting life.";
ref[4] = "John 3:16";

verses[5] = "Finally, whatever is true, whatever is noble,<br>"+
            "whatever is right, whatever is pure,<br>"+
            "whatever is lovely, whatever is admirable<br>"+
            "- if anything is excellent or praiseworthy -<br>"+
            "think about such things.";
ref[5] = "Philippians 4:8";

verses[6] = "Be still and know that I am God.";
ref[6] = "Psalm 46:10";

verses[7] = "Study to show thyself approved unto God,<br>"+
            "a workman that needeth not to be ashamed,<br>"+
            "rightly dividing the word of truth.";
ref[7] = "II Timothy 2:15";

verses[8] = "Let us therefore come boldly unto the throne of grace,<br>"+
            "that we may obtain mercy,<br>"+
            "and find grace to help in time of need.";
ref[8] = "Hebrews 4:16";

verses[9] = "I will turn their mourning into gladness.<br>"+
            "I will give them comfort and joy instead of sorrow.";
ref[9] = "Jeremiah 31:13";

verses[10] = "I am crucified with Christ: nevertheless I live;<br>"+
             "yet not I, but Christ liveth in me:<br>"+
             "and the life which I now live in the flesh<br>"+
             "I live by the faith of the Son of God,<br>"+
             "who loved me and gave Himself for me.";
ref[10] = "Galatians 2:20";

verses[11] = "Do nothing out of selfish ambition or vain conceit,<br>"+
             "but in humility consider others better than yourselves.";
ref[11] = "Philippians 2:3";

verses[12] = "But my God shall supply all your needs<br>"+
             "according to His riches in glory by Christ Jesus.";
ref[12] = "Philippians 4:19";

verses[13] = "Wait on the Lord:  be of good courage,<br>"+
             "and He shall strengthen thine heart:<br>"+
             "wait, I say, on the Lord.";
ref[13] = "Psalm 27:14";

verses[14] = "Know ye that the Lord He is God:<br>"+
             "it is He that hath made us, and not we ourselves;<br>"+
             "we are His people, and the sheep of His pasture.";
ref[14] = "Psalm 100:3";

verses[15] = "Fear thou not; for I am with thee:<br>"+
             "be not dismayed; for I am thy God:<br>"+
             "I will strengthen thee; yea, I will  help thee;<br>"+
             "yea, I will uphold thee with the right hand of my righteousness.";
ref[15] = "Isaiah 41:10";

verses[16] = "Cast all you anxieties on Him, for He cares for you.";
ref[16] = "1 Peter 5:7";

verses[17] = "The fear of the Lord is the beginning of knowledge.";
ref[17] = "Proverbs 1:7a";

verses[18] = "Trust in the Lord with all your heart<br>"+
             "and lean not on your own understanding;<br>"+
             "in all your ways acknowledge Him,<br>"+
             "and He shall make your paths straight";
ref[18] = "Proverbs 3:5,6";

verses[19] = "God has made everything beautiful in its time;<br>"+
             "also He has put eternity into the mind of man,<br>"+
             "but he cannot find out what God has done<br>"+
             "from the beginning to the end.";
ref[19] = "Ecclesiastes 3:11";

verses[20] = "Cast your bread upon the waters,<br>"+
             "For you will find it after many days.";
ref[20] = "Ecclesiastes 11:1";

verses[21] = "Now faith is being sure of what we hope for,<br>"+
             "and certain of what we do not see.";
ref[21] = "Hebrews 11:1";

verses[22] = "If we confess our sins,<br>"+
             "He is faithful and just to forgive us our sins<br>"+
             "and to cleanse us from all unrighteousness.";
ref[22] = "1 John 1:9";

verses[23] = "Being confident of this very thing,<br>"+
             "that He who has begun a good work in you<br>"+
             "will complete it until the day of Jesus Christ.";
ref[23] = "Philippians 1:6";

verses[24] = "Be anxious for nothing,<br>"+
             "but in everything by prayer and supplication,<br>"+
             "with thanksgiving,<br>"+
             "let your requests be made known to God.";
ref[24] = "Philippians 4:6";

verses[25] = "He has shown you, O man, what is good;<br>"+
             "And what does the Lord require of you<br>"+
             "but to do justly, To love mercy,<br>"+
             "And to walk humbly with your God?";
ref[25] = "Micah 6:8";

verses[26] = "For this reason I kneel before the Father,<br>"+
             "from whom his whole family in heaven and on earth derive its name.<br>"+
             "I pray that out of His glorious riches<br>"+
             "He may strengthen you with power through His Spirit in your inner being,<br>"+
             "so that Christ may dwell in your hearts through faith.<br>"+
             "And I pray that you, being rooted and established in love,<br>"+
             "may have power, together with all the saints,<br>"+
             "to grasp how wide and long and high and deep is the love of Christ,<br>"+
             "and to know this love that surpasses all knowledge -<br>"+
             "that you may be filled to the measure of all the fullness of God.";
ref[26] = "Ephesians 3:14-19";

verses[27] = "Though your sins are like scarlet,<br>"+
             "they shall be as white as snow;<br>"+
             "though they are red as crimson,<br>"+
             "they shall be like wool.";
ref[27] = "Isaiah 1:18";

verses[28] = "All things for which you pray and ask,<br>"+
             "believe that you have received them,<br>"+
             "and they shall be granted.";
ref[28] = "Mark 11:24";


function WriteVerse() {
//calculate a random index
    var idx = Math.floor(Math.random() * verses.length);
    var verse = "";

//display the quotation
    verse = "\'" + verses[idx] + "\' &nbsp; " + "(" + ref[idx] + ")";
    return verse;
}

// end hiding contents 
