var fDesc=new Array(); fDesc[1] = "private investigator with a new job: to find out who has stolen a treasure map from a museum. The first assignment that you have to accomplish, is to find some helpful tools from a list in order to help James in his investigation."; fDesc[2] = "detective with paranormal abilities. She can see ghosts and mysterious objects not visible to others. She runs a detective agency specialized in solving paranormal crimes and focused on banishing poltergeists from the city."; fDesc[3] = "comes from the backgrounds of each level. When you will pass through the levels you will see famous waterfalls of North America, such as Niagara Falls, Silver Cascade, Mills Greek Falls and so on."; fDesc[4] = "machines tool. Works with flat, spherical and conical tools. Postprocessor for many CNC controller is included."; fDesc[8] = "Animated Screensaver \"Three windmills\". This is one of the most beautiful products by EleFun Multimedia...."; fDesc[9] = "love this award winning classic."; fDesc[15] = "Animated Screensaver \"Water Mill\". Don?t you think that the gentle murmur of water and slowly turning ..."; 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 = '...'; } }