var JN="3",KN="Any",LN="Aromatic",MN="Nonring",NN="Reset",ON="Ring";function PN(){PN=s;QN=new jo(Tc,new RN)}function RN(){}r(192,189,{},RN);_.Pc=function(a){Gv();mK(this,a.b,SN(a.a.a,a.a.a.ob.selectedIndex))};_.Sc=function(){return QN};var QN;function TN(a,b){if(0>b||b>=a.ob.options.length)throw new Us;}function SN(a,b){TN(a,b);return a.ob.options[b].value}function UN(){this.ob=$doc.createElement("<SELECT>");this.ob[Vc]="gwt-ListBox"}r(338,316,ih,UN);function VN(){VN=s}
function WN(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 XN(){VN();Fv.call(this);new ri;this.mc=new YN((Gv(),this))}r(405,392,{89:1,91:1,98:1,110:1,116:1},XN);_.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="+SN(this.mc.a,this.mc.a.ob.selectedIndex)};function ZN(){LJ.call(this,7)}r(418,1,mh,ZN);function $N(a){NJ.call(this,a,0)}r(423,392,Th,$N);function aO(a){var b=a.j;lK(a.mc.c,b.a,b.b);!tv(a)&&fJ(a);aJ(a)}
function bO(a,b,c){iK.call(this);this.mc&&GJ(this.mc.c,!1);DJ(this,!1);Tv(this,new LJ(0));a=new NJ(a,1);$(this,a,null);a=new Yv;$(a,this.i,null);$(this,a,null);b&&(this.j=uv(b),CJ(this),hK(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,bO);_.dg=function(){return"OK"};r(546,547,hh);_.Lc=function(){aO(new bO(this.b,this.a,(yy(),Ay)))};r(549,547,hh);_.Lc=function(){!this.a.Ib?this.a.Ib=new cO(this.a):this.a.Ib.mc.c.gb?$K(this.a.Ib.mc.c):aO(this.a.Ib)};
function dO(a,b){XI(b)==a.a?Z(b,(pw(),yw)):Z(b,a.a)}
function eO(a){var b,c,d,e;e=l;d=!1;XI(fO)!=a.a?(e=qa,d=!0):XI(gO)!=a.a?(e="!#6",d=!0):XI(hO)!=a.a?(Z(iO,(pw(),yw)),Z(jO,yw),Z(kO,yw),Z(lO,yw),e="F,Cl,Br,I"):(b=XI(mO)!=a.a,c=XI(nO)!=a.a,XI(oO)!=a.a&&(b?e+="c,":c?e+="C,":e+="#6,"),XI(pO)!=a.a&&(b?e+="n,":c?e+="N,":e+="#7,"),XI(qO)!=a.a&&(b?e+="o,":c?e+="O,":e+="#8,"),XI(rO)!=a.a&&(b?e+="s,":c?e+="S,":e+="#16,"),XI(sO)!=a.a&&(b?e+="p,":c?e+="P,":e+="#15,"),XI(iO)!=a.a&&(e+="F,"),XI(jO)!=a.a&&(e+="Cl,"),XI(kO)!=a.a&&(e+="Br,"),XI(lO)!=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(fO,(pw(),yw)),e=qa)));b=l;d&&XI(mO)!=a.a&&(b+=";a");d&&XI(nO)!=a.a&&(b+=";A");XI(vO)!=a.a&&(b+=";R");XI(wO)!=a.a&&(b+=";!R");XI(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);XI(zO)!=a.a&&(e="~");XI(AO)!=a.a&&(e=ab);XI(BO)!=a.a&&(e=kb);XI(CO)!=a.a&&(e="!@");QJ(a.e,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(sO,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){EJ.call(this,"Atom/Bond Query");this.i=new xJ(this.dg());iw(this.q,new jK(this));this.a=(yy(),Ay);this.c=a;this.d||(a=uv(a),this.d=new PJ(a),hK(this.d,-150,10));this.j=this.d;Tv(this,new ZN);Z(this,this.a);a=new Yv;Tv(a,new Pw(0,3,1));$(a,new $N("Atom type :"),null);fO=new xJ(KN);gO=new xJ("Any except C");hO=new xJ("Halogen");$(a,fO,null);$(a,gO,null);$(a,hO,null);$(this,a,null);a=new Yv;Tv(a,new Pw(0,3,1));$(a,new NJ("Or select one or more from the list :",0),null);$(this,a,null);
a=new Yv;Tv(a,new Pw(0,3,1));oO=new xJ(ob);pO=new xJ(Kb);qO=new xJ(Ob);rO=new xJ(Xb);sO=new xJ(Pb);iO=new xJ(yb);jO=new xJ(tb);kO=new xJ(nb);lO=new xJ(Db);$(a,oO,null);$(a,pO,null);$(a,qO,null);$(a,rO,null);$(a,sO,null);$(a,iO,null);$(a,jO,null);$(a,kO,null);$(a,lO,null);$(this,a,null);a=new Yv;Tv(a,new Pw(0,3,1));xO=new XN;WN(xO,KN);WN(xO,Wa);WN(xO,Ya);WN(xO,$a);WN(xO,JN);$(a,new $N("Number of hydrogens :  "),null);$(a,xO,null);$(this,a,null);a=new Yv;Tv(a,new Pw(0,3,1));yO=new XN;WN(yO,KN);WN(yO,
Wa);WN(yO,Ya);WN(yO,$a);WN(yO,JN);WN(yO,"4");WN(yO,"5");WN(yO,"6");$(a,new NJ("Number of connections :",0),null);$(a,yO,null);$(a,new NJ(" (H's don't count.)",0),null);$(this,a,null);a=new Yv;Tv(a,new Pw(0,3,1));$(a,new $N("Atom is :"),null);mO=new xJ(LN);$(a,mO,null);nO=new xJ("Nonaromatic");$(a,nO,null);vO=new xJ(ON);$(a,vO,null);wO=new xJ(MN);$(a,wO,null);$(this,a,null);a=new Yv;Z(a,Fw(XI(this)));Tv(a,new Pw(0,3,1));$(a,new $N("Bond is :"),null);zO=new xJ(KN);$(a,zO,null);AO=new xJ(LN);$(a,AO,
null);BO=new xJ(ON);$(a,BO,null);CO=new xJ(MN);$(a,CO,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 xJ(NN),null);$(a,this.i,null);$(this,a,null);this.mc&&GJ(this.mc.c,!1);DJ(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);CJ(this);a=this.j;lK(this.mc.c,a.a,a.b);!tv(this)&&fJ(this);aJ(this)}r(559,541,AF,cO);
_.eg=function(a,b){var c;H(b,NN)?(DO(this),dO(this,fO),eO(this)):E(a.f,88)?(GO(this),rq(a.f)===rq(fO)?(EO(this),FO(this)):rq(a.f)===rq(gO)?(EO(this),FO(this)):rq(a.f)===rq(hO)?(EO(this),FO(this)):rq(a.f)===rq(vO)?Z(wO,this.a):rq(a.f)===rq(wO)?(Z(vO,this.a),Z(mO,this.a)):rq(a.f)===rq(mO)?(Z(nO,this.a),Z(wO,this.a)):rq(a.f)===rq(nO)?Z(mO,this.a):rq(a.f)===rq(zO)||rq(a.f)===rq(AO)||rq(a.f)===rq(BO)||rq(a.f)===rq(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,(pw(),yw)),eO(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 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,sO=null,vO=null,BO=null,rO=null;function YN(a){FE();HE.call(this);this.a=new UN;os(this.a,new HO(this,a),(PN(),PN(),QN))}r(604,602,{},YN);_.Fe=function(){return this.a};
_.a=null;function HO(a,b){this.a=a;this.b=b}r(605,1,{},HO);_.a=null;_.b=null;Y(540);Y(559);Y(405);Y(604);Y(605);Y(338);Y(192);y(vF)(1);