
//Funciones para el menu.php

	function ocultarMostrar(tabla, mostrar) {
		if (tabla = document.getElementById(tabla)) {
			if (null == mostrar) mostrar= tabla.style.display == 'none';
			tabla.style.display = (mostrar ? 'block' : 'none');
		}
		document.getElementById("tabla2").style.display ='none';
	}
  
	function cambiarImagen(imagen,numero){
    var fuente="images/textos/menu/proyectos/proyecto"+numero+"-on.jpg";
    imagen.src=fuente;    
  }
  
  function regresarImagen(imagen,numero){
    var fuente="images/textos/menu/proyectos/proyecto"+numero+".jpg";
    imagen.src=fuente;    
  }	
	
	function ocultarMostrar2(tabla2, mostrar) {
		if (tabla = document.getElementById("tabla2")) {
			if (null == mostrar) mostrar= tabla.style.display=='none';
			tabla.style.display = (mostrar ? 'block' : 'none');
		}
		document.getElementById("tabla").style.display ='none';
	}

  function cambiarImagen2(imagen,numero){
    var fuente="images/textos/menu/colecciones/coleccion"+numero+"-on.jpg";
    imagen.src=fuente;    
  }
  
  function regresarImagen2(imagen,numero){
    var fuente="images/textos/menu/colecciones/coleccion"+numero+".jpg";
    imagen.src=fuente;    
  }  
  function cambiarImagen2En(imagen,numero){
	    var fuente="images/textos/menu/colecciones/en/collection"+numero+"-on.jpg";
	    imagen.src=fuente;    
	  }
	  
	  function regresarImagen2En(imagen,numero){
	    var fuente="images/textos/menu/colecciones/en/collection"+numero+".jpg";
	    imagen.src=fuente;    
	  }  
		
//Funciones para el proyectos.php

	/*function mostrarTabla() {
		tabla = document.getElementById("tabla");
		tabla.style.display ='';
    ocultar();
	}*/
  
//Funciones para el proyectos.php

	function mostrarTabla2() {
		tabla = document.getElementById("tabla2");
		tabla.style.display ='';
    ocultar();
	}
  
//Funciones para el efecto de capas que se usa en todas las paginas de fusca


  var tamanio= 768;
  var alpha=100;
  var contador;

  function ocultar(){
    contador=setInterval("cambiarTamanio()",20);
  }
  
  function tamanioOriginal(){
    //document.getElementById("div1").style.width = window.screen.width;
    //document.getElementById("div1").style.height = window.screen.height;
    //setTimeout("ocultar()",500);
    return true;
  }
  
  function cambiarTamanio(){
    
    //Esto lo agregue pare efecto de desvanecimiento
    
    /*if(alpha<1){
      clearInterval(contador);
      document.getElementById("div1").style.height= 0;
    }
    document.getElementById("div1").style.opacity = alpha/100;
    document.getElementById("div1").style.filter = 'alpha(opacity=' + alpha + ')';    
    alpha=alpha-2;
*/
    /*
     
    //Esto lo agregue para el efecto de telon
    
    tamanio=tamanio-30
    if(tamanio<24){
      clearInterval(contador);      
    }
    document.getElementById("div1").style.height = tamanio + "px";
    tamanio=tamanio-30;*/
  }