var fDesc=new Array();
fDesc[1] = "also refine the search by selecting one or more of the 24 food categories. A free software with amazing results.";
fDesc[2] = "you, what this software does. You can write your own recipes and the program will calculate value such as : Calories, fat, Total fat, Saturated Fat, Cholesterol, Dietary Fiber, Protein. You can have control of your daily meals.";
fDesc[3] = "performed. Many simple illustrated charts are provided by the program to help you monitor your weight progress and overall body health.";
fDesc[4] = "requirements and targets in carbs, proteins, and fats, and the target weight for your build. It is great for weight loss or maintenance.";
fDesc[5] = "database, and view your nutritional requirements, such as RDA's.";
fDesc[6] = "intake, fat grams, carbohydrates, fiber, protein, cholesterol, along with sodium, potassium, and calcium.";
fDesc[7] = "Exchange System in addition to the USDA's Food Guide Pyramid. It can automatically generate daily menus that meet your Exchange specs.";
function tCollapseAll(maxID)
{
document.getElementById("alls_action").innerHTML = "Expand descriptions";
var id=1;
for (id=1; id <= maxID; id++)
{
if (document.getElementById("desc_" + id))
tShowHide(id, 2);
}
}
function tExpandAll(maxID)
{
document.getElementById("alls_action").innerHTML = "Collapse descriptions";
var id=1;
for (id=1; id <= maxID; id++)
{
if (document.getElementById("more_" + id))
tShowHide(id, 1);
}
}
function tShowHide(id, show)
{
var s = document.getElementById("more_" + id);
if ((s.innerHTML!=fDesc[id] || show==1) && show!=2)
{
s.innerHTML = fDesc[id];
}
else
{
s.innerHTML = '...';
}
}