Syntax Question(s)

Syntax Question(s)

I've done some developing with Jquery and so am not uncomfortable in using it. Unfortunately I'm not familiar with all of the syntax of javascript/jquery (especially more advanced features) and I want to figure out what some code is doing. Here's the code that I'm uncertain about:
 
(function(window, $, PhotoSwipe)
    {
        $(document).ready(function()
     {
                var options = {};
         $("#Gallery a").photoSwipe(options);    
     }
         );






    }
    (window, window.jQuery, window.Code.PhotoSwipe)
);
 
I don't understand exactly what this code is doing with or for the PhotoSwipe widget(for lack of a better word). I want to use it and integrate it with some other jquery code that I've written to retireve a list of images, for interactive display on a mobile site page. My other code works already but now I'm having problems getting the PhotoSwipe-related code to work with it. Any help would be appreciated. So I'm hoping to either get some information or be pointed to some documentation for either javascript or JQuery which might explain some of the syntax shwon in the code above. Thanks.