Accordion and cookies

Accordion and cookies

Hi. So I'm trying to set up an accordion menu on my site. I really have no knowledge of Jquery but I've managed to get myself this far so the accordion works.


However I want it to remember the last opened menu header. So as the user goes through the site the menu is seemless.

I think I understand I need to add this cookie persistance?


But I can't figure out how I'm supposed to go about it?

Sorry for this really newbie question. If anyone can help that be great :)