jQuery(function($){
var setupFx = function()	{
	$("img.fadeover").each(function(e) {
			wrapDiv = jQuery("<div style=\"background: url("+this.getAttribute("src")+") center center no-repeat;\"></div>");
			$(this).wrap(wrapDiv);
			$(this).attr("src",$(this).attr("alt"));
			$(this).hover(hoverIn,hoverOut);
			$(this).fadeTo("1",0.01);
			} );
}

var hoverIn = function(e)	{
	$(this).each(function(e)	{ $(this).fadeTo("500",1) } );
}

var hoverOut = function(e)	{
	$(this).each(function(e)	{ $(this).fadeTo("500",0.01) } );
}

$().ready(setupFx);

});

