window.addEvent('domready', function(){
	var szNormal = 94, szSmall = 72, szFull = 182;
	var bouncers = $$("ul.bouncers li.bouncer");
	
	var fx = new Fx.Elements(bouncers, {wait: false, duration: 300, transition: Fx.Transitions.Cubic.easeInOut});
	bouncers.each(function(bouncer, i) {
	  bouncer.linkdiv = $E('div', bouncer);
	  
		bouncer.addEvent("mouseenter", function(event) {
			var o = {};
			o[i] = {width: [bouncer.getStyle("width").toInt(), szFull]}
			bouncers.each(function(other, j) {
				if(i != j) {
  			  other.linkdiv.style.display = 'none';
					var w = other.getStyle("width").toInt();
					if(w != szSmall) o[j] = {width: [w, szSmall]};
				} else {
  			  other.linkdiv.style.display = 'block';
				}
			});
			fx.start(o);
		});

  	bouncer.addEvent("mouseleave", function(event) {
  		var o = {};
  		bouncers.each(function(bouncer, i) {
  		  bouncer.linkdiv.style.display = 'none';
  			o[i] = {width: [bouncer.getStyle("width").toInt(), szNormal]}
  		});
  		fx.start(o);
  	});
	});
});
