Ajax.Responders.register({
	onCreate: function() {
		$("carregando").style.top = (document.body.clientHeight/2)+20+"px";
		$("carregando").style.left = (document.body.clientWidth/2)-35+"px";
		$("carregando").show();
		Ajax.activeRequestCount++;
	},
	onComplete: function() {
		Ajax.activeRequestCount--;
		if(Ajax.activeRequestCount == 0)
			$("carregando").hide();
		}
});

getContent = function(url){
	var url = 'conteudo/'+url+'.php';
	
	var myAjax = new Ajax.Updater(
		'conteudo',
		url, 
		{
			asynchronous: true,
			onComplete: pageTracker._trackPageview(url),
			evalScripts: true
		});
}