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