I've recently installed the jQuery image popup from here and it is all working correctly. However, the one problem I am having is that if the picture being displayed is towards the bottom of the page, when it pops up, it is being displayed below what I can actually see; it's being cut of. Same thing with the side, if I view an image no the far right, a portion of the image goes off screen to the right.

Is there a way I can edit the code in order to ensure it is always "Forced", if you will, to stay 100% visible and not get cut off? If you are not 100% clear, a site that has this feature is http://graphicriver.net. If you scroll down and hover over a picture, you will notice the image will never get cut off, it is always forced upwards, etc in order to always remain visible.

Thanks in advance,

Elementax