window.addEvent('domready', function(){

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

*/
	
		/*	$('myOtherElement3').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: 300,
				transition: Fx.Transitions.linear // This could have been also 'bounce:out'
			}).tween('height', '100px');
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {}).tween('height', '25px');
		}
	});   */
	
	

/*
	
	$$ ('.myOtherElement3').each( function (Element,intIdx) {
    alert('Value => ' + Element+ ' | Key => ' + intIdx);
});

*/


	$$('.myOtherElement3').each( function (Element,intIdx) {
    
	    Element.addEvents({
        'mouseenter': function () {

		this.set('tween', {
				duration: 300,
				transition: Fx.Transitions.linear // This could have been also 'bounce:out'
			}).tween('height', '100px');
		
		
        },
        'mouseleave': function () {
           this.set('tween', {}).tween('height', '25px');     
        }
    });

	
	
});


	
	
});
