jQuery.fn.convertul2table = function() {
	return this.each(function() {
		var table = $('<table>');
		table.attr('id', $(this).attr('id'));
		table.attr('class', $(this).attr('class'));

		var tbody = $('<tbody>');
		var tr = $('<tr>');

		$(this).find('li').each(function(i) {
			var value = $(this).html();
			tr.append($('<td>').html(value));
		});

		tbody.append(tr);
		$(this).after(table.append(tbody)).remove();
	});
};
