var qN="3",rN="Any",sN="Aromatic",tN="Nonring",uN="Reset",vN="Ring";function wN(){wN=s;xN=new Zn(Sc,new yN)}function yN(){}r(191,188,{},yN);_.Pc=function(a){yv();XJ(this,a.b,zN(a.a.a,a.a.a.ob.selectedIndex))};_.Sc=function(){return xN};var xN;function AN(a,b){if(0>b||b>=a.ob.options.length)throw new As;}function zN(a,b){AN(a,b);return a.ob.options[b].value}function BN(){this.ob=$doc.createElement("select");this.ob[Uc]="gwt-ListBox"}r(336,314,dh,BN);function CN(){CN=s}
function DN(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 EN(){CN();xv.call(this);new mi;this.mc=new FN((yv(),this))}r(401,388,{89:1,91:1,98:1,110:1,116:1},EN);_.Yd=function(){return Cv(this.mc,this)};
_.le=function(){return(null==this.jc&&(this.jc=jv(this)),this.jc)+va+this.uc+va+this.vc+va+this.rc+Cg+this.hc+(this.qc?l:",hidden")+",current="+zN(this.mc.a,this.mc.a.ob.selectedIndex)};function GN(){vJ.call(this,7)}r(414,1,hh,GN);function HN(a){xJ.call(this,a,0)}r(419,388,Oh,HN);function IN(a){var b=a.j;WJ(a.mc.c,b.a,b.b);!lv(a)&&QI(a);LI(a)}
function JN(a,b,c){TJ.call(this);this.mc&&qJ(this.mc.c,!1);nJ(this,!1);Lv(this,new vJ(0));a=new xJ(a,1);$(this,a,null);a=new Qv;$(a,this.i,null);$(this,a,null);b&&(this.j=mv(b),mJ(this),SJ(this.j,~~(um(b.$b.ob,df)/2)-~~(this.rc/2),~~(um(b.$b.ob,cf)/2)-~~(this.hc/2)));c&&Z(this,c)}r(536,537,nF,JN);_.dg=function(){return"OK"};r(542,543,ch);_.Lc=function(){IN(new JN(this.b,this.a,(ny(),py)))};r(545,543,ch);_.Lc=function(){!this.a.Ib?this.a.Ib=new KN(this.a):this.a.Ib.mc.c.gb?KK(this.a.Ib.mc.c):IN(this.a.Ib)};
function LN(a,b){HI(b)==a.a?Z(b,(hw(),qw)):Z(b,a.a)}
function MN(a){var b,c,d,e;e=l;d=!1;HI(NN)!=a.a?(e=ta,d=!0):HI(ON)!=a.a?(e="!#6",d=!0):HI(PN)!=a.a?(Z(QN,(hw(),qw)),Z(RN,qw),Z(SN,qw),Z(TN,qw),e="F,Cl,Br,I"):(b=HI(UN)!=a.a,c=HI(VN)!=a.a,HI(WN)!=a.a&&(b?e+="c,":c?e+="C,":e+="#6,"),HI(XN)!=a.a&&(b?e+="n,":c?e+="N,":e+="#7,"),HI(YN)!=a.a&&(b?e+="o,":c?e+="O,":e+="#8,"),HI(ZN)!=a.a&&(b?e+="s,":c?e+="S,":e+="#16,"),HI(bO)!=a.a&&(b?e+="p,":c?e+="P,":e+="#15,"),HI(QN)!=a.a&&(e+="F,"),HI(RN)!=a.a&&(e+="Cl,"),HI(SN)!=a.a&&(e+="Br,"),HI(TN)!=a.a&&(e+="I,"),
iC(e,va)&&(e=e.substr(0,e.length-1-0)),1>e.length&&!a.b&&(b?e=mc:c?e=ob:(Z(NN,(hw(),qw)),e=ta)));b=l;d&&HI(UN)!=a.a&&(b+=";a");d&&HI(VN)!=a.a&&(b+=";A");HI(cO)!=a.a&&(b+=";R");HI(dO)!=a.a&&(b+=";!R");HI(NN)!=a.a&&0<b.length?e=b.substr(1,b.length-1):e+=b;d=eO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";H"+d);d=fO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";D"+d);HI(gO)!=a.a&&(e="~");HI(hO)!=a.a&&(e=eb);HI(iO)!=a.a&&(e=nb);HI(jO)!=a.a&&(e="!@");AJ(a.e,e)}
function kO(a){lO(a);mO(a);var b=eO.mc.a;AN(b,0);b.ob.options[0].selected=!0;b=fO.mc.a;AN(b,0);b.ob.options[0].selected=!0;Z(UN,a.a);Z(VN,a.a);Z(cO,a.a);Z(dO,a.a);Z(eO,a.a);Z(fO,a.a);nO(a)}function lO(a){Z(WN,a.a);Z(XN,a.a);Z(YN,a.a);Z(ZN,a.a);Z(bO,a.a);Z(QN,a.a);Z(RN,a.a);Z(SN,a.a);Z(TN,a.a)}function mO(a){Z(NN,a.a);Z(ON,a.a);Z(PN,a.a)}function nO(a){Z(gO,a.a);Z(hO,a.a);Z(iO,a.a);Z(jO,a.a);a.b=!1}
function KN(a){oJ.call(this,"Atom/Bond Query");this.i=new hJ(this.dg());aw(this.q,new UJ(this));this.a=(ny(),py);this.c=a;this.d||(a=mv(a),this.d=new zJ(a),SJ(this.d,-150,10));this.j=this.d;Lv(this,new GN);Z(this,this.a);a=new Qv;Lv(a,new Hw(0,3,1));$(a,new HN("Atom type :"),null);NN=new hJ(rN);ON=new hJ("Any except C");PN=new hJ("Halogen");$(a,NN,null);$(a,ON,null);$(a,PN,null);$(this,a,null);a=new Qv;Lv(a,new Hw(0,3,1));$(a,new xJ("Or select one or more from the list :",0),null);$(this,a,null);
a=new Qv;Lv(a,new Hw(0,3,1));WN=new hJ(sb);XN=new hJ(Lb);YN=new hJ(Rb);ZN=new hJ(Yb);bO=new hJ(Sb);QN=new hJ(Ab);RN=new hJ(vb);SN=new hJ(rb);TN=new hJ(Gb);$(a,WN,null);$(a,XN,null);$(a,YN,null);$(a,ZN,null);$(a,bO,null);$(a,QN,null);$(a,RN,null);$(a,SN,null);$(a,TN,null);$(this,a,null);a=new Qv;Lv(a,new Hw(0,3,1));eO=new EN;DN(eO,rN);DN(eO,Ya);DN(eO,$a);DN(eO,db);DN(eO,qN);$(a,new HN("Number of hydrogens :  "),null);$(a,eO,null);$(this,a,null);a=new Qv;Lv(a,new Hw(0,3,1));fO=new EN;DN(fO,rN);DN(fO,
Ya);DN(fO,$a);DN(fO,db);DN(fO,qN);DN(fO,"4");DN(fO,"5");DN(fO,"6");$(a,new xJ("Number of connections :",0),null);$(a,fO,null);$(a,new xJ(" (H's don't count.)",0),null);$(this,a,null);a=new Qv;Lv(a,new Hw(0,3,1));$(a,new HN("Atom is :"),null);UN=new hJ(sN);$(a,UN,null);VN=new hJ("Nonaromatic");$(a,VN,null);cO=new hJ(vN);$(a,cO,null);dO=new hJ(tN);$(a,dO,null);$(this,a,null);a=new Qv;Z(a,xw(HI(this)));Lv(a,new Hw(0,3,1));$(a,new HN("Bond is :"),null);gO=new hJ(rN);$(a,gO,null);hO=new hJ(sN);$(a,hO,
null);iO=new hJ(vN);$(a,iO,null);jO=new hJ(tN);$(a,jO,null);$(this,a,null);a=new Qv;Lv(a,new Hw(1,3,1));this.e=new mx(ta,20);$(a,this.e,null);$(a,new hJ(uN),null);$(a,this.i,null);$(this,a,null);this.mc&&qJ(this.mc.c,!1);nJ(this,!1);lO(this);mO(this);nO(this);Z(UN,this.a);Z(VN,this.a);Z(cO,this.a);Z(dO,this.a);Z(eO,this.a);Z(fO,this.a);LN(this,NN);mJ(this);a=this.j;WJ(this.mc.c,a.a,a.b);!lv(this)&&QI(this);LI(this)}r(555,537,nF,KN);
_.eg=function(a,b){var c;H(b,uN)?(kO(this),LN(this,NN),MN(this)):E(a.f,88)?(nO(this),iq(a.f)===iq(NN)?(lO(this),mO(this)):iq(a.f)===iq(ON)?(lO(this),mO(this)):iq(a.f)===iq(PN)?(lO(this),mO(this)):iq(a.f)===iq(cO)?Z(dO,this.a):iq(a.f)===iq(dO)?(Z(cO,this.a),Z(UN,this.a)):iq(a.f)===iq(UN)?(Z(VN,this.a),Z(dO,this.a)):iq(a.f)===iq(VN)?Z(UN,this.a):iq(a.f)===iq(gO)||iq(a.f)===iq(hO)||iq(a.f)===iq(iO)||iq(a.f)===iq(jO)?(kO(this),this.b=!0):mO(this),LN(this,a.f),MN(this)):E(a.f,89)&&(nO(this),c=a.f,0==c.mc.a.ob.selectedIndex?
Z(c,this.a):Z(c,(hw(),qw)),MN(this));107!=this.c.e&&(this.c.e=107,Vv(this.c));return!0};_.fg=function(){return vm(this.e.mc.a.ob,tg)};_.gg=function(){return this.b};_.b=!1;_.c=null;_.d=null;var NN=_.e=null,gO=null,ON=null,UN=null,hO=null,SN=null,WN=null,fO=null,eO=null,RN=null,QN=null,PN=null,TN=null,XN=null,VN=null,dO=null,jO=null,YN=null,bO=null,cO=null,iO=null,ZN=null;function FN(a){sE();uE.call(this);this.a=new BN;hs(this.a,new oO(this,a),(wN(),wN(),xN))}r(601,599,{},FN);_.Fe=function(){return this.a};
_.a=null;function oO(a,b){this.a=a;this.b=b}r(602,1,{},oO);_.a=null;_.b=null;Y(536);Y(555);Y(401);Y(601);Y(602);Y(336);Y(191);y(iF)(1);