// MOOTOOLS JavaScript Document
 
window.addEvent('domready', function() {
	if( 'agenda' == $('agenda').get('id') ) {
		
			var transi = Fx.Transitions.Cubic.easeOut;
			var duree = 500;
			
				MorphOut = new Fx.Morph('agenda', {
					link: 'cancel', 
					'duration': duree, 
					transition: transi, 
					oncomplete : function() {
					}
				});
				
				// évènements
				$('agenda').addEvents({
					'mouseenter': function() {
						this.start( { 'height': 130 } ); 
					}.bind(MorphOut),
					
					'mouseleave': function() {
						this.start( { 'height': 12 } ); 
					}.bind(MorphOut)
					
			});
			
	}
});
