var GN="3",HN="Any",IN="Aromatic",JN="Nonring",KN="Reset",LN="Ring";function MN(){MN=s;NN=new jo(Tc,new ON)}function ON(){}r(192,189,{},ON);_.Pc=function(a){Gv();lK(this,a.b,PN(a.a.a,a.a.a.ob.selectedIndex))};_.Sc=function(){return NN};var NN;function QN(a,b){if(0>b||b>=a.ob.options.length)throw new Us;}function PN(a,b){QN(a,b);return a.ob.options[b].value}function RN(){this.ob=$doc.createElement("<SELECT>");this.ob[Vc]="gwt-ListBox"}r(338,316,ih,RN);function SN(){SN=s}
function TN(a,b){if(null==b)throw new Kp("Missing message: awt.103");var c=-1,d,e,f;f=a.mc.a.ob;e=Em(df);e.text=b;e.removeAttribute("bidiwrapped");e.value=b;d=f.options.length;(0>c||c>d)&&(c=d);c==d?f.add(e):(c=f.options[c])?f.add(e,c.index):f.add(e)}function UN(){SN();Fv.call(this);new ri;this.mc=new VN((Gv(),this))}r(405,392,{89:1,91:1,98:1,110:1,116:1},UN);_.Yd=function(){return Kv(this.mc,this)};
_.le=function(){return(null==this.jc&&(this.jc=rv(this)),this.jc)+sa+this.uc+sa+this.vc+sa+this.rc+Hg+this.hc+(this.qc?l:",hidden")+",current="+PN(this.mc.a,this.mc.a.ob.selectedIndex)};function WN(){KJ.call(this,7)}r(418,1,mh,WN);function XN(a){MJ.call(this,a,0)}r(423,392,Th,XN);function YN(a){var b=a.j;kK(a.mc.c,b.a,b.b);!tv(a)&&eJ(a);$I(a)}
function ZN(a,b,c){hK.call(this);this.mc&&FJ(this.mc.c,!1);CJ(this,!1);Tv(this,new KJ(0));a=new MJ(a,1);$(this,a,null);a=new Yv;$(a,this.i,null);$(this,a,null);b&&(this.j=uv(b),BJ(this),gK(this.j,~~(zm(b.$b.ob,Ze)/2)-~~(this.rc/2),~~(zm(b.$b.ob,Ye)/2)-~~(this.hc/2)));c&&Z(this,c)}r(540,541,AF,ZN);_.dg=function(){return"OK"};r(546,547,hh);_.Lc=function(){YN(new ZN(this.b,this.a,(yy(),Ay)))};r(549,547,hh);_.Lc=function(){!this.a.Ib?this.a.Ib=new $N(this.a):this.a.Ib.mc.c.gb?ZK(this.a.Ib.mc.c):YN(this.a.Ib)};
function aO(a,b){WI(b)==a.a?Z(b,(pw(),yw)):Z(b,a.a)}
function bO(a){var b,c,d,e;e=l;d=!1;WI(cO)!=a.a?(e=qa,d=!0):WI(dO)!=a.a?(e="!#6",d=!0):WI(eO)!=a.a?(Z(fO,(pw(),yw)),Z(gO,yw),Z(hO,yw),Z(iO,yw),e="F,Cl,Br,I"):(b=WI(jO)!=a.a,c=WI(kO)!=a.a,WI(lO)!=a.a&&(b?e+="c,":c?e+="C,":e+="#6,"),WI(mO)!=a.a&&(b?e+="n,":c?e+="N,":e+="#7,"),WI(nO)!=a.a&&(b?e+="o,":c?e+="O,":e+="#8,"),WI(oO)!=a.a&&(b?e+="s,":c?e+="S,":e+="#16,"),WI(pO)!=a.a&&(b?e+="p,":c?e+="P,":e+="#15,"),WI(fO)!=a.a&&(e+="F,"),WI(gO)!=a.a&&(e+="Cl,"),WI(hO)!=a.a&&(e+="Br,"),WI(iO)!=a.a&&(e+="I,"),
tC(e,sa)&&(e=e.substr(0,e.length-1-0)),1>e.length&&!a.b&&(b?e=nc:c?e=lb:(Z(cO,(pw(),yw)),e=qa)));b=l;d&&WI(jO)!=a.a&&(b+=";a");d&&WI(kO)!=a.a&&(b+=";A");WI(sO)!=a.a&&(b+=";R");WI(tO)!=a.a&&(b+=";!R");WI(cO)!=a.a&&0<b.length?e=b.substr(1,b.length-1):e+=b;d=uO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";H"+d);d=vO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";D"+d);WI(wO)!=a.a&&(e="~");WI(xO)!=a.a&&(e=ab);WI(yO)!=a.a&&(e=kb);WI(zO)!=a.a&&(e="!@");PJ(a.e,e)}
function AO(a){BO(a);CO(a);var b=uO.mc.a;QN(b,0);b.ob.options[0].selected=!0;b=vO.mc.a;QN(b,0);b.ob.options[0].selected=!0;Z(jO,a.a);Z(kO,a.a);Z(sO,a.a);Z(tO,a.a);Z(uO,a.a);Z(vO,a.a);DO(a)}function BO(a){Z(lO,a.a);Z(mO,a.a);Z(nO,a.a);Z(oO,a.a);Z(pO,a.a);Z(fO,a.a);Z(gO,a.a);Z(hO,a.a);Z(iO,a.a)}function CO(a){Z(cO,a.a);Z(dO,a.a);Z(eO,a.a)}function DO(a){Z(wO,a.a);Z(xO,a.a);Z(yO,a.a);Z(zO,a.a);a.b=!1}
function $N(a){DJ.call(this,"Atom/Bond Query");this.i=new wJ(this.dg());iw(this.q,new iK(this));this.a=(yy(),Ay);this.c=a;this.d||(a=uv(a),this.d=new OJ(a),gK(this.d,-150,10));this.j=this.d;Tv(this,new WN);Z(this,this.a);a=new Yv;Tv(a,new Pw(0,3,1));$(a,new XN("Atom type :"),null);cO=new wJ(HN);dO=new wJ("Any except C");eO=new wJ("Halogen");$(a,cO,null);$(a,dO,null);$(a,eO,null);$(this,a,null);a=new Yv;Tv(a,new Pw(0,3,1));$(a,new MJ("Or select one or more from the list :",0),null);$(this,a,null);
a=new Yv;Tv(a,new Pw(0,3,1));lO=new wJ(qb);mO=new wJ(Kb);nO=new wJ(Ob);oO=new wJ(Xb);pO=new wJ(Pb);fO=new wJ(yb);gO=new wJ(tb);hO=new wJ(pb);iO=new wJ(Db);$(a,lO,null);$(a,mO,null);$(a,nO,null);$(a,oO,null);$(a,pO,null);$(a,fO,null);$(a,gO,null);$(a,hO,null);$(a,iO,null);$(this,a,null);a=new Yv;Tv(a,new Pw(0,3,1));uO=new UN;TN(uO,HN);TN(uO,Wa);TN(uO,Ya);TN(uO,$a);TN(uO,GN);$(a,new XN("Number of hydrogens :  "),null);$(a,uO,null);$(this,a,null);a=new Yv;Tv(a,new Pw(0,3,1));vO=new UN;TN(vO,HN);TN(vO,
Wa);TN(vO,Ya);TN(vO,$a);TN(vO,GN);TN(vO,"4");TN(vO,"5");TN(vO,"6");$(a,new MJ("Number of connections :",0),null);$(a,vO,null);$(a,new MJ(" (H's don't count.)",0),null);$(this,a,null);a=new Yv;Tv(a,new Pw(0,3,1));$(a,new XN("Atom is :"),null);jO=new wJ(IN);$(a,jO,null);kO=new wJ("Nonaromatic");$(a,kO,null);sO=new wJ(LN);$(a,sO,null);tO=new wJ(JN);$(a,tO,null);$(this,a,null);a=new Yv;Z(a,Fw(WI(this)));Tv(a,new Pw(0,3,1));$(a,new XN("Bond is :"),null);wO=new wJ(HN);$(a,wO,null);xO=new wJ(IN);$(a,xO,
null);yO=new wJ(LN);$(a,yO,null);zO=new wJ(JN);$(a,zO,null);$(this,a,null);a=new Yv;Tv(a,new Pw(1,3,1));this.e=new vx(qa,20);$(a,this.e,null);$(a,new wJ(KN),null);$(a,this.i,null);$(this,a,null);this.mc&&FJ(this.mc.c,!1);CJ(this,!1);BO(this);CO(this);DO(this);Z(jO,this.a);Z(kO,this.a);Z(sO,this.a);Z(tO,this.a);Z(uO,this.a);Z(vO,this.a);aO(this,cO);BJ(this);a=this.j;kK(this.mc.c,a.a,a.b);!tv(this)&&eJ(this);$I(this)}r(559,541,AF,$N);
_.eg=function(a,b){var c;H(b,KN)?(AO(this),aO(this,cO),bO(this)):E(a.f,88)?(DO(this),rq(a.f)===rq(cO)?(BO(this),CO(this)):rq(a.f)===rq(dO)?(BO(this),CO(this)):rq(a.f)===rq(eO)?(BO(this),CO(this)):rq(a.f)===rq(sO)?Z(tO,this.a):rq(a.f)===rq(tO)?(Z(sO,this.a),Z(jO,this.a)):rq(a.f)===rq(jO)?(Z(kO,this.a),Z(tO,this.a)):rq(a.f)===rq(kO)?Z(jO,this.a):rq(a.f)===rq(wO)||rq(a.f)===rq(xO)||rq(a.f)===rq(yO)||rq(a.f)===rq(zO)?(AO(this),this.b=!0):CO(this),aO(this,a.f),bO(this)):E(a.f,89)&&(DO(this),c=a.f,0==c.mc.a.ob.selectedIndex?
Z(c,this.a):Z(c,(pw(),yw)),bO(this));107!=this.c.e&&(this.c.e=107,cw(this.c));return!0};_.fg=function(){return Am(this.e.mc.a.ob,xg)};_.gg=function(){return this.b};_.b=!1;_.c=null;_.d=null;var cO=_.e=null,wO=null,dO=null,jO=null,xO=null,hO=null,lO=null,vO=null,uO=null,gO=null,fO=null,eO=null,iO=null,mO=null,kO=null,tO=null,zO=null,nO=null,pO=null,sO=null,yO=null,oO=null;function VN(a){FE();HE.call(this);this.a=new RN;os(this.a,new EO(this,a),(MN(),MN(),NN))}r(604,602,{},VN);_.Fe=function(){return this.a};
_.a=null;function EO(a,b){this.a=a;this.b=b}r(605,1,{},EO);_.a=null;_.b=null;Y(540);Y(559);Y(405);Y(604);Y(605);Y(338);Y(192);y(vF)(1);