var fDesc=new Array(); fDesc[1] = "Vegas Heist, but it's OK. The story is very similar to the original, but this time you are hired to find a hidden fortune within 17 hours."; fDesc[3] = "where stolen from their vault. Search for keys and poker chips in all Vegas in order to solve the case and unlock another case, the Unlimited Seek and Found."; fDesc[5] = "themed mazes. A mixture of games like PacMan and Jumpman, Heist is a simple fast paced arcade game. The game features 3 monsters, 20 levels, great graphics and sound, and tracks high scores."; 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 = '...'; } }