$(function(){
 
// Hide empty spec

	$("#product_features td").each(
		function() {
			if (LTrim(RTrim($(this).html())) == "") {
				$(this).parent().hide();
				return true;
			}
		}
	);
	$("#product_optionals td").each(
		function() {
			if (LTrim(RTrim($(this).html())) == "") {
				$(this).parent().hide();
				return true;
			}
		}
	);
	
	if ($("#product_USC").next().html() == "") {
		$("#product_USC").hide();
	}
	
	// Hide Design Center of Elegancia 6032
	if ($("#product_name").html() == "Elegancia 6032") {
		$("#product_design_center").hide();
	}

// Header Product Lines Navigation

	setFleches();

	$("#flecheGauche").click(function(){
		return flecheGaucheClick();
	});
	
	$("#flecheDroite").click(function(){
		return flecheDroiteClick();
	});

	$("#listeGammesContainer div").children().each(function(){
		return listeGammesContainerChildrenEach($(this));
	});

	$("#flecheGauche").hover(
		function(){
			if (navGamme.flecheGaucheActif) $(this).children("img").attr("src",path_statique+"images/all/graphiques/nav_product_lines/fl_precedente_over.jpg");
			
		},
		function(){
			$(this).children("img").attr("src",path_statique+"images/all/graphiques/nav_product_lines/fl_precedente.jpg");
		}
	);
	$("#flecheDroite").hover(
		function(){
			if (navGamme.flecheDroiteActif) $(this).children("img").attr("src",path_statique+"images/all/graphiques/nav_product_lines/fl_suivante_over.jpg");
			
		},
		function(){
			$(this).children("img").attr("src",path_statique+"images/all/graphiques/nav_product_lines/fl_suivante.jpg");
		}
	);
});