Jquery close sub menu on mouse move down or scrolling down

The link for the fiddle is

I want to add functionality so that sub menu is hidden only if

[B]1) mouse is moved down of main menu

  1. if page is scrolled down

  2. sub menu should not close if hover on sub menu[/B]

Please reply. Thanks.