var fDesc=new Array();
fDesc[1] = "guesses. The game includes 8,000 words and phrases arranged into several categories that go from TV shows and music, to History and Literature. HangAroo is very entertaining, and a really good pastime for adults and kids as well.";
fDesc[2] = "them learn new words, improve spelling and have a great time doing so. As in the classic hangman, the game consists of completing the mysterious word, before we run out of guesses, otherwise the man will be hung.";
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 = '...';
}
}