var fDesc=new Array(); fDesc[1] = "FS2004 flight simulation programs. Seven virtual aircraft are included in the Flight Deck 5 for FSX 1.0, the F/A 18C Hornet; the F/A 18E Super Hornet; the E-2C Hawkeye; the S-3B Viking; the SH-60 Seahawk; the C-2A Greyhound, and the EA-6B Prowler."; fDesc[2] = "movement charts, market analysis, information displays, dutching and trading tools."; fDesc[3] = "launch and recovery system along with catapult and cable abilities. The catapult helps the airborne to leverage to a few hundred feet. The user could fly seven aircraft."; fDesc[4] = "pari-mutuel wagering that also helps you learn to read the racing program (past performances) to start handicapping!"; 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 = '...'; } }