//-----------------------------------------------------------------------------
//		Javascript Code for a Random Scripture Object.(Version 2.0)
//			Copyright 2000, Joshua D. Pangborn
//			All Rights Reserved.
//			http://webstu.messiah.ed/~jp1198/index.html
//			See readme.txt.
//-----------------------------------------------------------------------------
//	Object:	
//		Verse					A Scripture Verse Array Object.
//
//	Properties:
//		
//	Methods:
//		setVerses();			Set the verses in the Array.
//		randomVerse();			Choose and return the Verse.
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
//	Constructor
function Verse()
{
	//Properties
	
	//Methods
	this.setVerses		=Verse_setVerses;
	this.randomVerse	=Verse_randomVerse;
}

//-----------------------------------------------------------------------------
//	Methods

function Verse_setVerses()		//Set the Verses in the Array.
{
	this[0]	="Therefore, I urge you, brothers, in view of God's mercy, to offer your bodies as living sacrifices, holy and pleasing to God-this is your spiritual act of worship. -Romans 12:1";
	this[1] ="God is spirit, and his worshipers must worship in spirit and in truth. -John 4:24";
	this[2] ="And we know that in all things God works for the good of those who love him, who have been called according to his purpose. -Romans 8:28";
	this[3] ="Finally, brothers, whatever is true, whatever is noble, whatever is right, whatever is pure, whatever is lovely, whatever is admirable - if anything is excellent or praiseworthy - think about such things. -Phillipians 4:8";
	this[4] ="Consider it pure joy, my brothers, whenever you face trials of many kinds, because you know that the testing of your faith develops persevereance. -James 1:2-3";
	this[5] ="We live by faith, not by sight. -2 Corinthians 5:7";
	this[6] ="He is the atoning sacrifice for our sins, and not only for ours but also for the sins of the whole world. -1 John 2:2";
	this[7] ="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. -Galatians 2:20";
	this[8] ="Be still, and know that I am God; I will be exalted among the nations, I will be exalted in the earth. -Psalm 46:10";
	this[9] ="Not that I have already obtained all this, or have already been made perfect, but I press on to take hold of that for which Christ Jesus took hold of me. -Phillipians 3:12";
}

function Verse_randomVerse()	//Choose the random Verse.
{
	index = Math.floor(Math.random()*10);	//Choose a random number.
	return this[index];						//Return the random verse.
}
