I'm trying to get the accordion menu to stay open while viewing the child pages but I'm getting a conflict with the hoverIntent plugin. I'm trying to add these lines so the menu stays open (it works without the hoverIntent script but then the menu itself breaks)

I need to add something like this but I can't get it to work

// check URL for 'ezesiy'
myString = location.href.indexOf("ezesiy");

if (myString > 0) {
    // expand the UL below the LI containing that menu item
Check out the demo here: http://jsbin.com/ezesiy/10/edit