window.addEvent('domready', function(){
	// The same as before: adding events
	$('DEPLIANT_news').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: 800,
				transition: Fx.Transitions.Sine.easeOut // This could have been also 'bounce:out'
			}).tween('height', '562px');
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {}).tween('height', '48px');
		}
	});

	$('DEPLIANT_charter').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: 800,
				transition: Fx.Transitions.Sine.easeOut // This could have been also 'bounce:out'
			}).tween('height', '607px'); 
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {}).tween('height', '48px');
		}
	});

	$('DEPLIANT_careers').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('tween3', {
				duration: 400,
				transition: Fx.Transitions.Sine.easeOut // This could have been also 'bounce:out'
			}).tween('height', '108px');
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween3', {}).tween('height', '48px');
		}
	});
});
