 /*
 * AutoSuggest
 * Copyright 2009-2010 Drew Wilson
 * www.drewwilson.com
 * code.drewwilson.com/entry/autosuggest-jquery-plugin
 *
 * Version 1.3   -   Updated: Feb. 07, 2010
 *
 * This Plug-In will auto-complete or auto-suggest completed search queries
 * for you as you type. You can add multiple selections and remove them on
 * the fly. It supports keybord navigation (UP + DOWN + RETURN), as well
 * as multiple AutoSuggest fields on the same page.
 *
 * Inspied by the Autocomplete plugin by: Jšrn Zaefferer
 * and the Facelist plugin by: Ian Tearle (iantearle.com)
 *
 * This AutoSuggest jQuery plug-in is dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(7($){$.2A.2K=7(6,2m){3 2n={1F:p,1f:"2G 2N 2D",2g:"2q 2B 2y",D:{},1Z:"2q 2O 2P 2Q 2S",12:"Z",Y:"Z",1n:"Z",1T:"q",11:p,20:"",1e:p,1V:1,1r:2M,2e:V,1X:p,1x:p,I:7(){},1L:7(2L){},1J:p,2d:7(6){X 6},2t:7(6){},2l:7(){}};3 4=$.2b(2n,2m);3 10="2p";3 Q=0;5(1O 6=="s"){10="s";3 1Q=6}m{3 2r=6;L(k 1q 6)5(6.1m(k))Q++}5((10=="2p"&&Q>0)||10=="s"){X d.2J(7(x){5(!4.1F){x=x+""+23.2I(23.2H()*2F)}m{x=4.1F}4.I.J(d);3 j=$(d);j.21("2R","2E").C("b-j").21("N","b-j-"+x).c(4.1f);3 A=p;j.25(\'<18 v="b-1D" N="b-1D-\'+x+\'"></18>\').25(\'<f v="b-1C" N="b-1C-\'+x+\'"></f>\');3 n=$("#b-1D-"+x);3 O=$("#b-1C-"+x);3 h=$(\'<22 v="b-24" N="b-24-\'+x+\'"></22>\').F();3 G=$(\'<18 v="b-2T"></18>\');3 o=$(\'<j 2x="2z" v="b-1P" 1u="2C\'+x+\'" N="b-1P-\'+x+\'" />\');3 E="";5(1O 4.D=="s"){3 1a=4.D.1s(",");L(3 i=0;i<1a.r;i++){3 1M={};1M[4.Y]=1a[i];5(1a[i]!=""){1l(1M,"1R"+i)}}E=4.D}m{E="";3 1i=0;L(k 1q 4.D)5(4.D.1m(k))1i++;5(1i>0){L(3 i=0;i<1i;i++){3 14=4.D[i][4.Y];5(14==2V){14=""}E=E+14+",";5(14!=""){1l(4.D[i],"1R"+i)}}}}5(E!=""){j.c("");o.c(E);$("f.b-K-w",n).C("1d").z("H")}j.1U(o);n.16(7(){A=V;j.1k()}).1N(7(){A=p}).1U(h);3 M=3f;3 t="";3 3k=0;j.1k(7(){5($(d).c()==4.1f&&o.c()==""){$(d).c("")}m 5(A){$("f.b-K-w",n).z("1d");5($(d).c()!=""){G.2h("2j",n.2a());h.1E()}}A=V;X V}).1d(7(){5($(d).c()==""&&o.c()==""&&E==""){$(d).c(4.1f)}m 5(A){$("f.b-K-w",n).C("1d").z("H");h.F()}}).3d(7(e){1b=e.26;3c=p;3b(e.26){15 38:e.1K();1H("3e");S;15 3j:e.1K();1H("1o");S;15 8:5(j.c()==""){3 W=o.c().1s(",");W=W[W.r-2];n.2v().3h(O.t()).z("H");5(O.t().3g("H")){o.c(o.c().17(W+",",""));O.t().2o()}m{4.1L.J(d,O.t());O.t().C("H")}}5(j.c().r==1){h.F();t=""}5($(":2f",h).r>0){5(M){1Y(M)}M=1W(7(){1t()},4.1r)}S;15 9:15 13:3 l=$("f.l:27",h);5(l.r>0){l.16();h.F()}5(4.1X||l.r>0){e.1K()}S;2Y:5(4.1x&&$("f.b-K-w",n).r>=4.1x){G.U(\'<f v="b-2k">\'+4.1Z+\'</f>\');h.1E()}m{5(M){1Y(M)}M=1W(7(){1t()},4.1r)}S}});7 1t(){5(1b==2X||(1b>8&&1b<32)){X h.F()}3 s=j.c().17(/[\\\\]+|[\\/]+/g,"");5(s==t)X;t=s;5(s.r>=4.1V){n.C("1G");5(10=="s"){3 1h="";5(4.11){1h="&1h="+1S(4.11)}$.2W(1Q+"?"+4.1T+"="+1S(s)+1h+4.20,7(6){Q=0;3 1j=4.2d.J(d,6);L(k 1q 1j)5(1j.1m(k))Q++;1w(1j,s)})}m{1w(2r,s)}}m{n.z("1G");h.F()}}3 1p=0;7 1w(6,T){5(!4.1e){T=T.2s()}3 19=0;h.U(G.U("")).F();L(3 i=0;i<Q;i++){3 u=i;1p++;3 1z=p;5(4.1n=="Z"){3 B=6[u].Z}m{3 B="";3 1v=4.1n.1s(",");L(3 y=0;y<1v.r;y++){3 1u=$.2U(1v[y]);B=B+6[u][1u]+" "}}5(B){5(!4.1e){B=B.2s()}5(B.2w(T)!=-1&&o.c().2w(6[u][4.Y]+",")==-1){1z=V}}5(1z){3 P=$(\'<f v="b-2u-w" N="b-2u-w-\'+u+\'"></f>\').16(7(){3 1c=$(d).6("6");3 1A=1c.u;5($("#b-K-"+1A,n).r<=0){3 6=1c.2c;j.c("").1k();t="";o.c(o.c()+6[4.Y]+",");1l(6,1A);4.2t.J(d,1c);h.F()}}).1N(7(){A=p}).34(7(){$("f",G).z("l");$(d).C("l")}).6("6",{2c:6[u],u:1p});3 R=$.2b({},6[u]);5(!4.1e){3 1B=28 29("(?![^&;]+;)(?!<[^<>]*)("+T+")(?![^<>]*>)(?![^&;]+;)","33")}m{3 1B=28 29("(?![^&;]+;)(?!<[^<>]*)("+T+")(?![^<>]*>)(?![^&;]+;)","g")}5(4.2e){R[4.12]=R[4.12].17(1B,"<2i>$1</2i>")}5(!4.1J){P=P.U(R[4.12])}m{P=4.1J.J(d,R,P)}G.35(P);31 R;19++;5(4.11&&4.11==19){S}}}n.z("1G");5(19<=0){G.U(\'<f v="b-2k">\'+4.2g+\'</f>\')}G.2h("2j",n.2a());h.1E();4.2l.J(d)}7 1l(6,u){3 w=$(\'<f v="b-K-w" N="b-K-\'+u+\'"></f>\').16(7(){4.1L.J(d,$(d));n.2v().z("H");$(d).C("H")}).1N(7(){A=p});3 1I=$(\'<a v="b-1I">&30;</a>\').16(7(){o.c(o.c().17(6[4.Y]+",",""));w.2o();A=V;j.1k();X p});O.2Z(w.U(6[4.12]).37(1I))}7 1H(1y){5($(":2f",h).r>0){3 1g=$("f",h);5(1y=="1o"){3 I=1g.39(0)}m{3 I=1g.3i(":W")}3 l=$("f.l:27",h);5(l.r>0){5(1y=="1o"){I=l.3a()}m{I=l.t()}}1g.z("l");I.C("l")}}})}}})(36);',62,207,'|||var|opts|if|data|function||||as|val|this||li||results_holder||input||active|else|selections_holder|values_input|false||length|string|prev|num|class|item|||removeClass|input_focus|str|addClass|preFill|prefill_value|hide|results_ul|selected|start|call|selection|for|timeout|id|org_li|formatted|d_count|this_data|break|query|html|true|last|return|selectedValuesProp|value|d_type|retrieveLimit|selectedItemProp||new_v|case|click|replace|ul|matchCount|vals|lastKeyPressCode|raw_data|blur|matchCase|startText|lis|limit|prefill_count|new_data|focus|add_selected_item|hasOwnProperty|searchObjProps|down|num_count|in|keyDelay|split|keyChange|name|names|processData|selectionLimit|direction|forward|number|regx|original|selections|show|asHtmlID|loading|moveSelection|close|formatList|preventDefault|selectionClick|v_data|mousedown|typeof|values|req_string|000|encodeURIComponent|queryParam|after|minChars|setTimeout|neverSubmit|clearTimeout|limitText|extraParams|attr|div|Math|results|wrap|keyCode|first|new|RegExp|outerWidth|extend|attributes|retrieveComplete|resultsHighlight|visible|emptyText|css|em|width|message|resultsComplete|options|defaults|remove|object|No|org_data|toLowerCase|resultClick|result|children|search|type|Found|hidden|fn|Results|as_values_|Here|off|100|Enter|random|floor|each|autoSuggest|elem|400|Name|More|Selections|Are|autocomplete|Allowed|list|trim|undefined|getJSON|46|default|before|times|delete||gi|mouseover|append|jQuery|prepend||eq|next|switch|first_focus|keydown|up|null|hasClass|not|filter|40|totalSelections'.split('|'),0,{}))

