$(function() {
	var css_name = null;
	var ua = navigator.userAgent;
	var matches = null;

	if (ua.match(/firefox/i)) {
		css_name = 'firefox';
	} else if (ua.match(/safari/i)) {
		css_name = 'safari';
	} else if (matches = ua.match(/msie (\d+)/i)) {
		css_name = 'ie ie' + matches[1];
	} else if (ua.match(/opera/i)) {
		css_name = 'opera';
	} else if (ua.match(/mozilla/)) {
		css_name = 'mozilla';
	}

	if (css_name) {
		$('body').addClass(css_name);
	}

	$("#index span.total-comments").each(function() {
    $(this)
      .html($(this).attr("data-total"));
    });
});

if (top !== self) {
 top.location.replace(self.location.href);
}
