var rN="3",sN="Any",tN="Aromatic",uN="Nonring",vN="Reset",wN="Ring";function xN(){xN=s;yN=new $n(Tc,new zN)}function zN(){}r(191,188,{},zN);_.Pc=function(a){yv();YJ(this,a.b,AN(a.a.a,a.a.a.ob.selectedIndex))};_.Sc=function(){return yN};var yN;function BN(a,b){if(0>b||b>=a.ob.options.length)throw new As;}function AN(a,b){BN(a,b);return a.ob.options[b].value}function CN(){this.ob=$doc.createElement("select");this.ob[Vc]="gwt-ListBox"}r(336,314,eh,CN);function DN(){DN=s}
function EN(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(hf);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 FN(){DN();xv.call(this);new ni;this.mc=new GN((yv(),this))}r(401,388,{89:1,91:1,98:1,110:1,116:1},FN);_.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+Dg+this.hc+(this.qc?l:",hidden")+",current="+AN(this.mc.a,this.mc.a.ob.selectedIndex)};function HN(){wJ.call(this,7)}r(414,1,ih,HN);function IN(a){yJ.call(this,a,0)}r(419,388,Ph,IN);function JN(a){var b=a.j;XJ(a.mc.c,b.a,b.b);!lv(a)&&RI(a);MI(a)}
function KN(a,b,c){UJ.call(this);this.mc&&rJ(this.mc.c,!1);oJ(this,!1);Lv(this,new wJ(0));a=new yJ(a,1);$(this,a,null);a=new Qv;$(a,this.i,null);$(this,a,null);b&&(this.j=mv(b),nJ(this),TJ(this.j,~~(vm(b.$b.ob,ef)/2)-~~(this.rc/2),~~(vm(b.$b.ob,df)/2)-~~(this.hc/2)));c&&Z(this,c)}r(536,537,oF,KN);_.dg=function(){return"OK"};r(542,543,dh);_.Lc=function(){JN(new KN(this.b,this.a,(py(),ry)))};r(545,543,dh);_.Lc=function(){!this.a.Ib?this.a.Ib=new LN(this.a):this.a.Ib.mc.c.gb?LK(this.a.Ib.mc.c):JN(this.a.Ib)};
function MN(a,b){II(b)==a.a?Z(b,(hw(),qw)):Z(b,a.a)}
function NN(a){var b,c,d,e;e=l;d=!1;II(ON)!=a.a?(e=ta,d=!0):II(PN)!=a.a?(e="!#6",d=!0):II(QN)!=a.a?(Z(RN,(hw(),qw)),Z(SN,qw),Z(TN,qw),Z(UN,qw),e="F,Cl,Br,I"):(b=II(VN)!=a.a,c=II(WN)!=a.a,II(XN)!=a.a&&(b?e+="c,":c?e+="C,":e+="#6,"),II(YN)!=a.a&&(b?e+="n,":c?e+="N,":e+="#7,"),II(ZN)!=a.a&&(b?e+="o,":c?e+="O,":e+="#8,"),II($N)!=a.a&&(b?e+="s,":c?e+="S,":e+="#16,"),II(cO)!=a.a&&(b?e+="p,":c?e+="P,":e+="#15,"),II(RN)!=a.a&&(e+="F,"),II(SN)!=a.a&&(e+="Cl,"),II(TN)!=a.a&&(e+="Br,"),II(UN)!=a.a&&(e+="I,"),
kC(e,va)&&(e=e.substr(0,e.length-1-0)),1>e.length&&!a.b&&(b?e=nc:c?e=ob:(Z(ON,(hw(),qw)),e=ta)));b=l;d&&II(VN)!=a.a&&(b+=";a");d&&II(WN)!=a.a&&(b+=";A");II(dO)!=a.a&&(b+=";R");II(eO)!=a.a&&(b+=";!R");II(ON)!=a.a&&0<b.length?e=b.substr(1,b.length-1):e+=b;d=fO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";H"+d);d=gO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";D"+d);II(hO)!=a.a&&(e="~");II(iO)!=a.a&&(e=eb);II(jO)!=a.a&&(e=nb);II(kO)!=a.a&&(e="!@");BJ(a.e,e)}
function lO(a){mO(a);nO(a);var b=fO.mc.a;BN(b,0);b.ob.options[0].selected=!0;b=gO.mc.a;BN(b,0);b.ob.options[0].selected=!0;Z(VN,a.a);Z(WN,a.a);Z(dO,a.a);Z(eO,a.a);Z(fO,a.a);Z(gO,a.a);oO(a)}function mO(a){Z(XN,a.a);Z(YN,a.a);Z(ZN,a.a);Z($N,a.a);Z(cO,a.a);Z(RN,a.a);Z(SN,a.a);Z(TN,a.a);Z(UN,a.a)}function nO(a){Z(ON,a.a);Z(PN,a.a);Z(QN,a.a)}function oO(a){Z(hO,a.a);Z(iO,a.a);Z(jO,a.a);Z(kO,a.a);a.b=!1}
function LN(a){pJ.call(this,"Atom/Bond Query");this.i=new iJ(this.dg());aw(this.q,new VJ(this));this.a=(py(),ry);this.c=a;this.d||(a=mv(a),this.d=new AJ(a),TJ(this.d,-150,10));this.j=this.d;Lv(this,new HN);Z(this,this.a);a=new Qv;Lv(a,new Hw(0,3,1));$(a,new IN("Atom type :"),null);ON=new iJ(sN);PN=new iJ("Any except C");QN=new iJ("Halogen");$(a,ON,null);$(a,PN,null);$(a,QN,null);$(this,a,null);a=new Qv;Lv(a,new Hw(0,3,1));$(a,new yJ("Or select one or more from the list :",0),null);$(this,a,null);
a=new Qv;Lv(a,new Hw(0,3,1));XN=new iJ(sb);YN=new iJ(Lb);ZN=new iJ(Rb);$N=new iJ(Yb);cO=new iJ(Sb);RN=new iJ(Ab);SN=new iJ(vb);TN=new iJ(rb);UN=new iJ(Gb);$(a,XN,null);$(a,YN,null);$(a,ZN,null);$(a,$N,null);$(a,cO,null);$(a,RN,null);$(a,SN,null);$(a,TN,null);$(a,UN,null);$(this,a,null);a=new Qv;Lv(a,new Hw(0,3,1));fO=new FN;EN(fO,sN);EN(fO,Ya);EN(fO,$a);EN(fO,db);EN(fO,rN);$(a,new IN("Number of hydrogens :  "),null);$(a,fO,null);$(this,a,null);a=new Qv;Lv(a,new Hw(0,3,1));gO=new FN;EN(gO,sN);EN(gO,
Ya);EN(gO,$a);EN(gO,db);EN(gO,rN);EN(gO,"4");EN(gO,"5");EN(gO,"6");$(a,new yJ("Number of connections :",0),null);$(a,gO,null);$(a,new yJ(" (H's don't count.)",0),null);$(this,a,null);a=new Qv;Lv(a,new Hw(0,3,1));$(a,new IN("Atom is :"),null);VN=new iJ(tN);$(a,VN,null);WN=new iJ("Nonaromatic");$(a,WN,null);dO=new iJ(wN);$(a,dO,null);eO=new iJ(uN);$(a,eO,null);$(this,a,null);a=new Qv;Z(a,xw(II(this)));Lv(a,new Hw(0,3,1));$(a,new IN("Bond is :"),null);hO=new iJ(sN);$(a,hO,null);iO=new iJ(tN);$(a,iO,
null);jO=new iJ(wN);$(a,jO,null);kO=new iJ(uN);$(a,kO,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 iJ(vN),null);$(a,this.i,null);$(this,a,null);this.mc&&rJ(this.mc.c,!1);oJ(this,!1);mO(this);nO(this);oO(this);Z(VN,this.a);Z(WN,this.a);Z(dO,this.a);Z(eO,this.a);Z(fO,this.a);Z(gO,this.a);MN(this,ON);nJ(this);a=this.j;XJ(this.mc.c,a.a,a.b);!lv(this)&&RI(this);MI(this)}r(555,537,oF,LN);
_.eg=function(a,b){var c;H(b,vN)?(lO(this),MN(this,ON),NN(this)):E(a.f,88)?(oO(this),iq(a.f)===iq(ON)?(mO(this),nO(this)):iq(a.f)===iq(PN)?(mO(this),nO(this)):iq(a.f)===iq(QN)?(mO(this),nO(this)):iq(a.f)===iq(dO)?Z(eO,this.a):iq(a.f)===iq(eO)?(Z(dO,this.a),Z(VN,this.a)):iq(a.f)===iq(VN)?(Z(WN,this.a),Z(eO,this.a)):iq(a.f)===iq(WN)?Z(VN,this.a):iq(a.f)===iq(hO)||iq(a.f)===iq(iO)||iq(a.f)===iq(jO)||iq(a.f)===iq(kO)?(lO(this),this.b=!0):nO(this),MN(this,a.f),NN(this)):E(a.f,89)&&(oO(this),c=a.f,0==c.mc.a.ob.selectedIndex?
Z(c,this.a):Z(c,(hw(),qw)),NN(this));107!=this.c.e&&(this.c.e=107,Vv(this.c));return!0};_.fg=function(){return wm(this.e.mc.a.ob,xg)};_.gg=function(){return this.b};_.b=!1;_.c=null;_.d=null;var ON=_.e=null,hO=null,PN=null,VN=null,iO=null,TN=null,XN=null,gO=null,fO=null,SN=null,RN=null,QN=null,UN=null,YN=null,WN=null,eO=null,kO=null,ZN=null,cO=null,dO=null,jO=null,$N=null;function GN(a){tE();vE.call(this);this.a=new CN;hs(this.a,new pO(this,a),(xN(),xN(),yN))}r(601,599,{},GN);_.Fe=function(){return this.a};
_.a=null;function pO(a,b){this.a=a;this.b=b}r(602,1,{},pO);_.a=null;_.b=null;Y(536);Y(555);Y(401);Y(601);Y(602);Y(336);Y(191);y(jF)(1);