var mc7_notify = function (p_msg, p_type) {
    var p_icon = "fa fa-bullhorn";
    if (p_type == "success")
        p_icon = "fa fa-check-circle";
    else if (p_type == "info")
        p_icon = "fa fa-info-circle";
    else if (p_type == "warning")
        p_icon = "fa fa-times-circle";
    else if (p_type == "danger")
        p_icon = "fa fa-bomb";

    $.notify({
        icon: p_icon,
        message: p_msg
    }, {
        // settings
        element: 'body',
        position: null,
        type: p_type,  // success , info , warning , danger
        allow_dismiss: true,
        newest_on_top: false,
        showProgressbar: false,
        placement: {
            from: "top",
            align: "left"
        },
        offset: 20,
        spacing: 10,
        z_index: 1031,
        delay: 1500,
        timer: 100,
        url_target: '_blank',
        mouse_over: 'pause',
        animate: {
            enter: 'animated fadeInUp',
            exit: 'animated fadeOutDown'
        },
        onShow: null,
        onShown: null,
        onClose: null,
        onClosed: null,
        icon_type: 'class',
        template: '<div data-notify="container" class="col-xs-11 col-sm-3 alert alert-{0}" role="alert">' +
            '<button type="button" aria-hidden="true" class="close glyphicon glyphicon-remove" data-notify="dismiss"></button>' +
            '<span data-notify="icon"></span> &nbsp; ' +
            '<span data-notify="message">{2}</span>' +
            '<div class="progress" data-notify="progressbar">' +
            '<div class="progress-bar progress-bar-{0}" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;"></div>' +
            '</div>' +
            '</div>'
    });
}