var fDesc=new Array(); fDesc[1] = "the first chapter of the saga. In it, a few lucky survivors flee from a volcanic eruption. After some days in the sea, they found an empty and isolated island. You will have to care for a tribe of little people, teaching them the basics of survival, attending their food and housing needs."; fDesc[2] = "Teach them survival skill as building, fishing, exploration, research and healing other people. Guide them and build your village solving 16 puzzle of different difficulty levels."; fDesc[3] = "explore with the help of maps and teach the children how to perform different tasks while you buy different technologies in order to help them."; 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 = '...'; } }