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