// JavaScript Document

//funcciones  para popups 


//para mostrar
function showMap(ident){
	var mapdiv=document.getElementById(ident);
	
	
	mapdiv.style.display="block";


var version=navigator.userAgent

	var posic=version.indexOf("MSIE");
	var verNum=version.charAt(posic+5);

if(verNum<7) { //test for MSIE x.x;
		 IEsetOpacity(0,ident);
			var alto=document.body.offsetHeight;
			mapdiv.style.height=alto+"px";
			var ancho=document.body.offsetWidth;
			mapdiv.style.width=ancho+"px";
			
			setTimeout('IEsetOpacity(10,"'+ident+'")',150);
			setTimeout('IEsetOpacity(30,"'+ident+'")',300);
			setTimeout('IEsetOpacity(50,"'+ident+'")',450);
			setTimeout('IEsetOpacity(70,"'+ident+'")',600);
			setTimeout('IEsetOpacity(80,"'+ident+'")',750);
			setTimeout('IEsetOpacity(90,"'+ident+'")',900);
		}
	else{
			setOpacity(0.1,ident);
	
			setTimeout('setOpacity(0.1,"'+ident+'")',100);
			setTimeout('setOpacity(0.2,"'+ident+'")',150);
			setTimeout('setOpacity(0.4,"'+ident+'")',200);
			setTimeout('setOpacity(0.6,"'+ident+'")',250);
			setTimeout('setOpacity(0.9,"'+ident+'")',300);
			setTimeout('setOpacity(1,"'+ident+'")',350);
		}
 

}


//para ocultar
function hideMap(ident){
	
	var mapdiv=document.getElementById(ident);
	

	var nav=navigator.appName;
//	
	if(nav=="Netscape" || nav=="opera"){
	
		setTimeout('setOpacity(0.8,"'+ident+'")',100);
		setTimeout('setOpacity(0.6,"'+ident+'")',150);
		setTimeout('setOpacity(0.4,"'+ident+'")',200);
		setTimeout('setOpacity(0.2,"'+ident+'")',250);
		setTimeout('MapDisplay("'+ident+'")',300);
	}else{
		setTimeout('IEsetOpacity(90,"'+ident+'")',100);
		setTimeout('IEsetOpacity(70,"'+ident+'")',150);
		setTimeout('IEsetOpacity(50,"'+ident+'")',200);
		setTimeout('IEsetOpacity(30,"'+ident+'")',250);
		setTimeout('MapDisplay("'+ident+'")',300);
	}
}

var opacidad=0;

//para establecer la opacidad
function setOpacity(op, ident){ var mapdiv=document.getElementById(ident); mapdiv.style.opacity=op; }




//para ocultar el div completamente
function MapDisplay(ident){
	var mapdiv=document.getElementById(ident);	
	mapdiv.style.display="none";

}

