window.addEvent('domready', function(){
	$$('.moo').each(function(el) {
		//add click event
		el.addEvent('click', function(e) {
			e.stop();
			var req = new Request.HTML({url: el.get('href'), 
				method:'get',
				onSuccess: function(html) {
					//Clear the text currently inside the results div.
					$('right_side').set('text', '');
					//Inject the new DOM elements into the results div.
					$('right_side').adopt(html);
				},
				onFailure: function() {
					$('right_side').set('text', 'The request failed.');
				}
			}).send();
		});
	});
})

