XML-Driven Drop-Down Menu how to do horizontally

Hi folks,

I have checked this tutorial in kirupa website

but this is vertical xml drop down menu

http://www.kirupa.com/developer/actionscript/xml_dropdown_menu.htm

I would like to change this into horizontally
but when i try to do this through change the code
the submenu also goes horizontally which i dont want that
Basically i want main menus to be horizontal and submenus to be vertically
Anybody who can help me in this which code has to be changed so that main menu will be horizontal and submenu’s will be vertical

Thanks
Vishal