$(document).ready(function(){

	$("#b1,#b2,#b3,#b4").slideDown(2000,function(){
	});

	$(".clickable").click(function(){
		window.location = '?p='+$(this).attr('id');
	});
	
	$("#logo_bouf").click(function(){
		window.location = '?p=home';
	});

	$(".clickable").hover(function(){
		
		// in
		$(this).animate({
			opacity: '0.5'
		},100);
		
	},function(){
		
		// out
		$(this).animate({
			opacity: '1'
		},500);
		
	});

	$(".thumbc").hover(function(){
		
		// in
		$(this).animate({
			opacity: '1'
		},100);
		
	},function(){
		
		// out
		$(this).animate({
			opacity: '0.5'
		},500);
		
	});

	$("#FB").hover(function(){
		$(this).attr('src','img/fb_over.png');
	},function(){
		$(this).attr('src','img/fb.png');
	});

	$("#logo_bouf").hover(function(){
		
		// in
		$(this).attr('src','img/logo_bouf_glow.png');
		
	},function(){
		
		// out
		$(this).attr('src','img/logo_bouf.png');
		
	});
		
	$(".thumbc").each(function(){
		$(this).animate({opacity: '0.5'},10);
	});
		
	$(".thumbc").click(function(){
		s = $(this).find('img').attr('id');
		s = "img/fotos/"+s;
		
		$('#foto').attr('src',s);
	});
	
	
});


