var fDesc=new Array(); fDesc[0] = "In this game there will be 3 cats and 2 dogs placed alternatively. The object of this game is to move the cats and dots so that they are separated, i.e. 3 cats and then 2 dogs consecutively in a row. Each time you move, you must move a pair of cat and dog that are adjacent to each other together, if there is a space between the cat and the dog, then you cannot move them. The faster and the fewer moves needed, the higher your score."; 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 = ''; } }