
window.addEvent('domready', function() {
	
var myTransitionInicio = new Fx.Transition(Fx.Transitions.Back, 5);

	$('imagen1Portada').set('opacity', '0.7');
	$('imagen2Portada').set('opacity', '0.7');
	$('imagen3Portada').set('opacity', '0.7');
	$('imagen4Portada').set('opacity', '0.7');
	$('imagen5Portada').set('opacity', '0.7');
	$('imagen6Portada').set('opacity', '0.7');
	
	
	
	$('imagen1Portada').addEvents({

		'mouseenter': function() {		
			    	this.set('tween', {
							duration: 500,
							transition: myTransitionInicio.easeIn // This could have been also 'bounce:out'
						}).tween('opacity', '1');
		},
		'mouseleave': function() {
			 // Resets the tween and changes the element back to its original size
						this.set('tween', {}).tween('opacity', '0.7');
		}
	});
	
	$('imagen2Portada').addEvents({

		'mouseenter': function() {		
			    	this.set('tween', {
							duration: 500,
							transition: myTransitionInicio.easeIn // This could have been also 'bounce:out'
						}).tween('opacity', '1');
		},
		'mouseleave': function() {
			 // Resets the tween and changes the element back to its original size
						this.set('tween', {}).tween('opacity', '0.7');
		}
	});
	
	$('imagen3Portada').addEvents({

		'mouseenter': function() {		
			    	this.set('tween', {
							duration: 500,
							transition: myTransitionInicio.easeIn // This could have been also 'bounce:out'
						}).tween('opacity', '1');
		},
		'mouseleave': function() {
			 // Resets the tween and changes the element back to its original size
						this.set('tween', {}).tween('opacity', '0.7');
		}
	});
	
	$('imagen4Portada').addEvents({

		'mouseenter': function() {		
			    	this.set('tween', {
							duration: 500,
							transition: myTransitionInicio.easeIn // This could have been also 'bounce:out'
						}).tween('opacity', '1');
		},
		'mouseleave': function() {
			 // Resets the tween and changes the element back to its original size
						this.set('tween', {}).tween('opacity', '0.7');
		}
	});
	
	$('imagen4Portada').addEvents({

		'mouseenter': function() {		
			    	this.set('tween', {
							duration: 500,
							transition: myTransitionInicio.easeIn // This could have been also 'bounce:out'
						}).tween('opacity', '1');
		},
		'mouseleave': function() {
			 // Resets the tween and changes the element back to its original size
						this.set('tween', {}).tween('opacity', '0.7');
		}
	});
	
	$('imagen5Portada').addEvents({

		'mouseenter': function() {		
			    	this.set('tween', {
							duration: 500,
							transition: myTransitionInicio.easeIn // This could have been also 'bounce:out'
						}).tween('opacity', '1');
		},
		'mouseleave': function() {
			 // Resets the tween and changes the element back to its original size
						this.set('tween', {}).tween('opacity', '0.7');
		}
	});
	
	
	$('imagen6Portada').addEvents({

		'mouseenter': function() {		
			    	this.set('tween', {
							duration: 500,
							transition: myTransitionInicio.easeIn // This could have been also 'bounce:out'
						}).tween('opacity', '1');
		},
		'mouseleave': function() {
			 // Resets the tween and changes the element back to its original size
						this.set('tween', {}).tween('opacity', '0.7');
		}
	});
	
});
