XenForo.balloonCounterUpdateOriginal = function(a, b) {
if (a.length) {
var d = a.find("span.Total")
, e = d.text();
d.text(b);
!b || b == "0" ? a.fadeOut("fast", function() {
a.addClass("Zero").css("display", "")
}) : a.fadeIn("fast", function() {
a.removeClass("Zero").css("display", "");
var d = parseInt(e.replace(/[^\d]/, ""), 10)
, d = parseInt(b.replace(/[^\d]/, ""), 10) - d;
if (d > 0 && a.data("text")) {
var h = a.closest(".Popup")
, j = h.data("XenForo.PopupMenu")
, d = c("<a />").css("cursor", "pointer").html(a.data("text").replace(/%d/, d)).click(function() {
if (h.is(":visible") && j)
j.$clicker.trigger("click");
else if (h.find("a[href]").length)
g.location = XenForo.canonicalizeUrl(h.find("a[href]").attr("href"));
return !1
});
j && !j.menuVisible && j.resetLoader();
XenForo.stackAlert(d, 1E4, a)
}
})
}
}