var sN="3",tN="Any",uN="Aromatic",vN="Nonring",wN="Reset",xN="Ring";function yN(){yN=s;zN=new Zn(Sc,new AN)}function AN(){}r(191,188,{},AN);_.Pc=function(a){yv();YJ(this,a.b,BN(a.a.a,a.a.a.ob.selectedIndex))};_.Sc=function(){return zN};var zN;function CN(a,b){if(0>b||b>=a.ob.options.length)throw new As;}function BN(a,b){CN(a,b);return a.ob.options[b].value}function DN(){this.ob=$doc.createElement("select");this.ob[Uc]="gwt-ListBox"}r(336,314,dh,DN);function EN(){EN=s}
function FN(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 GN(){EN();xv.call(this);new mi;this.mc=new HN((yv(),this))}r(401,388,{89:1,91:1,98:1,110:1,116:1},GN);_.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="+BN(this.mc.a,this.mc.a.ob.selectedIndex)};function IN(){wJ.call(this,7)}r(414,1,hh,IN);function JN(a){yJ.call(this,a,0)}r(419,388,Oh,JN);function KN(a){var b=a.j;XJ(a.mc.c,b.a,b.b);!lv(a)&&RI(a);MI(a)}
function LN(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,~~(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,LN);_.dg=function(){return"OK"};r(542,543,ch);_.Lc=function(){KN(new LN(this.b,this.a,(ny(),py)))};r(545,543,ch);_.Lc=function(){!this.a.Ib?this.a.Ib=new MN(this.a):this.a.Ib.mc.c.gb?LK(this.a.Ib.mc.c):KN(this.a.Ib)};
function NN(a,b){II(b)==a.a?Z(b,(hw(),qw)):Z(b,a.a)}
function ON(a){var b,c,d,e;e=l;d=!1;II(PN)!=a.a?(e=ta,d=!0):II(QN)!=a.a?(e="!#6",d=!0):II(RN)!=a.a?(Z(SN,(hw(),qw)),Z(TN,qw),Z(UN,qw),Z(VN,qw),e="F,Cl,Br,I"):(b=II(WN)!=a.a,c=II(XN)!=a.a,II(YN)!=a.a&&(b?e+="c,":c?e+="C,":e+="#6,"),II(ZN)!=a.a&&(b?e+="n,":c?e+="N,":e+="#7,"),II($N)!=a.a&&(b?e+="o,":c?e+="O,":e+="#8,"),II(aO)!=a.a&&(b?e+="s,":c?e+="S,":e+="#16,"),II(dO)!=a.a&&(b?e+="p,":c?e+="P,":e+="#15,"),II(SN)!=a.a&&(e+="F,"),II(TN)!=a.a&&(e+="Cl,"),II(UN)!=a.a&&(e+="Br,"),II(VN)!=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(PN,(hw(),qw)),e=ta)));b=l;d&&II(WN)!=a.a&&(b+=";a");d&&II(XN)!=a.a&&(b+=";A");II(eO)!=a.a&&(b+=";R");II(fO)!=a.a&&(b+=";!R");II(PN)!=a.a&&0<b.length?e=b.substr(1,b.length-1):e+=b;d=gO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";H"+d);d=hO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";D"+d);II(iO)!=a.a&&(e="~");II(jO)!=a.a&&(e=eb);II(kO)!=a.a&&(e=nb);II(lO)!=a.a&&(e="!@");BJ(a.e,e)}
function mO(a){nO(a);oO(a);var b=gO.mc.a;CN(b,0);b.ob.options[0].selected=!0;b=hO.mc.a;CN(b,0);b.ob.options[0].selected=!0;Z(WN,a.a);Z(XN,a.a);Z(eO,a.a);Z(fO,a.a);Z(gO,a.a);Z(hO,a.a);pO(a)}function nO(a){Z(YN,a.a);Z(ZN,a.a);Z($N,a.a);Z(aO,a.a);Z(dO,a.a);Z(SN,a.a);Z(TN,a.a);Z(UN,a.a);Z(VN,a.a)}function oO(a){Z(PN,a.a);Z(QN,a.a);Z(RN,a.a)}function pO(a){Z(iO,a.a);Z(jO,a.a);Z(kO,a.a);Z(lO,a.a);a.b=!1}
function MN(a){pJ.call(this,"Atom/Bond Query");this.i=new iJ(this.dg());aw(this.q,new VJ(this));this.a=(ny(),py);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 IN);Z(this,this.a);a=new Qv;Lv(a,new Hw(0,3,1));$(a,new JN("Atom type :"),null);PN=new iJ(tN);QN=new iJ("Any except C");RN=new iJ("Halogen");$(a,PN,null);$(a,QN,null);$(a,RN,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));YN=new iJ(rb);ZN=new iJ(Lb);$N=new iJ(Rb);aO=new iJ(Yb);dO=new iJ(Sb);SN=new iJ(Ab);TN=new iJ(vb);UN=new iJ(qb);VN=new iJ(Gb);$(a,YN,null);$(a,ZN,null);$(a,$N,null);$(a,aO,null);$(a,dO,null);$(a,SN,null);$(a,TN,null);$(a,UN,null);$(a,VN,null);$(this,a,null);a=new Qv;Lv(a,new Hw(0,3,1));gO=new GN;FN(gO,tN);FN(gO,Ya);FN(gO,$a);FN(gO,db);FN(gO,sN);$(a,new JN("Number of hydrogens :  "),null);$(a,gO,null);$(this,a,null);a=new Qv;Lv(a,new Hw(0,3,1));hO=new GN;FN(hO,tN);FN(hO,
Ya);FN(hO,$a);FN(hO,db);FN(hO,sN);FN(hO,"4");FN(hO,"5");FN(hO,"6");$(a,new yJ("Number of connections :",0),null);$(a,hO,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 JN("Atom is :"),null);WN=new iJ(uN);$(a,WN,null);XN=new iJ("Nonaromatic");$(a,XN,null);eO=new iJ(xN);$(a,eO,null);fO=new iJ(vN);$(a,fO,null);$(this,a,null);a=new Qv;Z(a,xw(II(this)));Lv(a,new Hw(0,3,1));$(a,new JN("Bond is :"),null);iO=new iJ(tN);$(a,iO,null);jO=new iJ(uN);$(a,jO,
null);kO=new iJ(xN);$(a,kO,null);lO=new iJ(vN);$(a,lO,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(wN),null);$(a,this.i,null);$(this,a,null);this.mc&&rJ(this.mc.c,!1);oJ(this,!1);nO(this);oO(this);pO(this);Z(WN,this.a);Z(XN,this.a);Z(eO,this.a);Z(fO,this.a);Z(gO,this.a);Z(hO,this.a);NN(this,PN);nJ(this);a=this.j;XJ(this.mc.c,a.a,a.b);!lv(this)&&RI(this);MI(this)}r(555,537,nF,MN);
_.eg=function(a,b){var c;H(b,wN)?(mO(this),NN(this,PN),ON(this)):E(a.f,88)?(pO(this),iq(a.f)===iq(PN)?(nO(this),oO(this)):iq(a.f)===iq(QN)?(nO(this),oO(this)):iq(a.f)===iq(RN)?(nO(this),oO(this)):iq(a.f)===iq(eO)?Z(fO,this.a):iq(a.f)===iq(fO)?(Z(eO,this.a),Z(WN,this.a)):iq(a.f)===iq(WN)?(Z(XN,this.a),Z(fO,this.a)):iq(a.f)===iq(XN)?Z(WN,this.a):iq(a.f)===iq(iO)||iq(a.f)===iq(jO)||iq(a.f)===iq(kO)||iq(a.f)===iq(lO)?(mO(this),this.b=!0):oO(this),NN(this,a.f),ON(this)):E(a.f,89)&&(pO(this),c=a.f,0==c.mc.a.ob.selectedIndex?
Z(c,this.a):Z(c,(hw(),qw)),ON(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 PN=_.e=null,iO=null,QN=null,WN=null,jO=null,UN=null,YN=null,hO=null,gO=null,TN=null,SN=null,RN=null,VN=null,ZN=null,XN=null,fO=null,lO=null,$N=null,dO=null,eO=null,kO=null,aO=null;function HN(a){sE();uE.call(this);this.a=new DN;hs(this.a,new qO(this,a),(yN(),yN(),zN))}r(601,599,{},HN);_.Fe=function(){return this.a};
_.a=null;function qO(a,b){this.a=a;this.b=b}r(602,1,{},qO);_.a=null;_.b=null;Y(536);Y(555);Y(401);Y(601);Y(602);Y(336);Y(191);y(iF)(1);