title: How to create a direct link to any fancybox box
body: <p>I need that when I click in anything that uses fancybox it generates a specific URL for that, so when I send this link to someone, it opens the specific box I want.</p>
  
  <p>For example:
  <strong><em>fancybox.net/home</em></strong>
  when I click in the first image, the link still <strong><em>fancybox.net/home</em></strong>
  I want that when I click in the image, the URL is generated and appears in address bar like: <strong><em>fancybox.net/home/imageid=1</em></strong>
  so when i send <strong><em>fancybox.net/home/imageid=1</em></strong> to someone it already opens the image in the box</p>
  
  <p>Thanks!</p>
  
  <p>(It is like facebook photos, when you click in any photo, the photo opens in a box but the address bar changes to the image link)</p>
  
  <p><strong>//////
  UPDATE #1
  //////</strong></p>
  
  <p>I did what JFK suggested but after one hour trying i still don't know why the boxes aren't the same.</p>
  
  <p>Look the diference between:</p>
  
  <p>the code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  var thisHash = window.location.hash;
  $(document).ready(function() {
  if(window.location.hash) {
  $(thisHash).fancybox({
      prevEffect : 'none',
      nextEffect : 'none',
      closeBtn  : false,
      arrows    : true,
      nextClick : true,
      helpers :   { 
              thumbs : {
                  width  : 80,
                  height : 80
              },
      title : {
              type : 'inside'
              },
      buttons : {}
                  },
  
      afterLoad : function() {
              this.title = (this.index + 1) + ' de ' + this.group.length + '&lt;div id="curti"&gt;&lt;iframe src="http://www.facebook.com/plugins/like.php?href=http://www.google.com.br&amp;amp;send=true&amp;amp;layout=standard&amp;amp;width=45&amp;amp;show_faces=false&amp;amp;action=like&amp;amp;colorscheme=light&amp;amp;font&amp;amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:56px; height:24px;" allowTransparency="true"&gt;&lt;/iframe&gt;&lt;/div&gt;';
              }
  
                  }).trigger('click');
   }
   $('.fancylink').fancybox({
      prevEffect : 'none',
      nextEffect : 'none',
      closeBtn  : false,
      arrows    : true,
      nextClick : true,
      helpers :   { 
              thumbs : {
                  width  : 80,
                  height : 80
              },
      title : {
              type : 'inside'
              },
      buttons : {}
                  },
  
      afterLoad : function() {
              this.title = (this.index + 1) + ' de ' + this.group.length     + '&lt;div id="curti"&gt;&lt;iframe src="http://www.facebook.com/plugins/like.php?href=http://www.google.com.br&amp;amp;send=true&amp;amp;layout=standard&amp;amp;width=45&amp;amp;show_faces=false&amp;amp;action=like&amp;amp;colorscheme=light&amp;amp;font&amp;amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:56px; height:24px;" allowTransparency="true"&gt;&lt;/iframe&gt;&lt;/div&gt;';
              }
  
                  });
  }); // ready
  &lt;/script&gt;    
  </code></pre>
  
  <p>What's wrong in that script?</p>