(function($){
   $.fn.bgGlow = function(wrapper, wrapperGlow, glowInDuration, glowOffDuration){
      var element = $(this);
      element.each(function(){
      	$$ = $(this);
      	$$.hover(
      		function(event){
      			current = $(this);
				current.prev().removeClass(wrapper).addClass(wrapperGlow).css('opacity', 0).stop().animate({opacity: 1}, {duration:glowInDuration});
      		},
      		function(event){
      			current = $(this);
      			current.prev().stop().animate({opacity: 0}, {duration:glowOffDuration}).addClass(wrapper);
      		}
      	)
      });
   }
})(jQuery);