function gId(id) {return document.getElementById(id);}
function sL(layerName){gId(layerName).style.display = "block";}
function hL(layerName){gId(layerName).style.display = "none";}

function hAll() {}

var timer;

function ativar(layer) {
	hAll();
	gId(layer).style.display = "block";
	clearTimeout(timer);
}

function desativar() {
	timer = window.setTimeout('hAll()',500);
}