anchors/ hiding page content

Hi,
Is it possible to create a one page site using upfront where clicking images will activate an accordion effect which shows / hides page content for sections of that one page site?

e.g. 3 images clicking image A will reveal segment A. Clicking image B will close other segment and open section B and the same for image C / Segment C.

I found these if it helps? but not sure how to apply?
- http://stackoverflow.com/questions/18849520/css-show-hide-content-with-anchor-name
- http://stackoverflow.com/questions/8274267/jquery-link-to-an-anchor-hidden-div-and-show

Thanks
Tom