var MP="3",NP="Any",OP="Aromatic",PP="Nonring",QP="Reset",RP="Ring";function SP(){SP=r;TP=new zp(Vc,new UP)}function UP(){}q(217,214,{},UP);_.Tc=function(a){Yx();sM(this,a.b,VP(a.a.a,a.a.a.ob.selectedIndex))};_.Wc=function(){return TP};var TP;function WP(a,b){if(0>b||b>=a.ob.options.length)throw new Tu;}function VP(a,b){WP(a,b);return a.ob.options[b].value}function XP(){this.ob=$doc.createElement("select");this.ob[dd]="gwt-ListBox"}q(364,342,oh,XP);function YP(){YP=r}
function ZP(a,b){if(null==b)throw new qr("Missing message: awt.103");var c=-1,d,e,f;f=a.mc.a.ob;e=$doc.createElement(pf);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 $P(){YP();Xx.call(this);new Bi;this.mc=new aQ((Yx(),this))}q(432,419,{91:1,93:1,100:1,112:1,118:1},$P);_.ee=function(){return by(this.mc,this)};
_.te=function(){return(null==this.jc&&(this.jc=Jx(this)),this.jc)+xa+this.uc+xa+this.vc+xa+this.rc+Og+this.hc+(this.qc?l:",hidden")+",current="+VP(this.mc.a,this.mc.a.ob.selectedIndex)};function dQ(){RL.call(this,7)}q(445,1,di,dQ);function eQ(a){TL.call(this,a,0)}q(450,419,Gh,eQ);function fQ(a){var b=a.j;rM(a.mc.c,b.a,b.b);!Lx(a)&&lL(a);gL(a)}
function gQ(a,b,c){oM.call(this);this.mc&&ML(this.mc.c,!1);JL(this,!1);ky(this,new RL(0));a=new TL(a,1);$(this,a,null);a=new py;$(a,this.i,null);$(this,a,null);b&&(this.j=Mx(b),IL(this),nM(this.j,~~(G(b.$b.ob,mf)/2)-~~(this.rc/2),~~(G(b.$b.ob,lf)/2)-~~(this.hc/2)));c&&Z(this,c)}q(578,579,bI,gQ);_.ng=function(){return"OK"};q(584,585,Fh);_.Pc=function(){fQ(new gQ(this.b,this.a,(fB(),hB)))};q(587,585,Fh);_.Pc=function(){!this.a.Ib?this.a.Ib=new hQ(this.a):this.a.Ib.mc.c.gb?fN(this.a.Ib.mc.c):fQ(this.a.Ib)};
function iQ(a,b){cL(b)==a.a?Z(b,(Iy(),Ry)):Z(b,a.a)}
function jQ(a){var b,c,d,e;e=l;d=!1;cL(kQ)!=a.a?(e=va,d=!0):cL(lQ)!=a.a?(e="!#6",d=!0):cL(mQ)!=a.a?(Z(nQ,(Iy(),Ry)),Z(oQ,Ry),Z(pQ,Ry),Z(qQ,Ry),e="F,Cl,Br,I"):(b=cL(rQ)!=a.a,c=cL(sQ)!=a.a,cL(tQ)!=a.a&&(b?e+="c,":c?e+="C,":e+="#6,"),cL(uQ)!=a.a&&(b?e+="n,":c?e+="N,":e+="#7,"),cL(vQ)!=a.a&&(b?e+="o,":c?e+="O,":e+="#8,"),cL(wQ)!=a.a&&(b?e+="s,":c?e+="S,":e+="#16,"),cL(xQ)!=a.a&&(b?e+="p,":c?e+="P,":e+="#15,"),cL(nQ)!=a.a&&(e+="F,"),cL(oQ)!=a.a&&(e+="Cl,"),cL(pQ)!=a.a&&(e+="Br,"),cL(qQ)!=a.a&&(e+="I,"),
aF(e,xa)&&(e=e.substr(0,e.length-1-0)),1>e.length&&!a.b&&(b?e=pc:c?e=rb:(Z(kQ,(Iy(),Ry)),e=va)));b=l;d&&cL(rQ)!=a.a&&(b+=";a");d&&cL(sQ)!=a.a&&(b+=";A");cL(yQ)!=a.a&&(b+=";R");cL(zQ)!=a.a&&(b+=";!R");cL(kQ)!=a.a&&0<b.length?e=b.substr(1,b.length-1):e+=b;d=AQ.mc.a.ob.selectedIndex;0<d&&(--d,e+=";H"+d);d=BQ.mc.a.ob.selectedIndex;0<d&&(--d,e+=";D"+d);cL(CQ)!=a.a&&(e="~");cL(DQ)!=a.a&&(e=hb);cL(EQ)!=a.a&&(e=qb);cL(FQ)!=a.a&&(e="!@");WL(a.e,e)}
function GQ(a){HQ(a);IQ(a);var b=AQ.mc.a;WP(b,0);b.ob.options[0].selected=!0;b=BQ.mc.a;WP(b,0);b.ob.options[0].selected=!0;Z(rQ,a.a);Z(sQ,a.a);Z(yQ,a.a);Z(zQ,a.a);Z(AQ,a.a);Z(BQ,a.a);JQ(a)}function HQ(a){Z(tQ,a.a);Z(uQ,a.a);Z(vQ,a.a);Z(wQ,a.a);Z(xQ,a.a);Z(nQ,a.a);Z(oQ,a.a);Z(pQ,a.a);Z(qQ,a.a)}function IQ(a){Z(kQ,a.a);Z(lQ,a.a);Z(mQ,a.a)}function JQ(a){Z(CQ,a.a);Z(DQ,a.a);Z(EQ,a.a);Z(FQ,a.a);a.b=!1}
function hQ(a){KL.call(this,"Atom/Bond Query");this.i=new DL(this.ng());By(this.q,new pM(this));this.a=(fB(),hB);this.c=a;this.d||(a=Mx(a),this.d=new VL(a),nM(this.d,-150,10));this.j=this.d;ky(this,new dQ);Z(this,this.a);a=new py;ky(a,new hz(0,3,1));$(a,new eQ("Atom type :"),null);kQ=new DL(NP);lQ=new DL("Any except C");mQ=new DL("Halogen");$(a,kQ,null);$(a,lQ,null);$(a,mQ,null);$(this,a,null);a=new py;ky(a,new hz(0,3,1));$(a,new TL("Or select one or more from the list :",0),null);$(this,a,null);
a=new py;ky(a,new hz(0,3,1));tQ=new DL(vb);uQ=new DL(Rb);vQ=new DL(Vb);wQ=new DL(cc);xQ=new DL(Wb);nQ=new DL(Eb);oQ=new DL(zb);pQ=new DL(ub);qQ=new DL(Kb);$(a,tQ,null);$(a,uQ,null);$(a,vQ,null);$(a,wQ,null);$(a,xQ,null);$(a,nQ,null);$(a,oQ,null);$(a,pQ,null);$(a,qQ,null);$(this,a,null);a=new py;ky(a,new hz(0,3,1));AQ=new $P;ZP(AQ,NP);ZP(AQ,$a);ZP(AQ,bb);ZP(AQ,gb);ZP(AQ,MP);$(a,new eQ("Number of hydrogens :  "),null);$(a,AQ,null);$(this,a,null);a=new py;ky(a,new hz(0,3,1));BQ=new $P;ZP(BQ,NP);ZP(BQ,
$a);ZP(BQ,bb);ZP(BQ,gb);ZP(BQ,MP);ZP(BQ,"4");ZP(BQ,"5");ZP(BQ,"6");$(a,new TL("Number of connections :",0),null);$(a,BQ,null);$(a,new TL(" (H's don't count.)",0),null);$(this,a,null);a=new py;ky(a,new hz(0,3,1));$(a,new eQ("Atom is :"),null);rQ=new DL(OP);$(a,rQ,null);sQ=new DL("Nonaromatic");$(a,sQ,null);yQ=new DL(RP);$(a,yQ,null);zQ=new DL(PP);$(a,zQ,null);$(this,a,null);a=new py;Z(a,Yy(cL(this)));ky(a,new hz(0,3,1));$(a,new eQ("Bond is :"),null);CQ=new DL(NP);$(a,CQ,null);DQ=new DL(OP);$(a,DQ,
null);EQ=new DL(RP);$(a,EQ,null);FQ=new DL(PP);$(a,FQ,null);$(this,a,null);a=new py;ky(a,new hz(1,3,1));this.e=new Nz(va,20);$(a,this.e,null);$(a,new DL(QP),null);$(a,this.i,null);$(this,a,null);this.mc&&ML(this.mc.c,!1);JL(this,!1);HQ(this);IQ(this);JQ(this);Z(rQ,this.a);Z(sQ,this.a);Z(yQ,this.a);Z(zQ,this.a);Z(AQ,this.a);Z(BQ,this.a);iQ(this,kQ);IL(this);a=this.j;rM(this.mc.c,a.a,a.b);!Lx(this)&&lL(this);gL(this)}q(597,579,bI,hQ);
_.og=function(a,b){var c;H(b,QP)?(GQ(this),iQ(this,kQ),jQ(this)):D(a.f,90)?(JQ(this),Yr(a.f)===Yr(kQ)?(HQ(this),IQ(this)):Yr(a.f)===Yr(lQ)?(HQ(this),IQ(this)):Yr(a.f)===Yr(mQ)?(HQ(this),IQ(this)):Yr(a.f)===Yr(yQ)?Z(zQ,this.a):Yr(a.f)===Yr(zQ)?(Z(yQ,this.a),Z(rQ,this.a)):Yr(a.f)===Yr(rQ)?(Z(sQ,this.a),Z(zQ,this.a)):Yr(a.f)===Yr(sQ)?Z(rQ,this.a):Yr(a.f)===Yr(CQ)||Yr(a.f)===Yr(DQ)||Yr(a.f)===Yr(EQ)||Yr(a.f)===Yr(FQ)?(GQ(this),this.b=!0):IQ(this),iQ(this,a.f),jQ(this)):D(a.f,91)&&(JQ(this),c=a.f,0==c.mc.a.ob.selectedIndex?
Z(c,this.a):Z(c,(Iy(),Ry)),jQ(this));107!=this.c.e&&(this.c.e=107,uy(this.c));return!0};_.pg=function(){return Tm(this.e.mc.a.ob,Ig)};_.qg=function(){return this.b};_.b=!1;_.c=null;_.d=null;var kQ=_.e=null,CQ=null,lQ=null,rQ=null,DQ=null,pQ=null,tQ=null,BQ=null,AQ=null,oQ=null,nQ=null,mQ=null,qQ=null,uQ=null,sQ=null,zQ=null,FQ=null,vQ=null,xQ=null,yQ=null,EQ=null,wQ=null;function aQ(a){iH();kH.call(this);this.a=new XP;Au(this.a,new KQ(this,a),(SP(),SP(),TP))}q(643,641,{},aQ);_.Ne=function(){return this.a};
_.a=null;function KQ(a,b){this.a=a;this.b=b}q(644,1,{},KQ);_.a=null;_.b=null;X(578);X(597);X(432);X(643);X(644);X(364);X(217);x(aI)(1);