







/*******
* Coloca una pàgina amb html o text (UTF8) dins d'un element
* Necessita Mootools
********/
function innerPag(file, nav){
	var req = new Request.HTML({url: file, 
		onSuccess: function(html) {
			//Clear the text currently inside the results div.
			$(nav).set('text', '');
			//Inject the new DOM elements into the results div.
			$(nav).adopt(html);
		},
		//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() {
			$(nav).set('text', 'The request failed.');
		}
	});	
	req.send();
}

