var sP="3",tP="Any",uP="Aromatic",vP="Nonring",wP="Reset",xP="Ring";function yP(){yP=r;zP=new fp(Wc,new AP)}function AP(){}q(215,212,{},AP);_.Tc=function(a){Ix();YL(this,a.b,BP(a.a.a,a.a.a.ob.selectedIndex))};_.Wc=function(){return zP};var zP;function CP(a,b){if(0>b||b>=a.ob.options.length)throw new zu;}function BP(a,b){CP(a,b);return a.ob.options[b].value}function DP(){rv();this.ob=$doc.createElement("select");this.ob[ed]="gwt-ListBox"}q(361,339,wh,DP);function EP(){EP=r}
function FP(a,b){if(null==b)throw new Yq("Missing message: awt.103");var c=-1,d,e,f;f=a.mc.a.ob;e=$doc.createElement(pf);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 GP(){EP();Hx.call(this);new zi;this.mc=new HP((Ix(),this))}q(428,415,{90:1,92:1,99:1,111:1,117:1},GP);_.fe=function(){return Mx(this.mc,this)};
_.ue=function(){return(null==this.jc&&(this.jc=tx(this)),this.jc)+xa+this.uc+xa+this.vc+xa+this.rc+Pg+this.hc+(this.qc?l:",hidden")+",current="+BP(this.mc.a,this.mc.a.ob.selectedIndex)};function IP(){wL.call(this,7)}q(441,1,ci,IP);function LP(a){yL.call(this,a,0)}q(446,415,Ch,LP);function MP(a){var b=a.j;XL(a.mc.c,b.a,b.b);!vx(a)&&RK(a);MK(a)}
function NP(a,b,c){UL.call(this);this.mc&&rL(this.mc.c,!1);oL(this,!1);Vx(this,new wL(0));a=new yL(a,1);$(this,a,null);a=new $x;$(a,this.i,null);$(this,a,null);b&&(this.j=wx(b),nL(this),TL(this.j,~~(G(b.$b.ob,mf)/2)-~~(this.rc/2),~~(G(b.$b.ob,lf)/2)-~~(this.hc/2)));c&&Z(this,c)}q(574,575,KH,NP);_.og=function(){return"OK"};q(580,581,Dh);_.Pc=function(){MP(new NP(this.b,this.a,(NA(),PA)))};q(583,581,Dh);_.Pc=function(){!this.a.Ib?this.a.Ib=new OP(this.a):this.a.Ib.mc.c.gb?LM(this.a.Ib.mc.c):MP(this.a.Ib)};
function PP(a,b){IK(b)==a.a?Z(b,(sy(),By)):Z(b,a.a)}
function QP(a){var b,c,d,e;e=l;d=!1;IK(RP)!=a.a?(e=va,d=!0):IK(SP)!=a.a?(e="!#6",d=!0):IK(TP)!=a.a?(Z(UP,(sy(),By)),Z(VP,By),Z(WP,By),Z(XP,By),e="F,Cl,Br,I"):(b=IK(YP)!=a.a,c=IK(ZP)!=a.a,IK($P)!=a.a&&(b?e+="c,":c?e+="C,":e+="#6,"),IK(aQ)!=a.a&&(b?e+="n,":c?e+="N,":e+="#7,"),IK(bQ)!=a.a&&(b?e+="o,":c?e+="O,":e+="#8,"),IK(cQ)!=a.a&&(b?e+="s,":c?e+="S,":e+="#16,"),IK(dQ)!=a.a&&(b?e+="p,":c?e+="P,":e+="#15,"),IK(UP)!=a.a&&(e+="F,"),IK(VP)!=a.a&&(e+="Cl,"),IK(WP)!=a.a&&(e+="Br,"),IK(XP)!=a.a&&(e+="I,"),
JE(e,xa)&&(e=e.substr(0,e.length-1-0)),1>e.length&&!a.b&&(b?e=oc:c?e=rb:(Z(RP,(sy(),By)),e=va)));b=l;d&&IK(YP)!=a.a&&(b+=";a");d&&IK(ZP)!=a.a&&(b+=";A");IK(eQ)!=a.a&&(b+=";R");IK(fQ)!=a.a&&(b+=";!R");IK(RP)!=a.a&&0<b.length?e=b.substr(1,b.length-1):e+=b;d=gQ.mc.a.ob.selectedIndex;0<d&&(--d,e+=";H"+d);d=hQ.mc.a.ob.selectedIndex;0<d&&(--d,e+=";D"+d);IK(iQ)!=a.a&&(e="~");IK(jQ)!=a.a&&(e=hb);IK(kQ)!=a.a&&(e=qb);IK(lQ)!=a.a&&(e="!@");BL(a.e,e)}
function mQ(a){nQ(a);oQ(a);var b=gQ.mc.a;CP(b,0);b.ob.options[0].selected=!0;b=hQ.mc.a;CP(b,0);b.ob.options[0].selected=!0;Z(YP,a.a);Z(ZP,a.a);Z(eQ,a.a);Z(fQ,a.a);Z(gQ,a.a);Z(hQ,a.a);pQ(a)}function nQ(a){Z($P,a.a);Z(aQ,a.a);Z(bQ,a.a);Z(cQ,a.a);Z(dQ,a.a);Z(UP,a.a);Z(VP,a.a);Z(WP,a.a);Z(XP,a.a)}function oQ(a){Z(RP,a.a);Z(SP,a.a);Z(TP,a.a)}function pQ(a){Z(iQ,a.a);Z(jQ,a.a);Z(kQ,a.a);Z(lQ,a.a);a.b=!1}
function OP(a){pL.call(this,"Atom/Bond Query");this.i=new iL(this.og());ly(this.q,new VL(this));this.a=(NA(),PA);this.c=a;this.d||(a=wx(a),this.d=new AL(a),TL(this.d,-150,10));this.j=this.d;Vx(this,new IP);Z(this,this.a);a=new $x;Vx(a,new Sy(0,3,1));$(a,new LP("Atom type :"),null);RP=new iL(tP);SP=new iL("Any except C");TP=new iL("Halogen");$(a,RP,null);$(a,SP,null);$(a,TP,null);$(this,a,null);a=new $x;Vx(a,new Sy(0,3,1));$(a,new yL("Or select one or more from the list :",0),null);$(this,a,null);
a=new $x;Vx(a,new Sy(0,3,1));$P=new iL(wb);aQ=new iL(Rb);bQ=new iL(Vb);cQ=new iL(cc);dQ=new iL(Wb);UP=new iL(Eb);VP=new iL(Ab);WP=new iL(ub);XP=new iL(Kb);$(a,$P,null);$(a,aQ,null);$(a,bQ,null);$(a,cQ,null);$(a,dQ,null);$(a,UP,null);$(a,VP,null);$(a,WP,null);$(a,XP,null);$(this,a,null);a=new $x;Vx(a,new Sy(0,3,1));gQ=new GP;FP(gQ,tP);FP(gQ,$a);FP(gQ,db);FP(gQ,gb);FP(gQ,sP);$(a,new LP("Number of hydrogens :  "),null);$(a,gQ,null);$(this,a,null);a=new $x;Vx(a,new Sy(0,3,1));hQ=new GP;FP(hQ,tP);FP(hQ,
$a);FP(hQ,db);FP(hQ,gb);FP(hQ,sP);FP(hQ,"4");FP(hQ,"5");FP(hQ,"6");$(a,new yL("Number of connections :",0),null);$(a,hQ,null);$(a,new yL(" (H's don't count.)",0),null);$(this,a,null);a=new $x;Vx(a,new Sy(0,3,1));$(a,new LP("Atom is :"),null);YP=new iL(uP);$(a,YP,null);ZP=new iL("Nonaromatic");$(a,ZP,null);eQ=new iL(xP);$(a,eQ,null);fQ=new iL(vP);$(a,fQ,null);$(this,a,null);a=new $x;Z(a,Iy(IK(this)));Vx(a,new Sy(0,3,1));$(a,new LP("Bond is :"),null);iQ=new iL(tP);$(a,iQ,null);jQ=new iL(uP);$(a,jQ,
null);kQ=new iL(xP);$(a,kQ,null);lQ=new iL(vP);$(a,lQ,null);$(this,a,null);a=new $x;Vx(a,new Sy(1,3,1));this.e=new wz(va,20);$(a,this.e,null);$(a,new iL(wP),null);$(a,this.i,null);$(this,a,null);this.mc&&rL(this.mc.c,!1);oL(this,!1);nQ(this);oQ(this);pQ(this);Z(YP,this.a);Z(ZP,this.a);Z(eQ,this.a);Z(fQ,this.a);Z(gQ,this.a);Z(hQ,this.a);PP(this,RP);nL(this);a=this.j;XL(this.mc.c,a.a,a.b);!vx(this)&&RK(this);MK(this)}q(593,575,KH,OP);
_.pg=function(a,b){var c;H(b,wP)?(mQ(this),PP(this,RP),QP(this)):D(a.f,89)?(pQ(this),Fr(a.f)===Fr(RP)?(nQ(this),oQ(this)):Fr(a.f)===Fr(SP)?(nQ(this),oQ(this)):Fr(a.f)===Fr(TP)?(nQ(this),oQ(this)):Fr(a.f)===Fr(eQ)?Z(fQ,this.a):Fr(a.f)===Fr(fQ)?(Z(eQ,this.a),Z(YP,this.a)):Fr(a.f)===Fr(YP)?(Z(ZP,this.a),Z(fQ,this.a)):Fr(a.f)===Fr(ZP)?Z(YP,this.a):Fr(a.f)===Fr(iQ)||Fr(a.f)===Fr(jQ)||Fr(a.f)===Fr(kQ)||Fr(a.f)===Fr(lQ)?(mQ(this),this.b=!0):oQ(this),PP(this,a.f),QP(this)):D(a.f,90)&&(pQ(this),c=a.f,0==c.mc.a.ob.selectedIndex?
Z(c,this.a):Z(c,(sy(),By)),QP(this));107!=this.c.e&&(this.c.e=107,ey(this.c));return!0};_.qg=function(){return Om(this.e.mc.a.ob,Jg)};_.rg=function(){return this.b};_.b=!1;_.c=null;_.d=null;var RP=_.e=null,iQ=null,SP=null,YP=null,jQ=null,WP=null,$P=null,hQ=null,gQ=null,VP=null,UP=null,TP=null,XP=null,aQ=null,ZP=null,fQ=null,lQ=null,bQ=null,dQ=null,eQ=null,kQ=null,cQ=null;function HP(a){SG();UG.call(this);this.a=new DP;gu(this.a,new qQ(this,a),(yP(),yP(),zP))}q(639,637,{},HP);_.Oe=function(){return this.a};
_.a=null;function qQ(a,b){this.a=a;this.b=b}q(640,1,{},qQ);_.a=null;_.b=null;X(574);X(593);X(428);X(639);X(640);X(361);X(215);x(JH)(1);