var newMICounter = 0;


function deletet(id) {
	elem = document.getElementById("t_" + id);
	elem.parentNode.removeChild(elem);
}
function deleteNt(counter) {
	elem = document.getElementById("n_t_" + counter);
	elem.parentNode.removeChild(elem);
}



function newTag() {
	showLoading();
	$.ajax({
		url: "modules/Tagcloud/ajax/newTag.php?counter=" + newMICounter,
		success: function(data) {
			$("#sortable").append(data);
			$("#sortable").sortable({ 
				axis: 'y', 
				cursor: 'n-resize' 
			});
			$("#sortable").disableSelection();
			$("#sortable li").hover(
			  function () {
			    $(this).find('span').html('<img src=\"../img/icons/arrow_inoutgrey.png\" alt=\"sort\">');
			  }, 
			  function () {
			    $(this).find('span').html('&nbsp;');
			  }
			);
			hideLoading();
		}
	});
	newMICounter++;
}