/**
 * reflection.js v1.8
 * http://cow.neondragon.net/stuff/reflection/
 * Freely distributable under MIT-style license.
 */
if(!document.getElementsByClassName){document.getElementsByClassName=function(D){var C=document.getElementsByTagName("*")||document.all;var E=new Array();for(var B=0;B<C.length;B++){var G=C[B];var F=G.className.split(" ");
for(var A=0;A<F.length;A++){if(F[A]==D){E.push(G);break}}}return E}}var Reflection={defaultHeight:0.2,defaultOpacity:0.3,add:function(D,Q){Reflection.remove(D);doptions={height:Reflection.defaultHeight,opacity:Reflection.defaultOpacity};
if(Q){for(var I in doptions){if(!Q[I]){Q[I]=doptions[I]}}}else{Q=doptions}try{var M=document.createElement("div");var B=D;var E=B.className.split(" ");var H="";for(j=0;j<E.length;j++){if(E[j]!="reflect"){if(H){H+=" "
}H+=E[j]}}var J=Math.floor(B.height*Q.height);var G=Math.floor(B.height*(1+Q.height));var P=B.width;if(document.all&&!window.opera){var L=false;if(B.parentElement.tagName=="A"){var O=document.createElement("a");
O.href=B.parentElement.href;L=true}M.className=H;B.className="reflected";M.style.cssText=B.style.cssText;B.style.cssText="vertical-align: bottom";var F=document.createElement("img");F.src=B.src;F.style.width=P+"px";
F.style.display="block";F.style.height=B.height+"px";F.style.marginBottom="-"+(B.height-J)+"px";F.style.filter="flipv progid:DXImageTransform.Microsoft.Alpha(opacity="+(Q.opacity*100)+", style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy="+(Q.height*100)+")";
M.style.width=P+"px";M.style.height=G+"px";B.parentNode.replaceChild(M,B);if(L){O.appendChild(B);O.appendChild(F);M.appendChild(O)}else{M.appendChild(B);M.appendChild(F)}}else{var C=document.createElement("canvas");
if(C.getContext){M.className=H;B.className="reflected";M.style.cssText=B.style.cssText;B.style.cssText="vertical-align: bottom";var A=C.getContext("2d");C.style.height=J+"px";C.style.width=P+"px";C.height=J;
C.width=P;M.style.width=P+"px";M.style.height=G+"px";B.parentNode.replaceChild(M,B);M.appendChild(B);M.appendChild(C);A.save();A.translate(0,D.height-1);A.scale(1,-1);A.drawImage(D,0,0,P,D.height);A.restore();
A.globalCompositeOperation="destination-out";var N=A.createLinearGradient(0,0,0,J);N.addColorStop(1,"rgba(255, 255, 255, 1.0)");N.addColorStop(0,"rgba(255, 255, 255, "+(1-Q.opacity)+")");A.fillStyle=N;
A.fillRect(0,0,P,J*2)}}}catch(K){}},remove:function(A){if(A.className=="reflected"){A.className=A.parentNode.className;A.parentNode.parentNode.replaceChild(A,A.parentNode)}}};function addReflections(){var C=document.getElementsByClassName("reflect");
for(i=0;i<C.length;i++){var B=null;var A=null;var D=C[i].className.split(" ");for(j=0;j<D.length;j++){if(D[j].indexOf("rheight")==0){var B=D[j].substring(7)/100}else{if(D[j].indexOf("ropacity")==0){var A=D[j].substring(8)/100
}}}Reflection.add(C[i],{height:B,opacity:A})}}var previousOnload=window.onload;