var fDesc=new Array(); fDesc[1] = "All you need to do is match the letters that appear in the dam with words that you will load in the catapult so when you fire you will destroy the woods with those letters."; fDesc[2] = "includes a beaver which caters to the requirements of every terrain. The missions included in this software would help the users to gain an insight about the aircraft."; fDesc[3] = "in total 10 missions with different levels of skills. The program also features additional objects and details. The application has a detailed briefing. The completion of the mission gives many rewards."; fDesc[5] = "online to make your buttons. You can make every type of button whether they are single item, cart, or subscriptions. All field"; fDesc[7] = "run, runs with breaks, and the newly added monthly subscription."; fDesc[8] = "information for your products"; fDesc[12] = "line activities."; 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 = '...'; } }