var fDesc=new Array(); fDesc[0] = "Can you take them all to the other side?

You need to take all people to the other side of the river using a raft.

However, there are limitations:
rule #1 Only adults (with an obvious exception of the prisoner) can steer the raft
rule #2 You cant leave anyone with the prisoner, unless the policeman stays by
rule #3 Girls are afraid of the stranger man and can't be left with him unless their mother is close by. Similairly, boys can't be left in presence of the woman without their father.

Good luck!"; 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 = ''; } }