var zN="3",AN="Any",BN="Aromatic",CN="Nonring",DN="Reset",EN="Ring";function FN(){FN=s;GN=new $n(Rc,new HN)}function HN(){}r(194,191,{},HN);_.Pc=function(a){Dv();cK(this,a.b,IN(a.a.a,a.a.a.ob.selectedIndex))};_.Sc=function(){return GN};var GN;function JN(a,b){if(0>b||b>=a.ob.options.length)throw new Es;}function IN(a,b){JN(a,b);return a.ob.options[b].value}function KN(){this.ob=$doc.createElement("select");this.ob[Tc]="gwt-ListBox"}r(342,320,eh,KN);function LN(){LN=s}
function MN(a,b){if(null==b)throw new Bp("Missing message: awt.103");var c=-1,d,e,f;f=a.mc.a.ob;e=$doc.createElement(gf);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 NN(){LN();Cv.call(this);new ni;this.mc=new ON((Dv(),this))}r(408,395,{89:1,91:1,98:1,110:1,116:1},NN);_.Yd=function(){return Hv(this.mc,this)};
_.le=function(){return(null==this.jc&&(this.jc=ov(this)),this.jc)+va+this.uc+va+this.vc+va+this.rc+Dg+this.hc+(this.qc?l:",hidden")+",current="+IN(this.mc.a,this.mc.a.ob.selectedIndex)};function PN(){BJ.call(this,7)}r(421,1,ih,PN);function QN(a){DJ.call(this,a,0)}r(426,395,Ph,QN);function RN(a){var b=a.j;bK(a.mc.c,b.a,b.b);!qv(a)&&WI(a);RI(a)}
function SN(a,b,c){ZJ.call(this);this.mc&&wJ(this.mc.c,!1);tJ(this,!1);Qv(this,new BJ(0));a=new DJ(a,1);$(this,a,null);a=new Vv;$(a,this.i,null);$(this,a,null);b&&(this.j=rv(b),sJ(this),YJ(this.j,~~(vm(b.$b.ob,df)/2)-~~(this.rc/2),~~(vm(b.$b.ob,cf)/2)-~~(this.hc/2)));c&&Z(this,c)}r(543,544,tF,SN);_.dg=function(){return"OK"};r(549,550,dh);_.Lc=function(){RN(new SN(this.b,this.a,(uy(),wy)))};r(552,550,dh);_.Lc=function(){!this.a.Ib?this.a.Ib=new TN(this.a):this.a.Ib.mc.c.gb?QK(this.a.Ib.mc.c):RN(this.a.Ib)};
function UN(a,b){NI(b)==a.a?Z(b,(mw(),vw)):Z(b,a.a)}
function VN(a){var b,c,d,e;e=l;d=!1;NI(WN)!=a.a?(e=ta,d=!0):NI(XN)!=a.a?(e="!#6",d=!0):NI(YN)!=a.a?(Z(ZN,(mw(),vw)),Z($N,vw),Z(aO,vw),Z(bO,vw),e="F,Cl,Br,I"):(b=NI(cO)!=a.a,c=NI(dO)!=a.a,NI(eO)!=a.a&&(b?e+="c,":c?e+="C,":e+="#6,"),NI(fO)!=a.a&&(b?e+="n,":c?e+="N,":e+="#7,"),NI(gO)!=a.a&&(b?e+="o,":c?e+="O,":e+="#8,"),NI(hO)!=a.a&&(b?e+="s,":c?e+="S,":e+="#16,"),NI(kO)!=a.a&&(b?e+="p,":c?e+="P,":e+="#15,"),NI(ZN)!=a.a&&(e+="F,"),NI($N)!=a.a&&(e+="Cl,"),NI(aO)!=a.a&&(e+="Br,"),NI(bO)!=a.a&&(e+="I,"),
pC(e,va)&&(e=e.substr(0,e.length-1-0)),1>e.length&&!a.b&&(b?e=lc:c?e=mb:(Z(WN,(mw(),vw)),e=ta)));b=l;d&&NI(cO)!=a.a&&(b+=";a");d&&NI(dO)!=a.a&&(b+=";A");NI(lO)!=a.a&&(b+=";R");NI(mO)!=a.a&&(b+=";!R");NI(WN)!=a.a&&0<b.length?e=b.substr(1,b.length-1):e+=b;d=nO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";H"+d);d=oO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";D"+d);NI(pO)!=a.a&&(e="~");NI(qO)!=a.a&&(e=db);NI(rO)!=a.a&&(e=lb);NI(sO)!=a.a&&(e="!@");GJ(a.e,e)}
function tO(a){uO(a);vO(a);var b=nO.mc.a;JN(b,0);b.ob.options[0].selected=!0;b=oO.mc.a;JN(b,0);b.ob.options[0].selected=!0;Z(cO,a.a);Z(dO,a.a);Z(lO,a.a);Z(mO,a.a);Z(nO,a.a);Z(oO,a.a);wO(a)}function uO(a){Z(eO,a.a);Z(fO,a.a);Z(gO,a.a);Z(hO,a.a);Z(kO,a.a);Z(ZN,a.a);Z($N,a.a);Z(aO,a.a);Z(bO,a.a)}function vO(a){Z(WN,a.a);Z(XN,a.a);Z(YN,a.a)}function wO(a){Z(pO,a.a);Z(qO,a.a);Z(rO,a.a);Z(sO,a.a);a.b=!1}
function TN(a){uJ.call(this,"Atom/Bond Query");this.i=new nJ(this.dg());fw(this.q,new $J(this));this.a=(uy(),wy);this.c=a;this.d||(a=rv(a),this.d=new FJ(a),YJ(this.d,-150,10));this.j=this.d;Qv(this,new PN);Z(this,this.a);a=new Vv;Qv(a,new Mw(0,3,1));$(a,new QN("Atom type :"),null);WN=new nJ(AN);XN=new nJ("Any except C");YN=new nJ("Halogen");$(a,WN,null);$(a,XN,null);$(a,YN,null);$(this,a,null);a=new Vv;Qv(a,new Mw(0,3,1));$(a,new DJ("Or select one or more from the list :",0),null);$(this,a,null);
a=new Vv;Qv(a,new Mw(0,3,1));eO=new nJ(rb);fO=new nJ(Lb);gO=new nJ(Rb);hO=new nJ(Yb);kO=new nJ(Sb);ZN=new nJ(Ab);$N=new nJ(vb);aO=new nJ(qb);bO=new nJ(Eb);$(a,eO,null);$(a,fO,null);$(a,gO,null);$(a,hO,null);$(a,kO,null);$(a,ZN,null);$(a,$N,null);$(a,aO,null);$(a,bO,null);$(this,a,null);a=new Vv;Qv(a,new Mw(0,3,1));nO=new NN;MN(nO,AN);MN(nO,Ya);MN(nO,$a);MN(nO,cb);MN(nO,zN);$(a,new QN("Number of hydrogens :  "),null);$(a,nO,null);$(this,a,null);a=new Vv;Qv(a,new Mw(0,3,1));oO=new NN;MN(oO,AN);MN(oO,
Ya);MN(oO,$a);MN(oO,cb);MN(oO,zN);MN(oO,"4");MN(oO,"5");MN(oO,"6");$(a,new DJ("Number of connections :",0),null);$(a,oO,null);$(a,new DJ(" (H's don't count.)",0),null);$(this,a,null);a=new Vv;Qv(a,new Mw(0,3,1));$(a,new QN("Atom is :"),null);cO=new nJ(BN);$(a,cO,null);dO=new nJ("Nonaromatic");$(a,dO,null);lO=new nJ(EN);$(a,lO,null);mO=new nJ(CN);$(a,mO,null);$(this,a,null);a=new Vv;Z(a,Cw(NI(this)));Qv(a,new Mw(0,3,1));$(a,new QN("Bond is :"),null);pO=new nJ(AN);$(a,pO,null);qO=new nJ(BN);$(a,qO,
null);rO=new nJ(EN);$(a,rO,null);sO=new nJ(CN);$(a,sO,null);$(this,a,null);a=new Vv;Qv(a,new Mw(1,3,1));this.e=new rx(ta,20);$(a,this.e,null);$(a,new nJ(DN),null);$(a,this.i,null);$(this,a,null);this.mc&&wJ(this.mc.c,!1);tJ(this,!1);uO(this);vO(this);wO(this);Z(cO,this.a);Z(dO,this.a);Z(lO,this.a);Z(mO,this.a);Z(nO,this.a);Z(oO,this.a);UN(this,WN);sJ(this);a=this.j;bK(this.mc.c,a.a,a.b);!qv(this)&&WI(this);RI(this)}r(562,544,tF,TN);
_.eg=function(a,b){var c;H(b,DN)?(tO(this),UN(this,WN),VN(this)):E(a.f,88)?(wO(this),iq(a.f)===iq(WN)?(uO(this),vO(this)):iq(a.f)===iq(XN)?(uO(this),vO(this)):iq(a.f)===iq(YN)?(uO(this),vO(this)):iq(a.f)===iq(lO)?Z(mO,this.a):iq(a.f)===iq(mO)?(Z(lO,this.a),Z(cO,this.a)):iq(a.f)===iq(cO)?(Z(dO,this.a),Z(mO,this.a)):iq(a.f)===iq(dO)?Z(cO,this.a):iq(a.f)===iq(pO)||iq(a.f)===iq(qO)||iq(a.f)===iq(rO)||iq(a.f)===iq(sO)?(tO(this),this.b=!0):vO(this),UN(this,a.f),VN(this)):E(a.f,89)&&(wO(this),c=a.f,0==c.mc.a.ob.selectedIndex?
Z(c,this.a):Z(c,(mw(),vw)),VN(this));107!=this.c.e&&(this.c.e=107,$v(this.c));return!0};_.fg=function(){return wm(this.e.mc.a.ob,ug)};_.gg=function(){return this.b};_.b=!1;_.c=null;_.d=null;var WN=_.e=null,pO=null,XN=null,cO=null,qO=null,aO=null,eO=null,oO=null,nO=null,$N=null,ZN=null,YN=null,bO=null,fO=null,dO=null,mO=null,sO=null,gO=null,kO=null,lO=null,rO=null,hO=null;function ON(a){yE();AE.call(this);this.a=new KN;ls(this.a,new xO(this,a),(FN(),FN(),GN))}r(608,606,{},ON);_.Fe=function(){return this.a};
_.a=null;function xO(a,b){this.a=a;this.b=b}r(609,1,{},xO);_.a=null;_.b=null;Y(543);Y(562);Y(408);Y(608);Y(609);Y(342);Y(194);y(oF)(1);