function iecompattestPopup(){
	return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function centerLayersPopup() {

	ie5=document.all&&document.getElementById
	ns6=document.getElementById&&!document.all
	
	winWidth = ns6? window.innerWidth-20 : iecompattestPopup().clientWidth;
	winHeight = ns6? window.innerHeight-20 : iecompattestPopup().clientHeight;	
	
	layerWidth		= document.getElementById("AnimLayer").style.width;	
	layerWidth		= layerWidth.substr(0,layerWidth.length-2);
	
	layerHeight 	= document.getElementById("AnimLayer").style.height;	
	layerHeight		= layerHeight.substr(0,layerHeight.length-2);
	
		
	winX = Math.ceil((winWidth - layerWidth) / 2);
	winY = Math.ceil((winHeight - layerHeight) / 2);
	
	if (winX < 24) {
		winX = 24;
	}
	
	if (winY < 0) {
		winY = 0;
	}
	
	// ANIMAÇÃO DA HOME
	document.getElementById("AnimLayer").style.left = winX;

}

function mostraAnimacao() {	
	//centerLayersPopup();
	document.getElementById("AnimLayer").style.display = 'inline';
}
function escondeAnimacao() {	
	document.getElementById("AnimLayer").style.visibility = 'hidden';
}

function esconder(tempo)
{
	setTimeout('escondeAnimacao()',tempo);	
}
//window.onresize = function () { centerLayersPopup(); }

