script fix for the first click on the sub nav.