$().ready(function() {
     $("div.gallery-box > a").each(function() {
          $(this).attr('rel', 'group1');
     });
     $("div.gallery-box > a").fancybox();
});
