	function enleve_bandeau(quoi){
		$("#bandeau1").animate({height: "10px"},1000,function(){
			$("#bandeau2").animate({height: "25px"},1000,function(){
			
				$("#aff_photos").animate({left: 886,top: 220 },1000);
				$("#voir_photos img, #voir_videos img").animate({width: 120});
				$("#aff_videos").animate({left: 886,top: 100 },1000,function(){			
				
					if(quoi == 'video'){
							voir_videos();
							setTimeout("ajust()",500);						
					}
					
					
					if(quoi == 'photo'){
							voir_photos();
							setTimeout("ajust()",500);						
					}
				
				});
			
			});
			//$("#voir_videos")
		
		});
	}
	
function voir_videos(){
	$("#photos").hide();
	$("#videos").show();
	
	$("#voir_videos").hide();
	$("#pas_voir_videos").show();
	
	$("#voir_photos").show();
	$("#pas_voir_photos").hide();
	
	
	
	setTimeout("ajust()",500);
}

function voir_photos(){
	$("#videos").hide();
	$("#photos").show();
	
	$("#voir_photos").hide();
	$("#pas_voir_photos").show();
	
	$("#voir_videos").show();
	$("#pas_voir_videos").hide();
	
	$("#pied img").hide();	
	
	setTimeout("ajust()",500);
}	

function ajust(){
	var Hg = document.getElementById('videos').scrollHeight;
		//if(Hg > 650){
		document.getElementById('cont').style.height = (Hg+150)+'px';
	//}
}
function re_ajust(){
	document.getElementById('cont').style.height = (600)+'px';
}
bandeau_petit = false;	
	
$(document).ready(function(){
	

//gestion de l'affichage videos et photos, jamais les deux en même temps
	$("#voir_videos").click(function(){
		if(bandeau_petit == true){
			voir_videos();			
		} else { // si le bandeau est grand on le diminue d'abord
			enleve_bandeau('video');
			bandeau_petit = true;
		}
		$("#pied img").show();	
	});
	
	$("#pas_voir_videos").click(function(){
		$("#videos").hide(500);
		$("#voir_videos").show();
		$("#pas_voir_videos").hide();
		re_ajust();	
	});
	
	
	$("#voir_photos").click(function(){
		if(bandeau_petit == true){
			voir_photos();			
		} else { // si le bandeau est grand on le diminue d'abord
			enleve_bandeau('photo');
			bandeau_petit = true;
		}	
	});
	/*$("#voir_photos").bind("click",function(){
		$("#voir_photos img").animate({width: 120});
		$("#voir_photos").unbind;
	
	});*/
	
	
	$("#pas_voir_photos").click(function(){
		$("#photos").hide(500);
		$("#voir_photos").show();
		$("#pas_voir_photos").hide();
		$("#pied img").show();
		re_ajust();	
	});
	
	
	$("#menu_photo a").click(function(){
		$("#menu_photo img").animate({width: 100,margin: 1},1000);
		$("#menu_photo a").css({margin: 3});
		$("#menu_photo").animate({width: 120},1000);
		$("#menu_photo a span").hide();
	});
		

});	
