(function(c,d){c.fn.blend=function(j,a){var b=this,k="background",i="padding",l=[k+"Color",k+"Image",k+"Repeat",k+"Attachment",k+"Position",k+"PositionX",k+"PositionY",i+"Top",i+"Left",i+"Right",i+"Bottom","width","height"];j=parseInt(j,10)||c.fn.blend.speed;a=a||c.fn.blend.callback;if(b[0]&&!b.find(".jsblend")[0]&&!(c.browser.mozilla&&parseFloat(c.browser.version)<1.9)){b.each(function(){var p=this,e,q=p.currentStyle||d.getComputedStyle(p,null),f='<span style="position:absolute;top:0;left:0;display:block"/>',g=c(f),h=c(f);if(p.style.position!=="absolute"){p.style.position="relative"}for(e=0;l[e];e+=1){if(q[l[e]]){h[0].style[l[e]]=g[0].style[l[e]]=q[l[e]]}}g[0].style.backgroundImage=g[0].style.backgroundColor="";c(p).wrapInner(g).addClass("hover").prepend(h);c(p).bind("mouseenter mouseleave",function(m){if(m.type==="mouseenter"){h.stop().fadeTo(j,0,function(){if(a&&typeof(a)==="function"){a()}})}else{h.stop().fadeTo(j,1)}})})}return b};c.fn.blend.speed=400;c.fn.blend.callback=null}(jQuery,this));
