var fDesc=new Array(); fDesc[1] = "interesting story. Once you match up the necessary tiles to win the game, you must uncover and match the golden Yin and Yang tiles."; fDesc[2] = "tiles. Unique game analysis, statistics for each board layout, highscore tables and relaxing ambient background music!"; fDesc[3] = "strategy. This game has full color backgrounds making the game visually appealing. The color backgrounds are designed under various themes and categories breaking the monotony of seeing the same application background."; fDesc[6] = "millions of possible combinations! You can also play matching-games type with funny tile sets."; fDesc[7] = "tiles from the game board. Tiles can be removed only in pairs and must have at least one free side."; fDesc[8] = "comes with tile set and tile layout editors as well as everything else you could want from a Mahjong game."; fDesc[9] = "solitaire games. Different mah jongg tiles to choose from, or create your own unique tiles with this game."; fDesc[14] = "your mind. The goal of 3DJongPuzzle is to remove all of the tiles from the game board. Tiles can be removed only in pairs of free tiles."; fDesc[15] = "JongPuzzle is the mah jongg - like tile solitaire game for Windows. It is a fun puzzle game like mah jongg."; 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 = '...'; } }