var fDesc=new Array(); fDesc[1] = "awesome wildlife scenes. Challenge yourself with four distinctly addictive game modes. And you can save your progress as the game goes on."; fDesc[2] = "beautiful crystals, you'll find it hard to stop playing, attaching crystals to each other and making them disappear."; fDesc[3] = "case you don't know the previous game, your goal is basically to fit a specific number of different pieces into a board with the shape of animal. You can rotate the pieces, but you have to very fast."; fDesc[4] = "filled game which one could play for hours and hours without getting bored.Its also a NO AGE LIMIT game so every one from a kid to grand pa can enjoy it."; fDesc[5] = "runs out. Enjoy beautiful hand rendered graphics, two exciting game modes, and great 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 = '...'; } }