



// --------------------------------------------------
function showLoading(){
// --------------------------------------------------
	document.body.style.cursor = 'wait';
	document.getElementById('loading').style.display = 'block';
};




// --------------------------------------------------
function hideLoading(){
// --------------------------------------------------
	document.body.style.cursor = '';
	document.getElementById('loading').style.display = 'none';
};








// --------------------------------------------------
// Top Menù
// --------------------------------------------------

var hdIn = undefined;
var hdTo = 50;
var sbCt = undefined;
var shIn = undefined;
var shTo = 25;



// --------------------------------------------------
function shSb(a,b){
// --------------------------------------------------
	if(b == undefined) b=0;
	ct(hdIn);
	if(b){
		if(sbCt == undefined) sbCt = document.getElementsByName('tpMn').length;
		for(i = 1; i <= sbCt; i++){
			eval("document.getElementById('sm" + i + "').style.visibility='hidden';");
		}		
		eval("document.getElementById('" + a + "').style.visibility='visible';");
	} else {
		shIn = setTimeout("shSb('" + a + "',1)", shTo);
	}
}

// --------------------------------------------------
function hdSb(a,b){
// --------------------------------------------------
	if(b == undefined) b=0;
	ct(shIn);
	if(b){
		eval("document.getElementById('" + a + "').style.visibility='hidden';");
	} else {
		hdIn = setTimeout("hdSb('" + a + "',1)", hdTo);
	}
}

// --------------------------------------------------
function ct(a){
// --------------------------------------------------
	clearTimeout(a);
}





// --------------------------------------------------
function openxinha(fId, tId){
// --------------------------------------------------
	var xh = window.open("/__rte.php?fId="+fId+"&tId="+tId, "rte");
}





