var fDesc=new Array(); fDesc[1] = ", although its development is daring: you have to create a creature, highly envolved to be the dominant species on the planet and, finally, explore other worlds and dominate them."; fDesc[2] = "unleashing his evil on the world by overcoming the threat of his minions and rescuing the hearts of those who have failed the same quest previously, to win the game."; fDesc[8] = "being done by teammates in one or many projects. Enter task assignments big and small, then use the dashboard to identify trouble areas."; 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 = '...'; } }