Cheers for that Jason, I now have the accordion working as I suppose it was meant to work, but is there any way to make the sub levels of the accordion disappear too? If you look at products_results.php you see that I have a number of options on display in the side menu.
The top level are green, and the sub levels are grey. I would like to hide all the grey so the green are only visible until they are clicked on.
How can I do that without breaking the menu? I assume it's a case of moving the accordion level up one, but I'm not sure how to change this.