var fDesc=new Array(); fDesc[0] = "In this game you remove mahjonggs by picking them by pairs. You can only pick a mahjongg if it is on the top of the stack and it can be reached from the left or from the right. You need to pick the mahjonggs strategically because a single mahjongg can block the access of a lot of mahjonggs, so it is wise to pick such mahjonggs first."; 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 = ''; } }