// jQuery Blend v1.3
(function(e){e.fn.blend=function(p){if(e.browser.mozilla&&parseFloat(e.browser.version)<1.9)return this;var c=e.extend({},e.fn.blend.settings,p);e(this).each(function(){function l(m){j&&f.fadeTo(c.speed,m,function(){l(m===g?h:g)})}var n=e(this),b=e(c.target?c.target:this),f,o=[],a,k,d={},j=false,g=0,h=c.opacity,i=["background-color","background-image","background-repeat","background-attachment","background-position","background-position-x","background-position-y"];k=i.length;b[0].style.position!== "absolute"&&b.css({position:"relative"});b.hasClass("hover")||b.wrapInner('<div style="position:relative" />');for(a=0;a<k;a++)o[a]=b.css(i[a]);b.addClass("hover");d={};d.position="absolute";d.top=0;d.left=0;d.width=b.width();d.height=b.height();for(a=0;a<k;a++)d[i[a]]=b.css(i[a]);if(b.find(".jsblend").length===0){f=e('<div class="jsblend" />').css(d);c.top?f.appendTo(b):f.prependTo(b)}else f=b.find(".jsblend");d={};for(a=0;a<k;a++)d[i[a]]=o[a];b.css(d);if(c.reverse){g=c.opacity;h=0}f.css({opacity:g}); if(c.pulse&&c.active){j=true;l(h)}else c.pulse?n.hover(function(){j=true;l(h)},function(){j=false;f.stop(true).fadeTo(c.speed,g)}):n.hover(function(){f.stop().fadeTo(c.speed,h)},function(){f.stop().fadeTo(c.speed,g)})});return this};e.fn.blend.settings={speed:500,opacity:1,target:false,reverse:false,pulse:false,active:false,top:false}})(jQuery);