modifyMoveEffect(EffectEventId.onShow, nextElement, currentIndex < nextIndex ? "right" : "left");
nextElement.show();
Element currentElement = screen.findElementByName(buttonToDialogMap.get(currentMenuButtonId));
modifyMoveEffect(EffectEventId.onHide, currentElement, currentIndex < nextIndex ? "left" : "right");
currentElement.hide();
screen.findElementByName(currentMenuButtonId).stopEffect(EffectEventId.onCustom);
screen.findElementByName(id).startEffect(EffectEventId.onCustom, null, "selected");
currentMenuButtonId = id;
}