Im pretty happy with everything now.
Just one last thing..
How can I have it so the format of the text stays the same ie red and green.. to have click on the 2nd level (Green) before it drops down to the 3rd level in that group and displays it in the sidebar.
So Just 1st and 2nd level displaying, until 2nd level is clicked then 3rd level displays.
It seems I need a bit of the new code you gave me and a bit of the original code, but I cant quite work it out.