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 Menu.ToggleIdItemPageAndSetOthers(IMenu menu, Object selectedItemId, String itemPage, String othersPage)
http://[ip]:4430/titan/script/2/Menu/ToggleIdItemPageAndSetOthers?menu={}&selectedItemId={}&itemPage={string}&othersPage={string}
menu ( IMenu ) : Menu to process
selectedItemId ( Object ) : Id of Selected Item
itemPage ( String ) : Page to set the selected item to
othersPage ( String ) : Page to set the other items to