var fDesc=new Array(); fDesc[2] = "according to the fitness programs selected. This program offers many features to keep you healthy and in good shape. Open Fitness works on Linux, Mac OS X and Windows platforms."; fDesc[3] = "food database, training guide, training log, configurable training database, diary, and more."; fDesc[4] = "weightlifting and cardio exercises, or add your own custom exercises. Calculate your body fat percentage, BMI and BMR"; fDesc[5] = "workouts. Chart your progress for any exercise, right on your Palm Pilot! It's easy to use and designed to keep you motivated."; 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 = '...'; } }