$.ui.plugin.add("draggable", "zIndex", {
    start: function(e, ui) {
        var t = $(ui.helper);
        if(t.css("zIndex")) ui.options._zIndex = t.css("zIndex");
        t.css('zIndex', ui.options.zIndex);