var Wick = Wick || {};
Wick.CheckoutSignIn = (function () {
  function checkCheckbox () {
    var passwordBlock = $('#checkout-sign-in-password');
    if ($('input[name=sign-in-password]:checked').attr('id').indexOf('sign-in-check-password-switch') !== -1) {
      passwordBlock.slideDown();
    } else {
      passwordBlock.slideUp();
    }
  }

  checkCheckbox();

  $('input[name=sign-in-password]').change(function () {
    checkCheckbox();
  });
})();
