document.getElementsByClassName=function(_1){var _2=document.getElementsByTagName("*")||document.all;var _3=new Array();for(var i=0;i<_2.length;i++){var _5=_2[i];var _6=_5.className.split(" ");for(var j=0;j<_6.length;j++){if(_6[j]==_1){_3.push(_5);break;}}}return _3;};var Reflection={defaultHeight:0.5,defaultOpacity:0.5,add:function(_8,_9){Reflection.remove(_8);doptions={"height":Reflection.defaultHeight,"opacity":Reflection.defaultOpacity};if(_9){for(var i in doptions){if(!_9[i]){_9[i]=doptions[i];}}}else{_9=doptions;}try{var d=document.createElement("div");var p=_8;var _d=p.className.split(" ");var _e="";for(j=0;j<_d.length;j++){if(_d[j]!="reflect"){if(_e){_e+=" ";}_e+=_d[j];}}var _f=Math.floor(p.height*_9["height"]);var _10=Math.floor(p.height*(1+_9["height"]));var _11=p.width;if(document.all&&!window.opera){d.className=_e;p.className="reflected";d.style.cssText=p.style.cssText;p.style.cssText="vertical-align: bottom";var _12=document.createElement("img");_12.src=p.src;_12.style.width=_11+"px";_12.style.marginBottom="-"+(p.height-_f)+"px";_12.style.filter="flipv progid:DXImageTransform.Microsoft.Alpha(opacity="+(_9["opacity"]*100)+", style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy="+(_9["height"]*100)+")";d.style.width=_11+"px";d.style.height=_10+"px";p.parentNode.replaceChild(d,p);d.appendChild(p);d.appendChild(_12);}else{var _13=document.createElement("canvas");if(_13.getContext){d.className=_e;p.className="reflected";d.style.cssText=p.style.cssText;p.style.cssText="vertical-align: bottom";var _14=_13.getContext("2d");_13.style.height=_f+"px";_13.style.width=_11+"px";_13.height=_f;_13.width=_11;d.style.width=_11+"px";d.style.height=_10+"px";p.parentNode.replaceChild(d,p);d.appendChild(p);d.appendChild(_13);_14.save();_14.translate(0,_8.height-1);_14.scale(1,-1);_14.drawImage(_8,0,0,_11,_8.height);_14.restore();_14.globalCompositeOperation="destination-out";var _15=_14.createLinearGradient(0,0,0,_f);_15.addColorStop(1,"rgba(255, 255, 255, 1.0)");_15.addColorStop(0,"rgba(255, 255, 255, "+(1-_9["opacity"])+")");_14.fillStyle=_15;if(navigator.appVersion.indexOf("WebKit")!=-1){_14.fill();}else{_14.fillRect(0,0,_11,_f*2);}}}}catch(e){}},remove:function(_16){if(_16.className=="reflected"){_16.className=_16.parentNode.className;_16.parentNode.parentNode.replaceChild(_16,_16.parentNode);}}};function addReflections(){var _17=document.getElementsByClassName("reflect");for(i=0;i<_17.length;i++){var _18=null;var _19=null;var _1a=_17[i].className.split(" ");for(j=0;j<_1a.length;j++){if(_1a[j].indexOf("rheight")==0){var _18=_1a[j].substring(7)/100;}else{if(_1a[j].indexOf("ropacity")==0){var _19=_1a[j].substring(8)/100;}}}Reflection.add(_17[i],{height:_18,opacity:_19});}}var previousOnload=window.onload;window.onload=function(){if(previousOnload){previousOnload();}addReflections();};