To me it looks like you have some kind of spyware on your computer. Check your local hosts file for unwanted entries:
http://en.wikipedia.org/wiki/Hosts_(file)
Also have a look at the source code of the HN page if there is anything which might explain this behaviour. Maybe it is running inside a frame site which opens the ads? There are so many possibilities ...
If there really is some malware on your system I recommend the procedure known as Nuke it from Orbit: Wipe everything clean, install a clean operating system, restore important things from a backup. And change all your passwords from a clean system.