if (document.images)
{
	funding_bg = new Image();
	funding_bg.src = "images/buttons/funding_bg.jpg";
	benefactors_bg = new Image();
	benefactors_bg.src = "images/buttons/benefactors_bg.jpg";
	giving_bg = new Image();
	giving_bg.src = "images/buttons/giving_bg.jpg";
	donation_bg = new Image();
	donation_bg.src = "images/buttons/donation_bg.jpg";
} 
	
var funding_info = "<h2>Funding Priorities</h2>";
	funding_info += "<p>For more than 80 years, St. Mary’s Medical Center has proudly served the residents of the Tri-State with the highest quality medical services and programs. New programs and improved technologies have been added, and always with an eye toward providing cost-effective health care.</p>";
	funding_info += '<div class="more"><a href="funding.php">more &gt;</a></div>';
	
var benefactors_info = "<h2>Benefactors</h2>";
	benefactors_info += "<p>Throughout our history, St. Mary’s has continued to identify and respond to the changing healthcare needs of our community. We strive to be good stewards of the gifts and resources entrusted to us, to use them to create a healthy community and, within our means, to respond to the needs of the poor through service and advocacy.</p>";
	benefactors_info += '<div class="more"><a href="benefactors.php">more &gt;</a></div>';
	
var giving_info = "<h2>Charitable Giving</h2>";
	giving_info += "<p>St. Mary's Medical Center Foundation announced it has reached its capital campaign goal of raising $1.5 million for the planned St. Mary’s Center for Education. In March 2006, the foundation kicked off St. Mary’s first capital campaign in 50 years to help support St. Mary’s mission of providing skilled healthcare professionals to care for the tri-state community. </p>";
	giving_info += '<div class="more"><a href="capital.php">more &gt;</a></div>';
	
var donation_info = "<h2>Make a Donation</h2>";
	donation_info += "<p>We hope that you will consider becoming a giving partner with St. Mary’s. There are a variety of ways to support St. Mary’s Medical Center through the Foundation.</p>";
	donation_info += '<div class="more"><a href="giving.php">more &gt;</a></div>';
	
	
function addEvent(elem, eventName, handler)
{
	if( ! elem ) return;
	if( elem.addEventListener )
		elem.addEventListener(eventName, handler, false);
	else if( elem.attachEvent )
		elem.attachEvent("on"+eventName, handler);
}
	
function dofunding()
{
	document.getElementById('changeable').className = "funding";
	document.getElementById('changeable').innerHTML = funding_info;
}
	
function dobenefactors()
{
	document.getElementById('changeable').className = "benefactors";
	document.getElementById('changeable').innerHTML = benefactors_info;
}
	
function dogiving()
{
	document.getElementById('changeable').className = "giving";
	document.getElementById('changeable').innerHTML = giving_info;
}
	
function dodonation()
{
	document.getElementById('changeable').className = "donation";
	document.getElementById('changeable').innerHTML = donation_info;
}


window.onload = function() {
	addEvent(document.getElementById('funding_btn'), "mouseover", dofunding);
	addEvent(document.getElementById('benefactors_btn'), "mouseover", dobenefactors);
	addEvent(document.getElementById('giving_btn'), "mouseover", dogiving);
	addEvent(document.getElementById('donation_btn'), "mouseover", dodonation);
}