jQuery.fn.extend({Reflection:function(_1){return this.findImages().each(function(){if(this.tagName=="IMG"){var _2=this;if(_2.parentNode.className=="reflected"){_2.className=_2.parentNode.className;_2.parentNode.parentNode.replaceChild(_2,_2.parentNode);}var _3={"height":0.5,"opacity":0.5};var _4=jQuery.extend(_3,_1);try{var d=document.createElement("div");$(d).addClass("reflected");var p=_2;var _7=Math.floor(p.height*_4["height"]);var _8=Math.floor(p.height*(1+_4["height"]));var _9=p.width;$(d).css("cssText",$(_2).css("cssText"));$(_2).css("vertical-align","bottom");if(jQuery.browser.msie){var _a=document.createElement("img");_a.src=p.src;_a.style.width=_9+"px";_a.style.marginBottom="-"+(p.height-_7)+"px";_a.style.filter="flipv progid:DXImageTransform.Microsoft.Alpha(opacity="+(_4["opacity"]*100)+", style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy="+(_4["height"]*100)+")";d.style.height=_8+"px";d.style.width=_9+"px";p.parentNode.replaceChild(d,p);d.appendChild(p);d.appendChild(_a);}else{var _b=document.createElement("canvas");if(_b.getContext){var _c=_b.getContext("2d");_b.height=_7;_b.width=_9;_b.style.height=_7;_b.style.width=_9;d.style.width=_9+"px";d.style.height=_8+"px";p.parentNode.replaceChild(d,p);d.appendChild(p);d.appendChild(_b);_c.save();_c.translate(0,_2.height-1);_c.scale(1,-1);_c.drawImage(_2,0,0,_9,_2.height);_c.restore();_c.globalCompositeOperation="destination-out";var _d=_c.createLinearGradient(0,0,0,_7);_d.addColorStop(1,"rgba(255, 255, 255, 1.0)");_d.addColorStop(0,"rgba(255, 255, 255, "+(1-_4["opacity"])+")");_c.fillStyle=_d;if(navigator.appVersion.indexOf("WebKit")!=-1){_c.fill();}else{_c.fillRect(0,0,_9,_7*2);}}}}catch(e){}}}).parent();},findImages:function(){if(this.size()==1&&this.get(0).tagName=="IMG"){return this;}else{return this.find("img");}}});