(function(a){a.fn.transify=function(b){var d={opacityOrig:0.6,fadeSpeed:600},c=a.extend({},d,b);this.each(function(){var f=a(this);f.append('<div class="transify"></div>');var e=f.find(".transify");e.css({backgroundColor:f.css("backgroundColor"),backgroundImage:f.css("backgroundImage"),backgroundRepeat:f.css("backgroundRepeat"),borderTopColor:f.css("borderTopColor"),borderTopWidth:f.css("borderTopWidth"),borderTopStyle:f.css("borderTopStyle"),borderRightColor:f.css("borderRightColor"),borderRightWidth:f.css("borderRightWidth"),borderRightStyle:f.css("borderRightStyle"),borderBottomColor:f.css("borderBottomColor"),borderBottomWidth:f.css("borderBottomWidth"),borderBottomStyle:f.css("borderBottomStyle"),borderLeftColor:f.css("borderLeftColor"),borderLeftWidth:f.css("borderLeftWidth"),borderLeftStyle:f.css("borderLeftStyle"),position:"absolute",top:0,left:0,zIndex:-1,width:f.width()+parseInt(f.css("padding-left"),10)+parseInt(f.css("padding-right"),10),height:f.height()+parseInt(f.css("padding-top"),10)+parseInt(f.css("padding-bottom"),10),opacity:c.opacityOrig});if(c.percentWidth){e.css("width",c.percentWidth)}f.css({zIndex:10,position:"relative",background:"none",border:"none"});if(c.opacityNew){f.hover(function(){e.stop().animate({opacity:c.opacityNew},c.fadeSpeed)},function(){e.stop().animate({opacity:c.opacityOrig},c.fadeSpeed)})}});return this}})(jQuery);
