var LN="3",MN="Any",NN="Aromatic",ON="Nonring",PN="Reset",QN="Ring";function RN(){RN=s;SN=new ko(Vc,new TN)}function TN(){}r(196,193,{},TN);_.Tc=function(a){Tv();qK(this,a.b,UN(a.a.a,a.a.a.ob.selectedIndex))};_.Wc=function(){return SN};var SN;function VN(a,b){if(0>b||b>=a.ob.options.length)throw new Ks;}function UN(a,b){VN(a,b);return a.ob.options[b].value}function WN(){Ot();this.ob=$doc.createElement("select");this.ob[dd]="gwt-ListBox"}r(341,319,jh,WN);function XN(){XN=s}
function YN(a,b){if(null==b)throw new Lp("Missing message: awt.103");var c=-1,d,e,f;f=a.mc.a.ob;e=$doc.createElement(lf);e.text=b;e.removeAttribute("bidiwrapped");e.value=b;d=f.options.length;(0>c||c>d)&&(c=d);c==d?f.add(e,null):(c=f.options[c],f.add(e,c))}function ZN(){XN();Sv.call(this);new qi;this.mc=new $N((Tv(),this))}r(408,395,{89:1,91:1,98:1,110:1,116:1},ZN);_.be=function(){return Xv(this.mc,this)};
_.qe=function(){return(null==this.jc&&(this.jc=Ev(this)),this.jc)+va+this.uc+va+this.vc+va+this.rc+Jg+this.hc+(this.qc?l:",hidden")+",current="+UN(this.mc.a,this.mc.a.ob.selectedIndex)};function aO(){QJ.call(this,7)}r(421,1,mh,aO);function bO(a){SJ.call(this,a,0)}r(426,395,Ah,bO);function cO(a){var b=a.j;pK(a.mc.c,b.a,b.b);!Gv(a)&&kJ(a);fJ(a)}
function dO(a,b,c){mK.call(this);this.mc&&LJ(this.mc.c,!1);IJ(this,!1);fw(this,new QJ(0));a=new SJ(a,1);$(this,a,null);a=new kw;$(a,this.i,null);$(this,a,null);b&&(this.j=Hv(b),HJ(this),lK(this.j,~~(Fm(b.$b.ob,hf)/2)-~~(this.rc/2),~~(Fm(b.$b.ob,gf)/2)-~~(this.hc/2)));c&&Z(this,c)}r(543,544,JF,dO);_.ig=function(){return"OK"};r(549,550,Fh);_.Pc=function(){cO(new dO(this.b,this.a,(Ly(),Ny)))};r(552,550,Fh);_.Pc=function(){!this.a.Ib?this.a.Ib=new eO(this.a):this.a.Ib.mc.c.gb?dL(this.a.Ib.mc.c):cO(this.a.Ib)};
function fO(a,b){bJ(b)==a.a?Z(b,(Cw(),Lw)):Z(b,a.a)}
function gO(a){var b,c,d,e;e=l;d=!1;bJ(hO)!=a.a?(e=ta,d=!0):bJ(iO)!=a.a?(e="!#6",d=!0):bJ(jO)!=a.a?(Z(kO,(Cw(),Lw)),Z(lO,Lw),Z(mO,Lw),Z(nO,Lw),e="F,Cl,Br,I"):(b=bJ(oO)!=a.a,c=bJ(pO)!=a.a,bJ(qO)!=a.a&&(b?e+="c,":c?e+="C,":e+="#6,"),bJ(rO)!=a.a&&(b?e+="n,":c?e+="N,":e+="#7,"),bJ(sO)!=a.a&&(b?e+="o,":c?e+="O,":e+="#8,"),bJ(tO)!=a.a&&(b?e+="s,":c?e+="S,":e+="#16,"),bJ(wO)!=a.a&&(b?e+="p,":c?e+="P,":e+="#15,"),bJ(kO)!=a.a&&(e+="F,"),bJ(lO)!=a.a&&(e+="Cl,"),bJ(mO)!=a.a&&(e+="Br,"),bJ(nO)!=a.a&&(e+="I,"),
GC(e,va)&&(e=e.substr(0,e.length-1-0)),1>e.length&&!a.b&&(b?e=nc:c?e=pb:(Z(hO,(Cw(),Lw)),e=ta)));b=l;d&&bJ(oO)!=a.a&&(b+=";a");d&&bJ(pO)!=a.a&&(b+=";A");bJ(xO)!=a.a&&(b+=";R");bJ(yO)!=a.a&&(b+=";!R");bJ(hO)!=a.a&&0<b.length?e=b.substr(1,b.length-1):e+=b;d=zO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";H"+d);d=AO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";D"+d);bJ(BO)!=a.a&&(e="~");bJ(CO)!=a.a&&(e=fb);bJ(DO)!=a.a&&(e=ob);bJ(EO)!=a.a&&(e="!@");Ix(a.e.mc,e)}
function FO(a){GO(a);HO(a);var b=zO.mc.a;VN(b,0);b.ob.options[0].selected=!0;b=AO.mc.a;VN(b,0);b.ob.options[0].selected=!0;Z(oO,a.a);Z(pO,a.a);Z(xO,a.a);Z(yO,a.a);Z(zO,a.a);Z(AO,a.a);IO(a)}function GO(a){Z(qO,a.a);Z(rO,a.a);Z(sO,a.a);Z(tO,a.a);Z(wO,a.a);Z(kO,a.a);Z(lO,a.a);Z(mO,a.a);Z(nO,a.a)}function HO(a){Z(hO,a.a);Z(iO,a.a);Z(jO,a.a)}function IO(a){Z(BO,a.a);Z(CO,a.a);Z(DO,a.a);Z(EO,a.a);a.b=!1}
function eO(a){JJ.call(this,"Atom/Bond Query");this.i=new CJ(this.ig());vw(this.q,new nK(this));this.a=(Ly(),Ny);this.c=a;this.d||(a=Hv(a),this.d=new UJ(a),lK(this.d,-150,10));this.j=this.d;fw(this,new aO);Z(this,this.a);a=new kw;fw(a,new bx(0,3,1));$(a,new bO("Atom type :"),null);hO=new CJ(MN);iO=new CJ("Any except C");jO=new CJ("Halogen");$(a,hO,null);$(a,iO,null);$(a,jO,null);$(this,a,null);a=new kw;fw(a,new bx(0,3,1));$(a,new SJ("Or select one or more from the list :",0),null);$(this,a,null);
a=new kw;fw(a,new bx(0,3,1));qO=new CJ(ub);rO=new CJ(Pb);sO=new CJ(Tb);tO=new CJ(ac);wO=new CJ(Ub);kO=new CJ(Cb);lO=new CJ(yb);mO=new CJ(tb);nO=new CJ(Ib);$(a,qO,null);$(a,rO,null);$(a,sO,null);$(a,tO,null);$(a,wO,null);$(a,kO,null);$(a,lO,null);$(a,mO,null);$(a,nO,null);$(this,a,null);a=new kw;fw(a,new bx(0,3,1));zO=new ZN;YN(zO,MN);YN(zO,Ya);YN(zO,$a);YN(zO,eb);YN(zO,LN);$(a,new bO("Number of hydrogens :  "),null);$(a,zO,null);$(this,a,null);a=new kw;fw(a,new bx(0,3,1));AO=new ZN;YN(AO,MN);YN(AO,
Ya);YN(AO,$a);YN(AO,eb);YN(AO,LN);YN(AO,"4");YN(AO,"5");YN(AO,"6");$(a,new SJ("Number of connections :",0),null);$(a,AO,null);$(a,new SJ(" (H's don't count.)",0),null);$(this,a,null);a=new kw;fw(a,new bx(0,3,1));$(a,new bO("Atom is :"),null);oO=new CJ(NN);$(a,oO,null);pO=new CJ("Nonaromatic");$(a,pO,null);xO=new CJ(QN);$(a,xO,null);yO=new CJ(ON);$(a,yO,null);$(this,a,null);a=new kw;Z(a,Sw(bJ(this)));fw(a,new bx(0,3,1));$(a,new bO("Bond is :"),null);BO=new CJ(MN);$(a,BO,null);CO=new CJ(NN);$(a,CO,
null);DO=new CJ(QN);$(a,DO,null);EO=new CJ(ON);$(a,EO,null);$(this,a,null);a=new kw;fw(a,new bx(1,3,1));this.e=new Hx(ta,20);$(a,this.e,null);$(a,new CJ(PN),null);$(a,this.i,null);$(this,a,null);this.mc&&LJ(this.mc.c,!1);IJ(this,!1);GO(this);HO(this);IO(this);Z(oO,this.a);Z(pO,this.a);Z(xO,this.a);Z(yO,this.a);Z(zO,this.a);Z(AO,this.a);fO(this,hO);HJ(this);a=this.j;pK(this.mc.c,a.a,a.b);!Gv(this)&&kJ(this);fJ(this)}r(562,544,JF,eO);
_.jg=function(a,b){var c;H(b,PN)?(FO(this),fO(this,hO),gO(this)):E(a.f,88)?(IO(this),sq(a.f)===sq(hO)?(GO(this),HO(this)):sq(a.f)===sq(iO)?(GO(this),HO(this)):sq(a.f)===sq(jO)?(GO(this),HO(this)):sq(a.f)===sq(xO)?Z(yO,this.a):sq(a.f)===sq(yO)?(Z(xO,this.a),Z(oO,this.a)):sq(a.f)===sq(oO)?(Z(pO,this.a),Z(yO,this.a)):sq(a.f)===sq(pO)?Z(oO,this.a):sq(a.f)===sq(BO)||sq(a.f)===sq(CO)||sq(a.f)===sq(DO)||sq(a.f)===sq(EO)?(FO(this),this.b=!0):HO(this),fO(this,a.f),gO(this)):E(a.f,89)&&(IO(this),c=a.f,0==c.mc.a.ob.selectedIndex?
Z(c,this.a):Z(c,(Cw(),Lw)),gO(this));107!=this.c.e&&(this.c.e=107,pw(this.c));return!0};_.kg=function(){return Gm(this.e.mc.a.ob,Dg)};_.lg=function(){return this.b};_.b=!1;_.c=null;_.d=null;var hO=_.e=null,BO=null,iO=null,oO=null,CO=null,mO=null,qO=null,AO=null,zO=null,lO=null,kO=null,jO=null,nO=null,rO=null,pO=null,yO=null,EO=null,sO=null,wO=null,xO=null,DO=null,tO=null;function $N(a){PE();RE.call(this);this.a=new WN;rs(this.a,new JO(this,a),(RN(),RN(),SN))}r(608,606,{},$N);_.Ke=function(){return this.a};
_.a=null;function JO(a,b){this.a=a;this.b=b}r(609,1,{},JO);_.a=null;_.b=null;Y(543);Y(562);Y(408);Y(608);Y(609);Y(341);Y(196);y(FF)(1);