// JavaScript Document
function cache(){
	$('descriptif1').hide();
	$('descriptif2').hide();
	$('descriptif3').hide();
}
Event.observe(window,'load',function(event){
	Event.observe('bouton1','click',function(event){
		cache();
		$('descriptif1').show();
	});
	Event.observe('bouton2','click',function(event){
		cache();
		$('descriptif2').show();
	});
	Event.observe('bouton3','click',function(event){
		cache();
		$('descriptif3').show();
	});
	
	Event.observe('photo1','click',function(event){
		cache();
		$('descriptif1').show();
	});
	Event.observe('photo2','click',function(event){
		cache();
		$('descriptif2').show();
	});
	Event.observe('photo3','click',function(event){
		cache();
		$('descriptif3').show();
	});
	
	Event.observe('bouton1','mouseover',function(event){
		$('bouton1').src='if/btn-off.png';
	});
	Event.observe('bouton1','mouseout',function(event){
		$('bouton1').src='if/btn-on.png';
	});
	
	Event.observe('bouton2','mouseover',function(event){
		$('bouton2').src='if/btn-off.png';
	});
	Event.observe('bouton2','mouseout',function(event){
		$('bouton2').src='if/btn-on.png';
	});
	
	Event.observe('bouton3','mouseover',function(event){
		$('bouton3').src='if/btn-off.png';
	});
	Event.observe('bouton3','mouseout',function(event){
		$('bouton3').src='if/btn-on.png';
	});
	
	Event.observe('photo1','mouseover',function(event){
		$('bouton1').src='if/btn-off.png';
	});
	Event.observe('photo1','mouseout',function(event){
		$('bouton1').src='if/btn-on.png';
	});
	
	Event.observe('photo2','mouseover',function(event){
		$('bouton2').src='if/btn-off.png';
	});
	Event.observe('photo2','mouseout',function(event){
		$('bouton2').src='if/btn-on.png';
	});
	
	Event.observe('photo3','mouseover',function(event){
		$('bouton3').src='if/btn-off.png';
	});
	Event.observe('photo3','mouseout',function(event){
		$('bouton3').src='if/btn-on.png';
	});
});