var fDesc=new Array(); fDesc[0] = "In this game there will be a piece of land with some houses on it, each house will bare a number. Your job is to put in fences so that the land is separated into rectangular fields, each field should contain exactly one house and the area of the field should be the same as the number marked on the house. Use the mouse to drag to put in the fences."; 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 = ''; } }