Another Gallery Question

I created a few galleries of JPG images and everything works great! But one of the galleries contains website images. I’d like to be able to click the image showing and have the web page come up in another pop-up window. I thought if/else statements would work, but no luck with that.

I’m not sure if this was already discussed. I searched the forums, but didn’t see any related problem solved. I would appreciate if anyone has had success with pop-up windows with the random gallery of JPG images.
Thanks!