var fDesc=new Array(); fDesc[0] = "In this game you have 4 cards, and you are required to use these 4 cards and arithmetic signs to make a formula that gives 24. A is 1, J is 11, Q is 12, K is 13. You can use add, subtract, multiply, divide and brackets in the formulas, and all the four cards must be used."; 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 = ''; } }