if(!document.myGetElementsByClassName)document.myGetElementsByClassName=function(c){for(var d=document.getElementsByTagName("*")||document.all,a=[],b=0;b<d.length;b++)for(var m=d[b],g=m.className.split(" "),f=0;f<g.length;f++)if(g[f]==c){a.push(m);break}return a};
var Reflection={defaultHeight:0.5,defaultOpacity:0.5,add:function(c,d){Reflection.remove(c);doptions={height:Reflection.defaultHeight,opacity:Reflection.defaultOpacity};if(d)for(var a in doptions)d[a]||(d[a]=doptions[a]);else d=doptions;try{var b=document.createElement("div");a=c;var m=a.className.split(" "),g="";for(j=0;j<m.length;j++)if(m[j]!="reflect"){if(g)g+=" ";g+=m[j]}var f=Math.floor(a.height*d.height),o=Math.floor(a.height*(1+d.height)),h=a.width;if(document.all&&!window.opera){if(a.parentElement.tagName==
"A"){b=document.createElement("a");b.href=a.parentElement.href}b.className=g;a.className="reflected";b.style.cssText=a.style.cssText;a.style.cssText="vertical-align: bottom";var k=document.createElement("img");k.src=a.src;k.style.width=h+"px";k.style.display="block";k.style.height=a.height+"px";k.style.marginBottom="-"+(a.height-f)+"px";k.style.filter="flipv progid:DXImageTransform.Microsoft.Alpha(opacity="+d.opacity*100+", style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy="+d.height*
100+")";b.style.width=h+"px";b.style.height=o+"px";a.parentNode.replaceChild(b,a);b.appendChild(a);b.appendChild(k)}else{var l=document.createElement("canvas");if(l.getContext){b.className=g;a.className="reflected";b.style.cssText=a.style.cssText;a.style.cssText="vertical-align: bottom";var e=l.getContext("2d");l.style.height=f+"px";l.style.width=h+"px";l.height=f;l.width=h;b.style.width=h+"px";b.style.height=o+"px";a.parentNode.replaceChild(b,a);b.appendChild(a);b.appendChild(l);e.save();e.translate(0,
c.height-1);e.scale(1,-1);e.drawImage(c,0,0,h,c.height);e.restore();e.globalCompositeOperation="destination-out";var n=e.createLinearGradient(0,0,0,f);n.addColorStop(1,"rgba(255, 255, 255, 1.0)");n.addColorStop(0,"rgba(255, 255, 255, "+(1-d.opacity)+")");e.fillStyle=n;e.rect(0,0,h,f*2);e.fill()}}}catch(p){}},remove:function(c){if(c.className=="reflected"){c.className=c.parentNode.className;c.parentNode.parentNode.replaceChild(c,c.parentNode)}}};
function addReflections(){var c=document.myGetElementsByClassName("reflect");for(i=0;i<c.length;i++){var d=null,a=null,b=c[i].className.split(" ");for(j=0;j<b.length;j++)if(b[j].indexOf("rheight")==0)d=b[j].substring(7)/100;else if(b[j].indexOf("ropacity")==0)a=b[j].substring(8)/100;Reflection.add(c[i],{height:d,opacity:a})}}var previousOnload=window.onload;window.onload=function(){previousOnload&&previousOnload();addReflections()};