window.addEvent('domready', function(){
	$$('.thumb img').addEvent('click', function(ev)
	{
		ev = new Event(ev).stop();
		dato = this.get('id').split('.');
		
		var req = new Request({

			url: url,
			data: 'ilu='+dato[1]+'&tipo='+dato[0],

			onSuccess: function(txt){
				$('principal').set('html', txt);
			},

			// Our request will most likely succeed, but just in case, we'll add an
			// onFailure method which will let the user know what happened.
			onFailure: function(){
				$('principal').set('text', 'The request failed.');
			}

		}).send();
		
	});
	
	

});
