//MooTools More, <http://mootools.net/more>. Copyright (c) 2006-2009 Aaron Newton <http://clientcide.com/>, Valerio Proietti <http://mad4milk.net> & the MooTools team <http://mootools.net/developers>, MIT Style License.

var szNormal = 133, szSmall  = 118, szFull   = 230;

var kwicks = $$("#Menus  .menu");
var fx = new Fx.Elements(kwicks, {wait: false, duration: 300, transition: Fx.Transitions.Back.easeOut});
kwicks.each(function(Menu, i)
	{
		
		Menu.addEvent("mouseover", function(event)
		{
			var o = {};
			o[i] = {width: [Menu.getStyle("width").toInt(), szFull]}
			kwicks.each(function(other, j)
			{
				if(i != j) {
					var w = other.getStyle("width").toInt();
					if(w != szSmall) o[j] = {width: [w, szSmall]};
				}
			});
			fx.start(o);
		});
	});
 
$("Menus").addEvent("mouseout", function(event) {
	var o = {};
	kwicks.each(function(Menu, i) {
		o[i] = {width: [Menu.getStyle("width").toInt(), szNormal]}
	});
	fx.start(o);
})

