Your IP : 216.73.216.240


Current Path : /home/sunflowe/www2/vacancesfloride/libraries/gantry/assets/jui/js/
Upload File :
Current File : /home/sunflowe/www2/vacancesfloride/libraries/gantry/assets/jui/js/chosen.jquery.min.js

/*
 * @author    RocketTheme http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - 2016 RocketTheme, LLC
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
 */
(function(){var a;a=function(){function b(){this.options_index=0,this.parsed=[];}return b.prototype.add_node=function(c){return c.nodeName==="OPTGROUP"?this.add_group(c):this.add_option(c);
},b.prototype.add_group=function(h){var d,k,g,c,f,j;d=this.parsed.length,this.parsed.push({array_index:d,group:!0,label:h.label,children:0,disabled:h.disabled}),f=h.childNodes,j=[];
for(g=0,c=f.length;g<c;g++){k=f[g],j.push(this.add_option(k,d,h.disabled));}return j;},b.prototype.add_option=function(d,c,f){if(d.nodeName==="OPTION"){return d.text!==""?(c!=null&&(this.parsed[c].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:d.value,text:d.text,html:d.innerHTML,selected:d.selected,disabled:f===!0?f:d.disabled,group_array_index:c,classes:d.className,style:d.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1;
}},b;}(),a.select_to_array=function(c){var g,e,b,d,f;e=new a,f=c.childNodes;for(b=0,d=f.length;b<d;b++){g=f[b],e.add_node(g);}return e.parsed;},this.SelectParser=a;
}).call(this),function(){var b,a;a=this,b=function(){function c(f,d){this.form_field=f,this.options=d!=null?d:{},this.set_default_values(),this.is_multiple=this.form_field.multiple,this.setup(),this.set_default_text(),this.set_up_html(),this.register_observers(),this.finish_setup();
}return c.prototype.set_default_values=function(){var d=this;return this.click_test_action=function(e){return d.test_active_click(e);},this.activate_action=function(e){return d.activate_field(e);
},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.result_single_selected=null,this.allow_single_deselect=this.options.allow_single_deselect!=null&&this.form_field.options[0]!=null&&this.form_field.options[0].text===""?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.search_contains=this.options.search_contains||!1,this.choices=0,this.single_backstroke_delete=this.options.single_backstroke_delete||!1,this.max_selected_options=this.options.max_selected_options||Infinity,this.allow_custom_value=!1,!0;
},c.prototype.set_default_text=function(){var d;return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||"Select Some Options":this.allow_custom_value?this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||"Type or Select an Option":this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||"Select an Option",this.allow_custom_value?(this.custom_group_text=this.form_field.getAttribute("data-custom_group_text")||this.options.custom_group_text||"Custom Value",d="Add custom value"):d="No results match",this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||d;
},c.prototype.mouse_enter=function(){return this.mouse_on_container=!0;},c.prototype.mouse_leave=function(){return this.mouse_on_container=!1;},c.prototype.input_focus=function(f){var d=this;
if(!this.active_field){return setTimeout(function(){return d.container_mousedown();},50);}},c.prototype.input_blur=function(f){var d=this;if(!this.mouse_on_container){return this.active_field=!1,setTimeout(function(){return d.blur_test();
},100);}},c.prototype.result_add_option=function(f){var d,g;return f.disabled?"":(f.dom_id=this.container_id+"_o_"+f.array_index,d=f.selected&&this.is_multiple?[]:["active-result"],f.selected&&d.push("result-selected"),f.group_array_index!=null&&d.push("group-option"),f.classes!==""&&d.push(f.classes),g=f.style.cssText!==""?' style="'+f.style+'"':"",'<li id="'+f.dom_id+'" class="'+d.join(" ")+'"'+g+">"+f.html+"</li>");
},c.prototype.results_update_field=function(){return this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.result_single_selected=null,this.results_build();
},c.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show();},c.prototype.results_search=function(d){return this.results_showing?this.winnow_results():this.results_show();
},c.prototype.keyup_checker=function(f){var d,g;d=(g=f.which)!=null?g:f.keyCode,this.search_field_scale();switch(d){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices>0){return this.keydown_backstroke();
}if(!this.pending_backstroke){return this.result_clear_highlight(),this.results_search();}break;case 13:f.preventDefault();if(this.results_showing){return this.result_select(f);
}break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search();
}},c.prototype.generate_field_id=function(){var d;return d=this.generate_random_id(),this.form_field.id=d,d;},c.prototype.generate_random_char=function(){var f,d,g;
return f="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",g=Math.floor(Math.random()*f.length),d=f.substring(g,g+1);},c;}(),a.AbstractChosen=b;}.call(this),function(){var f,b,g,d,a={}.hasOwnProperty,c=function(j,h){function i(){this.constructor=j;
}for(var k in h){a.call(h,k)&&(j[k]=h[k]);}return i.prototype=h.prototype,j.prototype=new i,j.__super__=h.prototype,j;};d=this,f=jQuery,f.fn.extend({chosen:function(e){return !f.browser.msie||f.browser.version!=="6.0"&&f.browser.version!=="7.0"?this.each(function(j){var h;
h=f(this);if(!h.hasClass("chzn-done")){return h.data("chosen",new b(this,e));}}):this;}}),b=function(h){function e(){return e.__super__.constructor.apply(this,arguments);
}return c(e,h),e.prototype.setup=function(){return this.form_field_jq=f(this.form_field),this.current_value=this.form_field_jq.val(),this.is_rtl=this.form_field_jq.hasClass("chzn-rtl"),this.allow_custom_value=this.form_field_jq.hasClass("chzn-custom-value");
},e.prototype.finish_setup=function(){return this.form_field_jq.addClass("chzn-done");},e.prototype.set_up_html=function(){var k,m,j,l;return this.container_id=this.form_field.id.length?this.form_field.id.replace(/[^\w]/g,"_"):this.generate_field_id(),this.container_id+="_chzn",this.f_width=this.form_field_jq.outerWidth(),k=f("<div />",{id:this.container_id,"class":"chzn-container"+(this.is_rtl?" chzn-rtl":""),style:"width: "+this.f_width+"px;"}),this.is_multiple?k.html('<ul class="chzn-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chzn-drop" style="display:none;"><ul class="chzn-results"></ul></div>'):k.html('<a href="javascript:void(0)" class="chzn-single chzn-default"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chzn-drop" style="display:none;"><div class="chzn-search"><input type="text" autocomplete="off" /></div><ul class="chzn-results"></ul></div>'),this.form_field_jq.hide().after(k),this.container=f("#"+this.container_id),this.container.addClass("chzn-container-"+(this.is_multiple?"multi":"single")),this.dropdown=this.container.find("div.chzn-drop").first(),m=this.container.height(),j=this.f_width-g(this.dropdown),this.dropdown.css({width:j+"px",top:m+"px"}),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chzn-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chzn-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chzn-search").first(),this.selected_item=this.container.find(".chzn-single").first(),l=j-g(this.search_container)-g(this.search_field),this.search_field.css({width:l+"px"})),this.results_build(),this.set_tab_index(),this.form_field_jq.trigger("liszt:ready",{chosen:this});
},e.prototype.register_observers=function(){var i=this;return this.container.mousedown(function(j){return i.container_mousedown(j);}),this.container.mouseup(function(j){return i.container_mouseup(j);
}),this.container.mouseenter(function(j){return i.mouse_enter(j);}),this.container.mouseleave(function(j){return i.mouse_leave(j);}),this.search_results.mouseup(function(j){return i.search_results_mouseup(j);
}),this.search_results.mouseover(function(j){return i.search_results_mouseover(j);}),this.search_results.mouseout(function(j){return i.search_results_mouseout(j);
}),this.form_field_jq.bind("liszt:updated",function(j){return i.results_update_field(j);}),this.search_field.blur(function(j){return i.input_blur(j);}),this.search_field.keyup(function(j){return i.keyup_checker(j);
}),this.search_field.keydown(function(j){return i.keydown_checker(j);}),this.is_multiple?(this.search_choices.click(function(j){return i.choices_click(j);
}),this.search_field.focus(function(j){return i.input_focus(j);})):this.container.click(function(j){return j.preventDefault();});},e.prototype.search_field_disabled=function(){this.is_disabled=this.form_field_jq[0].disabled;
if(this.is_disabled){return this.container.addClass("chzn-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus",this.activate_action),this.close_field();
}this.container.removeClass("chzn-disabled"),this.search_field[0].disabled=!1;if(!this.is_multiple){return this.selected_item.bind("focus",this.activate_action);
}},e.prototype.container_mousedown=function(i){var j;if(!this.is_disabled){return j=i!=null?f(i.target).hasClass("search-choice-close"):!1,i&&i.type==="mousedown"&&!this.results_showing&&i.stopPropagation(),!this.pending_destroy_click&&!j?(this.active_field?!this.is_multiple&&i&&(f(i.target)[0]===this.selected_item[0]||f(i.target).parents("a.chzn-single").length)&&(i.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),f(document).click(this.click_test_action),this.results_show()),this.activate_field()):this.pending_destroy_click=!1;
}},e.prototype.container_mouseup=function(i){if(i.target.nodeName==="ABBR"&&!this.is_disabled){return this.results_reset(i);}},e.prototype.blur_test=function(i){if(!this.active_field&&this.container.hasClass("chzn-container-active")){return this.close_field();
}},e.prototype.close_field=function(){return f(document).unbind("click",this.click_test_action),this.is_multiple||(this.selected_item.attr("tabindex",this.search_field.attr("tabindex")),this.search_field.attr("tabindex",-1)),this.active_field=!1,this.results_hide(),this.container.removeClass("chzn-container-active"),this.winnow_results_clear(),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale();
},e.prototype.activate_field=function(){return !this.is_multiple&&!this.active_field&&(this.search_field.attr("tabindex",this.selected_item.attr("tabindex")),this.selected_item.attr("tabindex",-1)),this.container.addClass("chzn-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus();
},e.prototype.test_active_click=function(i){return f(i.target).parents("#"+this.container_id).length?this.active_field=!0:this.close_field();},e.prototype.results_build=function(){var m,k,o,j,l;
this.parsing=!0,this.results_data=d.SelectParser.select_to_array(this.form_field),this.is_multiple&&this.choices>0?(this.search_choices.find("li.search-choice").remove(),this.choices=0):this.is_multiple||(this.selected_item.addClass("chzn-default").find("span").text(this.default_text),this.form_field.options.length<=this.disable_search_threshold?this.container.addClass("chzn-container-single-nosearch"):this.container.removeClass("chzn-container-single-nosearch")),m="",l=this.results_data;
for(o=0,j=l.length;o<j;o++){k=l[o],k.group?m+=this.result_add_group(k):k.empty||(m+=this.result_add_option(k),k.selected&&this.is_multiple?this.choice_build(k):k.selected&&!this.is_multiple&&(this.selected_item.removeClass("chzn-default").find("span").text(k.text),this.allow_single_deselect&&this.single_deselect_control_build()));
}return this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.search_results.html(m),this.parsing=!1;},e.prototype.result_add_group=function(i){return i.disabled?"":(i.dom_id=this.container_id+"_g_"+i.array_index,'<li id="'+i.dom_id+'" class="group-result">'+f("<div />").text(i.label).html()+"</li>");
},e.prototype.result_do_highlight=function(o){var k,p,m,j,l;if(o.length){this.result_clear_highlight(),this.result_highlight=o,this.result_highlight.addClass("highlighted"),m=parseInt(this.search_results.css("maxHeight"),10),l=this.search_results.scrollTop(),j=m+l,p=this.result_highlight.position().top+this.search_results.scrollTop(),k=p+this.result_highlight.outerHeight();
if(k>=j){return this.search_results.scrollTop(k-m>0?k-m:0);}if(p<l){return this.search_results.scrollTop(p);}}},e.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null;
},e.prototype.results_show=function(){var i;if(!this.is_multiple){this.selected_item.addClass("chzn-single-with-drop"),this.result_single_selected&&this.result_do_highlight(this.result_single_selected);
}else{if(this.max_selected_options<=this.choices){return this.form_field_jq.trigger("liszt:maxselected",{chosen:this}),!1;}}return i=this.is_multiple?this.container.height():this.container.height()-1,this.form_field_jq.trigger("liszt:showing_dropdown",{chosen:this}),this.dropdown.css({top:i+"px",display:"block"}),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results();
},e.prototype.results_hide=function(){return this.is_multiple||this.selected_item.removeClass("chzn-single-with-drop"),this.result_clear_highlight(),this.form_field_jq.trigger("liszt:hiding_dropdown",{chosen:this}),this.dropdown.css({display:"none"}),this.results_showing=!1;
},e.prototype.set_tab_index=function(j){var i;if(this.form_field_jq.attr("tabindex")){return i=this.form_field_jq.attr("tabindex"),this.form_field_jq.attr("tabindex",-1),this.is_multiple?this.search_field.attr("tabindex",i):(this.selected_item.attr("tabindex",i),this.search_field.attr("tabindex",-1));
}},e.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"));
},e.prototype.search_results_mouseup=function(i){var j;j=f(i.target).hasClass("active-result")?f(i.target):f(i.target).parents(".active-result").first();
if(j.length){return this.result_highlight=j,this.result_select(i);}},e.prototype.search_results_mouseover=function(i){var j;j=f(i.target).hasClass("active-result")?f(i.target):f(i.target).parents(".active-result").first();
if(j){return this.result_do_highlight(j);}},e.prototype.search_results_mouseout=function(i){if(f(i.target).hasClass("active-result")){return this.result_clear_highlight();
}},e.prototype.choices_click=function(i){i.preventDefault();if(this.active_field&&!f(i.target).hasClass("search-choice")&&!this.results_showing){return this.results_show();
}},e.prototype.choice_build=function(k){var m,l,j=this;return this.is_multiple&&this.max_selected_options<=this.choices?(this.form_field_jq.trigger("liszt:maxselected",{chosen:this}),!1):(m=this.container_id+"_c_"+k.array_index,this.choices+=1,this.search_container.before('<li class="search-choice" id="'+m+'"><span>'+k.html+'</span><a href="javascript:void(0)" class="search-choice-close" rel="'+k.array_index+'"></a></li>'),l=f("#"+m).find("a").first(),l.click(function(i){return j.choice_destroy_link_click(i);
}));},e.prototype.choice_destroy_link_click=function(i){return i.preventDefault(),this.is_disabled?i.stopPropagation:(this.pending_destroy_click=!0,this.choice_destroy(f(i.target)));
},e.prototype.choice_destroy=function(i){return this.choices-=1,this.show_search_field_default(),this.is_multiple&&this.choices>0&&this.search_field.val().length<1&&this.results_hide(),this.result_deselect(i.attr("rel")),i.parents("li").first().remove();
},e.prototype.results_reset=function(){this.form_field.options[0].selected=!0,this.selected_item.find("span").text(this.default_text),this.is_multiple||this.selected_item.addClass("chzn-default"),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change");
if(this.active_field){return this.results_hide();}},e.prototype.results_reset_cleanup=function(){return this.selected_item.find("abbr").remove();},e.prototype.result_select=function(m){var w,q,l,p,v,k,j;
if(this.result_highlight){return q=this.result_highlight,l=q.attr("id"),this.result_clear_highlight(),this.is_multiple?this.result_deactivate(q):(this.search_results.find(".result-selected").removeClass("result-selected"),this.result_single_selected=q,this.selected_item.removeClass("chzn-default")),q.addClass("result-selected"),k=l.substr(l.lastIndexOf("_")+1),p=this.results_data[k],p.selected=!0,this.form_field.options[p.options_index].selected=!0,this.is_multiple?this.choice_build(p):(this.selected_item.find("span").first().text(p.text),this.allow_single_deselect&&this.single_deselect_control_build()),(!m.metaKey||!this.is_multiple)&&this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field_jq.val()!==this.current_value)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[p.options_index].value}),this.current_value=this.form_field_jq.val(),this.search_field_scale();
}if(!this.is_multiple&&this.allow_custom_value){return j=this.search_field.val(),w=this.add_unique_custom_group(),v=f('<option value="'+j+'">'+j+"</option>"),w.append(v),this.form_field_jq.append(w),this.form_field.options[this.form_field.options.length-1].selected=!0,m.metaKey||this.results_hide(),this.results_build();
}},e.prototype.find_custom_group=function(){var k,o,m,j,l;l=f("optgroup",this.form_field);for(m=0,j=l.length;m<j;m++){o=l[m],o.getAttribute("label")===this.custom_group_text&&(k=o);
}return k;},e.prototype.add_unique_custom_group=function(){var i;return i=this.find_custom_group(),i||(i=f('<optgroup label="'+this.custom_group_text+'"></optgroup>')),f(i);
},e.prototype.result_activate=function(i){return i.addClass("active-result");},e.prototype.result_deactivate=function(i){return i.removeClass("active-result");
},e.prototype.result_deselect=function(i){var k,j;return j=this.results_data[i],j.selected=!1,this.form_field.options[j.options_index].selected=!1,k=f("#"+this.container_id+"_o_"+i),k.removeClass("result-selected").addClass("active-result").show(),this.result_clear_highlight(),this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[j.options_index].value}),this.search_field_scale();
},e.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect&&this.selected_item.find("abbr").length<1){return this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>');
}},e.prototype.winnow_results=function(){var w,C,z,F,x,B,q,L,I,E,K,G,A,J,k,D,H,j;this.no_results_clear(),I=0,E=this.search_field.val()===this.default_text?"":f("<div/>").text(f.trim(this.search_field.val())).html(),B=this.search_contains?"":"^",x=new RegExp(B+E.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"i"),A=new RegExp(E.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"i"),j=this.results_data;
for(J=0,D=j.length;J<D;J++){C=j[J];if(!C.disabled&&!C.empty){if(C.group){f("#"+C.dom_id).css("display","none");}else{if(!this.is_multiple||!C.selected){w=!1,L=C.dom_id,q=f("#"+L);
if(x.test(C.html)){w=!0,I+=1;}else{if(C.html.indexOf(" ")>=0||C.html.indexOf("[")===0){F=C.html.replace(/\[|\]/g,"").split(" ");if(F.length){for(k=0,H=F.length;
k<H;k++){z=F[k],x.test(z)&&(w=!0,I+=1);}}}}w?(E.length?(K=C.html.search(A),G=C.html.substr(0,K+E.length)+"</em>"+C.html.substr(K+E.length),G=G.substr(0,K)+"<em>"+G.substr(K)):G=C.html,q.html(G),this.result_activate(q),C.group_array_index!=null&&f("#"+this.results_data[C.group_array_index].dom_id).css("display","list-item")):(this.result_highlight&&L===this.result_highlight.attr("id")&&this.result_clear_highlight(),this.result_deactivate(q));
}}}}return I<1&&E.length?this.no_results(E):this.winnow_results_set_highlight();},e.prototype.winnow_results_clear=function(){var k,o,m,j,l;this.search_field.val(""),o=this.search_results.find("li"),l=[];
for(m=0,j=o.length;m<j;m++){k=o[m],k=f(k),k.hasClass("group-result")?l.push(k.css("display","auto")):!this.is_multiple||!k.hasClass("result-selected")?l.push(this.result_activate(k)):l.push(void 0);
}return l;},e.prototype.winnow_results_set_highlight=function(){var j,i;if(!this.result_highlight){i=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),j=i.length?i.first():this.search_results.find(".active-result").first();
if(j!=null){return this.result_do_highlight(j);}}},e.prototype.no_results=function(i){var j;return j=f('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'),j.find("span").first().html(i),this.search_results.append(j);
},e.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove();},e.prototype.keydown_arrow=function(){var i,j;this.result_highlight?this.results_showing&&(j=this.result_highlight.nextAll("li.active-result").first(),j&&this.result_do_highlight(j)):(i=this.search_results.find("li.active-result").first(),i&&this.result_do_highlight(f(i)));
if(!this.results_showing){return this.results_show();}},e.prototype.keyup_arrow=function(){var i;if(!this.results_showing&&!this.is_multiple){return this.results_show();
}if(this.result_highlight){return i=this.result_highlight.prevAll("li.active-result"),i.length?this.result_do_highlight(i.first()):(this.choices>0&&this.results_hide(),this.result_clear_highlight());
}},e.prototype.keydown_backstroke=function(){return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(this.pending_backstroke=this.search_container.siblings("li.search-choice").last(),this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus"));
},e.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null;
},e.prototype.keydown_checker=function(j){var i,k;i=(k=j.which)!=null?k:j.keyCode,this.search_field_scale(),i!==8&&this.pending_backstroke&&this.clear_backstroke();
switch(i){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(j),this.mouse_on_container=!1;
break;case 13:j.preventDefault();break;case 38:j.preventDefault(),this.keyup_arrow();break;case 40:this.keydown_arrow();}},e.prototype.search_field_scale=function(){var w,l,j,m,x,k,v,q,p;
if(this.is_multiple){j=0,v=0,x="position:absolute; left: -1000px; top: -1000px; display:none;",k=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"];
for(q=0,p=k.length;q<p;q++){m=k[q],x+=m+":"+this.search_field.css(m)+";";}return l=f("<div />",{style:x}),l.text(this.search_field.val()),f("body").append(l),v=l.width()+25,l.remove(),v>this.f_width-10&&(v=this.f_width-10),this.search_field.css({width:v+"px"}),w=this.container.height(),this.dropdown.css({top:w+"px"});
}},e.prototype.generate_random_id=function(){var i;i="sel"+this.generate_random_char()+this.generate_random_char()+this.generate_random_char();while(f("#"+i).length>0){i+=this.generate_random_char();
}return i;},e;}(AbstractChosen),g=function(i){var h;return h=i.outerWidth()-i.width();},d.get_side_border_padding=g;}.call(this);