var fDesc=new Array();
fDesc[2] = "Frankenstein, the Grim Reeper and skeletons. Witches and bats fly by in front of a full moon. A hangman swings from a tree";
fDesc[5] = "to help Bonbon collect candies, beat monsters and climb levels. Within a spooky atmosphere, with all types of monsters and dangers, Bonbon has to recover the collection of candies that the monsters have stolen from him.";
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 = '...';
}
}