$(document).ready(function() {

$('#ctl00_sitefinityLogo').html('');

$('#tabs img').hover(
	function() {
	    var src = $(this).attr("src").match(/[^\.]+/) + "-hover.gif";
	    $(this).attr("src", src);
	},
	function() {
	    var src = $(this).attr("src").replace("-hover", "");
	    $(this).attr("src", src);
	}
);

$('#menu img.hover').hover(
	function() {
	    var src = $(this).attr("src").match(/[^\.]+/) + "-hover.gif";
	    $(this).attr("src", src);
	},
	function() {
	    var src = $(this).attr("src").replace("-hover", "");
	    $(this).attr("src", src);
	}
);

var preload = [
	"menu-our-organization-hover.gif",
	"menu-our-services-hover.gif",
	"menu-our-network-hover.gif",
	"menu-our-community-hover.gif",
	"menu-our-success-hover.gif",
	"menu-recent-news-hover.gif",
	"menu-get-help-hover.gif",
	"menu-get-involved-hover.gif",
	"menu-get-in-touch-hover.gif"
];

var images = [];
for (i = 0; i < preload.length; i++) {
    images[i] = new Image();
    images[i].src = "/App_Themes/FamilyPromise/images/"+preload[i];
}

});
