function _estatl(_s, _g, _p, _c)
{
    var _S = "http://sky.estat.com/m/web/";
    var _M = _s + "?";
    _M += "n=" + Math.round(Math.random() * 1000000000);
    if(_g != "") {
        _M += "&g=" + _g;
    }
    _M += "&c=" + escape(_c);
    _M += "&p=" + escape(_p);
    var _R = escape(window.document.referrer);
    if(_R == "undefined" || _R == "") {
        _R = "_bm_";
    }
    _M += "&r=" + _R;
    if(typeof(screen) == "object") {
        _M += "&scw=" + screen.width + "&sch=" + screen.height + "&scp=" + screen.colorDepth;
    }
    _IM_estat.src = _S + _M;
}

function get_stats_category() {
    var url = window.location.href;
    url = url.split('?')[0];
    
    var rc = null;
    if ((rc = url.match(/http:\/\/([a-z0-9-.]*)\/$/i)) !== null) {
        return new Array('index','index');
    }
    if ((rc = url.match(/\/php\/$/i)) !== null) {
        return new Array('index','index');
    }
    if ((rc = url.match(/\/php\/annonces\.php\/voir\/([a-z0-9_-]{1,24})\/([a-z0-9_-]{1,32})/i)) !== null) {
        return new Array('annonces', rc[1] + '/' + rc[2]);
    }
    if ((rc = url.match(/\/php\/annonces\.php\/voir\/([a-z0-9_-]{1,24})/i)) !== null) {
        return new Array('annonces', rc[1]);
    }
    if ((rc = url.match(/\/php\/annonces\.php\/([a-z0-9_-]{1,24})/i)) !== null) {
        return new Array('annonces', rc[1]);
    }
    if ((rc = url.match(/\/php\/fiches\.php\/voir\/fiches-pratiques\/([a-z0-9_-]{1,32})\/([0-9]{1,8})/i)) !== null) {
        return new Array('fiches', rc[1] + '/' + rc[2]);
    }
    if ((rc = url.match(/\/php\/fiches\.php\/voir\/fiches-pratiques\/([a-z0-9_-]{1,32})/i)) !== null) {
        return new Array('fiches', rc[1] + '/liste');
    }
    if ((rc = url.match(/\/php\/fiches\.php\/voir\/([a-z0-9_-]{1,32})/i)) !== null) {
        return new Array('fiches', rc[1] + '/liste');
    }
    if ((rc = url.match(/\/php\/([a-z0-9_-]{1,24})\.php\/([a-z0-9_-]{1,32})/i)) !== null) {
        return new Array(rc[1], rc[2]);
    }
    if ((rc = url.match(/\/php\/([a-z0-9_-]{1,24})\.php/i)) !== null) {
        return new Array(rc[1], rc[1]);
    }
    return new Array('ukn', 'ukn');
}

if(typeof(tagstatsskypart1) == 'undefined')
{
    var _IM_estat = new Image(1,1);
    
    var stats_category = get_stats_category();
    _estatl('202002116406',
            '',
            stats_category[1],
            stats_category[0]);
    var tagstatsskypart1 = 1;
}
