do not trigger mouseout until the cursor is over the element

do not trigger mouseout until the cursor is over the element

I will try to explain it as simple as possible...

- #layer is initially hided, I make it visible by clicking on #link
- Now I want to hide #layer on mouseout, the problem is #link is far from #layer, so I click it and #layer appears, but it automatically hide since at that point the cursor is not even over the element (#layer).

I would like to avoid trigger the mouseout event until I can get the cursor over #layer.

Hope you guys can understand what I say (stupid language barrier, makes everything way harder )

Thanks!