accordion inactivate

accordion inactivate


Hi, I'm using this option to open programmatically a menu option by
getting the value from the url because I'm developing an ajax
accordion menu and works:
var menuItem=$("a[href="+menuSelected+"]");
$('#navigation').accordion( 'activate' , menuItem.parents
("ul").siblings(".head"));
what I'm trying to do is close that previous item when I click on
other menu items, is there an 'inactivate' method to close it?
Thanks