window.addEvent('domready', function() {
	var el = $('myElement');
	
	// MooTools is able to handle effects without the use of a wrapper,
	// so you are able to do effects with just one easy line.
	
	//FIRST EXAMPLE
	
	// There are different ways to add a fading opacity effect to an element click
	
	
	// Long version

	
	$('tweenPhoto1').addEvent('click', function(e) {
		e.stop();
		el.fade(1);
	});
	
	$('tweenOpacity1').addEvent('click', function(e) {
		e.stop();
		el.fade(0.3);
	});
});

window.addEvent('domready', function() {
	var el = $('myPhotos');
	
	// MooTools is able to handle effects without the use of a wrapper,
	// so you are able to do effects with just one easy line.
	
	//FIRST EXAMPLE
	
	// There are different ways to add a fading opacity effect to an element click
	
	
	// Long version

	
	$('tweenOpacity1').addEvent('click', function(e) {
		e.stop();
		el.fade(1);
	});
		$('tweenPhoto1').addEvent('click', function(e) {
		e.stop();
		el.fade(0.3);
	});
});

