fecharTips = function(){
	var browser=navigator.appName;
	var foot = document.getElementById('footnote');
	foot.style.display = 'block'; // A primeira linha do arquivo tooltips.css deve marcar ele elemento como display:none;
	if(foot){
		foot.className = 'cleanFootnote';
		
		if(browser=='Microsoft Internet Explorer'){
			var lista = foot.firstChild.childNodes;
		}else{
			var lista = foot.childNodes[1].childNodes;
		}
		for(a=0; a<lista.length; a++){
			if(lista[a].nodeType==1){
				lista[a].className = 'tooltipBlock';
				lista[a].style.display = 'none';
			}
		}
		
	}
}

function getTooltip(event){

fecharTips();

	var t = document.getElementsByTagName("*");
	
	for(a=0; a<t.length; a++){
		if(t[a].className=='tooltip'){
		
			t[a].className = 'interrogacao';
		
			var fechar;
			var abreTooltip = t[a].firstChild;
			var tip = abreTooltip.getAttribute('href',2);
			tip = tip.replace(/#/,'');
			var supTip = document.getElementById(tip);
			supTip.style.display = 'none';
			supTip.style.position = 'absolute';
			
			supTip.onmouseover = function(){
				clearTimeout(fechar);
			}
			supTip.onmouseout = function(){
				paraFechar = document.getElementById(this.id);
				fechar = setTimeout("paraFechar.style.display='none'",500);
				//fechar = setTimeout("fecharTips()",500);
			}
			
			abreTooltip.onclick = function(){
				return false;
			}
			abreTooltip.onmouseover = function(){
				fecharTips();
				var thisTip = this.getAttribute('href',2).replace(/#/,'');
				clearTimeout(fechar);
			}
			abreTooltip.onmousemove = function(event){
				var thisTip = this.getAttribute('href',2).replace(/#/,'');
				document.getElementById(thisTip).style.display='block';
				MouseCoord(event).toString(thisTip);
			}
			abreTooltip.onmouseout = function(){
				var thisTip = this.getAttribute('href',2).replace(/#/,'');
				paraFechar = document.getElementById(thisTip);
				fechar = setTimeout("paraFechar.style.display='none'",1000);
				//fechar = setTimeout("fecharTips()",1000);
			}
		}
	}
}
