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

