
function openReceita(url){
	var ajax = new Request();
	var callback = function(str){
		windowReceita(str);
	}
	ajax.doGet(url, callback, "text");
}

function windowReceita(str){
	if (!document.getElementById("receita")){
		var div = document.createElement("div");
		div.id="receita";
		div.innerHTML = str;	
		document.body.appendChild(div);
		molLoading = new fx.Opacity("receita",{duration:150});
		molLoading.hide();
		molLoading.custom(0,1);
	} else {
		molLoading.custom(0,1);
	}
}
function fecharReceita(){
	molLoading.custom(1,0);
}
