var JN="3",KN="Any",LN="Aromatic",MN="Nonring",NN="Reset",ON="Ring";function PN(){PN=s;QN=new ko(Vc,new RN)}function RN(){}r(196,193,{},RN);_.Tc=function(a){Tv();pK(this,a.b,SN(a.a.a,a.a.a.ob.selectedIndex))};_.Wc=function(){return QN};var QN;function TN(a,b){if(0>b||b>=a.ob.options.length)throw new Ks;}function SN(a,b){TN(a,b);return a.ob.options[b].value}function UN(){Ot();this.ob=$doc.createElement("select");this.ob[dd]="gwt-ListBox"}r(341,319,jh,UN);function VN(){VN=s}
function WN(a,b){if(null==b)throw new Lp("Missing message: awt.103");var c=-1,d,e,f;f=a.mc.a.ob;e=$doc.createElement(lf);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 XN(){VN();Sv.call(this);new qi;this.mc=new YN((Tv(),this))}r(408,395,{89:1,91:1,98:1,110:1,116:1},XN);_.be=function(){return Xv(this.mc,this)};
_.qe=function(){return(null==this.jc&&(this.jc=Ev(this)),this.jc)+va+this.uc+va+this.vc+va+this.rc+Jg+this.hc+(this.qc?l:",hidden")+",current="+SN(this.mc.a,this.mc.a.ob.selectedIndex)};function ZN(){PJ.call(this,7)}r(421,1,mh,ZN);function $N(a){RJ.call(this,a,0)}r(426,395,Ah,$N);function aO(a){var b=a.j;oK(a.mc.c,b.a,b.b);!Gv(a)&&jJ(a);eJ(a)}
function bO(a,b,c){lK.call(this);this.mc&&KJ(this.mc.c,!1);HJ(this,!1);fw(this,new PJ(0));a=new RJ(a,1);$(this,a,null);a=new kw;$(a,this.i,null);$(this,a,null);b&&(this.j=Hv(b),GJ(this),kK(this.j,~~(Fm(b.$b.ob,hf)/2)-~~(this.rc/2),~~(Fm(b.$b.ob,gf)/2)-~~(this.hc/2)));c&&Z(this,c)}r(543,544,JF,bO);_.ig=function(){return"OK"};r(549,550,Fh);_.Pc=function(){aO(new bO(this.b,this.a,(Ly(),Ny)))};r(552,550,Fh);_.Pc=function(){!this.a.Ib?this.a.Ib=new cO(this.a):this.a.Ib.mc.c.gb?cL(this.a.Ib.mc.c):aO(this.a.Ib)};
function dO(a,b){aJ(b)==a.a?Z(b,(Cw(),Lw)):Z(b,a.a)}
function eO(a){var b,c,d,e;e=l;d=!1;aJ(fO)!=a.a?(e=ta,d=!0):aJ(gO)!=a.a?(e="!#6",d=!0):aJ(hO)!=a.a?(Z(iO,(Cw(),Lw)),Z(jO,Lw),Z(kO,Lw),Z(lO,Lw),e="F,Cl,Br,I"):(b=aJ(mO)!=a.a,c=aJ(nO)!=a.a,aJ(oO)!=a.a&&(b?e+="c,":c?e+="C,":e+="#6,"),aJ(pO)!=a.a&&(b?e+="n,":c?e+="N,":e+="#7,"),aJ(qO)!=a.a&&(b?e+="o,":c?e+="O,":e+="#8,"),aJ(rO)!=a.a&&(b?e+="s,":c?e+="S,":e+="#16,"),aJ(uO)!=a.a&&(b?e+="p,":c?e+="P,":e+="#15,"),aJ(iO)!=a.a&&(e+="F,"),aJ(jO)!=a.a&&(e+="Cl,"),aJ(kO)!=a.a&&(e+="Br,"),aJ(lO)!=a.a&&(e+="I,"),
GC(e,va)&&(e=e.substr(0,e.length-1-0)),1>e.length&&!a.b&&(b?e=nc:c?e=pb:(Z(fO,(Cw(),Lw)),e=ta)));b=l;d&&aJ(mO)!=a.a&&(b+=";a");d&&aJ(nO)!=a.a&&(b+=";A");aJ(vO)!=a.a&&(b+=";R");aJ(wO)!=a.a&&(b+=";!R");aJ(fO)!=a.a&&0<b.length?e=b.substr(1,b.length-1):e+=b;d=xO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";H"+d);d=yO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";D"+d);aJ(zO)!=a.a&&(e="~");aJ(AO)!=a.a&&(e=fb);aJ(BO)!=a.a&&(e=ob);aJ(CO)!=a.a&&(e="!@");Ix(a.e.mc,e)}
function DO(a){EO(a);FO(a);var b=xO.mc.a;TN(b,0);b.ob.options[0].selected=!0;b=yO.mc.a;TN(b,0);b.ob.options[0].selected=!0;Z(mO,a.a);Z(nO,a.a);Z(vO,a.a);Z(wO,a.a);Z(xO,a.a);Z(yO,a.a);GO(a)}function EO(a){Z(oO,a.a);Z(pO,a.a);Z(qO,a.a);Z(rO,a.a);Z(uO,a.a);Z(iO,a.a);Z(jO,a.a);Z(kO,a.a);Z(lO,a.a)}function FO(a){Z(fO,a.a);Z(gO,a.a);Z(hO,a.a)}function GO(a){Z(zO,a.a);Z(AO,a.a);Z(BO,a.a);Z(CO,a.a);a.b=!1}
function cO(a){IJ.call(this,"Atom/Bond Query");this.i=new BJ(this.ig());vw(this.q,new mK(this));this.a=(Ly(),Ny);this.c=a;this.d||(a=Hv(a),this.d=new TJ(a),kK(this.d,-150,10));this.j=this.d;fw(this,new ZN);Z(this,this.a);a=new kw;fw(a,new bx(0,3,1));$(a,new $N("Atom type :"),null);fO=new BJ(KN);gO=new BJ("Any except C");hO=new BJ("Halogen");$(a,fO,null);$(a,gO,null);$(a,hO,null);$(this,a,null);a=new kw;fw(a,new bx(0,3,1));$(a,new RJ("Or select one or more from the list :",0),null);$(this,a,null);
a=new kw;fw(a,new bx(0,3,1));oO=new BJ(ub);pO=new BJ(Pb);qO=new BJ(Tb);rO=new BJ(ac);uO=new BJ(Ub);iO=new BJ(Cb);jO=new BJ(yb);kO=new BJ(tb);lO=new BJ(Ib);$(a,oO,null);$(a,pO,null);$(a,qO,null);$(a,rO,null);$(a,uO,null);$(a,iO,null);$(a,jO,null);$(a,kO,null);$(a,lO,null);$(this,a,null);a=new kw;fw(a,new bx(0,3,1));xO=new XN;WN(xO,KN);WN(xO,Ya);WN(xO,$a);WN(xO,eb);WN(xO,JN);$(a,new $N("Number of hydrogens :  "),null);$(a,xO,null);$(this,a,null);a=new kw;fw(a,new bx(0,3,1));yO=new XN;WN(yO,KN);WN(yO,
Ya);WN(yO,$a);WN(yO,eb);WN(yO,JN);WN(yO,"4");WN(yO,"5");WN(yO,"6");$(a,new RJ("Number of connections :",0),null);$(a,yO,null);$(a,new RJ(" (H's don't count.)",0),null);$(this,a,null);a=new kw;fw(a,new bx(0,3,1));$(a,new $N("Atom is :"),null);mO=new BJ(LN);$(a,mO,null);nO=new BJ("Nonaromatic");$(a,nO,null);vO=new BJ(ON);$(a,vO,null);wO=new BJ(MN);$(a,wO,null);$(this,a,null);a=new kw;Z(a,Sw(aJ(this)));fw(a,new bx(0,3,1));$(a,new $N("Bond is :"),null);zO=new BJ(KN);$(a,zO,null);AO=new BJ(LN);$(a,AO,
null);BO=new BJ(ON);$(a,BO,null);CO=new BJ(MN);$(a,CO,null);$(this,a,null);a=new kw;fw(a,new bx(1,3,1));this.e=new Hx(ta,20);$(a,this.e,null);$(a,new BJ(NN),null);$(a,this.i,null);$(this,a,null);this.mc&&KJ(this.mc.c,!1);HJ(this,!1);EO(this);FO(this);GO(this);Z(mO,this.a);Z(nO,this.a);Z(vO,this.a);Z(wO,this.a);Z(xO,this.a);Z(yO,this.a);dO(this,fO);GJ(this);a=this.j;oK(this.mc.c,a.a,a.b);!Gv(this)&&jJ(this);eJ(this)}r(562,544,JF,cO);
_.jg=function(a,b){var c;H(b,NN)?(DO(this),dO(this,fO),eO(this)):E(a.f,88)?(GO(this),sq(a.f)===sq(fO)?(EO(this),FO(this)):sq(a.f)===sq(gO)?(EO(this),FO(this)):sq(a.f)===sq(hO)?(EO(this),FO(this)):sq(a.f)===sq(vO)?Z(wO,this.a):sq(a.f)===sq(wO)?(Z(vO,this.a),Z(mO,this.a)):sq(a.f)===sq(mO)?(Z(nO,this.a),Z(wO,this.a)):sq(a.f)===sq(nO)?Z(mO,this.a):sq(a.f)===sq(zO)||sq(a.f)===sq(AO)||sq(a.f)===sq(BO)||sq(a.f)===sq(CO)?(DO(this),this.b=!0):FO(this),dO(this,a.f),eO(this)):E(a.f,89)&&(GO(this),c=a.f,0==c.mc.a.ob.selectedIndex?
Z(c,this.a):Z(c,(Cw(),Lw)),eO(this));107!=this.c.e&&(this.c.e=107,pw(this.c));return!0};_.kg=function(){return Gm(this.e.mc.a.ob,Dg)};_.lg=function(){return this.b};_.b=!1;_.c=null;_.d=null;var fO=_.e=null,zO=null,gO=null,mO=null,AO=null,kO=null,oO=null,yO=null,xO=null,jO=null,iO=null,hO=null,lO=null,pO=null,nO=null,wO=null,CO=null,qO=null,uO=null,vO=null,BO=null,rO=null;function YN(a){PE();RE.call(this);this.a=new UN;rs(this.a,new HO(this,a),(PN(),PN(),QN))}r(608,606,{},YN);_.Ke=function(){return this.a};
_.a=null;function HO(a,b){this.a=a;this.b=b}r(609,1,{},HO);_.a=null;_.b=null;Y(543);Y(562);Y(408);Y(608);Y(609);Y(341);Y(196);y(FF)(1);