/* Minification failed. Returning unminified contents.
(1,1): run-time error CSS1019: Unexpected token, found '('
(1,11): run-time error CSS1031: Expected selector, found '('
(1,11): run-time error CSS1025: Expected comma or open brace, found '('
(37,2): run-time error CSS1019: Unexpected token, found '('
(37,9): run-time error CSS1031: Expected selector, found ')'
(37,9): run-time error CSS1025: Expected comma or open brace, found ')'
 */
(function ($) {
    'use strict';
    function AgentCRMMain() {
        var $this = this, formSubscribe;

        function initPageEvents() {

            $(window).bind('scroll', function () {
                if ($(window).scrollTop() > 100) {
                    $('#mainnav').addClass('fixed');
                } else {
                    $('#mainnav').removeClass('fixed');
                }
            });

            formSubscribe = new Global.FormHelper($("#newsletter-email form"), { updateTargetId: "validation-summary", validateSettings: { ignore: '' } }, function (data) {
                $('.alert-message-home').remove();
                if (data.isSuccess) {
                    $('#newsletter-email #Email').val('');
                }
                $('#newsletter-email form').append(data.message);
            });
            return formSubscribe;

        }

        $this.init = function () {
            initPageEvents();
          
        };
    }
    $(function () {
        var self = new AgentCRMMain();
        self.init();
    });

}(jQuery));
