var scriptures = 
[
	"<p>I also tell you this: If two of you agree down here on earth concerning anything you ask, my Father in heaven will do it for you. For where two or three gather together because they are mine, I am there among them.</p><p>Matthew 18:19-20</p>",
	"<p>Keep alert and pray. Otherwise temptation will overpower you. For though the spirit is willing enough, the body is weak!</p><p>Matthew 26:41</p>",
	"<p>Devote yourselves to prayer with an alert mind and a thankful heart.</p><p>Colossians 4:2</p>",
	"<p>Always be joyful. Keep on praying. No matter what happens, always be thankful, for this is God's will for you who belong to Christ Jesus. Do not stifle the Holy Spirit. Do not scoff at prophecies, but test everything that is said. Hold on to what is good. Keep away from every kind of evil.</p><p>1 Thessalonians 5:16-22</p>",
	"<p>Now may the God of peace make you holy in every way, and may your whole spirit and soul and body be kept blameless until that day when our Lord Jesus Christ comes again. God, who calls you, is faithful; he will do this.</p><p>1 Thessalonians 5:23-24</p>",
	"<p>But God did listen! He paid attention to my prayer. Praise God, who did not ignore my prayer and did not withdraw his unfailing love from me.</p><p>Psalm 66:19-20</p>",
	"<p>The end of the world is coming soon. Therefore, be earnest and disciplined in your prayers.</p><p>1 Peter 4:7</p>",
	"<p>Don't worry about anything; instead, pray about everything. Tell God what you need, and thank him for all he has done.</p><p>Philippians 4:6</p>",
	"<p>Listen closely to my prayer, O LORD; hear my urgent cry. I will call to you whenever trouble strikes, and you will answer me.</p><p>Psalm 86:6</p>",
	"<p>He will listen to the prayers of the destitute. He will not reject their pleas. Let this be recorded for future generations, so that a nation yet to be created will praise the LORD.</p><p>Psalm 102:17-18</p>",
	"<p>Answer me when I call, O God who declares me innocent. Take away my distress. Have mercy on me and hear my prayer.</p><p>Psalm 4:1</p>",
	"<p>So wherever you assemble, I want men to pray with holy hands lifted up to God, free from anger and controversy.</p><p>1 Timothy 2:8</p>",
	"<p>Accept my prayer as incense offered to you, and my upraised hands as an evening offering.</p><p>Psalm 141:2</p>",
	"<p>Pray at all times and on every occasion in the power of the Holy Spirit. Stay alert and be persistent in your prayers for all Christians everywhere.</p><p>Ephesians 6:18</p>",
	"<p>Seek the LORD while you can find him. Call on him now while he is near.</p><p>Isaiah 55:6</p>",
	"<p>And the Holy Spirit helps us in our distress. For we don't even know what we should pray for, nor how we should pray. But the Holy Spirit prays for us with groanings that cannot be expressed in words.</p><p>Romans 8:26</p>",
	"<p>The LORD is far from the wicked, but he hears the prayers of the righteous.</p><p>Proverbs 15:29</p>",
	"<p>The LORD has heard my plea; the LORD will answer my prayer.</p><p>Psalm 6:9</p>",
	"<p>Keep a constant watch. And pray that, if possible, you may escape these horrors and stand before the Son of Man.</p><p>Luke 21:36</p>"
];

function Scripture(selector)
{
	$(selector).fadeOut(1000);
	
	setTimeout(function()
	{
		$(selector).html(SelectRandomScripture(scriptures)).fadeIn("slow");
	},1200);
}

function SelectRandomScripture(scriptures)
{
	var args = {
		last: -1,
		current: 0
	}

	if(scriptures)
	{
		do
		{
			args.current = Math.floor(Math.random()*(scriptures.length));
		}
		while(args.current == args.last);
		
		args.last = args.current;
		return scriptures[args.current];
	}
	else
	{
		return "";
	}
}

function SetCurrentNavbar(num)
{
	var page = {
		navbarPrefix: 'navbar-item_'
	}
	
	$('#' + page.navbarPrefix + num).addClass('active');
}