Ophistello it sounds as if Nightcrewman is right on the money.:thumbsup:
Not sure about Macs but PCs are infected by adware that does exactly what you describe. Trendmicro has a free online scan for malware it also will remove it free of charge. This is not a promo for them, they are just one I have used and I know from experience it works.