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] = "tile-matching adventure that begins over 10,000 years ago. Match magic gold tiles and travel through 12 Japanese eras, unlocking wisdom that will guide you to the Emperor’s lost treasures!";
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 = '...';
}
}