/*
* 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(c35?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