title: jquery masonry collapsing on initial page load, works fine after clicking "home" menu button
body: <p>My jquery masonry setup is working strangely on initial page load. It seems to be placing the images in the first row fine, the second row is positioned overlapping the first and the same for the third row. After page load, you can click the home button or the logo and reload the page and it works fine.</p>
  
  <p>I have this code in the functions.php to put the masonry and jquery scripts in:</p>
  
  <pre><code>if (!is_admin()) {
      wp_enqueue_script('jquery');
      wp_register_script('jquery_min', get_template_directory_uri(). '/js/jquery.min.js', array('jquery'), '1.6.1' );
      wp_enqueue_script('jquery_min');
      wp_enqueue_script('jquery');
      wp_register_script('jquery_masonry', get_template_directory_uri(). '/js/jquery.masonry.min.js', array('jquery'), '2.1.06' );
      wp_enqueue_script('jquery_masonry');
  }
  </code></pre>
  
  <p>This script is in the head.php:</p>
  
  <pre><code>&lt;?php if (is_page(2)) { ?&gt;
      &lt;script&gt;
          $(function(){
              $('#content').masonry({
                  // options...
                  itemSelector : '.product',
                  columnWidth : 310,
                  isAnimated: true,
                  animationOptions: {
                      duration: 700,
                      easing: 'linear',
                      queue: false
                  }
              });
          });
      &lt;/script&gt;
  &lt;?php } ?&gt;
  </code></pre>
  
  <p>This is a link to the <a href="http://www.catherinesic.com/" rel="noreferrer">site</a>.</p>
  
  <p>Any idea as to why this is loading strangely on initial page load?</p>
  
  <p>I'm pretty new to scripting anything, so please be kind. </p>