CON-2309 modify autohide script for GlobalNav so it respect scroll Value

``window.skin`` should be used instead to detect the currently used skin