title: Jquery lightbox doesnt work with AdGallery
body: <p>Im using AdGallery for creating an image gallery (following this plugin : <a href="http://coffeescripter.com/2009/07/ad-gallery-a-jquery-gallery-plugin/" rel="nofollow">http://coffeescripter.com/2009/07/ad-gallery-a-jquery-gallery-plugin/</a>).</p>
  
  <p>And Jquery lightbox : <a href="http://leandrovieira.com/projects/jquery/lightbox/" rel="nofollow">http://leandrovieira.com/projects/jquery/lightbox/</a></p>
  
  <p>Now I want this, when user click on the large image, a lightbox appears. So I modified some lines of code in jquery.ad-gallery.js:</p>
  
  <p>from</p>
  
  <pre><code>if(image.link) {
            var link = $('&lt;a rel="lightbox" href="'+ image.link +'" target="_blank"&gt;&lt;/a&gt;');
            link.append(img);
            img_container.append(link);
          } else {
           img_container.append(img);
          }
  </code></pre>
  
  <p>to </p>
  
  <pre><code>if(image.link) {
            var link = $('&lt;a rel="lightbox" href="'+ image.link +'" target="_blank"&gt;&lt;/a&gt;');
            link.append(img);
            img_container.append(link);
          } else {
           var link = $('&lt;a href="'+ image.image +'" rel="lightbox" class="lightbox"&gt;&lt;/a&gt;');
           link.append(img);
            img_container.append(link);
          }
  </code></pre>
  
  <p>But when I click on the large image, nothing happened.</p>
  
  <p>I did have these code in my html:</p>
  
  <pre><code>$(function() {
     $('#gallery a').lightBox();
  });
  </code></pre>
  
  <p>What was I missing here?</p>