var fDesc=new Array();
fDesc[1] = "information about different Yoga styles, both modern and traditional, as well as useful guidelines for practicing the postures, or asanas. The program features a comprehensive list of postures, complete with a photograph of each, as well as its Indian name and its English translation.";
fDesc[2] = "beginners who want to learn how to practice the different Yogas. It is an advanced yet a handy and an informative software.";
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 = '...';
}
}