I have tried many things to get this to work, I am basically trying to have the lightbox photo show up(which it does), and when clicked on, opens up a new tab with a specified URL.
The image that I am trying to have link to a url in new tab is "images/ad1.jpg", which is in the code. Please show me the proper code and way it needs to be inputted so I can do this. I greatly appreciate everyones support on this and the great community of stackoverflow. Thank you. 

```
(function($){
        $(window).load(function(){
            if(jQuery.isFunction(jQuery.fn.prettyPhoto)) {
                $.prettyPhoto.open(
                    "images/ad1.jpg", // Image to be opened
                    "title",    // Title of the pop-up
                    "desc."     // The description
                );
                setTimeout(function() {
                    $.prettyPhoto.close();
                }, 10000); // autoclose after 10 seconds
            } else {
                console.log("PrettyPhoto is not defined."); // log this message
            }
        });
    })(jQuery);

```