var fDesc=new Array(); fDesc[1] = "4000 years ago. Match magic gold tiles as you travel through 11 dynasties and 175 levels. Unlock centuries of wisdom to collect the Lost Dynasty Treasures!"; fDesc[2] = "300 layouts, all distinctly original, ranging from super easy to extremely challenging. Mah Jong Medley has 4 game modes to choose from."; fDesc[3] = "intuition into a challenging game of patience. My Free Mahjong breaks into reality - it becomes truly 3D!"; fDesc[4] = "Beat the time pulling out all the pair of tiles. Remember you can only put out identical tiles by pairs. Enjoy and excercise your mind."; fDesc[5] = "main goal is to clear all the tiles and collect the Lost amulets of earth elements. Challenge your speed and play versus time."; fDesc[6] = "quite simple, following the classic mahjong rules. The objective is to remove from the board as many tiles as you can, by connecting matching tiles which have any of its side edges free."; fDesc[8] = "hard to know how the original looks like. Now you have the original in front of you."; fDesc[11] = "is exactly what you need. See for yourself. Several game modes from very simple to classic, various backgrounds and tiles, excellent"; fDesc[15] = "software with a simple to use interface. The program is designed to predict your fortune for a particular day."; 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 = '...'; } }