home = new Image();
home.src = "images/home_r.gif";

aboutus = new Image();
aboutus.src = "images/aboutus_r.gif";

worship = new Image();
worship.src = "images/worship_r.gif";

community = new Image();
community.src = "images/community_r.gif";

resources = new Image();
resources.src = "images/resources_r.gif";

blog = new Image();
blog.src = "images/blog_r.jpg";

sermons = new Image();
sermons.src = "images/sermons_r.jpg";

function swapImage(isImg,isDefault,swapImg)
{
	currImg = isImg.src.match(/[^\/\\]+$/);
	isPath = isImg.src.replace(currImg,"");
	if (currImg == isDefault){isImg.src = isPath+swapImg}
	else {isImg.src = isPath+isDefault}
}

function toggle(txt)
{
	MyTxt = document.getElementById(txt);
	MyTxt.style.display = (MyTxt.style.display == 'block') ? 'none' : 'block';
}

function popwin(theURL)
{
 window.open(theURL,"","height=400,width=518,scrollbars=yes,resizable=no,screenX=25,left=25,screenY=25,top=25");
}

window.defaultStatus ="Columbia Presbyterian Church";

