/*
	hoverFade jQuery plugin version 1.0
	
	Copyright (c) 2010 Dan Wellman
  
	Dual licensed under the MIT and GPL licenses:
	http://www.opensource.org/licenses/mit-license.php
	http://www.gnu.org/licenses/gpl.html
	
*/
(function(a){a.hoverFade={defaults:{newClass:"hover-anims",classToRemove:"hover-css",onClass:"on",trigger:"a",faderTemplate:"<span />"}};a.fn.extend({hoverFade:function(d){var b=a.extend({},a.hoverFade.defaults,d),c=a(this),e=b.faderTemplate.replace("<","").replace(">","").replace(" /","");c.removeClass(b.classToRemove).addClass(b.newClass).children().each(function(){a(this).find(b.trigger).append(b.faderTemplate).find(e).css("opacity",0)});a("."+b.onClass,c).find(e).css("opacity",1);a(c).find(b.trigger).not("."+b.onClass).hover(function(){a(this).find(e).stop().animate({opacity:1})},function(){a(this).find(e).stop().animate({opacity:0})});return this}})})(jQuery);
