As far as I can determine, the fault only occurs if you do not move the mouse after you first click to open and then click to close. The onmousedown event seems to fire up properly on the second attempt.

Acorn