Button state

I have 6 blue buttons which when clicked turn to red. I would like the first, home, button to be red when the page loads. When another button is clicked I would like the home button to go to blue, and so on, so the user knows which page he is on. How can I achieve this please?