var fDesc=new Array(); fDesc[1] = "costings. As in previous versions, you can print your travel plans, share them online or though e-mail. You may follow them in your vehicle to make your trips easier and more comfortable."; fDesc[2] = "90 number bingo."; fDesc[4] = "Use the Brain-sharpener to improve your maths skills Overlay any image on your board. Real darts scorer."; 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 = '...'; } }