/*
 * jQuery selectbox plugin
 *
 * Copyright (c) 2007 Sadri Sahraoui (brainfault.com)
 * Licensed under the GPL license and MIT:
 *   http://www.opensource.org/licenses/GPL-license.php
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * The code is inspired from Autocomplete plugin (http://www.dyve.net/jquery/?autocomplete)
 *
 * Revision: $Id$
 * Version: 0.6
 * 
 * Changelog :
 *  Version 0.6
 *  - Fix IE scrolling problem
 *  Version 0.5 
 *  - separate css style for current selected element and hover element which solve the highlight issue 
 *  Version 0.4
 *  - Fix width when the select is in a hidden div   @Pawel Maziarz
 *  - Add a unique id for generated li to avoid conflict with other selects and empty values @Pawel Maziarz
 */
eval(function(p,a,c,k,e,r){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--)r[e(c)]=k[c]||e(c);k=[function(e){return r[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}('w.1i.1j({I:3(a){7 5.U(3(){w.V(5,a)})}});4(!1k.q){2 q={x:3(a){}}}w.V=3(g,h){2 i=h||{};i.J=i.J||"I";i.K=i.K||"I-1l";i.8=i.8||"1m";i.r=i.1n||"W";i.s=i.s||L;2 j=g.6;2 k=0;2 l=L;2 m=0;2 n=$(g);2 o=X(i);2 p=Y(i);n.M().Z(p).Z(o);10();p.C(3(){4(!l){o.1o()}}).N(3(){4(o.1p(\':O\')){l=11;o.1q()}}).1r(3(a){1s(a.1t){D 1u:a.P();Q(-1);E;D 1v:a.P();Q(1);E;D 13:a.P();$(\'t.\'+i.8).1w(\'C\');E;D 1x:y();E}}).12(3(){4(o.14(\':O\')&&m>0){4(i.s)q.x(\'1y O 1z 1A N\')}z{4($.15.1B||$.15.1C){4(A.1D.1E(\'6\').1F(\'16\')==-1){y()}z{p.N()}}z{y()}}});3 y(){m=0;o.M()}3 10(){o.1G(17(p.9(\'6\'))).M();2 a=p.1H(\'18\');o.18(a)}3 X(a){2 b=A.F("1I");o=$(b);o.9(\'6\',j+\'16\');o.u(a.K);7 o}3 Y(a){2 b=A.F("1J");2 c=$(b);c.9("6",j+"1K");c.9("1L","1M");c.u(a.J);c.9("1N","1O");c.9("19","19");c.9("1P",n.9("1Q"));7 c}3 Q(a){2 b=$("t",o);4(!b||b.1a==0)7 L;k+=a;4(k<0){k=b.1b()}z 4(k>b.1b()){k=0}1c(b,k);b.R(i.8);$(b[k]).u(i.8)}3 1c(a,b){2 c=$(a[b]).B(0);2 a=o.B(0);4(c.G+c.1d>a.H+a.1e){a.H=c.G+c.1d-a.1e}z 4(c.G<a.H){a.H=c.G}}3 1f(){2 a=$("t."+i.r,o).B(0);2 b=(\'\'+a.6).1R(\'1g\');2 c=b[b.1a-1];n.v(c);p.v($(a).S());7 11}3 1S(){7 n.v()}3 1T(){7 p.v()}3 17(d){2 e=1U 1V();2 f=A.F(\'1W\');n.1X(\'1Y\').U(3(){2 c=A.F(\'t\');c.1Z(\'6\',d+\'1g\'+$(5).v());c.20=$(5).S();4($(5).14(\':W\')){p.v($(5).S());$(c).u(i.r)}f.21(c);$(c).22(3(a){m=1;4(i.s)q.x(\'23 T : \'+5.6);w(a.1h,o).u(i.8)}).24(3(a){m=-1;4(i.s)q.x(\'25 T : \'+5.6);w(a.1h,o).R(i.8)}).C(3(a){2 b=$(\'t.\'+i.8,o).B(0);4(i.s)q.x(\'C T :\'+5.6);$(\'t.\'+i.r).R(i.r);$(5).u(i.r);1f();n.B(0).12();y()})});7 f}};',62,130,'||var|function|if|this|id|return|hoverClass|attr|||||||||||||||||console|currentClass|debug|li|addClass|val|jQuery|log|hideMe|else|document|get|click|case|break|createElement|offsetTop|scrollTop|selectbox|inputClass|containerClass|false|hide|focus|visible|preventDefault|moveSelect|removeClass|html|on|each|SelectBox|selected|setupContainer|setupInput|before|init|true|blur||is|browser|_container|getSelectOptions|width|readonly|length|size|scroll|offsetHeight|clientHeight|setCurrent|_|target|fn|extend|window|wrapper|current|selectedClass|toggle|not|show|keydown|switch|keyCode|38|40|trigger|27|container|and|has|msie|safari|activeElement|getAttribute|indexOf|append|css|div|input|_input|type|text|autocomplete|off|tabIndex|tabindex|split|getCurrentSelected|getCurrentValue|new|Array|ul|children|option|setAttribute|innerHTML|appendChild|mouseover|over|mouseout|out'.split('|'),0,{}))