window.addEvent('domready', function(){
var szSmall = 31, szFull = 866;
var accordion = $$("#accordion .stretcher");
var fx = new Fx.Elements(accordion, {wait: false, duration: 600, transition: Fx.Transitions.Expo.easeInOut});

	accordion.each(function(stretcher, i) {
	stretcher.addEvent("click", function(event) {
		var o = {};
		o[i] = {width: [stretcher.getStyle("width").toInt(), szFull]}
		accordion.each(function(other, j) {
			if(i != j) {
				var w = other.getStyle("width").toInt();
				if(w != szSmall) o[j] = {width: [w, szSmall]};
			}
		});
		fx.start(o);
	});
});
});	
