.click() will click the item and you can't click off it or stop it being shown. I want it to behave like an overlay, you click somewhere else (off it) and it goes away.
It is normal overlay, just like any other overlay. It uses same code. There is no difference in behavior of display. click() function does the same as if you clicked link yourself.