I am having a similar problem with my Ross Cairns expanding menu. I want the page to load with the menu completely collapsed, so only the menu titles are visible. Then as the user navigates I want the menus to stay open (even while clicking through links in other menus) until the user closes them by clicking the menu title.
    /* hide items if not active */
    if (items.is(".active") == false ) {
        items.hide();
    }
This piece of code appears to control the collapse of the menu, I was wondering if there was a way to modify this the arguments of this if statement so it read something like:
if(items.is(".active") == false && items.is(".visited")==false )
Or perhaps there is a better place to call this collapse statement, such as the in document.ready(function()) so that it collapses them at the loading of the site only.
thank you!