I have built this accordion using the jquery ui accordion plugin, I sort of understand how it works but I am stuggling to find the correct way for the accordion to close on mouse out. I would also like for my own arrow icons to swap for a down arrow when an accordion section is open. Here is the fiddle:jquery accordion plugin
Any help appreciated even if it sjust pointing in the right direction. The most important thing is to collapse on mouseout
Here you go: fiddle
EDIT: You have to consider my reconstructed HTML: