// JavaScript Document
var baseopacity=0

function showtext_x(thetext){
if (!document.getElementById)
return
textcontainerobj=document.getElementById("tabledescription")
browserdetect=textcontainerobj.filters? "ie" : typeof textcontainerobj.style.MozOpacity=="string"? "mozilla" : ""
instantset(baseopacity)
document.getElementById("tabledescription").innerHTML=thetext
highlighting=setInterval("gradualfade(textcontainerobj)",50)
}

function hidetext_x(){
cleartimer()
instantset(baseopacity)
}

function instantset(degree){
if (browserdetect=="mozilla")
textcontainerobj.style.MozOpacity=degree/100
else if (browserdetect=="ie")
textcontainerobj.filters.alpha.opacity=degree
else if (document.getElementById && baseopacity==0)
document.getElementById("tabledescription").innerHTML=""
}

function cleartimer(){
if (window.highlighting) clearInterval(highlighting)
}

function gradualfade(cur2){
if (browserdetect=="mozilla" && cur2.style.MozOpacity<1)
cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.2, 0.99)
else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=20
else if (window.highlighting)
clearInterval(highlighting)
}
verificaMenu="";
function pone(arg)
{
	if(arg==1)
	{
		mostrar=true;
		MM_showHideLayers('coolmenu','','show');
		clearInterval(verificaMenu);
		verificaMenu=setInterval(saca,500);
	}else
	{	
		clearInterval(verificaMenu);
		verificaMenu=setInterval(saca,500);
		mostrar=false;
	}
}

function saca(){
	if(!mostrar)
	{
		mostrar=true;
		MM_showHideLayers('coolmenu','','hide');
		clearInterval(verificaMenu);
	}
}

document.getElementById('sitios_de_interes').onmouseover=function()
{
    
   positionMenu();
	pone(1);
};

document.getElementById('sitios_de_interes').onmouseout=function()
{
	pone();
};
function positionMenu(){
		positionLayer(window.document.getElementById('sitios_de_interes'),'coolmenu');
}
