window.addEvent('domready', function(){

	var szNormal = 100, szSmall = 34, szFull = 200;

	var kwicks = $$("#expandcontainer .peopleaccordianlink");
	var fx = new Fx.Elements(kwicks, {wait: false, duration: 400, transition: Fx.Transitions.Sine.easeOut});

	kwicks.each(function(kwick, i) {

		kwick.addEvent("mouseenter", function(event) {

			this.addClass('peopleelementOn');

			var o = {};
			o[i] = {height: [kwick.getStyle("height").toInt(), szFull]}

			kwicks.each(function(other, j)
			{
				if(i != j)
				{
					other.removeClass('peopleelementOn');

					var w = other.getStyle("height").toInt();
					if(w != szSmall) o[j] = {height: [w, szSmall]};
				}
			});
			fx.start(o);
		});
	});

});