

var verseData = 
[
	[ 'Colossians 3:12-13', 'Therefore, as God\'s chosen people, holy and dearly loved, clothe yourselves with compassion, kindness, humility, gentleness and patience. Bear with each other and forgive whatever grievances you may have against one another. Forgive as the Lord forgave you.' ],
	[ 'Romans 12:1-2', 'Therefore, I urge you, brothers, in view of God\'s mercy, to offer your bodies as living sacrifices, holy and pleasing to God &mdash; this is your spiritual act of worship. Do not conform any longer to the pattern of this world, but be transformed by the renewing of your mind. Then you will be able to test and approve what God\'s will is &mdash; his good, pleasing and perfect will.' ],
	[ 'Philippians 3:7-9', 'But whatever was to my profit I now consider loss for the sake of Christ. What is more, I consider everything a loss compared to the surpassing greatness of knowing Christ Jesus my Lord, for whose sake I have lost all things. I consider them rubbish, that I may gain Christ and be found in him, not having a righteousness of my own that comes from the law, but that which is through faith in Christ &mdash; the righteousness that comes from God and is by faith.' ],
	[ 'Philippians 2:1-4', 'If you have any encouragement from being united with Christ, if any comfort from his love, if any fellowship with the Spirit, if any tenderness and compassion, then make my joy complete by being like-minded, having the same love, being one in spirit and purpose. Do nothing out of selfish ambition or vain conceit, but in humility consider others better than yourselves. Each of you should look not only to your own interests, but also to the interests of others.' ],
	[ 'Ephesians 6:11-12', 'Put on the full armor of God so that you can take your stand against the devil\'s schemes. For our struggle is not against flesh and blood, but against the rulers, against the authorities, against the powers of this dark world and against the spiritual forces of evil in the heavenly realms.' ],
	[ 'Ephesians 5:1-2', 'Be imitators of God, therefore, as dearly loved children and live a life of love, just as Christ loved us and gave himself up for us as a fragrant offering and sacrifice to God.' ],
	[ 'Ephesians 5:15-17', 'Be very careful, then, how you live &mdash; not as unwise but as wise, 16making the most of every opportunity, because the days are evil. Therefore do not be foolish, but understand what the Lord\'s will is.' ],
	[ 'Ephesians 3:16-18', 'I pray that out of his glorious riches he may strengthen you with power through his Spirit in your inner being, so that Christ may dwell in your hearts through faith. And I pray that you, being rooted and established in love, may have power, together with all the saints, to grasp how wide and long and high and deep is the love of Christ.' ],
	[ 'Ephesians 2:19-20', 'Consequently, you are no longer foreigners and aliens, but fellow citizens with God\'s people and members of God\'s household, built on the foundation of the apostles and prophets, with Christ Jesus himself as the chief cornerstone.' ],
	[ 'Galatians 5:22-23', 'But the fruit of the Spirit is love, joy, peace, patience, kindness, goodness, faithfulness, gentleness and self-control. Against such things there is no law.' ],
	[ 'Galatians 2:20', 'I have been crucified with Christ and I no longer live, but Christ lives in me. The life I live in the body, I live by faith in the Son of God, who loved me and gave himself for me.' ],
	[ '2 Corinthians 5:17-19', 'Therefore, if anyone is in Christ, he is a new creation; the old has gone, the new has come! All this is from God, who reconciled us to himself through Christ and gave us the ministry of reconciliation: that God was reconciling the world to himself in Christ, not counting men\'s sins against them. And he has committed to us the message of reconciliation.' ],
	[ '2 Corinthians 1:3-4', 'Praise be to the God and Father of our Lord Jesus Christ, the Father of compassion and the God of all comfort, who comforts us in all our troubles, so that we can comfort those in any trouble with the comfort we ourselves have received from God.' ],
	[ '1 Corinthians 13:4-7', 'Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It is not rude, it is not self-seeking, it is not easily angered, it keeps no record of wrongs. Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres.' ],
	[ '1 Corinthians 12:12-13', 'The body is a unit, though it is made up of many parts; and though all its parts are many, they form one body. So it is with Christ. For we were all baptized by one Spirit into one body &mdash; whether Jews or Greeks, slave or free &mdash; and we were all given the one Spirit to drink.' ]
];

generateVerseDisplay();

function getRandomInt(min, max)
{
	return (Math.floor(Math.random() * (max - min + 1)) + min);
}	

function generateVerseDisplay() {
	var idxRandomVerse = getRandomInt(0, verseData.length - 1);
	document.write('<div class="verse">' + verseData[idxRandomVerse][1] + '</div>');
	document.write('<div class="verseReference">- ' + verseData[idxRandomVerse][0] + '</div>');
}
