advanced question about giving funcitonality to buttons

I have an advanced question. Is there a way to programatically take the functionality of each of the buttons below and pply that functionality to the add to cart button on each image? Is this a CSS fix? Can you give me some code for the images on one of the pages, then I can run with it and figure it out. The client really wants the stylish add to cart buttons that are currently on each image to work.

Here is the link to one of the images: