rts.refresh_categories();
		};

		exports.refresh = function(el) {
			if (el instanceof jQuery)
				el.find('i').aclass('ti-spin').rclass('ti-spin', 800);
			exports.tapi('posts @showloading ERROR', 'items @hideloading');
		};

		exports.refresh_categories = function() {
			exports.tapi('posts_categories', '#postscategories');
		};

		exports.filter = function(type, filter, sort, page) {

			if (!filter)
				filter = {};

			filter.sort = sort;
			filter.page = page;

			exports.tapi(QUERIFY('posts', filter