// preload images first (can run before page is fully loaded)
jQuery.preloadImages = function()
{
	for(var i = 0; i<arguments.length; i++)
	{
		jQuery("<img>").attr("src", arguments[i]);
	}
}

jQuery.preloadImages(
	"/images/tbAboutUs_ov.gif", 
	"/images/tbLeadership_ov.gif",
	"/images/tbResources_ov.gif",
	"/images/tbMinistries_ov.gif",
	"/images/tbRequests_ov.gif",
	"/images/tbSmallGroups_ov.gif"
);

jQuery(
	function()
	{
		// set up rollover
		jQuery("img.rollover").hover(
			function()
			{
				this.src = this.src.replace("_of","_ov");
			},
			function()
			{
				this.src = this.src.replace("_ov","_of");
			}
		);
	}
)
