var Site = {
				
	start: function(){
		Site.parseKwicks();
	},
	
	parseKwicks: function(){
		var kwicks = $$('.slider .item');
		var fxTransitions = new Fx.Elements(kwicks, {wait: false, duration: 500, transition: Fx.Transitions.quadOut});
		kwicks.each(function(kwick, i){
			kwick.addEvent('click', function(e){
				var obj = {};
				obj[i] = {
					'height': [kwick.getStyle('height').toInt(), 322]
				};
				kwicks.each(function(other, j){
					if (other != kwick){
						var w = other.getStyle('height').toInt();
						if (w != 25) obj[j] = {'height': [w, 25]};
						$E('span', other).style.display = 'block';
					} else {
						$E('span', other).style.display = 'none';
					}
				});
				fxTransitions.start(obj);
			});
		});
		var spans = $$('.slider span');
		spans.each(function(span, i){
			span.addEvent('mouseenter', function(e){
				span.style.fontWeight = 'bold';
			});
			span.addEvent('mouseleave', function(e){
				span.style.fontWeight = 'normal';
			});
		});
	}
};

window.addEvent('load', Site.start);