As @Amarnath said, your questions i a bit confusing. If I understood correctly you want to specify different styles for activated menu and submenu.
Lets say you want the first level of the menu to have a red backgroud and the the second level to have a green background. You could do that using plain css as follows:
ul li.ui-menuitem-active>a{
background-image: none !important;
background-color:red !important;
}
li ul li.ui-menuitem-active>a{
background-image: none !important;
background-color:green !important;
}
See if that helps.