window.addEvent('domready', function(){
	//First Example
	var el = $('myOtherElement'),
		color = el.getStyle('backgroundColor');
	
	// We are setting the opacity of the element to 0.5 and adding two events
	$('myOtherElement').set('opacity', 1.0).addEvents({
		mouseenter: function(){
			// This morphes the opacity and backgroundColor
			this.morph({
				'opacity': 1,
				'background-color': '#c6d880'
			});
		},
		mouseleave: function(){
			// Morphes back to the original style
			this.morph({
				opacity: 1.0,
				backgroundColor: color
			});
		}
	});

	// Second Example
	
	// The same as before: adding events
	$('myOtherElement').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: 1500,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '400px');
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {}).tween('height', '95px');
		}
	});

$('myOtherElement2').addEvents({
		'mouseenter': function(){
			this.set('tween', {
				duration: 1500,
				transition: Fx.Transitions.Expo.easeOut 
			}).tween('height', '280px');
		},
		'mouseleave': function(){
			this.set('tween', {}).tween('height', '90px');
		}
	});

$('myOtherElement3').addEvents({
		'mouseenter': function(){
			// PICKERING LADIES LEAGUE
			this.set('tween', {
				duration: 1500,
				transition: Fx.Transitions.Expo.easeOut
			}).tween('height', '230px');
		},
		'mouseleave': function(){
			this.set('tween', {}).tween('height', '70px');
		}
	});

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


});