(function($) {
	$.fn.fadeMe = function(){ 
		if(!this || !this[0]){return false} 	// check if object is attacted else do nothing
		$(this).hover(function(){				// attach hover event to object
			// mouseover
			$(this).animate({opacity:".1"},500) // animate opacity to almost invisible
		},function(){
			//mouseout
			$(this).animate({opacity:"1"},500)	// animate opacity to visible
		})
	}
})(jQuery);

$(function(){
	$(".fade").fadeMe();
});