Close Popup Pro Either After Click to New Window or Time (5 Seconds)

I have a popup with an image that is linked to an external website that opens in a new window. Afer the person click on the popup, I would like the popup to close or close after some period of time, like 5 seconds.