var d = new Date();
var stime = d.getTime();
var aid = '10055';
var thisPage = location.href;
var referringPage = (document.referrer) ? document.referrer : "none";
var tt = document.title;
var beacon = new Image();

var hweb = thisPage.split(".")[0];
var aweb = hweb.split("//")[1];

var _czc = _czc || [];
_czc.push(["_setAccount","1280199179"]);

platform = 1;
if (aweb == 'www') {
    platform = 1;
} else if (aweb == 'm') {
    platform = 2;
} else if (aweb == 'mip') {
    platform = 2;
}


function zimg(aid, thisPage, referringPage, tt, platform, stime, fx) {
    beacon.src = "https://union3.89jm.com/webdot" + aid + ".gif?appkey=operate_log&action=click&cnpage=" + encodeURI(thisPage) + "&cnref=" + encodeURI(referringPage) + '&cnaid=' + aid + '&cntt=' + tt + '&platform=' + platform + '&gid=' + gid + '&direction=' + fx + '&time=' + stime;
}


beacon.src = "https://union3.89jm.com/webdot" + aid + ".gif?appkey=operate_log&action=show&cnpage=" + encodeURI(thisPage) + "&cnref=" + encodeURI(referringPage) + '&cnaid=' + aid + '&cntt=' + tt + '&platform=' + platform + '&gid=' + gid + '&time=' + stime;


$(".category_down_btn_box").on('click', ".leftdown", function(){
    var d = new Date();
    var stime = d.getTime();
    zimg(aid, thisPage, referringPage, tt, platform, stime, 'left');

});


$(".category_down_btn_box").on('click', ".rightdown", function(){
    var d = new Date();
    var stime = d.getTime();
    zimg(aid, thisPage, referringPage, tt, platform, stime, 'right');

});


$(".btn_item").on('click', ".leftdown", function(){
    var d=new Date();
    var stime=d.getTime();
    zimg(aid,thisPage,referringPage,tt,platform,stime,'left');

});


$(".btn_item").on('click', ".rightdown", function(){
    var d=new Date();
    var stime=d.getTime();
    zimg(aid,thisPage,referringPage,tt,platform,stime,'right');

});