// Blend 2.2 for jQuery 1.3+
// Copyright (c) 2011 Jack Moore - jack@colorpowered.com
// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
(function(a,b){var c=a.fn.blend=function(c,d){var e=this,f="background",g="padding",h=[f+"Color",f+"Image",f+"Repeat",f+"Attachment",f+"Position",f+"PositionX",f+"PositionY",g+"Top",g+"Left",g+"Right",g+"Bottom","width","height"];c=c||a.fn.blend.speed,d=d||a.fn.blend.callback,e[0]&&!e.is(".jQblend")&&e.each(function(){var e='<span style="position:absolute;top:0;left:0;display:block"/>',f=a(e)[0],g=a(e)[0],i=this,j=i.currentStyle||b.getComputedStyle(i,null),k,l;a(i).css("position")!=="absolute"&&(i.style.position="relative");for(l=0;k=h[l];l++)k in j&&(g.style[k]=f.style[k]=j[k]);f.style.backgroundImage=f.style.backgroundColor="",a(i).wrapInner(f).addClass("hover jQblend").prepend(g).hover(function(b){a(g).stop().fadeTo(c,0,function(){a.isFunction(d)&&d()})},function(b){a(g).stop().fadeTo(c,1)})});return e};c.speed=250,c.callback=!1})(jQuery,this);
