title: How I can get Current photo id in prettyphoto gallery
body: <p>I am using prettyphotos to display slideshow and lightbox, but how I can get current photo id which is showing in Lightbox.</p>
  
  <p>PrettyPhotos offer callback function changepicturecallback: function()</p>
  
  <p>I tried it but am not able to get current photo id. </p>
  
  <p>Am using this code</p>
  
  <p>plz help</p>
  
  <pre><code>$("a[rel^='prettyPhoto']").prettyPhoto({theme: 'light_square',slideshow:5000,
              changepicturecallback: function(){
              //Run on every image change
                  $('.gallery-list li').index($('.selected')).find('img').attr('id');
  
              }
          });
  </code></pre>