function correction_accueil_v1()
{
	var corps = $("#corps").height();
	var sidebarre = $("#sidebarre-droite").height();
	
	if(corps < sidebarre)
	{
		$(".corps-contenu-degrader").css("height",sidebarre-304-1);
		$("#menulateral").css("height",sidebarre);
	}
	else
	{
		$("#sidebarre-droite").css("height",corps-20);
		$("#menulateral").css("height",corps);
	}
	
	footer();
}

function correction_accueil()
{
	var corps = $("#corps").height();
	var sidebarre = $("#sidebarre-droite").height();
	var gauche = $("#menu-lateral").height();
	
	var maxi = corps;
	
	if(maxi < sidebarre)
		maxi = sidebarre;
		
	if(maxi < gauche)
		maxi = gauche;
		
	
	
	$("#corps").css("height",maxi+60);
	$("#sidebarre-droite").css("height",maxi+40);
	document.getElementById("extendable").style.height = maxi-789+"px";	
	
	footer();
}

function correction_fiche_produit_v1()
{
	var corps = $("#corps").height();
	var sidebarre = $("#sidebarre-droite").height();
	
	if(corps < sidebarre)
	{
		$(".corps-contenu-blanc").css("height",sidebarre-1);
		$("#menulateral").css("height",sidebarre);
	}
	else
	{
		$("#sidebarre-droite").css("height",corps-20);
		$("#menulateral").css("height",corps);
	}
	
	footer();
}

function correction_fiche_produit()
{
	var corps = $(".corps-contenu-blanc").height();
	var sidebarre = $("#sidebarre-droite").height();
	var gauche = $("#menu-lateral").height();
	
	var maxi = corps + 115;
	
	if(maxi < sidebarre)
		maxi = sidebarre;
		
	if(maxi < gauche)
		maxi = gauche;
	
	$(".corps-contenu-blanc").css("height",maxi);
	$("#sidebarre-droite").css("height",maxi);
	document.getElementById("extendable").style.height = maxi-828+"px";	
	
	
	
	footer();
}

function correction_fiche_produit_B()
{
	var corps = $(".corps-contenu-blanc").height();
	var sidebarre = $("#sidebarre-droite").height();
	var gauche = $("#menu-lateral").height();
	
	var maxi = corps;
	
	if(maxi < sidebarre)
		maxi = sidebarre;
		
	if(maxi < gauche)
		maxi = gauche;
	
	$(".corps-contenu-blanc").css("height",maxi+20);
	$("#sidebarre-droite").css("height",maxi);
	document.getElementById("extendable").style.height = maxi-736+"px";	
	
	
	
	footer();
}

function footer()
{
	larg = (window.innerWidth);
	if(larg == null)
	{
		larg = document.documentElement.clientWidth;
	}
	
	$("#footer").css("width", larg-4);
}

function correction_fiche_produit_slide(hauteurMax)
{
	var corps = $(".corps-contenu-blanc").css("height",hauteurMax);
	var sidebarre = $("#sidebarre-droite").css("height",hauteurMax);
	var extendable = $("#extendable").css("height",hauteurMax - 828);
	var bft = $("#block-fiche-technique").css("height",hauteurMax - 490);
}
