var fDesc=new Array(); fDesc[0] = "Your goal in this game is to remove all cards on the pyramid by pairing the cards which give a sum of 13 points regardless of their suits. The rankings of the cards are as follows: J has 11 points, Q has 12 points, K has 13 points, A has 1 point, and the remaining cards carry points according to their numbers, for example, a 7 carries 7 points. When the game opens, 28 upturned cards are distributed into 7 rows in the shape of a pyramid."; function tShowHide(id, show) { var s = document.getElementById("desc"); if ((s.innerHTML.length<=212 || show==1) && show!=2) { s.innerHTML = fDesc[id]; if (document.getElementById('m1')) document.getElementById('m1').style.display='none'; if (document.getElementById('m2')) document.getElementById('m2').style.display='none'; if (document.getElementById('more_txt')) document.getElementById('more_txt').style.display='inline'; } else { s.innerHTML = ''; } }