title: Fancybox triggering
body: <p>When you show 6 images (all belong to 1 album), you trigger one of this images. It should open the gallery with the selected image instead of the first image of the album. How can I accomplish this?</p>
  
  <p>Code example:</p>
  
  <pre><code>$("a[rel=modellen]").click(function () {
      $.fancybox.open([ &lt;? php
      $i = 0;
      foreach($product_fotos as $null = &gt; $object) {
          $i++;
          echo '{';
          echo "href : 'http://wubububu/uploads/products/".$object - &gt; productId.
          "/".$object - &gt; id.
          ".".$object - &gt; extensie.
          "'";
          if (count($product_fotos) != $i) echo '},';
          else echo '}';
      } ?&gt; ]);
      return false;
  });
  </code></pre>