function deleteLI(counter) {
    elem = document.getElementById("li_" + counter);
	elem.parentNode.removeChild(elem);
}

var newSICounter = 0;
function newSlideritem() {
    showLoading();
    $.ajax({
		url: "modules/Homepageslider/ajax/newSlideritem.php?counter=" + newSICounter,
		success: function(data) {
			$("#sortable").append(data);
			$("#sortable").sortable({
				axis: 'y',
				cursor: 'n-resize'
			});

			$("#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++;
}

function deleteNLI(counter) {
    elem = document.getElementById("n_li_" + counter);
    elem.parentNode.removeChild(elem);
}
