window.addEvent('domready', function() {
	var el = $('infopopup');
	
	// 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
	
	// Short version
	$('fadeOpacityOut').addEvent('click', el.fade.bind(el, [0]));
	$('fadeOpacityIn').addEvent('click', el.fade.bind(el, [1]));
});