How to optimize code for menu?

Hi,
this is probably a silly question but I can’t seem to find any tutorials on this specific thing anywhere (probably too easy…)
I have a bunch of menu-items(subheadings) that change color in their up, over and down states. I suppose one should be able to use arrays in order to avoid writing code to (if needed) change the menu-items that are NOT pressed to their up-states. I hope I am making myself clear. I have tried different ways but I am probably just not going the right direction…
If anyone can help or know where to find a tutorial I’ll be really happy :te: