var mes = 4;
var i;
ns4 = (document.layers)? true:false;

ie4 = (document.all)? true:false;

function cargar(){
var imagenes = new Array("image/fotoRot2G.jpg", "image/fotoRot3G.jpg", "image/fotoUrbiltek2G.jpg", "image/fotoStandU2G.jpg", "image/fotoStandO2G.jpg", "image/fotoStandO3G.jpg", "image/fotoEve2G.jpg", "image/fotoStandO3G.jpg"); 
var lista_imagenes = new Array();	

for(i in imagenes){ 
     lista_imagenes[i] = new Image(); 
     lista_imagenes[i].src = imagenes[i]; 

	}

}




function muestra(capa) {
	
elementos = document.body.getElementsByTagName("div");

for (var i = 0, total = elementos.length; i < total; i ++){
if(elementos[i].id!='prin'){
 		if (ns4) {
 		elementos[i].visibility = "hide";
		 }

		else {
 		elementos[i].style.visibility = "hidden";
		}
	}
}

if (ns4) {
capaobj=document.layers.capa;
 capaobj.visibility = "show";
 }

 else {
 capaobj= document.getElementById(capa);
 capaobj.style.visibility = "visible";
}

};

function oculta() {
	
elementos = document.body.getElementsByTagName("div");

for (var i = 0, total = elementos.length; i < total; i ++){
if(elementos[i].id!='prin'){
 		if (ns4) {
 		elementos[i].visibility = "hide";
		 }

		else {
 		elementos[i].style.visibility = "hidden";
		}
	}
}



};

function cambiar (nombre, nombre2) 
{document.images[nombre].src = "image/"+nombre2+"2.gif";
nombreC="C"+nombre;
muestra(nombreC);
}

function cambiar2 (nombre, nombre2) 
{document.images[nombre].src = "image/"+nombre2+".gif";
}

function cambiarF (nombre, nombre2) 
{document.images[nombre].src = "image/"+nombre2+"G.gif";
}

