((function(){(function(a){a==null&&(a=jQuery);return a.fn.ajaxChosen=function(b,c){var d,e,f;b==null&&(b={});c==null&&(c=function(){});e={minTermLength:3,afterTypeDelay:500,jsonTermKey:"term"};d=null;f=a.extend({},e,b);this.chosen();this.each(function(){var b;b=a(this);a(this).next(".chzn-container").find(".search-field > input").bind("keyup",function(){var e,g,h;h=a.trim(a(this).attr("value"));g=h.length").attr("value",c).html(d).appendTo(b)});b.trigger("liszt:updated").css("border-color","red");typeof success!="undefined"&&success!==null&&success();return e.attr("value",h)};return this.timer=setTimeout(function(){d&&d.abort();return d=a.ajax(f)},f.afterTypeDelay)});return a(this).next(".chzn-container").find(".chzn-search > input").bind("keyup",function(){var e,g;g=a.trim(a(this).attr("value"));if(g.length").attr("value",c).html(d).appendTo(b)});b.trigger("liszt:updated");e.attr("value",g);if(typeof success!="undefined"&&success!==null)return success()};return this.timer=setTimeout(function(){d&&d.abort();return d=a.ajax(f)},f.afterTypeDelay)})})}})($)})).call(this);