window.onload = initPage;
var message = "We welcome all to attend our services.  The times are below the " +
"pastor's photo in the left column.";


var boardMessage="The board members from left to right are: Larry Johnson, " +
"Tommy Sessoms, Teresa D. Kelly, Raymond Sessoms, Jimmy Sessoms, and Pastor Greg Long.";

var $ = function(id){
	return document.getElementById(id);
	}
	

var verseOne= "\"But concerning the times and the seasons, brethern, you have no need that I should write to you. " +
"For you yourselves know perfectly that the day of the Lord so comes as a thief in the night.\" 1 Thessalonians 5:1,2";
var currentAnchor;

function initPage()
{
//set backgrund color for links
var homeBack = $("homeTag");
homeBack.onmouseover = function(){
	homeBack.style.backgroundColor="black";
	homeBack.style.color="yellow";
	homeBack.style.cursor="pointer";
	
 }
 
 var homeBackAgain = $("homeTag");
homeBackAgain.onmouseout = function(){
	homeBack.style.backgroundColor="white";
	homeBack.style.color="blue";
 }

var boardBack = $("boardTag");
boardBack.onmouseover = function(){
	boardBack.style.backgroundColor="black";
	boardBack.style.color="yellow";
	boardBack.style.cursor="pointer";

	

 }
 
 var boardBackAgain = $("boardTag");
boardBackAgain.onmouseout = function(){
	boardBackAgain.style.backgroundColor="white";
	boardBackAgain.style.color="blue";
 }
 
 var site = $("site");
 site.onmouseover = function(){
	site.style.backgroundColor="black";
	site.style.color="yellow";
 }
 
 var siteBackAgain = $("site");
siteBackAgain.onmouseout = function(){
siteBackAgain.style.backgroundColor="white";
siteBackAgain.style.color="blue";
 }




self.resizeTo(1050,1100);

$("thePhoto").src = "./images/churchnew1.jpg";
$("caption").innerHTML = message;
	$("showHistory").innerHTML ="The origin of the First Pentecostal Holiness Church of Sanford " + 
"dates back to 1900.  In that year the Reverend Walter B. Dowdy organized what was then known as the " +
"Holiness Church.  They worshipped for a while in Rev. Dowdy's home, and then until 1910 in an old store " +
"building at the corner of 11th street and Charlotte Avenue. In the year 1910 the first church sanctuary " +
"was erected at the corner of 7th street and Midland Avenue. The building was a small and simple structure. " +
"The church joined the Western North Carolina Conference of the Pentecostal Holiness Church in 1917 " +
"and on November 22, 1923, it was transferred to the North Carolina Conference. " +
"In February, 1976, land was purchased for a new sanctuary. This land is the location of our present structure. " +
"The old church was sold and the first service in our present structure was held on January 3, 1982. " +
"During the past years the church has gone through much to be where we are today. We give God the glory and " +
" invite you to come enjoy God's blessings with us as we continue to work for God in the future.";

$("showHeading").innerHTML = "Our History";

$("footer").innerHTML = verseOne;

}

function homePhoto(){
	
	$("thePhoto").src = "./images/churchnew1.jpg";
	$("caption").innerHTML = message;
	

	
}


function boardPhoto(){
	
	$("thePhoto").src = "./images/theChurchBoard.gif";
	
	$("caption").innerHTML = boardMessage;
	
}

	

