var fDesc=new Array(); fDesc[1] = "multiplayers on an ultra realistic sea modelled. There are 14 different ocean water courses and competitions such as Valencia, Auckland, Rio, Marseille, etcetera. Players can choose the boat or create their own regattas. You need to consider wind and weather conditions to sail."; fDesc[3] = "and have remained popular ever since. They are seen as a means of getting in touch with the spiritual world."; fDesc[5] = ", ... Differences betweens tables and statistics from a year to another. Tables history. Import/export of leagues from/to external software."; 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 = '...'; } }