window.addEvent('domready', function()
{
	$$('li.myOtherElement').each(function(element, index)
	{
		element.addEvents({
			'mouseenter': function(){
				// Always sets the duration of the tween to 1000 ms and a bouncing transition
				// And then tweens the height of the element
				$('sousmenu' + index).setStyle('width', $('sousmenu' + index).get('w'))
				$('sousmenu' + index).set('tween', {
					duration: 1000,
					transition: Fx.Transitions.Back.easeOut // This could have been also 'bounce:out'
				}).tween('height', $('sousmenu' + index).get('h'));
			},
			
			'mouseleave': function(){
				// Resets the tween and changes the element back to its original size
				$('sousmenu' + index).set('tween', {}).tween('height', '0px');
			}
		});
	});
});