function cambiaColor(idCapa){	
	
	switch(idCapa){		
		case 1:
				capa1.style.backgroundColor="black";	
				capa2.style.backgroundColor="#676767";					
				capa3.style.backgroundColor="#676767";
				capa4.style.backgroundColor="#676767";					
				capa5.style.backgroundColor="#676767";					
				capa6.style.backgroundColor="#676767";	
				capa7.style.backgroundColor="#676767";					
				capa8.style.backgroundColor="#676767";					
				capa9.style.backgroundColor="#676767";	
				capa10.style.backgroundColor="#676767";									
				Ocultar()
				break;
		case 2:
				capa2.style.backgroundColor="black";	
				capa1.style.backgroundColor="#676767";					
				capa3.style.backgroundColor="#676767";
				capa4.style.backgroundColor="#676767";					
				capa5.style.backgroundColor="#676767";					
				capa6.style.backgroundColor="#676767";					
				capa7.style.backgroundColor="#676767";					
				capa8.style.backgroundColor="#676767";					
				capa9.style.backgroundColor="#676767";					
				capa10.style.backgroundColor="#676767";									
				Ocultar();
				break;
		case 3:
				capa3.style.backgroundColor="black";	
				capa1.style.backgroundColor="#676767";					
				capa2.style.backgroundColor="#676767";
				capa4.style.backgroundColor="#676767";					
				capa5.style.backgroundColor="#676767";					
				capa6.style.backgroundColor="#676767";
				capa7.style.backgroundColor="#676767";					
				capa8.style.backgroundColor="#676767";					
				capa9.style.backgroundColor="#676767";					
				capa10.style.backgroundColor="#676767";									
				Ocultar();				
				break;
		case 4:
				capa4.style.backgroundColor="black";				
				capa1.style.backgroundColor="#676767";					
				capa3.style.backgroundColor="#676767";
				capa2.style.backgroundColor="#676767";					
				capa5.style.backgroundColor="#676767";					
				capa6.style.backgroundColor="#676767";	
				capa10.style.backgroundColor="#676767";									
				Mostrar();				
				break;
		case 5:
				capa5.style.backgroundColor="black";	
				capa1.style.backgroundColor="#676767";					
				capa3.style.backgroundColor="#676767";
				capa4.style.backgroundColor="#676767";					
				capa2.style.backgroundColor="#676767";					
				capa6.style.backgroundColor="#676767";					
				capa7.style.backgroundColor="#676767";					
				capa8.style.backgroundColor="#676767";					
				capa9.style.backgroundColor="#676767";					
				capa10.style.backgroundColor="#676767";									
				Ocultar();
				break;	
		case 6:
				capa6.style.backgroundColor="black";	
				capa1.style.backgroundColor="#676767";					
				capa2.style.backgroundColor="#676767";					
				capa3.style.backgroundColor="#676767";
				capa4.style.backgroundColor="#676767";					
				capa5.style.backgroundColor="#676767";
				capa7.style.backgroundColor="#676767";					
				capa8.style.backgroundColor="#676767";					
				capa9.style.backgroundColor="#676767";
				capa10.style.backgroundColor="#676767";														
				Ocultar();									
				break;
		case 7:
				capa4.style.backgroundColor="black";	
				capa7.style.backgroundColor="black";	
				capa1.style.backgroundColor="#676767";					
				capa2.style.backgroundColor="#676767";					
				capa3.style.backgroundColor="#676767";
				capa5.style.backgroundColor="#676767";									
				capa6.style.backgroundColor="#676767";					
				capa8.style.backgroundColor="#676767";					
				capa9.style.backgroundColor="#676767";	
				capa10.style.backgroundColor="#676767";													
				break;	
		case 8:
				capa4.style.backgroundColor="black";	
				capa8.style.backgroundColor="black";	
				capa1.style.backgroundColor="#676767";					
				capa2.style.backgroundColor="#676767";					
				capa3.style.backgroundColor="#676767";
				capa5.style.backgroundColor="#676767";									
				capa6.style.backgroundColor="#676767";					
				capa7.style.backgroundColor="#676767";					
				capa9.style.backgroundColor="#676767";
				capa10.style.backgroundColor="#676767";														
				break;
		case 9:
				capa4.style.backgroundColor="black";	
				capa9.style.backgroundColor="black";	
				capa1.style.backgroundColor="#676767";					
				capa2.style.backgroundColor="#676767";					
				capa3.style.backgroundColor="#676767";
				capa5.style.backgroundColor="#676767";									
				capa6.style.backgroundColor="#676767";					
				capa8.style.backgroundColor="#676767";					
				capa7.style.backgroundColor="#676767";
				capa10.style.backgroundColor="#676767";														
				break;	
		case 10:
				capa10.style.backgroundColor="black";	
				capa1.style.backgroundColor="#676767";					
				capa2.style.backgroundColor="#676767";					
				capa3.style.backgroundColor="#676767";
				capa4.style.backgroundColor="#676767";					
				capa5.style.backgroundColor="#676767";					
				capa6.style.backgroundColor="#676767";	
				capa7.style.backgroundColor="#676767";					
				capa8.style.backgroundColor="#676767";					
				capa9.style.backgroundColor="#676767";				
				Ocultar()
				break;	
	}
	
}

		var ns4 = (document.layers)? true:false
		var ie4 = (document.all)? true:false
function Mostrar () {	
	if (ns4){				  
	  	capa7.style.visibility = "show";  
	    capa8.style.visibility = "show";  
	    capa9.style.visibility = "show";  
	}else {
		 capa7.style.visibility = "visible";  
		 capa8.style.visibility = "visible";  
		 capa9.style.visibility = "visible";  
	}
}

function Ocultar (){
	if (ns4){
		capa7.style.visibility = "hide";  
		capa8.style.visibility = "hide";  
		capa9.style.visibility = "hide";  
	 }else{				
		capa7.style.visibility = "hidden";  
	    capa8.style.visibility = "hidden";  
	    capa9.style.visibility = "hidden";  
	}
}

//Abrimos un popup con la imagen
function verPopUp(popup,x,y) { 		
        URL = popup;                 
        eval("page"+" = window.open(URL, '" + "', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0,width=' + x + ',height=' + y + ',left = 0,top = 0');");                                 
}

