var OP="3",PP="Any",QP="Aromatic",RP="Nonring",SP="Reset",TP="Ring";function UP(){UP=r;VP=new Ap(Vc,new WP)}function WP(){}q(217,214,{},WP);_.Tc=function(a){Zx();tM(this,a.b,XP(a.a.a,a.a.a.ob.selectedIndex))};_.Wc=function(){return VP};var VP;function YP(a,b){if(0>b||b>=a.ob.options.length)throw new Uu;}function XP(a,b){YP(a,b);return a.ob.options[b].value}function ZP(){this.ob=$doc.createElement("select");this.ob[Xc]="gwt-ListBox"}q(364,342,ph,ZP);function $P(){$P=r}
function aQ(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(qf);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 bQ(){$P();Yx.call(this);new Ci;this.mc=new cQ((Zx(),this))}q(432,419,{91:1,93:1,100:1,112:1,118:1},bQ);_.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+Pg+this.hc+(this.qc?l:",hidden")+",current="+XP(this.mc.a,this.mc.a.ob.selectedIndex)};function fQ(){SL.call(this,7)}q(445,1,ei,fQ);function gQ(a){UL.call(this,a,0)}q(450,419,Hh,gQ);function hQ(a){var b=a.j;sM(a.mc.c,b.a,b.b);!Mx(a)&&mL(a);hL(a)}
function iQ(a,b,c){pM.call(this);this.mc&&NL(this.mc.c,!1);KL(this,!1);ly(this,new SL(0));a=new UL(a,1);$(this,a,null);a=new qy;$(a,this.i,null);$(this,a,null);b&&(this.j=Nx(b),JL(this),oM(this.j,~~(G(b.$b.ob,nf)/2)-~~(this.rc/2),~~(G(b.$b.ob,mf)/2)-~~(this.hc/2)));c&&Z(this,c)}q(578,579,cI,iQ);_.ng=function(){return"OK"};q(584,585,Gh);_.Pc=function(){hQ(new iQ(this.b,this.a,(gB(),iB)))};q(587,585,Gh);_.Pc=function(){!this.a.Ib?this.a.Ib=new jQ(this.a):this.a.Ib.mc.c.gb?gN(this.a.Ib.mc.c):hQ(this.a.Ib)};
function kQ(a,b){dL(b)==a.a?Z(b,(Jy(),Sy)):Z(b,a.a)}
function lQ(a){var b,c,d,e;e=l;d=!1;dL(mQ)!=a.a?(e=va,d=!0):dL(nQ)!=a.a?(e="!#6",d=!0):dL(oQ)!=a.a?(Z(pQ,(Jy(),Sy)),Z(qQ,Sy),Z(rQ,Sy),Z(sQ,Sy),e="F,Cl,Br,I"):(b=dL(tQ)!=a.a,c=dL(uQ)!=a.a,dL(vQ)!=a.a&&(b?e+="c,":c?e+="C,":e+="#6,"),dL(wQ)!=a.a&&(b?e+="n,":c?e+="N,":e+="#7,"),dL(xQ)!=a.a&&(b?e+="o,":c?e+="O,":e+="#8,"),dL(yQ)!=a.a&&(b?e+="s,":c?e+="S,":e+="#16,"),dL(zQ)!=a.a&&(b?e+="p,":c?e+="P,":e+="#15,"),dL(pQ)!=a.a&&(e+="F,"),dL(qQ)!=a.a&&(e+="Cl,"),dL(rQ)!=a.a&&(e+="Br,"),dL(sQ)!=a.a&&(e+="I,"),
bF(e,xa)&&(e=e.substr(0,e.length-1-0)),1>e.length&&!a.b&&(b?e=pc:c?e=rb:(Z(mQ,(Jy(),Sy)),e=va)));b=l;d&&dL(tQ)!=a.a&&(b+=";a");d&&dL(uQ)!=a.a&&(b+=";A");dL(AQ)!=a.a&&(b+=";R");dL(BQ)!=a.a&&(b+=";!R");dL(mQ)!=a.a&&0<b.length?e=b.substr(1,b.length-1):e+=b;d=CQ.mc.a.ob.selectedIndex;0<d&&(--d,e+=";H"+d);d=DQ.mc.a.ob.selectedIndex;0<d&&(--d,e+=";D"+d);dL(EQ)!=a.a&&(e="~");dL(FQ)!=a.a&&(e=hb);dL(GQ)!=a.a&&(e=qb);dL(HQ)!=a.a&&(e="!@");XL(a.e,e)}
function IQ(a){JQ(a);KQ(a);var b=CQ.mc.a;YP(b,0);b.ob.options[0].selected=!0;b=DQ.mc.a;YP(b,0);b.ob.options[0].selected=!0;Z(tQ,a.a);Z(uQ,a.a);Z(AQ,a.a);Z(BQ,a.a);Z(CQ,a.a);Z(DQ,a.a);LQ(a)}function JQ(a){Z(vQ,a.a);Z(wQ,a.a);Z(xQ,a.a);Z(yQ,a.a);Z(zQ,a.a);Z(pQ,a.a);Z(qQ,a.a);Z(rQ,a.a);Z(sQ,a.a)}function KQ(a){Z(mQ,a.a);Z(nQ,a.a);Z(oQ,a.a)}function LQ(a){Z(EQ,a.a);Z(FQ,a.a);Z(GQ,a.a);Z(HQ,a.a);a.b=!1}
function jQ(a){LL.call(this,"Atom/Bond Query");this.i=new EL(this.ng());Cy(this.q,new qM(this));this.a=(gB(),iB);this.c=a;this.d||(a=Nx(a),this.d=new WL(a),oM(this.d,-150,10));this.j=this.d;ly(this,new fQ);Z(this,this.a);a=new qy;ly(a,new iz(0,3,1));$(a,new gQ("Atom type :"),null);mQ=new EL(PP);nQ=new EL("Any except C");oQ=new EL("Halogen");$(a,mQ,null);$(a,nQ,null);$(a,oQ,null);$(this,a,null);a=new qy;ly(a,new iz(0,3,1));$(a,new UL("Or select one or more from the list :",0),null);$(this,a,null);
a=new qy;ly(a,new iz(0,3,1));vQ=new EL(vb);wQ=new EL(Rb);xQ=new EL(Vb);yQ=new EL(cc);zQ=new EL(Wb);pQ=new EL(Eb);qQ=new EL(yb);rQ=new EL(tb);sQ=new EL(Kb);$(a,vQ,null);$(a,wQ,null);$(a,xQ,null);$(a,yQ,null);$(a,zQ,null);$(a,pQ,null);$(a,qQ,null);$(a,rQ,null);$(a,sQ,null);$(this,a,null);a=new qy;ly(a,new iz(0,3,1));CQ=new bQ;aQ(CQ,PP);aQ(CQ,$a);aQ(CQ,bb);aQ(CQ,gb);aQ(CQ,OP);$(a,new gQ("Number of hydrogens :  "),null);$(a,CQ,null);$(this,a,null);a=new qy;ly(a,new iz(0,3,1));DQ=new bQ;aQ(DQ,PP);aQ(DQ,
$a);aQ(DQ,bb);aQ(DQ,gb);aQ(DQ,OP);aQ(DQ,"4");aQ(DQ,"5");aQ(DQ,"6");$(a,new UL("Number of connections :",0),null);$(a,DQ,null);$(a,new UL(" (H's don't count.)",0),null);$(this,a,null);a=new qy;ly(a,new iz(0,3,1));$(a,new gQ("Atom is :"),null);tQ=new EL(QP);$(a,tQ,null);uQ=new EL("Nonaromatic");$(a,uQ,null);AQ=new EL(TP);$(a,AQ,null);BQ=new EL(RP);$(a,BQ,null);$(this,a,null);a=new qy;Z(a,Zy(dL(this)));ly(a,new iz(0,3,1));$(a,new gQ("Bond is :"),null);EQ=new EL(PP);$(a,EQ,null);FQ=new EL(QP);$(a,FQ,
null);GQ=new EL(TP);$(a,GQ,null);HQ=new EL(RP);$(a,HQ,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 EL(SP),null);$(a,this.i,null);$(this,a,null);this.mc&&NL(this.mc.c,!1);KL(this,!1);JQ(this);KQ(this);LQ(this);Z(tQ,this.a);Z(uQ,this.a);Z(AQ,this.a);Z(BQ,this.a);Z(CQ,this.a);Z(DQ,this.a);kQ(this,mQ);JL(this);a=this.j;sM(this.mc.c,a.a,a.b);!Mx(this)&&mL(this);hL(this)}q(597,579,cI,jQ);
_.og=function(a,b){var c;H(b,SP)?(IQ(this),kQ(this,mQ),lQ(this)):D(a.f,90)?(LQ(this),Zr(a.f)===Zr(mQ)?(JQ(this),KQ(this)):Zr(a.f)===Zr(nQ)?(JQ(this),KQ(this)):Zr(a.f)===Zr(oQ)?(JQ(this),KQ(this)):Zr(a.f)===Zr(AQ)?Z(BQ,this.a):Zr(a.f)===Zr(BQ)?(Z(AQ,this.a),Z(tQ,this.a)):Zr(a.f)===Zr(tQ)?(Z(uQ,this.a),Z(BQ,this.a)):Zr(a.f)===Zr(uQ)?Z(tQ,this.a):Zr(a.f)===Zr(EQ)||Zr(a.f)===Zr(FQ)||Zr(a.f)===Zr(GQ)||Zr(a.f)===Zr(HQ)?(IQ(this),this.b=!0):KQ(this),kQ(this,a.f),lQ(this)):D(a.f,91)&&(LQ(this),c=a.f,0==c.mc.a.ob.selectedIndex?
Z(c,this.a):Z(c,(Jy(),Sy)),lQ(this));107!=this.c.e&&(this.c.e=107,vy(this.c));return!0};_.pg=function(){return Um(this.e.mc.a.ob,Jg)};_.qg=function(){return this.b};_.b=!1;_.c=null;_.d=null;var mQ=_.e=null,EQ=null,nQ=null,tQ=null,FQ=null,rQ=null,vQ=null,DQ=null,CQ=null,qQ=null,pQ=null,oQ=null,sQ=null,wQ=null,uQ=null,BQ=null,HQ=null,xQ=null,zQ=null,AQ=null,GQ=null,yQ=null;function cQ(a){jH();lH.call(this);this.a=new ZP;Bu(this.a,new MQ(this,a),(UP(),UP(),VP))}q(643,641,{},cQ);_.Ne=function(){return this.a};
_.a=null;function MQ(a,b){this.a=a;this.b=b}q(644,1,{},MQ);_.a=null;_.b=null;X(578);X(597);X(432);X(643);X(644);X(364);X(217);x(bI)(1);