var $j = jQuery.noConflict();

var services_url = "services/";

var current_sort = [];

function sortItems(slot_name, sort_type) {
	if (!sort_type) { return; }
	if (!slot_name) { return; }
	
	if (current_sort[slot_name] == sort_type) {
		sort_type += "_rev";
	}
	current_sort[slot_name] = sort_type;
	
	slot_id = slot_name.toLowerCase();
	
	$j('#itemlist_' + slot_id).load(services_url + 'item_sort.php?sort=' + sort_type + '&slot=' + slot_name);
}
