var LP="3",MP="Any",NP="Aromatic",OP="Nonring",PP="Reset",QP="Ring";function RP(){RP=r;SP=new yp(Uc,new TP)}function TP(){}q(217,214,{},TP);_.Tc=function(a){Yx();rM(this,a.b,UP(a.a.a,a.a.a.ob.selectedIndex))};_.Wc=function(){return SP};var SP;function VP(a,b){if(0>b||b>=a.ob.options.length)throw new Tu;}function UP(a,b){VP(a,b);return a.ob.options[b].value}function WP(){this.ob=$doc.createElement("select");this.ob[Wc]="gwt-ListBox"}q(364,342,nh,WP);function XP(){XP=r}
function YP(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(of);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 ZP(){XP();Xx.call(this);new Ai;this.mc=new $P((Yx(),this))}q(432,419,{91:1,93:1,100:1,112:1,118:1},ZP);_.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+Ng+this.hc+(this.qc?l:",hidden")+",current="+UP(this.mc.a,this.mc.a.ob.selectedIndex)};function cQ(){QL.call(this,7)}q(445,1,ci,cQ);function dQ(a){SL.call(this,a,0)}q(450,419,Fh,dQ);function eQ(a){var b=a.j;qM(a.mc.c,b.a,b.b);!Lx(a)&&kL(a);fL(a)}
function fQ(a,b,c){nM.call(this);this.mc&&LL(this.mc.c,!1);IL(this,!1);ky(this,new QL(0));a=new SL(a,1);$(this,a,null);a=new py;$(a,this.i,null);$(this,a,null);b&&(this.j=Mx(b),HL(this),mM(this.j,~~(G(b.$b.ob,lf)/2)-~~(this.rc/2),~~(G(b.$b.ob,kf)/2)-~~(this.hc/2)));c&&Z(this,c)}q(578,579,aI,fQ);_.ng=function(){return"OK"};q(584,585,Eh);_.Pc=function(){eQ(new fQ(this.b,this.a,(dB(),fB)))};q(587,585,Eh);_.Pc=function(){!this.a.Ib?this.a.Ib=new gQ(this.a):this.a.Ib.mc.c.gb?eN(this.a.Ib.mc.c):eQ(this.a.Ib)};
function hQ(a,b){bL(b)==a.a?Z(b,(Iy(),Ry)):Z(b,a.a)}
function iQ(a){var b,c,d,e;e=l;d=!1;bL(jQ)!=a.a?(e=va,d=!0):bL(kQ)!=a.a?(e="!#6",d=!0):bL(lQ)!=a.a?(Z(mQ,(Iy(),Ry)),Z(nQ,Ry),Z(oQ,Ry),Z(pQ,Ry),e="F,Cl,Br,I"):(b=bL(qQ)!=a.a,c=bL(rQ)!=a.a,bL(sQ)!=a.a&&(b?e+="c,":c?e+="C,":e+="#6,"),bL(tQ)!=a.a&&(b?e+="n,":c?e+="N,":e+="#7,"),bL(uQ)!=a.a&&(b?e+="o,":c?e+="O,":e+="#8,"),bL(vQ)!=a.a&&(b?e+="s,":c?e+="S,":e+="#16,"),bL(wQ)!=a.a&&(b?e+="p,":c?e+="P,":e+="#15,"),bL(mQ)!=a.a&&(e+="F,"),bL(nQ)!=a.a&&(e+="Cl,"),bL(oQ)!=a.a&&(e+="Br,"),bL(pQ)!=a.a&&(e+="I,"),
ZE(e,xa)&&(e=e.substr(0,e.length-1-0)),1>e.length&&!a.b&&(b?e=oc:c?e=rb:(Z(jQ,(Iy(),Ry)),e=va)));b=l;d&&bL(qQ)!=a.a&&(b+=";a");d&&bL(rQ)!=a.a&&(b+=";A");bL(xQ)!=a.a&&(b+=";R");bL(yQ)!=a.a&&(b+=";!R");bL(jQ)!=a.a&&0<b.length?e=b.substr(1,b.length-1):e+=b;d=zQ.mc.a.ob.selectedIndex;0<d&&(--d,e+=";H"+d);d=AQ.mc.a.ob.selectedIndex;0<d&&(--d,e+=";D"+d);bL(BQ)!=a.a&&(e="~");bL(CQ)!=a.a&&(e=hb);bL(DQ)!=a.a&&(e=qb);bL(EQ)!=a.a&&(e="!@");VL(a.e,e)}
function FQ(a){GQ(a);HQ(a);var b=zQ.mc.a;VP(b,0);b.ob.options[0].selected=!0;b=AQ.mc.a;VP(b,0);b.ob.options[0].selected=!0;Z(qQ,a.a);Z(rQ,a.a);Z(xQ,a.a);Z(yQ,a.a);Z(zQ,a.a);Z(AQ,a.a);IQ(a)}function GQ(a){Z(sQ,a.a);Z(tQ,a.a);Z(uQ,a.a);Z(vQ,a.a);Z(wQ,a.a);Z(mQ,a.a);Z(nQ,a.a);Z(oQ,a.a);Z(pQ,a.a)}function HQ(a){Z(jQ,a.a);Z(kQ,a.a);Z(lQ,a.a)}function IQ(a){Z(BQ,a.a);Z(CQ,a.a);Z(DQ,a.a);Z(EQ,a.a);a.b=!1}
function gQ(a){JL.call(this,"Atom/Bond Query");this.i=new CL(this.ng());By(this.q,new oM(this));this.a=(dB(),fB);this.c=a;this.d||(a=Mx(a),this.d=new UL(a),mM(this.d,-150,10));this.j=this.d;ky(this,new cQ);Z(this,this.a);a=new py;ky(a,new hz(0,3,1));$(a,new dQ("Atom type :"),null);jQ=new CL(MP);kQ=new CL("Any except C");lQ=new CL("Halogen");$(a,jQ,null);$(a,kQ,null);$(a,lQ,null);$(this,a,null);a=new py;ky(a,new hz(0,3,1));$(a,new SL("Or select one or more from the list :",0),null);$(this,a,null);
a=new py;ky(a,new hz(0,3,1));sQ=new CL(vb);tQ=new CL(Rb);uQ=new CL(Vb);vQ=new CL(bc);wQ=new CL(Wb);mQ=new CL(Eb);nQ=new CL(yb);oQ=new CL(ub);pQ=new CL(Kb);$(a,sQ,null);$(a,tQ,null);$(a,uQ,null);$(a,vQ,null);$(a,wQ,null);$(a,mQ,null);$(a,nQ,null);$(a,oQ,null);$(a,pQ,null);$(this,a,null);a=new py;ky(a,new hz(0,3,1));zQ=new ZP;YP(zQ,MP);YP(zQ,$a);YP(zQ,bb);YP(zQ,gb);YP(zQ,LP);$(a,new dQ("Number of hydrogens :  "),null);$(a,zQ,null);$(this,a,null);a=new py;ky(a,new hz(0,3,1));AQ=new ZP;YP(AQ,MP);YP(AQ,
$a);YP(AQ,bb);YP(AQ,gb);YP(AQ,LP);YP(AQ,"4");YP(AQ,"5");YP(AQ,"6");$(a,new SL("Number of connections :",0),null);$(a,AQ,null);$(a,new SL(" (H's don't count.)",0),null);$(this,a,null);a=new py;ky(a,new hz(0,3,1));$(a,new dQ("Atom is :"),null);qQ=new CL(NP);$(a,qQ,null);rQ=new CL("Nonaromatic");$(a,rQ,null);xQ=new CL(QP);$(a,xQ,null);yQ=new CL(OP);$(a,yQ,null);$(this,a,null);a=new py;Z(a,Yy(bL(this)));ky(a,new hz(0,3,1));$(a,new dQ("Bond is :"),null);BQ=new CL(MP);$(a,BQ,null);CQ=new CL(NP);$(a,CQ,
null);DQ=new CL(QP);$(a,DQ,null);EQ=new CL(OP);$(a,EQ,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 CL(PP),null);$(a,this.i,null);$(this,a,null);this.mc&&LL(this.mc.c,!1);IL(this,!1);GQ(this);HQ(this);IQ(this);Z(qQ,this.a);Z(rQ,this.a);Z(xQ,this.a);Z(yQ,this.a);Z(zQ,this.a);Z(AQ,this.a);hQ(this,jQ);HL(this);a=this.j;qM(this.mc.c,a.a,a.b);!Lx(this)&&kL(this);fL(this)}q(597,579,aI,gQ);
_.og=function(a,b){var c;H(b,PP)?(FQ(this),hQ(this,jQ),iQ(this)):D(a.f,90)?(IQ(this),Yr(a.f)===Yr(jQ)?(GQ(this),HQ(this)):Yr(a.f)===Yr(kQ)?(GQ(this),HQ(this)):Yr(a.f)===Yr(lQ)?(GQ(this),HQ(this)):Yr(a.f)===Yr(xQ)?Z(yQ,this.a):Yr(a.f)===Yr(yQ)?(Z(xQ,this.a),Z(qQ,this.a)):Yr(a.f)===Yr(qQ)?(Z(rQ,this.a),Z(yQ,this.a)):Yr(a.f)===Yr(rQ)?Z(qQ,this.a):Yr(a.f)===Yr(BQ)||Yr(a.f)===Yr(CQ)||Yr(a.f)===Yr(DQ)||Yr(a.f)===Yr(EQ)?(FQ(this),this.b=!0):HQ(this),hQ(this,a.f),iQ(this)):D(a.f,91)&&(IQ(this),c=a.f,0==c.mc.a.ob.selectedIndex?
Z(c,this.a):Z(c,(Iy(),Ry)),iQ(this));107!=this.c.e&&(this.c.e=107,uy(this.c));return!0};_.pg=function(){return Sm(this.e.mc.a.ob,Hg)};_.qg=function(){return this.b};_.b=!1;_.c=null;_.d=null;var jQ=_.e=null,BQ=null,kQ=null,qQ=null,CQ=null,oQ=null,sQ=null,AQ=null,zQ=null,nQ=null,mQ=null,lQ=null,pQ=null,tQ=null,rQ=null,yQ=null,EQ=null,uQ=null,wQ=null,xQ=null,DQ=null,vQ=null;function $P(a){hH();jH.call(this);this.a=new WP;Au(this.a,new JQ(this,a),(RP(),RP(),SP))}q(643,641,{},$P);_.Ne=function(){return this.a};
_.a=null;function JQ(a,b){this.a=a;this.b=b}q(644,1,{},JQ);_.a=null;_.b=null;X(578);X(597);X(432);X(643);X(644);X(364);X(217);x($H)(1);