var fDesc=new Array();
fDesc[1] = "you pass the level, otherwise you lose. What is hard about this game is that you don’t have a direct shot to each orange pegs and it’s kind of hard to calculate all the bouncing the ball will do when you shot an indirect ball.";
fDesc[2] = "compare it with the previous edition, so if you are already a Peggle player don’t expect many news of this new version. To pass each level you must hit all orange pegs in the screen before running out of balls to shoot.";
fDesc[4] = "balls on color-matching elements with the help of fans, bumpers, teleporters and various dynamic items.";
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 = '...';
}
}