var fDesc=new Array(); fDesc[1] = "They are lost in the middle of nowhere and even worse, have been separated, you have to help Fone find his cousins and head back to Boneville. You will find amazing creatures along the way."; fDesc[2] = "up for his little friends. The unforgettable adventure awaits you!"; fDesc[3] = "strategy to help doggy to move forward to find the exit and get back home. You must select groups of more than 3 identical tokens to clear space for doggy to walk. This game is very easy to play and is full of fun."; 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 = '...'; } }