var xN="3",yN="Any",zN="Aromatic",AN="Nonring",BN="Reset",CN="Ring";function DN(){DN=s;EN=new $n(Rc,new FN)}function FN(){}r(194,191,{},FN);_.Pc=function(a){Dv();bK(this,a.b,GN(a.a.a,a.a.a.ob.selectedIndex))};_.Sc=function(){return EN};var EN;function HN(a,b){if(0>b||b>=a.ob.options.length)throw new Es;}function GN(a,b){HN(a,b);return a.ob.options[b].value}function IN(){this.ob=$doc.createElement("select");this.ob[Tc]="gwt-ListBox"}r(342,320,eh,IN);function JN(){JN=s}
function KN(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 LN(){JN();Cv.call(this);new ni;this.mc=new MN((Dv(),this))}r(408,395,{89:1,91:1,98:1,110:1,116:1},LN);_.Yd=function(){return Hv(this.mc,this)};
_.le=function(){return(null==this.jc&&(this.jc=ov(this)),this.jc)+va+this.uc+va+this.vc+va+this.rc+Dg+this.hc+(this.qc?l:",hidden")+",current="+GN(this.mc.a,this.mc.a.ob.selectedIndex)};function NN(){AJ.call(this,7)}r(421,1,ih,NN);function ON(a){CJ.call(this,a,0)}r(426,395,Ph,ON);function PN(a){var b=a.j;aK(a.mc.c,b.a,b.b);!qv(a)&&VI(a);QI(a)}
function QN(a,b,c){YJ.call(this);this.mc&&vJ(this.mc.c,!1);sJ(this,!1);Qv(this,new AJ(0));a=new CJ(a,1);$(this,a,null);a=new Vv;$(a,this.i,null);$(this,a,null);b&&(this.j=rv(b),rJ(this),XJ(this.j,~~(vm(b.$b.ob,df)/2)-~~(this.rc/2),~~(vm(b.$b.ob,cf)/2)-~~(this.hc/2)));c&&Z(this,c)}r(543,544,tF,QN);_.dg=function(){return"OK"};r(549,550,dh);_.Lc=function(){PN(new QN(this.b,this.a,(uy(),wy)))};r(552,550,dh);_.Lc=function(){!this.a.Ib?this.a.Ib=new RN(this.a):this.a.Ib.mc.c.gb?PK(this.a.Ib.mc.c):PN(this.a.Ib)};
function SN(a,b){MI(b)==a.a?Z(b,(mw(),vw)):Z(b,a.a)}
function TN(a){var b,c,d,e;e=l;d=!1;MI(UN)!=a.a?(e=ta,d=!0):MI(VN)!=a.a?(e="!#6",d=!0):MI(WN)!=a.a?(Z(XN,(mw(),vw)),Z(YN,vw),Z(ZN,vw),Z($N,vw),e="F,Cl,Br,I"):(b=MI(aO)!=a.a,c=MI(bO)!=a.a,MI(cO)!=a.a&&(b?e+="c,":c?e+="C,":e+="#6,"),MI(dO)!=a.a&&(b?e+="n,":c?e+="N,":e+="#7,"),MI(eO)!=a.a&&(b?e+="o,":c?e+="O,":e+="#8,"),MI(fO)!=a.a&&(b?e+="s,":c?e+="S,":e+="#16,"),MI(iO)!=a.a&&(b?e+="p,":c?e+="P,":e+="#15,"),MI(XN)!=a.a&&(e+="F,"),MI(YN)!=a.a&&(e+="Cl,"),MI(ZN)!=a.a&&(e+="Br,"),MI($N)!=a.a&&(e+="I,"),
pC(e,va)&&(e=e.substr(0,e.length-1-0)),1>e.length&&!a.b&&(b?e=lc:c?e=ob:(Z(UN,(mw(),vw)),e=ta)));b=l;d&&MI(aO)!=a.a&&(b+=";a");d&&MI(bO)!=a.a&&(b+=";A");MI(jO)!=a.a&&(b+=";R");MI(kO)!=a.a&&(b+=";!R");MI(UN)!=a.a&&0<b.length?e=b.substr(1,b.length-1):e+=b;d=lO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";H"+d);d=mO.mc.a.ob.selectedIndex;0<d&&(--d,e+=";D"+d);MI(nO)!=a.a&&(e="~");MI(oO)!=a.a&&(e=db);MI(pO)!=a.a&&(e=lb);MI(qO)!=a.a&&(e="!@");FJ(a.e,e)}
function rO(a){sO(a);tO(a);var b=lO.mc.a;HN(b,0);b.ob.options[0].selected=!0;b=mO.mc.a;HN(b,0);b.ob.options[0].selected=!0;Z(aO,a.a);Z(bO,a.a);Z(jO,a.a);Z(kO,a.a);Z(lO,a.a);Z(mO,a.a);uO(a)}function sO(a){Z(cO,a.a);Z(dO,a.a);Z(eO,a.a);Z(fO,a.a);Z(iO,a.a);Z(XN,a.a);Z(YN,a.a);Z(ZN,a.a);Z($N,a.a)}function tO(a){Z(UN,a.a);Z(VN,a.a);Z(WN,a.a)}function uO(a){Z(nO,a.a);Z(oO,a.a);Z(pO,a.a);Z(qO,a.a);a.b=!1}
function RN(a){tJ.call(this,"Atom/Bond Query");this.i=new mJ(this.dg());fw(this.q,new ZJ(this));this.a=(uy(),wy);this.c=a;this.d||(a=rv(a),this.d=new EJ(a),XJ(this.d,-150,10));this.j=this.d;Qv(this,new NN);Z(this,this.a);a=new Vv;Qv(a,new Mw(0,3,1));$(a,new ON("Atom type :"),null);UN=new mJ(yN);VN=new mJ("Any except C");WN=new mJ("Halogen");$(a,UN,null);$(a,VN,null);$(a,WN,null);$(this,a,null);a=new Vv;Qv(a,new Mw(0,3,1));$(a,new CJ("Or select one or more from the list :",0),null);$(this,a,null);
a=new Vv;Qv(a,new Mw(0,3,1));cO=new mJ(rb);dO=new mJ(Lb);eO=new mJ(Rb);fO=new mJ(Yb);iO=new mJ(Sb);XN=new mJ(Ab);YN=new mJ(vb);ZN=new mJ(qb);$N=new mJ(Eb);$(a,cO,null);$(a,dO,null);$(a,eO,null);$(a,fO,null);$(a,iO,null);$(a,XN,null);$(a,YN,null);$(a,ZN,null);$(a,$N,null);$(this,a,null);a=new Vv;Qv(a,new Mw(0,3,1));lO=new LN;KN(lO,yN);KN(lO,Ya);KN(lO,$a);KN(lO,cb);KN(lO,xN);$(a,new ON("Number of hydrogens :  "),null);$(a,lO,null);$(this,a,null);a=new Vv;Qv(a,new Mw(0,3,1));mO=new LN;KN(mO,yN);KN(mO,
Ya);KN(mO,$a);KN(mO,cb);KN(mO,xN);KN(mO,"4");KN(mO,"5");KN(mO,"6");$(a,new CJ("Number of connections :",0),null);$(a,mO,null);$(a,new CJ(" (H's don't count.)",0),null);$(this,a,null);a=new Vv;Qv(a,new Mw(0,3,1));$(a,new ON("Atom is :"),null);aO=new mJ(zN);$(a,aO,null);bO=new mJ("Nonaromatic");$(a,bO,null);jO=new mJ(CN);$(a,jO,null);kO=new mJ(AN);$(a,kO,null);$(this,a,null);a=new Vv;Z(a,Cw(MI(this)));Qv(a,new Mw(0,3,1));$(a,new ON("Bond is :"),null);nO=new mJ(yN);$(a,nO,null);oO=new mJ(zN);$(a,oO,
null);pO=new mJ(CN);$(a,pO,null);qO=new mJ(AN);$(a,qO,null);$(this,a,null);a=new Vv;Qv(a,new Mw(1,3,1));this.e=new rx(ta,20);$(a,this.e,null);$(a,new mJ(BN),null);$(a,this.i,null);$(this,a,null);this.mc&&vJ(this.mc.c,!1);sJ(this,!1);sO(this);tO(this);uO(this);Z(aO,this.a);Z(bO,this.a);Z(jO,this.a);Z(kO,this.a);Z(lO,this.a);Z(mO,this.a);SN(this,UN);rJ(this);a=this.j;aK(this.mc.c,a.a,a.b);!qv(this)&&VI(this);QI(this)}r(562,544,tF,RN);
_.eg=function(a,b){var c;H(b,BN)?(rO(this),SN(this,UN),TN(this)):E(a.f,88)?(uO(this),iq(a.f)===iq(UN)?(sO(this),tO(this)):iq(a.f)===iq(VN)?(sO(this),tO(this)):iq(a.f)===iq(WN)?(sO(this),tO(this)):iq(a.f)===iq(jO)?Z(kO,this.a):iq(a.f)===iq(kO)?(Z(jO,this.a),Z(aO,this.a)):iq(a.f)===iq(aO)?(Z(bO,this.a),Z(kO,this.a)):iq(a.f)===iq(bO)?Z(aO,this.a):iq(a.f)===iq(nO)||iq(a.f)===iq(oO)||iq(a.f)===iq(pO)||iq(a.f)===iq(qO)?(rO(this),this.b=!0):tO(this),SN(this,a.f),TN(this)):E(a.f,89)&&(uO(this),c=a.f,0==c.mc.a.ob.selectedIndex?
Z(c,this.a):Z(c,(mw(),vw)),TN(this));107!=this.c.e&&(this.c.e=107,$v(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 UN=_.e=null,nO=null,VN=null,aO=null,oO=null,ZN=null,cO=null,mO=null,lO=null,YN=null,XN=null,WN=null,$N=null,dO=null,bO=null,kO=null,qO=null,eO=null,iO=null,jO=null,pO=null,fO=null;function MN(a){yE();AE.call(this);this.a=new IN;ls(this.a,new vO(this,a),(DN(),DN(),EN))}r(608,606,{},MN);_.Fe=function(){return this.a};
_.a=null;function vO(a,b){this.a=a;this.b=b}r(609,1,{},vO);_.a=null;_.b=null;Y(543);Y(562);Y(408);Y(608);Y(609);Y(342);Y(194);y(oF)(1);