
$(function() {

    if ($('.isotopeWrapper').length) {
      var $container = $('.isotopeWrapper');
      // initialize isotope
      $container.isotope({
        itemSelector: '.isotopeItem',
        layoutMode: 'fitRows',
      });
      $("a[href='#top']").click(function () {
        $("html, body").animate({ scrollTop: 0 }, "slow");
        return false;
      });

      $('#filter a').click(function () {
        $('#filter a').removeClass('current');
        $(this).addClass('current');
        var selector = $(this).attr('data-filter');
        $container.isotope({
          filter: selector,
          animationOptions: {
            duration: 1000,
            easing: 'easeOutQuart',
            queue: false
          }
        });
        return false;
      });

    }

    window.onresize = function(){ location.reload(); }

});

@@ -11,16 +11,44 @@
 on() %7B%0D%0A
+  $(window).load(function()%7B
 %0D%0A    if
@@ -901,13 +901,22 @@
 ); %7D%0D%0A%0D%0A
+  %7D);%0D%0A%0D%0A
 %7D);%0D%0A

test for overlapping