I have a problem with jquery ui accordion I put the code that should work in theory but it seems I do something wrong.
$("#section ul").accordion({
event: "mouseover",
active: "#mainmenu",
collapsible: false,
autoHeight: false
}).mouseleave(function() {
$(this).accordion('activate', "#mainmenu");
});
Example: http://jsfiddle.net/W6Exu/2/
According to jQueryUI accordion docs, active accepts an integer (which is zero based) that should be open. So try
http://jsfiddle.net/W6Exu/3/