function show_products(id_product,nelements)//We give the product number and the function get all  hidden and show that number
{
	for (i=0;i<nelements;i++)
	{
		if (i==id_product)
		{
			window.document.getElementById("familyb"+i).style.display="block";
			window.document.getElementById("famb-"+i).style.height="auto";
			window.document.getElementById("familya"+i).style.display="none";
		}
		else
		{	
			if (window.document.getElementById("familyb"+i)!=null) hidden_products(i,nelements);
		}
	}
}
function hidden_products(id_product,nelement)
{
	window.document.getElementById("familyb"+id_product).style.display="none";
	window.document.getElementById("familya"+id_product).style.display="block";
	window.document.getElementById("familya"+id_product).style.height="230px";
	if (id_product+1==nelement)
	{
		window.document.getElementById("familya"+id_product).style.height="250px";
	}
}

