No, there is no javascript to create the delay. this issue arises if there is a gap between the menu levels, the gap is usually created by a top or bottom margin setting.
Send a link where I can investigate the problem to find the cause.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.