(function ($) {
  $(document).ready(function() {

    //clickable blocks
    $('div.animal-block').css('cursor', 'pointer').click(function(){            
      window.location.href = $(this).find('.content a').attr('href');
    });

    //set default when enter is pressed on a input field
    $("#edit-add-on-product").keypress(function (e) {      
      if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {        
          $('#edit-update').trigger('click');
          return false;
      } else {
          return true;
      }
    });
  
    $('.how-it-works a.close-button').click(function(){      
      $(this).parents('.block').slideUp();
      return false;
    });
  });
  
  Drupal.behaviors.unwrapped = {
    attach: function(context, settings) {      
      
    }      
  }
})(jQuery);;

