I think your computer is infected with Adware or Malware which you should completely remove manually as mentioned by Barney. I don't think you will need to reinstall Safari.You should only do this in case safari application has become corrupted.And as per Apple you can not reinstall Safari, you will have to reinstall the OS X.But there are workaround you could use to reinstall Safari.
Follow the steps below to reinstall it.
1. Open terminal and type the following command to cd /Applications/ and hit enter.
2. then type the command sudo rm -rf Safari.app/ to remove safari.
3. Now type the command "defaults write com.apple.DiskUtility DUDebugMenuEnabled 1" without quotes to show hidden debug menu of Disk utility.
4. Now click on the Debug menu and select show every partition.this will show Recovery HD (650MB).Click on it and click on mount button on top menu bar.
5.Now download pacifist.
6.Open pacifist and select Open Package and then browse for recovery HD , Select it and then go to Com.Apple.recovery.boot and load base system.dmg.
7. Once the Base System.dmg is loaded you would see all of its contents.Select safari under application and extract it to Application folder to reinstall it.
And now you should have a fresh new Safari.app.