e = function(item) {
			prevsource && prevsource.rclass('selected');
			prevsource = $('#dashboard-sources-' + item.id);
			prevsource.aclass('selected');
		};

	});

	Thelpers.counter = function(value) {
		if (value > 999999)
			return (value / 100000).format(2) + ' M';
		if (value > 9999)
			return (value / 1000).format(2) + ' K';
		return value.format(0);
	};

	Thelpers.time = function(value) {

		if (!value)
			return;

		var diff = Date.now() - value.parseDate().getTime();
		var minutes = ((diff / 1000