window.addEvent('domready', function(){
	
	// The same as before: adding events
	$('dropMenuElement').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
			this.set('tween', {
				duration: 500,
				transition: Fx.Transitions.Quad.easeOut // This could have been also 'bounce:out'
			}).tween('height', dropMenuHeight);  // dropMenuHeight variable in htm page
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {}).tween('height', dropMenuInitialHeight); // dropMenuInitialHeight variable in htm page
		}
	});
});
