var move_scroll='0';

function enable_scroll(){
	if(move_scroll=='1'){
		document.getElementById('bh_presentation_corp').style.overflow='auto';
		document.getElementById('bh_frame_tarifs').style.overflow='auto';
		document.getElementById('avis_conteneur').style.overflow='auto';
	}
	--move_scroll;
}

function disable_scroll(){
	document.getElementById('bh_presentation_corp').style.overflow='hidden';
	document.getElementById('bh_frame_tarifs').style.overflow='hidden';
	document.getElementById('avis_conteneur').style.overflow='hidden';
}


	var bh_frame = new Fx.Scroll('bh_frame', {
	wait: false,
	duration: 1500,
	offset: {'x': 0, 'y': 0},
	transition: Fx.Transitions.Quad.easeInOut
});
 
 
function go_bh_a(event){
	disable_scroll();
	bh_frame.scrollTo(0,0);
	++move_scroll;
	setTimeout("enable_scroll()",1500);
}

 
function go_bh_b(event){
	disable_scroll();
	bh_frame.scrollTo(689,0);
	++move_scroll;
	setTimeout("enable_scroll()",1500);
}
 
function go_bh_c(event){
	disable_scroll();
	bh_frame.scrollTo(1378,0);
	++move_scroll;
	setTimeout("enable_scroll()",1500);
}
 
function go_bh_d(event){
	disable_scroll();
	bh_frame.scrollTo(2067,0);
	++move_scroll;
	setTimeout("enable_scroll()",1500);
}
 
function go_bh_e(event){
	disable_scroll();
	bh_frame.scrollTo(2756,0);
	++move_scroll;
	setTimeout("enable_scroll()",1500);
}
 
function go_bh_f(event){
	disable_scroll();
	bh_frame.scrollTo(3445,0);
	++move_scroll;
	setTimeout("enable_scroll()",1500);
}
 
function go_bh_g(event){
	disable_scroll();
	bh_frame.scrollTo(4134,0);
	++move_scroll;
	setTimeout("enable_scroll()",1500);
}
 
function go_bh_h(event){
	disable_scroll();
	bh_frame.scrollTo(4823,0);
	++move_scroll;
	setTimeout("enable_scroll()",1500);
}

 
function go_bh_i(event){
	disable_scroll();
	bh_frame.scrollTo(5512,0);
	++move_scroll;
	setTimeout("enable_scroll()",1500);
}
 
function go_bh_j(event){
	disable_scroll();
	bh_frame.scrollTo(6201,0);
	++move_scroll;
	setTimeout("enable_scroll()",1500);
}

function go_bh_k(event){
	disable_scroll();
	bh_frame.scrollTo(6890,0);
	++move_scroll;
	setTimeout("enable_scroll()",1500);
}


	
	var bhc_frame = new Fx.Scroll('bh_contact_formulaire', {
	wait: false,
	duration: 1500,
	offset: {'x': 0, 'y': 0},
	transition: Fx.Transitions.Quad.easeInOut
});
 
 
function go_bhc_a(event){
	bhc_frame.scrollTo(0,0);
}

function go_bhc_b(event){
	bhc_frame.scrollTo(0,689);
}

	var bha_frame = new Fx.Scroll('bh_avis_formulaire', {
	wait: false,
	duration: 1500,
	offset: {'x': 0, 'y': 0},
	transition: Fx.Transitions.Quad.easeInOut
});
 
 
function go_bha_a(event){
	bha_frame.scrollTo(0,0);
}

function go_bha_b(event){
	bha_frame.scrollTo(0,330);
}


function showtools(thm){
			
	if(thm=='selection'){
		document.getElementById('bh_tools_corp_selection').style.display='block';	
		document.getElementById('bh_tools_corp_ami').style.display='none';	
		document.getElementById('bh_tools_corp_confirmation').style.display='none';	
	}
	
	if(thm=='ami'){
		document.getElementById('bh_tools_corp_selection').style.display='none';	
		document.getElementById('bh_tools_corp_ami').style.display='block';	
		document.getElementById('bh_tools_corp_confirmation').style.display='none';	
	}
	if(thm=='fermer'){
		document.getElementById('bh_tools_corp_selection').style.display='none';	
		document.getElementById('bh_tools_corp_ami').style.display='none';	
		document.getElementById('bh_tools_corp_confirmation').style.display='none';	
	}
	if(thm=='confirmation'){
		document.getElementById('bh_tools_corp_selection').style.display='none';	
		document.getElementById('bh_tools_corp_ami').style.display='none';	
		document.getElementById('bh_tools_corp_confirmation').style.display='block';	
	}


}

