var fDesc=new Array();
fDesc[4] = "game twice as each Solitaire has more than 9 trillion (9,999,999,999,999) possibilities.";
fDesc[5] = "FreeCell, Pyramid, Golf, Busy Aces, Canfield, Forty Thieves, Four Seasons, Carpet, Flower Garden, Rouge et Noir, Monte Carlo... and original solitaires that you cannot find elsewhere.";
fDesc[9] = "cardset design tool. Turn your JPEG collection into a photo-realistic cardset for use in Solitaire City. 100% Free !";
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 = '...';
}
}