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