/**
 * @author madesign
 */

var COOKIE_NAME = 'prayer_index';
var texts = new Array();
 
texts.push("Pray for those producing programs in secret places. Many times they must create makeshift studios in small corner bedrooms. Pray for creativity and new ideas as they reach out to their communities.");
texts.push("Pray for new believers who have been kicked out of their homes and disowned by their families. Pray for courage in a time of great rejection.");
texts.push("Pray for the millions of people who have never heard the message of hope that Jesus brings. Pray that they will be introduced to HCJB Global Voice’s programming.");
texts.push("Pray for the households of the Arab world who are living in extreme poverty. Pray that they will turn to Christ for their provision.");
texts.push("Pray for those households who find themselves in the middle of violence. Whether it is open war, terrorism or simply crime &#8212; pray for safety.");
texts.push("Pray for Arabic-speaking people who are listening to HCJB Global Voice’s broadcasts via the Internet around the world. As they go into chat rooms and interact with believers, pray that their hearts would be open.");
texts.push("Pray for the equipment that helps local broadcasters record their programs. Pray that it works well so that they can continue to send their programs out for airing through satellite, shortwave and the Internet.");
texts.push("Pray for women who have received Jesus as their Savior and are living in homes where their beliefs are not acceptable. Pray for comfort and companionship.");
texts.push("Pray for the many men in the Arab world who are out of work or do not have reliable work. This is a significant blow culturally and makes their hearts hard towards the message of hope.");
texts.push("Pray for the Bible training held throughout the Arab world. Pray for the safety of the trainers as they travel and that each event will be a safe place where people will learn how to share their messages passionately.");
texts.push("Pray for the households in the Arab world where many family members live together. Pray for unity and family connections that will open the doors for the gospel.");
texts.push("Pray for young Christian men and women who are looking for a Christian spouse. Many times the families will arrange the marriages without concern for the young person’s beliefs. Pray for those living with great injustice. Pray that they will see past the pain and despair of their situations and see an eternal solution in Jesus.");
texts.push("Pray for those living with great injustice. Pray that they will see past the pain and despair of their situations and see an eternal solution in Jesus.");
texts.push("Pray for the Christian voices speaking out from the Arab world. Pray that they will communicate clearly and in ways that are relevant to modern Arab cultures.");
texts.push("Pray for the new middle class in the Arab world who are participating in business and in the global economy. Pray that as they have access to information and material things, that they will be protected from materialism.");
texts.push("Pray for those who listen to HCJB Global Voice’s broadcasts through direct-to-home satellite. Pray that those who don’t know Jesus would make time to hear what He is speaking to them.");
texts.push("Pray for those who listen to HCJB Global Voice’s short-wave broadcasts – especially in more rural areas. Pray that the teaching would encourage their hearts.");
texts.push("Pray for the girls and women in the Arab world who are struggling many times in dificult situations. Pray that they would put their hope in Jesus.");
texts.push("Pray for the tribal and religious conflicts in the Arab world. Pray that those households caught in the middle would be protected and would seek Jesus as their protection.");
texts.push("Pray for bravery for those who believe in Jesus. Pray that they will know when to stand up for their faith and when it is wise to take a lowkey approach.");
texts.push("Pray for those who are in jail for their faith. As they sit in prison, pray that they will receive the peace that only Jesus can provide.");
texts.push("Pray for those struggling with the rising cost of food worldwide. Pray that they will have the nourishment they need to live healthy lives.");
texts.push("Pray for those listening to HCJB Global Voice broadcasts in secret. Pray that they will have the time alone to listen and that they will be able to connect with others who believe.");
texts.push("Pray for patience as HCJB Global Voice staff wait to hear from listeners. Pray that we will trust God for the results of these messages of hope.");
texts.push("Pray for those in the Arab world who hold positions of importance and also hold a faith in Jesus. Help them to know how to use their influence for Him.");
texts.push("Pray for the funds needed to sponsor all 1 million weekly listeners. Pray that God will connect with many throughout the world to help support this cause.");
texts.push("Pray for the children in Christian homes who will have a difficult time playing with friends, going to school and fitting in with those around them.");
texts.push("Pray for the house churches who meet in secret. Pray that they will be unified and that they will encourage each other to seek Jesus.");
texts.push("Pray for your heart so that you can remember the people of the Arab world daily and share their need for hope with those around you.");
texts.push("Pray for your church that you can be a catalyst to create a passion for the Arab world in those you worship with.");

//alert("loaded texts");
prayer_update = function()
{
	//alert( "testing cookie: " + $.cookie(COOKIE_NAME) );
	var i = $.cookie(COOKIE_NAME );
	if( i == undefined || Number(i) >= texts.length )
	{
		i = 0;
	}
	set_prayer(i);
	i++;
	$.cookie(COOKIE_NAME, Number(i), { path: '/', expires: 30 });
}

set_prayer = function(i)
{
	$("#pray-today-text").html(texts[Number(i)]);
}
