Menu waving with mouse position

hey there kirupas!
i was wondering, how can i create a menu that interacts with mouse position? the idea is to create a menu with some waving, i mean, when i rollover one button it will go up, and the ones around it will only do half the way…

any ideas or helpfull tutorials? (checked all the kirupa tutorials but found nothing…)

thanks in advance!