var fDesc=new Array(); fDesc[1] = "and unique levels ensure hours of fun. Funky music tracks and vibrant graphics beautifully enhance the 60's retro theme."; fDesc[2] = "you on a journey to outer space. You will be able to be part of the crew that will fly to Jupiter on an exploratory trip."; fDesc[3] = "space. It is very customizable and even allows users to include their own music: a playlist or a single file. The images look real and change all the time."; fDesc[5] = "reflect its beauty by computer simulation, but using modern 3D technologies we tried to gain maximum realism in this animation."; 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 = '...'; } }