// JavaScript Document
var w;
w=$(document);
w.ready(inicio);
		

var x=0;


function carrusel()
	{
	x++
	if(x==4)
	{
	x=1;
	}
	
	switch(x){
	case 1:
	$('.capa1').fadeOut("slow");
	break
	
	case 2:
	$('.capa2').fadeOut("slow");
	break
	case 3:
	
	$('.capa1').fadeIn("slow");
	$('.capa2').fadeIn("slow");
	
	break
	}
	}
	
	
function ocultacapa(capa){$(capa).hide();}
function muestracapa(capa){$(capa).show(); $("#boton").hide();}
	
	
	function inicio(){
	timer = setInterval("carrusel()", 5000);
	
		/*//Ocultar imagen
		$(".imagen").mouseover(function(){
		$(this).stop().fadeTo(100,0.4);
		});
		//Mostrar imagen
		$(".imagen").mouseout(function(){
		$(this).stop().fadeTo(100,1.0);});
		*/
	
  
  
  ocultacapa("#masfotos");
  
  
  
 
		
	
	}

	


