var IN="3",JN="Any",KN="Aromatic",LN="Nonring",MN="Reset",NN="Ring";function ON(){ON=s;PN=new jo(Uc,new QN)}function QN(){}r(196,193,{},QN);_.Tc=function(a){Tv();oK(this,a.b,RN(a.a.a,a.a.a.ob.selectedIndex))};_.Wc=function(){return PN};var PN;function SN(a,b){if(0>b||b>=a.ob.options.length)throw new Ks;}function RN(a,b){SN(a,b);return a.ob.options[b].value}function TN(){Ot();this.ob=$doc.createElement("select");this.ob[cd]="gwt-ListBox"}r(341,319,ih,TN);function UN(){UN=s}
function VN(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(kf);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 WN(){UN();Sv.call(this);new pi;this.mc=new XN((Tv(),this))}r(408,395,{89:1,91:1,98:1,110:1,116:1},WN);_.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+Ig+this.hc+(this.qc?l:",hidden")+",current="+RN(this.mc.a,this.mc.a.ob.selectedIndex)};function YN(){OJ.call(this,7)}r(421,1,lh,YN);function ZN(a){QJ.call(this,a,0)}r(426,395,zh,ZN);function $N(a){var b=a.j;nK(a.mc.c,b.a,b.b);!Gv(a)&&iJ(a);dJ(a)}
function aO(a,b,c){kK.call(this);this.mc&&JJ(this.mc.c,!1);GJ(this,!1);fw(this,new OJ(0));a=new QJ(a,1);$(this,a,null);a=new kw;$(a,this.i,null);$(this,a,null);b&&(this.j=Hv(b),FJ(this),jK(this.j,~~(Em(b.$b.ob,gf)/2)-~~(this.rc/2),~~(Em(b.$b.ob,ff)/2)-~~(this.hc/2)));c&&Z(this,c)}r(543,544,IF,aO);_.ig=function(){return"OK"};r(549,550,Eh);_.Pc=function(){$N(new aO(this.b,this.a,(Jy(),Ly)))};r(552,550,Eh);_.Pc=function(){!this.a.Ib?this.a.Ib=new bO(this.a):this.a.Ib.mc.c.gb?bL(this.a.Ib.mc.c):$N(this.a.Ib)};
function cO(a,b){$I(b)==a.a?Z(b,(Cw(),Lw)):Z(b,a.a)}
function dO(a){var b,c,d,e;e=l;d=!1;$I(eO)!=a.a?(e=ta,d=!0):$I(fO)!=a.a?(e="!#6",d=!0):$I(gO)!=a.a?(Z(hO,(Cw(),Lw)),Z(iO,Lw),Z(jO,Lw),Z(kO,Lw),e="F,Cl,Br,I"):(b=$I(lO)!=a.a,c=$I(mO)!=a.a,$I(nO)!=a.a&&(b?e+="c,":c?e+="C,":e+="#6,"),$I(oO)!=a.a&&(b?e+="n,":c?e+="N,":e+="#7,"),$I(pO)!=a.a&&(b?e+="o,":c?e+="O,":e+="#8,"),$I(qO)!=a.a&&(b?e+="s,":c?e+="S,":e+="#16,"),$I(tO)!=a.a&&(b?e+="p,":c?e+="P,":e+="#15,"),$I(hO)!=a.a&&(e+="F,"),$I(iO)!=a.a&&(e+="Cl,"),$I(jO)!=a.a&&(e+="Br,"),$I(kO)!=a.a&&(e+="I,"),
EC(e,va)&&(e=e.substr(0,e.length-1-0)),1>e.length&&!a.b&&(b?e=mc:c?e=pb:(Z(eO,(Cw(),Lw)),e=ta)));b=l;d&&$I(lO)!=a.a&&(b+=";a");d&&$I(mO)!=a.a&&(b+=";A");$I(uO)!=a.a&&(b+=";R");$I(vO)!=a.a&&(b+=";!R");$I(eO)!=a.a&&0<b.length?e=b.substr(1,b.length-1):e+=b;d=wO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";H"+d);d=xO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";D"+d);$I(yO)!=a.a&&(e="~");$I(zO)!=a.a&&(e=fb);$I(AO)!=a.a&&(e=ob);$I(BO)!=a.a&&(e="!@");Ix(a.e.mc,e)}
function CO(a){DO(a);EO(a);var b=wO.mc.a;SN(b,0);b.ob.options[0].selected=!0;b=xO.mc.a;SN(b,0);b.ob.options[0].selected=!0;Z(lO,a.a);Z(mO,a.a);Z(uO,a.a);Z(vO,a.a);Z(wO,a.a);Z(xO,a.a);FO(a)}function DO(a){Z(nO,a.a);Z(oO,a.a);Z(pO,a.a);Z(qO,a.a);Z(tO,a.a);Z(hO,a.a);Z(iO,a.a);Z(jO,a.a);Z(kO,a.a)}function EO(a){Z(eO,a.a);Z(fO,a.a);Z(gO,a.a)}function FO(a){Z(yO,a.a);Z(zO,a.a);Z(AO,a.a);Z(BO,a.a);a.b=!1}
function bO(a){HJ.call(this,"Atom/Bond Query");this.i=new AJ(this.ig());vw(this.q,new lK(this));this.a=(Jy(),Ly);this.c=a;this.d||(a=Hv(a),this.d=new SJ(a),jK(this.d,-150,10));this.j=this.d;fw(this,new YN);Z(this,this.a);a=new kw;fw(a,new bx(0,3,1));$(a,new ZN("Atom type :"),null);eO=new AJ(JN);fO=new AJ("Any except C");gO=new AJ("Halogen");$(a,eO,null);$(a,fO,null);$(a,gO,null);$(this,a,null);a=new kw;fw(a,new bx(0,3,1));$(a,new QJ("Or select one or more from the list :",0),null);$(this,a,null);
a=new kw;fw(a,new bx(0,3,1));nO=new AJ(ub);oO=new AJ(Pb);pO=new AJ(Tb);qO=new AJ(ac);tO=new AJ(Ub);hO=new AJ(Cb);iO=new AJ(yb);jO=new AJ(tb);kO=new AJ(Ib);$(a,nO,null);$(a,oO,null);$(a,pO,null);$(a,qO,null);$(a,tO,null);$(a,hO,null);$(a,iO,null);$(a,jO,null);$(a,kO,null);$(this,a,null);a=new kw;fw(a,new bx(0,3,1));wO=new WN;VN(wO,JN);VN(wO,Ya);VN(wO,$a);VN(wO,eb);VN(wO,IN);$(a,new ZN("Number of hydrogens :  "),null);$(a,wO,null);$(this,a,null);a=new kw;fw(a,new bx(0,3,1));xO=new WN;VN(xO,JN);VN(xO,
Ya);VN(xO,$a);VN(xO,eb);VN(xO,IN);VN(xO,"4");VN(xO,"5");VN(xO,"6");$(a,new QJ("Number of connections :",0),null);$(a,xO,null);$(a,new QJ(" (H's don't count.)",0),null);$(this,a,null);a=new kw;fw(a,new bx(0,3,1));$(a,new ZN("Atom is :"),null);lO=new AJ(KN);$(a,lO,null);mO=new AJ("Nonaromatic");$(a,mO,null);uO=new AJ(NN);$(a,uO,null);vO=new AJ(LN);$(a,vO,null);$(this,a,null);a=new kw;Z(a,Sw($I(this)));fw(a,new bx(0,3,1));$(a,new ZN("Bond is :"),null);yO=new AJ(JN);$(a,yO,null);zO=new AJ(KN);$(a,zO,
null);AO=new AJ(NN);$(a,AO,null);BO=new AJ(LN);$(a,BO,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 AJ(MN),null);$(a,this.i,null);$(this,a,null);this.mc&&JJ(this.mc.c,!1);GJ(this,!1);DO(this);EO(this);FO(this);Z(lO,this.a);Z(mO,this.a);Z(uO,this.a);Z(vO,this.a);Z(wO,this.a);Z(xO,this.a);cO(this,eO);FJ(this);a=this.j;nK(this.mc.c,a.a,a.b);!Gv(this)&&iJ(this);dJ(this)}r(562,544,IF,bO);
_.jg=function(a,b){var c;H(b,MN)?(CO(this),cO(this,eO),dO(this)):E(a.f,88)?(FO(this),sq(a.f)===sq(eO)?(DO(this),EO(this)):sq(a.f)===sq(fO)?(DO(this),EO(this)):sq(a.f)===sq(gO)?(DO(this),EO(this)):sq(a.f)===sq(uO)?Z(vO,this.a):sq(a.f)===sq(vO)?(Z(uO,this.a),Z(lO,this.a)):sq(a.f)===sq(lO)?(Z(mO,this.a),Z(vO,this.a)):sq(a.f)===sq(mO)?Z(lO,this.a):sq(a.f)===sq(yO)||sq(a.f)===sq(zO)||sq(a.f)===sq(AO)||sq(a.f)===sq(BO)?(CO(this),this.b=!0):EO(this),cO(this,a.f),dO(this)):E(a.f,89)&&(FO(this),c=a.f,0==c.mc.a.ob.selectedIndex?
Z(c,this.a):Z(c,(Cw(),Lw)),dO(this));107!=this.c.e&&(this.c.e=107,pw(this.c));return!0};_.kg=function(){return Fm(this.e.mc.a.ob,Cg)};_.lg=function(){return this.b};_.b=!1;_.c=null;_.d=null;var eO=_.e=null,yO=null,fO=null,lO=null,zO=null,jO=null,nO=null,xO=null,wO=null,iO=null,hO=null,gO=null,kO=null,oO=null,mO=null,vO=null,BO=null,pO=null,tO=null,uO=null,AO=null,qO=null;function XN(a){OE();QE.call(this);this.a=new TN;rs(this.a,new GO(this,a),(ON(),ON(),PN))}r(608,606,{},XN);_.Ke=function(){return this.a};
_.a=null;function GO(a,b){this.a=a;this.b=b}r(609,1,{},GO);_.a=null;_.b=null;Y(543);Y(562);Y(408);Y(608);Y(609);Y(341);Y(196);y(EF)(1);