Adding modification (around) the Fotorama plugin.

Adding modification (around) the Fotorama plugin.

Hello everyone.
While entering the 'Topic' information for this thread it occurred to me that Including fotorama is probably not necessary since it's doing exactly as it should. Including it my project is the issue.

 Ill begin by attempting to describe the problem as clearly as possible without creating a book! I apologize in advance if at the end, you are left mind-boggled.

The above mentioned "project" is an online pre-owned clothing outlet. I'm in the middle of rebuilding everything from directory locations to page design. The previous layout for the clothing catalog was simply scrolling down
the page, all the while viewing images of the merchandise. See a shirt you like, click on the 'Buy Now' or 'Add to Cart' buttons, two for each image that are located directly beneath the image. At this point I'm sure you have already noticed issues.

Basically, with all the demands of administering this web site, from markup, scripting, database etc, on me, I'm trying to do away with what is going to end up being a million buttons and images to keep track of to start with. To say the least, I'm already sick of HTML so Ive written a batch file that inserts the markup along with the images, creating the page for me. I really like the gallery plugins and chose 'Fotorama', now I'm seeing light at the end!

The Issue:
                If you care to, have a look at the , example page I have up found HERE
I want two buttons only for this layout which are the listed 'Buy Now' and 'Add to Cart' links on the left. I need some code that will respond appropriately to one or the other when they are clicked. It's not laid out yet but I'm good up to this point. This code needs to know what image is being displayed when the user clicks a button so that the 'buying' or 'adding to..' process correlates with the image.

You guy's are awesome! I know there is a simple solution to this via some Ajax, 'if', 'else' statements or something however, my knowledge of java scripting is not yet deep enough so a solution continues to elude me. The idea is clear, the syntax and laying out of the code is not.

Thank you and I hope Ive left you with a clear description.