var rP="3",sP="Any",tP="Aromatic",uP="Nonring",vP="Reset",wP="Ring";function xP(){xP=r;yP=new gp(dd,new zP)}function zP(){}q(215,212,{},zP);_.Tc=function(a){Ix();YL(this,a.b,AP(a.a.a,a.a.a.ob.selectedIndex))};_.Wc=function(){return yP};var yP;function BP(a,b){if(0>b||b>=a.ob.options.length)throw new zu;}function AP(a,b){BP(a,b);return a.ob.options[b].value}function CP(){rv();this.ob=$doc.createElement("select");this.ob[fd]="gwt-ListBox"}q(361,339,xh,CP);function DP(){DP=r}
function EP(a,b){if(null==b)throw new Yq("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 FP(){DP();Hx.call(this);new Ai;this.mc=new GP((Ix(),this))}q(428,415,{90:1,92:1,99:1,111:1,117:1},FP);_.fe=function(){return Mx(this.mc,this)};
_.ue=function(){return(null==this.jc&&(this.jc=tx(this)),this.jc)+xa+this.uc+xa+this.vc+xa+this.rc+Qg+this.hc+(this.qc?l:",hidden")+",current="+AP(this.mc.a,this.mc.a.ob.selectedIndex)};function HP(){wL.call(this,7)}q(441,1,di,HP);function KP(a){yL.call(this,a,0)}q(446,415,Dh,KP);function LP(a){var b=a.j;XL(a.mc.c,b.a,b.b);!vx(a)&&RK(a);MK(a)}
function MP(a,b,c){UL.call(this);this.mc&&rL(this.mc.c,!1);oL(this,!1);Vx(this,new wL(0));a=new yL(a,1);$(this,a,null);a=new $x;$(a,this.i,null);$(this,a,null);b&&(this.j=wx(b),nL(this),TL(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(574,575,LH,MP);_.og=function(){return"OK"};q(580,581,Eh);_.Pc=function(){LP(new MP(this.b,this.a,(PA(),RA)))};q(583,581,Eh);_.Pc=function(){!this.a.Ib?this.a.Ib=new NP(this.a):this.a.Ib.mc.c.gb?LM(this.a.Ib.mc.c):LP(this.a.Ib)};
function OP(a,b){IK(b)==a.a?Z(b,(sy(),By)):Z(b,a.a)}
function PP(a){var b,c,d,e;e=l;d=!1;IK(QP)!=a.a?(e=va,d=!0):IK(RP)!=a.a?(e="!#6",d=!0):IK(SP)!=a.a?(Z(TP,(sy(),By)),Z(UP,By),Z(VP,By),Z(WP,By),e="F,Cl,Br,I"):(b=IK(XP)!=a.a,c=IK(YP)!=a.a,IK(ZP)!=a.a&&(b?e+="c,":c?e+="C,":e+="#6,"),IK($P)!=a.a&&(b?e+="n,":c?e+="N,":e+="#7,"),IK(aQ)!=a.a&&(b?e+="o,":c?e+="O,":e+="#8,"),IK(bQ)!=a.a&&(b?e+="s,":c?e+="S,":e+="#16,"),IK(cQ)!=a.a&&(b?e+="p,":c?e+="P,":e+="#15,"),IK(TP)!=a.a&&(e+="F,"),IK(UP)!=a.a&&(e+="Cl,"),IK(VP)!=a.a&&(e+="Br,"),IK(WP)!=a.a&&(e+="I,"),
LE(e,xa)&&(e=e.substr(0,e.length-1-0)),1>e.length&&!a.b&&(b?e=rc:c?e=rb:(Z(QP,(sy(),By)),e=va)));b=l;d&&IK(XP)!=a.a&&(b+=";a");d&&IK(YP)!=a.a&&(b+=";A");IK(dQ)!=a.a&&(b+=";R");IK(eQ)!=a.a&&(b+=";!R");IK(QP)!=a.a&&0<b.length?e=b.substr(1,b.length-1):e+=b;d=fQ.mc.a.ob.selectedIndex;0<d&&(--d,e+=";H"+d);d=gQ.mc.a.ob.selectedIndex;0<d&&(--d,e+=";D"+d);IK(hQ)!=a.a&&(e="~");IK(iQ)!=a.a&&(e=hb);IK(jQ)!=a.a&&(e=qb);IK(kQ)!=a.a&&(e="!@");BL(a.e,e)}
function lQ(a){mQ(a);nQ(a);var b=fQ.mc.a;BP(b,0);b.ob.options[0].selected=!0;b=gQ.mc.a;BP(b,0);b.ob.options[0].selected=!0;Z(XP,a.a);Z(YP,a.a);Z(dQ,a.a);Z(eQ,a.a);Z(fQ,a.a);Z(gQ,a.a);oQ(a)}function mQ(a){Z(ZP,a.a);Z($P,a.a);Z(aQ,a.a);Z(bQ,a.a);Z(cQ,a.a);Z(TP,a.a);Z(UP,a.a);Z(VP,a.a);Z(WP,a.a)}function nQ(a){Z(QP,a.a);Z(RP,a.a);Z(SP,a.a)}function oQ(a){Z(hQ,a.a);Z(iQ,a.a);Z(jQ,a.a);Z(kQ,a.a);a.b=!1}
function NP(a){pL.call(this,"Atom/Bond Query");this.i=new iL(this.og());ly(this.q,new VL(this));this.a=(PA(),RA);this.c=a;this.d||(a=wx(a),this.d=new AL(a),TL(this.d,-150,10));this.j=this.d;Vx(this,new HP);Z(this,this.a);a=new $x;Vx(a,new Sy(0,3,1));$(a,new KP("Atom type :"),null);QP=new iL(sP);RP=new iL("Any except C");SP=new iL("Halogen");$(a,QP,null);$(a,RP,null);$(a,SP,null);$(this,a,null);a=new $x;Vx(a,new Sy(0,3,1));$(a,new yL("Or select one or more from the list :",0),null);$(this,a,null);
a=new $x;Vx(a,new Sy(0,3,1));ZP=new iL(wb);$P=new iL(Rb);aQ=new iL(Vb);bQ=new iL(cc);cQ=new iL(Wb);TP=new iL(Eb);UP=new iL(Ab);VP=new iL(vb);WP=new iL(Kb);$(a,ZP,null);$(a,$P,null);$(a,aQ,null);$(a,bQ,null);$(a,cQ,null);$(a,TP,null);$(a,UP,null);$(a,VP,null);$(a,WP,null);$(this,a,null);a=new $x;Vx(a,new Sy(0,3,1));fQ=new FP;EP(fQ,sP);EP(fQ,$a);EP(fQ,db);EP(fQ,gb);EP(fQ,rP);$(a,new KP("Number of hydrogens :  "),null);$(a,fQ,null);$(this,a,null);a=new $x;Vx(a,new Sy(0,3,1));gQ=new FP;EP(gQ,sP);EP(gQ,
$a);EP(gQ,db);EP(gQ,gb);EP(gQ,rP);EP(gQ,"4");EP(gQ,"5");EP(gQ,"6");$(a,new yL("Number of connections :",0),null);$(a,gQ,null);$(a,new yL(" (H's don't count.)",0),null);$(this,a,null);a=new $x;Vx(a,new Sy(0,3,1));$(a,new KP("Atom is :"),null);XP=new iL(tP);$(a,XP,null);YP=new iL("Nonaromatic");$(a,YP,null);dQ=new iL(wP);$(a,dQ,null);eQ=new iL(uP);$(a,eQ,null);$(this,a,null);a=new $x;Z(a,Iy(IK(this)));Vx(a,new Sy(0,3,1));$(a,new KP("Bond is :"),null);hQ=new iL(sP);$(a,hQ,null);iQ=new iL(tP);$(a,iQ,
null);jQ=new iL(wP);$(a,jQ,null);kQ=new iL(uP);$(a,kQ,null);$(this,a,null);a=new $x;Vx(a,new Sy(1,3,1));this.e=new wz(va,20);$(a,this.e,null);$(a,new iL(vP),null);$(a,this.i,null);$(this,a,null);this.mc&&rL(this.mc.c,!1);oL(this,!1);mQ(this);nQ(this);oQ(this);Z(XP,this.a);Z(YP,this.a);Z(dQ,this.a);Z(eQ,this.a);Z(fQ,this.a);Z(gQ,this.a);OP(this,QP);nL(this);a=this.j;XL(this.mc.c,a.a,a.b);!vx(this)&&RK(this);MK(this)}q(593,575,LH,NP);
_.pg=function(a,b){var c;H(b,vP)?(lQ(this),OP(this,QP),PP(this)):D(a.f,89)?(oQ(this),Fr(a.f)===Fr(QP)?(mQ(this),nQ(this)):Fr(a.f)===Fr(RP)?(mQ(this),nQ(this)):Fr(a.f)===Fr(SP)?(mQ(this),nQ(this)):Fr(a.f)===Fr(dQ)?Z(eQ,this.a):Fr(a.f)===Fr(eQ)?(Z(dQ,this.a),Z(XP,this.a)):Fr(a.f)===Fr(XP)?(Z(YP,this.a),Z(eQ,this.a)):Fr(a.f)===Fr(YP)?Z(XP,this.a):Fr(a.f)===Fr(hQ)||Fr(a.f)===Fr(iQ)||Fr(a.f)===Fr(jQ)||Fr(a.f)===Fr(kQ)?(lQ(this),this.b=!0):nQ(this),OP(this,a.f),PP(this)):D(a.f,90)&&(oQ(this),c=a.f,0==c.mc.a.ob.selectedIndex?
Z(c,this.a):Z(c,(sy(),By)),PP(this));107!=this.c.e&&(this.c.e=107,ey(this.c));return!0};_.qg=function(){return Pm(this.e.mc.a.ob,Kg)};_.rg=function(){return this.b};_.b=!1;_.c=null;_.d=null;var QP=_.e=null,hQ=null,RP=null,XP=null,iQ=null,VP=null,ZP=null,gQ=null,fQ=null,UP=null,TP=null,SP=null,WP=null,$P=null,YP=null,eQ=null,kQ=null,aQ=null,cQ=null,dQ=null,jQ=null,bQ=null;function GP(a){TG();VG.call(this);this.a=new CP;gu(this.a,new pQ(this,a),(xP(),xP(),yP))}q(639,637,{},GP);_.Oe=function(){return this.a};
_.a=null;function pQ(a,b){this.a=a;this.b=b}q(640,1,{},pQ);_.a=null;_.b=null;X(574);X(593);X(428);X(639);X(640);X(361);X(215);x(KH)(1);