changed from variable to .navbar-toggle visibility

Instead of having a variable for nav breakpoint we now check if .navbar-toggle is visible.
We also have added the check to the close on mouseout, so the menu doesn't close when we hover outside the submenu.
Made a function isCollapsed so we can have our logic in one place.