orm');
        $('#login-dialog').modal('show');
        return false;
    });

    $('#login-register-link').click(function() {
        show_only('#register-form');
        $('#login-dialog').modal('show');
        return false;
    });

    $('#recover-cancel').click(function() {
        $('#login-dialog').modal('hide');
    });

    $('#register-cancel').click(function() {
        $('#login-dialog').modal('hide');
    });

    $('.login-redirect').val(document.location.pathname + document.location.search