var gO="3",hO="Any",iO="Aromatic",jO="Nonring",kO="Reset",lO="Ring";function mO(){mO=s;nO=new Fo(Tc,new oO)}function oO(){}r(198,195,{},oO);_.Tc=function(a){kw();MK(this,a.b,pO(a.a.a,a.a.a.ob.selectedIndex))};_.Wc=function(){return nO};var nO;function qO(a,b){if(0>b||b>=a.ob.options.length)throw new st;}function pO(a,b){qO(a,b);return a.ob.options[b].value}function rO(){this.ob=$doc.createElement("select");this.ob[Vc]="gwt-ListBox"}r(344,322,qh,rO);function sO(){sO=s}
function tO(a,b){if(null==b)throw new fq("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 uO(){sO();jw.call(this);new si;this.mc=new vO((kw(),this))}r(412,399,{90:1,92:1,99:1,111:1,117:1},uO);_.ae=function(){return ow(this.mc,this)};
_.pe=function(){return(null==this.jc&&(this.jc=Wv(this)),this.jc)+va+this.uc+va+this.vc+va+this.rc+Ig+this.hc+(this.qc?l:",hidden")+",current="+pO(this.mc.a,this.mc.a.ob.selectedIndex)};function wO(){kK.call(this,7)}r(425,1,Uh,wO);function xO(a){mK.call(this,a,0)}r(430,399,vh,xO);function yO(a){var b=a.j;LK(a.mc.c,b.a,b.b);!Yv(a)&&FJ(a);AJ(a)}
function zO(a,b,c){IK.call(this);this.mc&&fK(this.mc.c,!1);cK(this,!1);xw(this,new kK(0));a=new mK(a,1);$(this,a,null);a=new Cw;$(a,this.i,null);$(this,a,null);b&&(this.j=Zv(b),bK(this),HK(this.j,~~(Km(b.$b.ob,hf)/2)-~~(this.rc/2),~~(Km(b.$b.ob,gf)/2)-~~(this.hc/2)));c&&Z(this,c)}r(547,548,YF,zO);_.hg=function(){return"OK"};r(553,554,wh);_.Pc=function(){yO(new zO(this.b,this.a,(bz(),dz)))};r(556,554,wh);_.Pc=function(){!this.a.Ib?this.a.Ib=new AO(this.a):this.a.Ib.mc.c.gb?zL(this.a.Ib.mc.c):yO(this.a.Ib)};
function BO(a,b){wJ(b)==a.a?Z(b,(Uw(),cx)):Z(b,a.a)}
function CO(a){var b,c,d,e;e=l;d=!1;wJ(DO)!=a.a?(e=ta,d=!0):wJ(EO)!=a.a?(e="!#6",d=!0):wJ(FO)!=a.a?(Z(GO,(Uw(),cx)),Z(HO,cx),Z(IO,cx),Z(JO,cx),e="F,Cl,Br,I"):(b=wJ(KO)!=a.a,c=wJ(LO)!=a.a,wJ(MO)!=a.a&&(b?e+="c,":c?e+="C,":e+="#6,"),wJ(NO)!=a.a&&(b?e+="n,":c?e+="N,":e+="#7,"),wJ(OO)!=a.a&&(b?e+="o,":c?e+="O,":e+="#8,"),wJ(RO)!=a.a&&(b?e+="s,":c?e+="S,":e+="#16,"),wJ(SO)!=a.a&&(b?e+="p,":c?e+="P,":e+="#15,"),wJ(GO)!=a.a&&(e+="F,"),wJ(HO)!=a.a&&(e+="Cl,"),wJ(IO)!=a.a&&(e+="Br,"),wJ(JO)!=a.a&&(e+="I,"),
XC(e,va)&&(e=e.substr(0,e.length-1-0)),1>e.length&&!a.b&&(b?e=nc:c?e=pb:(Z(DO,(Uw(),cx)),e=ta)));b=l;d&&wJ(KO)!=a.a&&(b+=";a");d&&wJ(LO)!=a.a&&(b+=";A");wJ(TO)!=a.a&&(b+=";R");wJ(UO)!=a.a&&(b+=";!R");wJ(DO)!=a.a&&0<b.length?e=b.substr(1,b.length-1):e+=b;d=VO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";H"+d);d=WO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";D"+d);wJ(XO)!=a.a&&(e="~");wJ(YO)!=a.a&&(e=fb);wJ(ZO)!=a.a&&(e=ob);wJ($O)!=a.a&&(e="!@");pK(a.e,e)}
function aP(a){bP(a);cP(a);var b=VO.mc.a;qO(b,0);b.ob.options[0].selected=!0;b=WO.mc.a;qO(b,0);b.ob.options[0].selected=!0;Z(KO,a.a);Z(LO,a.a);Z(TO,a.a);Z(UO,a.a);Z(VO,a.a);Z(WO,a.a);dP(a)}function bP(a){Z(MO,a.a);Z(NO,a.a);Z(OO,a.a);Z(RO,a.a);Z(SO,a.a);Z(GO,a.a);Z(HO,a.a);Z(IO,a.a);Z(JO,a.a)}function cP(a){Z(DO,a.a);Z(EO,a.a);Z(FO,a.a)}function dP(a){Z(XO,a.a);Z(YO,a.a);Z(ZO,a.a);Z($O,a.a);a.b=!1}
function AO(a){dK.call(this,"Atom/Bond Query");this.i=new XJ(this.hg());Nw(this.q,new JK(this));this.a=(bz(),dz);this.c=a;this.d||(a=Zv(a),this.d=new oK(a),HK(this.d,-150,10));this.j=this.d;xw(this,new wO);Z(this,this.a);a=new Cw;xw(a,new tx(0,3,1));$(a,new xO("Atom type :"),null);DO=new XJ(hO);EO=new XJ("Any except C");FO=new XJ("Halogen");$(a,DO,null);$(a,EO,null);$(a,FO,null);$(this,a,null);a=new Cw;xw(a,new tx(0,3,1));$(a,new mK("Or select one or more from the list :",0),null);$(this,a,null);
a=new Cw;xw(a,new tx(0,3,1));MO=new XJ(tb);NO=new XJ(Pb);OO=new XJ(Tb);RO=new XJ(ac);SO=new XJ(Ub);GO=new XJ(Cb);HO=new XJ(wb);IO=new XJ(rb);JO=new XJ(Ib);$(a,MO,null);$(a,NO,null);$(a,OO,null);$(a,RO,null);$(a,SO,null);$(a,GO,null);$(a,HO,null);$(a,IO,null);$(a,JO,null);$(this,a,null);a=new Cw;xw(a,new tx(0,3,1));VO=new uO;tO(VO,hO);tO(VO,Ya);tO(VO,$a);tO(VO,eb);tO(VO,gO);$(a,new xO("Number of hydrogens :  "),null);$(a,VO,null);$(this,a,null);a=new Cw;xw(a,new tx(0,3,1));WO=new uO;tO(WO,hO);tO(WO,
Ya);tO(WO,$a);tO(WO,eb);tO(WO,gO);tO(WO,"4");tO(WO,"5");tO(WO,"6");$(a,new mK("Number of connections :",0),null);$(a,WO,null);$(a,new mK(" (H's don't count.)",0),null);$(this,a,null);a=new Cw;xw(a,new tx(0,3,1));$(a,new xO("Atom is :"),null);KO=new XJ(iO);$(a,KO,null);LO=new XJ("Nonaromatic");$(a,LO,null);TO=new XJ(lO);$(a,TO,null);UO=new XJ(jO);$(a,UO,null);$(this,a,null);a=new Cw;Z(a,jx(wJ(this)));xw(a,new tx(0,3,1));$(a,new xO("Bond is :"),null);XO=new XJ(hO);$(a,XO,null);YO=new XJ(iO);$(a,YO,
null);ZO=new XJ(lO);$(a,ZO,null);$O=new XJ(jO);$(a,$O,null);$(this,a,null);a=new Cw;xw(a,new tx(1,3,1));this.e=new Zx(ta,20);$(a,this.e,null);$(a,new XJ(kO),null);$(a,this.i,null);$(this,a,null);this.mc&&fK(this.mc.c,!1);cK(this,!1);bP(this);cP(this);dP(this);Z(KO,this.a);Z(LO,this.a);Z(TO,this.a);Z(UO,this.a);Z(VO,this.a);Z(WO,this.a);BO(this,DO);bK(this);a=this.j;LK(this.mc.c,a.a,a.b);!Yv(this)&&FJ(this);AJ(this)}r(566,548,YF,AO);
_.ig=function(a,b){var c;H(b,kO)?(aP(this),BO(this,DO),CO(this)):E(a.f,89)?(dP(this),Nq(a.f)===Nq(DO)?(bP(this),cP(this)):Nq(a.f)===Nq(EO)?(bP(this),cP(this)):Nq(a.f)===Nq(FO)?(bP(this),cP(this)):Nq(a.f)===Nq(TO)?Z(UO,this.a):Nq(a.f)===Nq(UO)?(Z(TO,this.a),Z(KO,this.a)):Nq(a.f)===Nq(KO)?(Z(LO,this.a),Z(UO,this.a)):Nq(a.f)===Nq(LO)?Z(KO,this.a):Nq(a.f)===Nq(XO)||Nq(a.f)===Nq(YO)||Nq(a.f)===Nq(ZO)||Nq(a.f)===Nq($O)?(aP(this),this.b=!0):cP(this),BO(this,a.f),CO(this)):E(a.f,90)&&(dP(this),c=a.f,0==c.mc.a.ob.selectedIndex?
Z(c,this.a):Z(c,(Uw(),cx)),CO(this));107!=this.c.e&&(this.c.e=107,Hw(this.c));return!0};_.jg=function(){return Lm(this.e.mc.a.ob,zg)};_.kg=function(){return this.b};_.b=!1;_.c=null;_.d=null;var DO=_.e=null,XO=null,EO=null,KO=null,YO=null,IO=null,MO=null,WO=null,VO=null,HO=null,GO=null,FO=null,JO=null,NO=null,LO=null,UO=null,$O=null,OO=null,SO=null,TO=null,ZO=null,RO=null;function vO(a){fF();hF.call(this);this.a=new rO;Ns(this.a,new eP(this,a),(mO(),mO(),nO))}r(612,610,{},vO);_.Je=function(){return this.a};
_.a=null;function eP(a,b){this.a=a;this.b=b}r(613,1,{},eP);_.a=null;_.b=null;Y(547);Y(566);Y(412);Y(612);Y(613);Y(344);Y(198);y(XF)(1);