var countClick = function (id) {
	try {
		$.get(appRootPath + '/click.php', {'id': id})
	} catch (e) {
	}
	return true;
};

var showClickCount = function (event, all, allPc, allMobile, day, dayPc, dayMobile) {
	var box = $(document).find('#click-counts');
	box.find('#click-count-all').text(all);
	box.find('#click-count-all-pc').text(allPc);
	box.find('#click-count-all-mobile').text(allMobile);
	box.find('#click-count-day').text(day);
	box.find('#click-count-day-pc').text(dayPc);
	box.find('#click-count-day-mobile').text(dayMobile);
	box.css({
		'top': event.pageY + 10,
		'left': event.pageX - 50
	});
	box.show();
};

var hideClickCount = function () {
	$(document).find('#click-counts').hide();
};
