var fO="3",gO="Any",hO="Aromatic",iO="Nonring",jO="Reset",kO="Ring";function lO(){lO=s;mO=new Eo(Sc,new nO)}function nO(){}r(198,195,{},nO);_.Tc=function(a){kw();LK(this,a.b,oO(a.a.a,a.a.a.ob.selectedIndex))};_.Wc=function(){return mO};var mO;function pO(a,b){if(0>b||b>=a.ob.options.length)throw new st;}function oO(a,b){pO(a,b);return a.ob.options[b].value}function qO(){this.ob=$doc.createElement("select");this.ob[Uc]="gwt-ListBox"}r(344,322,ph,qO);function rO(){rO=s}
function sO(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(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 tO(){rO();jw.call(this);new ri;this.mc=new uO((kw(),this))}r(412,399,{90:1,92:1,99:1,111:1,117:1},tO);_.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+Hg+this.hc+(this.qc?l:",hidden")+",current="+oO(this.mc.a,this.mc.a.ob.selectedIndex)};function vO(){jK.call(this,7)}r(425,1,Th,vO);function wO(a){lK.call(this,a,0)}r(430,399,uh,wO);function xO(a){var b=a.j;KK(a.mc.c,b.a,b.b);!Yv(a)&&EJ(a);zJ(a)}
function yO(a,b,c){HK.call(this);this.mc&&eK(this.mc.c,!1);bK(this,!1);xw(this,new jK(0));a=new lK(a,1);$(this,a,null);a=new Cw;$(a,this.i,null);$(this,a,null);b&&(this.j=Zv(b),aK(this),GK(this.j,~~(Jm(b.$b.ob,gf)/2)-~~(this.rc/2),~~(Jm(b.$b.ob,ff)/2)-~~(this.hc/2)));c&&Z(this,c)}r(547,548,XF,yO);_.hg=function(){return"OK"};r(553,554,vh);_.Pc=function(){xO(new yO(this.b,this.a,($y(),bz)))};r(556,554,vh);_.Pc=function(){!this.a.Ib?this.a.Ib=new zO(this.a):this.a.Ib.mc.c.gb?yL(this.a.Ib.mc.c):xO(this.a.Ib)};
function AO(a,b){vJ(b)==a.a?Z(b,(Uw(),cx)):Z(b,a.a)}
function BO(a){var b,c,d,e;e=l;d=!1;vJ(CO)!=a.a?(e=ta,d=!0):vJ(DO)!=a.a?(e="!#6",d=!0):vJ(EO)!=a.a?(Z(FO,(Uw(),cx)),Z(GO,cx),Z(HO,cx),Z(IO,cx),e="F,Cl,Br,I"):(b=vJ(JO)!=a.a,c=vJ(KO)!=a.a,vJ(LO)!=a.a&&(b?e+="c,":c?e+="C,":e+="#6,"),vJ(MO)!=a.a&&(b?e+="n,":c?e+="N,":e+="#7,"),vJ(NO)!=a.a&&(b?e+="o,":c?e+="O,":e+="#8,"),vJ(QO)!=a.a&&(b?e+="s,":c?e+="S,":e+="#16,"),vJ(RO)!=a.a&&(b?e+="p,":c?e+="P,":e+="#15,"),vJ(FO)!=a.a&&(e+="F,"),vJ(GO)!=a.a&&(e+="Cl,"),vJ(HO)!=a.a&&(e+="Br,"),vJ(IO)!=a.a&&(e+="I,"),
VC(e,va)&&(e=e.substr(0,e.length-1-0)),1>e.length&&!a.b&&(b?e=mc:c?e=pb:(Z(CO,(Uw(),cx)),e=ta)));b=l;d&&vJ(JO)!=a.a&&(b+=";a");d&&vJ(KO)!=a.a&&(b+=";A");vJ(SO)!=a.a&&(b+=";R");vJ(TO)!=a.a&&(b+=";!R");vJ(CO)!=a.a&&0<b.length?e=b.substr(1,b.length-1):e+=b;d=UO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";H"+d);d=VO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";D"+d);vJ(WO)!=a.a&&(e="~");vJ(XO)!=a.a&&(e=fb);vJ(YO)!=a.a&&(e=ob);vJ(ZO)!=a.a&&(e="!@");oK(a.e,e)}
function $O(a){aP(a);bP(a);var b=UO.mc.a;pO(b,0);b.ob.options[0].selected=!0;b=VO.mc.a;pO(b,0);b.ob.options[0].selected=!0;Z(JO,a.a);Z(KO,a.a);Z(SO,a.a);Z(TO,a.a);Z(UO,a.a);Z(VO,a.a);cP(a)}function aP(a){Z(LO,a.a);Z(MO,a.a);Z(NO,a.a);Z(QO,a.a);Z(RO,a.a);Z(FO,a.a);Z(GO,a.a);Z(HO,a.a);Z(IO,a.a)}function bP(a){Z(CO,a.a);Z(DO,a.a);Z(EO,a.a)}function cP(a){Z(WO,a.a);Z(XO,a.a);Z(YO,a.a);Z(ZO,a.a);a.b=!1}
function zO(a){cK.call(this,"Atom/Bond Query");this.i=new WJ(this.hg());Nw(this.q,new IK(this));this.a=($y(),bz);this.c=a;this.d||(a=Zv(a),this.d=new nK(a),GK(this.d,-150,10));this.j=this.d;xw(this,new vO);Z(this,this.a);a=new Cw;xw(a,new tx(0,3,1));$(a,new wO("Atom type :"),null);CO=new WJ(gO);DO=new WJ("Any except C");EO=new WJ("Halogen");$(a,CO,null);$(a,DO,null);$(a,EO,null);$(this,a,null);a=new Cw;xw(a,new tx(0,3,1));$(a,new lK("Or select one or more from the list :",0),null);$(this,a,null);
a=new Cw;xw(a,new tx(0,3,1));LO=new WJ(tb);MO=new WJ(Nb);NO=new WJ(Tb);QO=new WJ($b);RO=new WJ(Ub);FO=new WJ(Cb);GO=new WJ(wb);HO=new WJ(rb);IO=new WJ(Ib);$(a,LO,null);$(a,MO,null);$(a,NO,null);$(a,QO,null);$(a,RO,null);$(a,FO,null);$(a,GO,null);$(a,HO,null);$(a,IO,null);$(this,a,null);a=new Cw;xw(a,new tx(0,3,1));UO=new tO;sO(UO,gO);sO(UO,Ya);sO(UO,$a);sO(UO,eb);sO(UO,fO);$(a,new wO("Number of hydrogens :  "),null);$(a,UO,null);$(this,a,null);a=new Cw;xw(a,new tx(0,3,1));VO=new tO;sO(VO,gO);sO(VO,
Ya);sO(VO,$a);sO(VO,eb);sO(VO,fO);sO(VO,"4");sO(VO,"5");sO(VO,"6");$(a,new lK("Number of connections :",0),null);$(a,VO,null);$(a,new lK(" (H's don't count.)",0),null);$(this,a,null);a=new Cw;xw(a,new tx(0,3,1));$(a,new wO("Atom is :"),null);JO=new WJ(hO);$(a,JO,null);KO=new WJ("Nonaromatic");$(a,KO,null);SO=new WJ(kO);$(a,SO,null);TO=new WJ(iO);$(a,TO,null);$(this,a,null);a=new Cw;Z(a,jx(vJ(this)));xw(a,new tx(0,3,1));$(a,new wO("Bond is :"),null);WO=new WJ(gO);$(a,WO,null);XO=new WJ(hO);$(a,XO,
null);YO=new WJ(kO);$(a,YO,null);ZO=new WJ(iO);$(a,ZO,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 WJ(jO),null);$(a,this.i,null);$(this,a,null);this.mc&&eK(this.mc.c,!1);bK(this,!1);aP(this);bP(this);cP(this);Z(JO,this.a);Z(KO,this.a);Z(SO,this.a);Z(TO,this.a);Z(UO,this.a);Z(VO,this.a);AO(this,CO);aK(this);a=this.j;KK(this.mc.c,a.a,a.b);!Yv(this)&&EJ(this);zJ(this)}r(566,548,XF,zO);
_.ig=function(a,b){var c;H(b,jO)?($O(this),AO(this,CO),BO(this)):E(a.f,89)?(cP(this),Nq(a.f)===Nq(CO)?(aP(this),bP(this)):Nq(a.f)===Nq(DO)?(aP(this),bP(this)):Nq(a.f)===Nq(EO)?(aP(this),bP(this)):Nq(a.f)===Nq(SO)?Z(TO,this.a):Nq(a.f)===Nq(TO)?(Z(SO,this.a),Z(JO,this.a)):Nq(a.f)===Nq(JO)?(Z(KO,this.a),Z(TO,this.a)):Nq(a.f)===Nq(KO)?Z(JO,this.a):Nq(a.f)===Nq(WO)||Nq(a.f)===Nq(XO)||Nq(a.f)===Nq(YO)||Nq(a.f)===Nq(ZO)?($O(this),this.b=!0):bP(this),AO(this,a.f),BO(this)):E(a.f,90)&&(cP(this),c=a.f,0==c.mc.a.ob.selectedIndex?
Z(c,this.a):Z(c,(Uw(),cx)),BO(this));107!=this.c.e&&(this.c.e=107,Hw(this.c));return!0};_.jg=function(){return Km(this.e.mc.a.ob,Bg)};_.kg=function(){return this.b};_.b=!1;_.c=null;_.d=null;var CO=_.e=null,WO=null,DO=null,JO=null,XO=null,HO=null,LO=null,VO=null,UO=null,GO=null,FO=null,EO=null,IO=null,MO=null,KO=null,TO=null,ZO=null,NO=null,RO=null,SO=null,YO=null,QO=null;function uO(a){eF();gF.call(this);this.a=new qO;Ns(this.a,new dP(this,a),(lO(),lO(),mO))}r(612,610,{},uO);_.Je=function(){return this.a};
_.a=null;function dP(a,b){this.a=a;this.b=b}r(613,1,{},dP);_.a=null;_.b=null;Y(547);Y(566);Y(412);Y(612);Y(613);Y(344);Y(198);y(WF)(1);