// --  coding: utf-8
// --  Javascript Hidder Show

window.addEvent('domready', function() {

	$$('#tda-shows div.show-block.past').each(
		function(e, i) {
			var dims = e.getCoordinates();
			
			e.setStyles({
				position: 'relative'
				/*'-webkit-background': 'rgba(255, 255,255, .1)',
				'-o-background': 'rgba(255, 255,255, .1)',
				'-moz-background': 'rgba(255, 255,255, .1)',
				background: 'rgba(255, 255,255, .1)'*/
			});
			if(Browser.ie && Browser.version <= 8) {
				e.setStyle('opacity', .5);
			} else {
				e.setStyles({
					'-webkit-background': 'rgba(255, 255,255, .1)',
					'-o-background': 'rgba(255, 255,255, .1)',
					'-moz-background': 'rgba(255, 255,255, .1)',
					background: 'rgba(255, 255,255, .1)'
				});
			}
			
			var hidder = new Element('a', {
				styles:  {
					position: 'absolute',
					top: 0, left: 0,
					width: dims.width+'px', height: dims.height+'px',
					background: '#555',
					opacity: 0.5
				},
				href: e.getElements('a')[0].href
			});
			
			hidder.inject(e);
			
			/*e.setStyles({
				//~ background: '#252525',
				opacity: .45
			});*/
			
		}
	);
});
