Dynamic Adverts based on tagged content?

Hi
im looking to add a couple of dynamic adverts to one of my sites.
The intention would be to tag various posts and pages then when a user clicks that page or post they would see an advert based on that tag e.g. few categories on my site include Photography / Programming / Fishing / Gardening

So if the user clicks the page Fishing the advert that they will see on that page are a rotation of my adverts tagged under the Fishing tag. etc.

Are there any existing plugins that can be used for something like this or perhaps a few that can be combined to do this?

Thanks
Tom