﻿// *** BigMir *** //
this.bmStatDiv = document.getElementById('bmStat');

function BM_Draw(oBM_STAT){
    window.bmStatDiv.innerHTML = '<table cellpadding="0" cellspacing="0" border="0" style="display:inline;margin-right:4px;"><tr><td><div style="margin:0;padding:0;font-size:1px;width:88px;"><div style="background:url(\'http://i.bigmir.net/cnt/samples/diagonal/b60_top.gif\') no-repeat top;height:1px;line-height:1px;">&nbsp;</div><div style="font:10px Tahoma;text-align:center;background-color:#E7EFFA;height:15px;"><a href="http://www.bigmir.net/" target="_blank" style="color:#0000ab;text-decoration:none;">bigmir<span style="color:#ff0000;">)</span>net</a></div><div style="height:1px;background:url(\'http://i.bigmir.net/cnt/samples/diagonal/b60_top.gif\') no-repeat bottom;"></div><div style="font:10px Tahoma;padding-left:7px;background:url(\'http://i.bigmir.net/cnt/samples/diagonal/b60_center.gif\');"><div style="padding:4px 6px 0 0;"><div style="float:left;color:#98b4f4;">хиты</div><div style="float:right;color:#426ed2;font:10px Tahoma;">'+oBM_STAT.hits+'</div></div><br clear="all" /><div style="padding-right:6px;"><div style="float:left;color:#98b4f4;">хосты</div><div style="float:right;color:#426ed2;font:10px Tahoma;">'+oBM_STAT.hosts+'</div></div><br clear="all" /><div style="padding-right:6px;"><div style="float:left;color:#98b4f4;">всего</div><div style="float:right;color:#426ed2;font:10px Tahoma;">'+oBM_STAT.total+'</div></div><br clear="all" /><div style="height:3px;"></div></div><div style="background:url(\'http://i.bigmir.net/cnt/samples/diagonal/b60_bottom.gif\') no-repeat top;height:2px;line-height:1px;">&nbsp;</div></div></td></tr></table>';
}

function updateBM() {
    bmN = navigator;
    bmD = document;
    bmD.cookie='b=b';
    i = 0;
    bs = [];
    bm = { o:1,
           v:134730,
           s:134730,
           t:0,
           c:bmD.cookie ? 1 : 0,
           n:Math.round((Math.random()* 1000000)),
           w:0 };
    for (var f = self; f != f.parent; f = f.parent) 
        bm.w++;
    try {
        if (bmN.plugins && bmN.mimeTypes.length && 
            (x=bmN.plugins['Shockwave Flash'])) {
            bm.m=parseInt(x.description.replace(/([a-zA-Z]|\s)+/,''));
        } else {
            for (var f = 3; f < 20; f++) {
                if (eval('new ActiveXObject("ShockwaveFlash.ShockwaveFlash.' + f + '")'))
                    bm.m=f;
            }
        }
    }catch(e){;}
    try { 
        bm.y = bmN.javaEnabled() ? 1 : 0;
    }catch(e){;}
    try {
        bmS = screen;
        bm.v ^= bm.d = bmS.colorDepth || bmS.pixelDepth;
        bm.v ^= bm.r = bmS.width;
    }catch(e){;}
    r = bmD.referrer.slice(7);
    if (r && r.split('/')[0] != window.location.host) {
        bm.f = escape(r);
        bm.v^=r.length;
    }
    bm.v ^= window.location.href.length;
    for (var x in bm) {
        if (/^[ovstcnwmydrf]$/.test(x)) {
            bs[i++]=x+bm[x];
        }
    }

    var url = 'http://c.bigmir.net/?' + bs.join('&');

    var sc = document.createElement("script");
    sc.src = url;
    sc.type="text/javascript";
    document.body.appendChild(sc); 
}


// *** End BigMir *** //

// *** Domik *** //
this.domikStatDiv = document.getElementById('domikStat');
function updateDomik() {
    dcd = document;
    dcd.cookie = "dctc=1";
    dcuid = 102452;
    dcref = dcd.referrer;
    dcsw = screen.width;
    dcsh = screen.height;
    dcru = dcd.location;
    dctq = "";
    if (dcd.cookie) { dctq = "&c=q"; }
 
    window.domikStatDiv.innerHTML = '<a href=http://www.domik.net/ target=_blank>' +
        '<img border=0 alt="Domik.net" src="http://c.domik.net/?uid='+
        dcuid + '&rf=' + dcref + '&sw=' + dcsw + '&sh=' + dcsh + '&ru=' +
        dcru + dctq + '&rnd='+ Math.random()+'"></a>';        
}
// *** End Domik *** //

function updateAllStat() {
    updateBM();
   // updateDomik();
}

onload = updateAllStat;
