Slightly convoluted but quite useful function. Sets all menu items to a specified page except the one selected which is set to itemPage unless it's already on that page in which case it's set to the same as the others
Namespace: Menu
Void ToggleItemPageAndSetOthers(Avolites.Menus.IMenu, System.Object, System.String, System.String)
http://[ip]:4430/titan/script/Menu/ToggleIdItemPageAndSetOthers
menu: Menu to process
selectedItemId: Id of Selected Item
itemPage: Page to set the selected item to
othersPage: Page to set the other items to