
window.addEvent('domready', function(){
    
	
	// Second Example
	
	// The same as before: adding events
	$('box1').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.Sine.easeIn // This could have been also 'bounce:out'
			}).tween('height', '220px');
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {}).tween('height', '132px');
		}
		
	});
	
	$('box2').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.Sine.easeIn // This could have been also 'bounce:out'
			}).tween('height', '220px');
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {}).tween('height', '132px');
		}
	});
	
	$('box3').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.Sine.easeIn // This could have been also 'bounce:out'
			}).tween('height', '220pxpx');
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {}).tween('height', '132px');
		}
	});
	
		$('box4').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.Sine.easeIn // This could have been also 'bounce:out'
			}).tween('height', '220pxpx');
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {}).tween('height', '132px');
		}
	});
	
		$('box5').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.Sine.easeIn // This could have been also 'bounce:out'
			}).tween('height', '220pxpx');
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {}).tween('height', '132px');
		}
	});
	
});