title: Photoswipe and jQuery error when setting caption
body: <p>I'm trying to grab the caption from a rel attribute of the target element of photoswipe using the following method:</p>
  
  <pre><code>$("#fgallery a").photoSwipe({ getImageCaption: $(this).attr("rel") });
  </code></pre>
  
  <p>However I get a jQuery error.
  Has anyone tried that??
  Do you know what's wrong??</p>
  
  <p>A running version of the gallery can be found here: <a href="http://www.dolihos.gr/wp/90/erga/ktiriaka/politismos/ktirio-ekdiloseon-dimou-mistra/" rel="nofollow">dolihos</a><br>
  However I'm not using the code abover since it throws an error but everyting else is the same.</p>
  
  <p>Thanks</p>