/* smSend  */

/* Smsend: invia e ricevi sms e mms online, comunica quanto vuoi, con chi vuoi, quando vuoi! */
/* Smsend ed il portale smsend.it sono proprietą di dunp s.c.p.l. */
/* Tutti i diritti riservati © 2008 - Licensed under a Creative Commons Attribuzione - Non commerciale - Non opere derivate 2.5 Italia License */
/* dunp scpl - Via Giuseppe Rosaccio 6 - Roma 00156 - Tel. +39.06.4066184 - Fax +39.06.41220142 - P.I. e C.F. 09884631004 - info@smsend.it */


window.addEvent('domready', function(){
	//First Example
	var el = $('m_1' || 'm_2' || 'm_3'),
		color = el.getStyle('backgroundColor');
	
	// We are setting the opacity of the element to 0.5 and adding two events
	$('m_1' || 'm_2' || 'm_3').set('opacity', 1.0).addEvents({
		mouseenter: function(){
			// This morphes the opacity and backgroundColor
			this.morph({
				'opacity': 1,
				'background-color': '#efefef'
			});
		},
		mouseleave: function(){
			// Morphes back to the original style
			this.morph({
				opacity: 1.0,
				'backgroundColor': '#ffffff'
			});
		}
	});

	// 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: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '150px');
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {}).tween('height', '20px');
		}
	});
});