Added functionality for 'selected' submenu items

Hi there,

I ran into a problem with submenu items in listboxes. Setting the 'selected' attribute didn't work. To fix this i've made some changes to the listbox and menuitem classes. I've added recursion to the loops that find the selected items and added a show trigger to the MenuItem that loops the submenu items to check for active items.