$(document).ready(function() {
	
	$("a#example1").fancybox();
	$("#folder").fancybox({
	'autoScale'		: false,
	'height'		: 972,
	'width' 		: 550,
	'overlayShow'	: true
	});

	//GALERIA 
	 	$("#foto1").live('click', function(){
			$.get('fotos/foto1.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		
		$("#foto2").live('click', function(){
			$.get('fotos/foto2.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		
		$("#foto3").live('click', function(){
			$.get('fotos/foto3.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		
		$("#foto4").live('click', function(){
			$.get('fotos/foto4.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		
		$("#foto5").live('click', function(){
			$.get('fotos/foto5.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		
		$("#foto6").live('click', function(){
			$.get('fotos/foto6.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		
		$("#foto7").live('click', function(){
			$.get('fotos/foto7.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		
		$("#foto8").live('click', function(){
			$.get('fotos/foto8.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto9").live('click', function(){
			$.get('fotos/foto9.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto10").live('click', function(){
			$.get('fotos/foto10.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto11").live('click', function(){
			$.get('fotos/foto11.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto12").live('click', function(){
			$.get('fotos/foto12.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto13").live('click', function(){
			$.get('fotos/foto13.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto14").live('click', function(){
			$.get('fotos/foto14.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto15").live('click', function(){
			$.get('fotos/foto15.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto16").live('click', function(){
			$.get('fotos/foto16.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto17").live('click', function(){
			$.get('fotos/foto17.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto18").live('click', function(){
			$.get('fotos/foto18.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto19").live('click', function(){
			$.get('fotos/foto19.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto20").live('click', function(){
			$.get('fotos/foto20.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto21").live('click', function(){
			$.get('fotos/foto21.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto22").live('click', function(){
			$.get('fotos/foto22.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto23").live('click', function(){
			$.get('fotos/foto23.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto24").live('click', function(){
			$.get('fotos/foto24.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto25").live('click', function(){
			$.get('fotos/foto25.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto26").live('click', function(){
			$.get('fotos/foto26.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto27").live('click', function(){
			$.get('fotos/foto27.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto28").live('click', function(){
			$.get('fotos/foto28.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto29").live('click', function(){
			$.get('fotos/foto29.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto30").live('click', function(){
			$.get('fotos/foto30.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto31").live('click', function(){
			$.get('fotos/foto31.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto32").live('click', function(){
			$.get('fotos/foto32.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto33").live('click', function(){
			$.get('fotos/foto33.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});

		$("#foto34").live('click', function(){
			$.get('fotos/foto34.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});

		$("#foto35").live('click', function(){
			$.get('fotos/foto35.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		$("#foto36").live('click', function(){
			$.get('fotos/foto36.html', function(data){
				$(".foto").show();
				$(".foto").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		//PAGINAÇÃO
		$("#anterior").live('click', function(){
			$.get('gal1.php', function(data){
				$(".thumbs").show();
				$(".thumbs").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		$("#anterior1").live('click', function(){
			$.get('gal2.php', function(data){
				$(".thumbs").show();
				$(".thumbs").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		$("#anterior2").live('click', function(){
			$.get('gal3.php', function(data){
				$(".thumbs").show();
				$(".thumbs").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		$("#proxima").live('click', function(){
			$.get('gal2.php', function(data){
				$(".thumbs").show();
				$(".thumbs").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		$("#proxima1").live('click', function(){
			$.get('gal3.php', function(data){
				$(".thumbs").show();
				$(".thumbs").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		$("#proxima2").live('click', function(){
			$.get('gal4.php', function(data){
				$(".thumbs").show();
				$(".thumbs").html(data);
				$("a#example1").fancybox();
			});
			return false;
		});
		
		//BANNER	
		 $('#slider').nivoSlider({
			effect: 'fade'
		 });
	
});
