var fDesc=new Array(); fDesc[0] = "In this game there will be a line of 16 squares, you and your opponent will need to put coins into the squares alternately. First, you roll a die to decide which player moves first. Each time when it is your turn, you need to put a pair of coins into two empty adjacent squares, if you cannot do so, you lose the game."; 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 = ''; } }