var fDesc=new Array(); fDesc[1] = "just the same title a year ago, but with a series of expansions and is shipped at a reduced price, so it's a good opportunity for those who are lost in time."; fDesc[3] = "depending on the polarity of the enemy you want to shoot. You will be able to switch between red and blue energy: you will need to use blue energy to shoot blue enemies, and red energy to shoot the red ones."; fDesc[4] = "Bros! Collect all crystals to get points and complete the level filled with traps and enemies."; fDesc[6] = ", buy weapons, powerups all you need to customize your gameplay."; 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 = '...'; } }