Could someone explain to a noob how this jquery works to create an image gallery?
<p>I don't understand what's happening here. If someone could explain, I would appreciate it. I need to create a photo gallery and have been recommended to look at this code but I don't understand how it works.</p>

<pre><code>$(document).ready(function(){
  imageSwapper(".thumbnails a");
});

function imageSwapper(link) {
  $(link).click(function(){
    $('#largeimage').attr('src', this.href);
    return false;
  });
};
</code></pre>
