function openBigBox(whatBox) {
	$(whatBox).show().queue(function(){
		$(whatBox).children(".poignee").children(".bbspacer").animate({ height: "128px"});	
		$(this).animate({ width: "838px", height: "313px", left: "22px", top: "77px" }, 500 ).queue(function(){
			$(this).children(".bbox_content").fadeIn(500);
			$(this).dequeue();
		});
		$(this).dequeue();
	});
}

function contactmetier()
	{
		if (document.getElementById("wo").value == "false") {
			animation("460px","190px","contact.php"); return(false);
		} else {
			ajax_animation('contact.php');
		}
	}

function openCouv(whatCouv,tailleN) {
	$('#bbox_cas_client_visuels_grand'+whatCouv).show().queue(function(){
		$('#bbox_cas_client_visuels_grand'+whatCouv).animate({ width: tailleN, height: "366px", left: (154-(tailleN/2)), top: "-86px" }, 500 ).queue(function(){
			$(this).children("img").fadeIn(500);
			$(this).dequeue();
		});
		$(this).dequeue();
	});
}

function closeCouv(whatCouv) {
	$('#bbox_cas_client_visuels_grand'+whatCouv).show().queue(function(){
		$('#bbox_cas_client_visuels_grand'+whatCouv).animate({ width: "1px", height: "1px", left: "154px", top: "79px" }, 500 ).queue(function(){
			$(this).hide();
			$(this).dequeue();
		});
		$(this).dequeue();
	});
}

function closeBigBox(whatBox, coords) {
	if(coords == "bb1")
		var bb=new Array("165px", "153px", "535px", "91px");
	if(coords == "bb2")
		var bb=new Array("165px", "153px", "700px", "91px");
	if(coords == "bb3")
		var bb=new Array("165px", "153px", "535px", "234px");
	if(coords == "bb4")
		var bb=new Array("165px", "153px", "700px", "234px");

	$(whatBox).children(".bbox_content").fadeOut(250).queue(function(){
		$(whatBox).children(".poignee").children(".bbspacer").animate({ height: "56px"});
		$(whatBox).animate({ width: bb[0], height: bb[1], left: bb[2], top: bb[3] }, 500 ).queue(function(){
			$(this).hide();	
			$(this).dequeue();
		});
		$(this).dequeue();
	});
}

function startReseau (id, img, w) {
	
	MM_swapImage(id,'',img,1);
	$("#reseau2").stop().queue(function(){
		$(this).animate({width: w}, 500);
		$(this).dequeue();
	});
}

function restoreReseau(rw2) {
	
	$("#reseau2").stop().queue(function(){
		$(this).animate({width: rw2}, 500);
		$(this).dequeue();
	});
	MM_swapImgRestore()
}