﻿/// LegalNotices javascript

var LegalNotices = function() {
}

LegalNotices.prototype = {

    DownloadNotAllowed: function() {
        alert('Vous devez vous connecter');
        return false;
    },

    BeforeDownload: function(document, profile) {
        //-- WReport
        var w_compteur = new wreport_counter('Notices juridiques', document.Product, WRP_ID, WRP_ACC, WRP_CHANNEL, WRP_SECTION_GRP, WRP_SUBSECTION_GRP);
        w_compteur.add_content(document.Name);
        w_counter.profiling_cookie_mode = 'off';
        w_counter.add_profile(1, profile);
        w_compteur.count();
        //--

        return true;
    }
}

var legalNotices = new LegalNotices();