// JavaScript Document
ativoinstitu = null;
cellAtivoinstitu = null;
timeIdinstitu = null;
document.onclick = new Function("showinstitu()");
function showinstitu(obj,name)
{
	fade = name;
	name = document.getElementById(name);
	if(ativoinstitu!=null) { 
		ativoinstitu.style.visibility = "hidden"; 
		ativoinstitu=null
	}
	if(obj)
	{
		cellAtivoinstitu = obj;
	}
	if(timeIdinstitu!=null){ clearTimeout(timeIdinstitu); }
	if(name)
	{
	var newX = findPosX(obj);
	var newY = findPosY(obj);
	//var x = new getObj(name);
		//document.getElementById("conteudo").style.zIndex = "1";
		//document.getElementById("conteudoespaco").style.zIndex = "1";
		//document.getElementById("msghomeflash").style.zIndex = "1";
		name.style.zIndex = 300;
		name.style.visibility = "visible";
		name.style.top = newY + 4 + 'px';
		name.style.left = newX + 60 + 'px';
	
		//colorfade(fade);
		ativoinstitu = name;
	}
}
function showinstitu2(obj,name)
{
	fade = name;
	name = document.getElementById(name);
	if(ativoinstitu!=null) { 
		ativoinstitu.style.visibility = "hidden"; 
		ativoinstitu=null
	}
	if(obj)
	{
		cellAtivoinstitu = obj;
	}
	if(timeIdinstitu!=null){ clearTimeout(timeIdinstitu); }
	if(name)
	{
	var newX = findPosX(obj);
	var newY = findPosY(obj);
		name.style.zIndex = 300;
		name.style.visibility = "visible";
		name.style.top = newY + 4 + 'px';
		name.style.left = newX + 100 + 'px';
	
		//colorfade(fade);
		ativoinstitu = name;
	}
}

function timerHidePopinstitu()
{
	if(ativoinstitu!=null)
	{
		timeIdinstitu = setTimeout("ativoinstitu.style.visibility = 'hidden'; timeIdinstitu=null; ativoinstitu=null;",500);
	}
}



// JavaScript Document
ativodois = null;
cellAtivodois = null;
timeIddois = null;
document.onclick = new Function("showdois()");
function showdois(obj,name)
{
	fade = name;
	name = document.getElementById(name);
	if(ativodois!=null) { 
		ativodois.style.visibility = "hidden"; 
		ativodois=null
	}
	if(obj)
	{
		cellAtivodois = obj;
	}
	if(timeIddois!=null){ clearTimeout(timeIddois); }
	if(name)
	{
	var newX = findPosX(obj);
	var newY = findPosY(obj);
	//var x = new getObj(name);
		//document.getElementById("conteudo").style.zIndex = "1";
		//document.getElementById("conteudoespaco").style.zIndex = "1";
		//document.getElementById("msghomeflash").style.zIndex = "1";
		name.style.zIndex = 300;
		name.style.visibility = "visible";
		name.style.top = newY + -10 + 'px';
		name.style.left = newX + 128 + 'px';
	
		//colorfade(fade);
		ativodois = name;
	}
}
function timerHidePopdois()
{
	if(ativodois!=null)
	{
		timeIddois = setTimeout("ativodois.style.visibility = 'hidden'; timeIddois=null; ativodois=null;",500);
	}
}