var qP="3",rP="Any",sP="Aromatic",tP="Nonring",uP="Reset",vP="Ring";function wP(){wP=r;xP=new fp(cd,new yP)}function yP(){}q(215,212,{},yP);_.Tc=function(a){Ix();XL(this,a.b,zP(a.a.a,a.a.a.ob.selectedIndex))};_.Wc=function(){return xP};var xP;function AP(a,b){if(0>b||b>=a.ob.options.length)throw new zu;}function zP(a,b){AP(a,b);return a.ob.options[b].value}function BP(){rv();this.ob=$doc.createElement("select");this.ob[ed]="gwt-ListBox"}q(361,339,wh,BP);function CP(){CP=r}
function DP(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 EP(){CP();Hx.call(this);new zi;this.mc=new FP((Ix(),this))}q(428,415,{90:1,92:1,99:1,111:1,117:1},EP);_.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="+zP(this.mc.a,this.mc.a.ob.selectedIndex)};function GP(){vL.call(this,7)}q(441,1,ci,GP);function JP(a){xL.call(this,a,0)}q(446,415,Ch,JP);function KP(a){var b=a.j;WL(a.mc.c,b.a,b.b);!vx(a)&&QK(a);LK(a)}
function LP(a,b,c){TL.call(this);this.mc&&qL(this.mc.c,!1);nL(this,!1);Vx(this,new vL(0));a=new xL(a,1);$(this,a,null);a=new $x;$(a,this.i,null);$(this,a,null);b&&(this.j=wx(b),mL(this),SL(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,LP);_.og=function(){return"OK"};q(580,581,Dh);_.Pc=function(){KP(new LP(this.b,this.a,(NA(),PA)))};q(583,581,Dh);_.Pc=function(){!this.a.Ib?this.a.Ib=new MP(this.a):this.a.Ib.mc.c.gb?KM(this.a.Ib.mc.c):KP(this.a.Ib)};
function NP(a,b){HK(b)==a.a?Z(b,(sy(),By)):Z(b,a.a)}
function OP(a){var b,c,d,e;e=l;d=!1;HK(PP)!=a.a?(e=va,d=!0):HK(QP)!=a.a?(e="!#6",d=!0):HK(RP)!=a.a?(Z(SP,(sy(),By)),Z(TP,By),Z(UP,By),Z(VP,By),e="F,Cl,Br,I"):(b=HK(WP)!=a.a,c=HK(XP)!=a.a,HK(YP)!=a.a&&(b?e+="c,":c?e+="C,":e+="#6,"),HK(ZP)!=a.a&&(b?e+="n,":c?e+="N,":e+="#7,"),HK($P)!=a.a&&(b?e+="o,":c?e+="O,":e+="#8,"),HK(aQ)!=a.a&&(b?e+="s,":c?e+="S,":e+="#16,"),HK(bQ)!=a.a&&(b?e+="p,":c?e+="P,":e+="#15,"),HK(SP)!=a.a&&(e+="F,"),HK(TP)!=a.a&&(e+="Cl,"),HK(UP)!=a.a&&(e+="Br,"),HK(VP)!=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(PP,(sy(),By)),e=va)));b=l;d&&HK(WP)!=a.a&&(b+=";a");d&&HK(XP)!=a.a&&(b+=";A");HK(cQ)!=a.a&&(b+=";R");HK(dQ)!=a.a&&(b+=";!R");HK(PP)!=a.a&&0<b.length?e=b.substr(1,b.length-1):e+=b;d=eQ.mc.a.ob.selectedIndex;0<d&&(--d,e+=";H"+d);d=fQ.mc.a.ob.selectedIndex;0<d&&(--d,e+=";D"+d);HK(gQ)!=a.a&&(e="~");HK(hQ)!=a.a&&(e=hb);HK(iQ)!=a.a&&(e=qb);HK(jQ)!=a.a&&(e="!@");AL(a.e,e)}
function kQ(a){lQ(a);mQ(a);var b=eQ.mc.a;AP(b,0);b.ob.options[0].selected=!0;b=fQ.mc.a;AP(b,0);b.ob.options[0].selected=!0;Z(WP,a.a);Z(XP,a.a);Z(cQ,a.a);Z(dQ,a.a);Z(eQ,a.a);Z(fQ,a.a);nQ(a)}function lQ(a){Z(YP,a.a);Z(ZP,a.a);Z($P,a.a);Z(aQ,a.a);Z(bQ,a.a);Z(SP,a.a);Z(TP,a.a);Z(UP,a.a);Z(VP,a.a)}function mQ(a){Z(PP,a.a);Z(QP,a.a);Z(RP,a.a)}function nQ(a){Z(gQ,a.a);Z(hQ,a.a);Z(iQ,a.a);Z(jQ,a.a);a.b=!1}
function MP(a){oL.call(this,"Atom/Bond Query");this.i=new hL(this.og());ly(this.q,new UL(this));this.a=(NA(),PA);this.c=a;this.d||(a=wx(a),this.d=new zL(a),SL(this.d,-150,10));this.j=this.d;Vx(this,new GP);Z(this,this.a);a=new $x;Vx(a,new Sy(0,3,1));$(a,new JP("Atom type :"),null);PP=new hL(rP);QP=new hL("Any except C");RP=new hL("Halogen");$(a,PP,null);$(a,QP,null);$(a,RP,null);$(this,a,null);a=new $x;Vx(a,new Sy(0,3,1));$(a,new xL("Or select one or more from the list :",0),null);$(this,a,null);
a=new $x;Vx(a,new Sy(0,3,1));YP=new hL(wb);ZP=new hL(Rb);$P=new hL(Vb);aQ=new hL(cc);bQ=new hL(Wb);SP=new hL(Eb);TP=new hL(Ab);UP=new hL(vb);VP=new hL(Kb);$(a,YP,null);$(a,ZP,null);$(a,$P,null);$(a,aQ,null);$(a,bQ,null);$(a,SP,null);$(a,TP,null);$(a,UP,null);$(a,VP,null);$(this,a,null);a=new $x;Vx(a,new Sy(0,3,1));eQ=new EP;DP(eQ,rP);DP(eQ,$a);DP(eQ,db);DP(eQ,gb);DP(eQ,qP);$(a,new JP("Number of hydrogens :  "),null);$(a,eQ,null);$(this,a,null);a=new $x;Vx(a,new Sy(0,3,1));fQ=new EP;DP(fQ,rP);DP(fQ,
$a);DP(fQ,db);DP(fQ,gb);DP(fQ,qP);DP(fQ,"4");DP(fQ,"5");DP(fQ,"6");$(a,new xL("Number of connections :",0),null);$(a,fQ,null);$(a,new xL(" (H's don't count.)",0),null);$(this,a,null);a=new $x;Vx(a,new Sy(0,3,1));$(a,new JP("Atom is :"),null);WP=new hL(sP);$(a,WP,null);XP=new hL("Nonaromatic");$(a,XP,null);cQ=new hL(vP);$(a,cQ,null);dQ=new hL(tP);$(a,dQ,null);$(this,a,null);a=new $x;Z(a,Iy(HK(this)));Vx(a,new Sy(0,3,1));$(a,new JP("Bond is :"),null);gQ=new hL(rP);$(a,gQ,null);hQ=new hL(sP);$(a,hQ,
null);iQ=new hL(vP);$(a,iQ,null);jQ=new hL(tP);$(a,jQ,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 hL(uP),null);$(a,this.i,null);$(this,a,null);this.mc&&qL(this.mc.c,!1);nL(this,!1);lQ(this);mQ(this);nQ(this);Z(WP,this.a);Z(XP,this.a);Z(cQ,this.a);Z(dQ,this.a);Z(eQ,this.a);Z(fQ,this.a);NP(this,PP);mL(this);a=this.j;WL(this.mc.c,a.a,a.b);!vx(this)&&QK(this);LK(this)}q(593,575,KH,MP);
_.pg=function(a,b){var c;H(b,uP)?(kQ(this),NP(this,PP),OP(this)):D(a.f,89)?(nQ(this),Fr(a.f)===Fr(PP)?(lQ(this),mQ(this)):Fr(a.f)===Fr(QP)?(lQ(this),mQ(this)):Fr(a.f)===Fr(RP)?(lQ(this),mQ(this)):Fr(a.f)===Fr(cQ)?Z(dQ,this.a):Fr(a.f)===Fr(dQ)?(Z(cQ,this.a),Z(WP,this.a)):Fr(a.f)===Fr(WP)?(Z(XP,this.a),Z(dQ,this.a)):Fr(a.f)===Fr(XP)?Z(WP,this.a):Fr(a.f)===Fr(gQ)||Fr(a.f)===Fr(hQ)||Fr(a.f)===Fr(iQ)||Fr(a.f)===Fr(jQ)?(kQ(this),this.b=!0):mQ(this),NP(this,a.f),OP(this)):D(a.f,90)&&(nQ(this),c=a.f,0==c.mc.a.ob.selectedIndex?
Z(c,this.a):Z(c,(sy(),By)),OP(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 PP=_.e=null,gQ=null,QP=null,WP=null,hQ=null,UP=null,YP=null,fQ=null,eQ=null,TP=null,SP=null,RP=null,VP=null,ZP=null,XP=null,dQ=null,jQ=null,$P=null,bQ=null,cQ=null,iQ=null,aQ=null;function FP(a){SG();UG.call(this);this.a=new BP;gu(this.a,new oQ(this,a),(wP(),wP(),xP))}q(639,637,{},FP);_.Oe=function(){return this.a};
_.a=null;function oQ(a,b){this.a=a;this.b=b}q(640,1,{},oQ);_.a=null;_.b=null;X(574);X(593);X(428);X(639);X(640);X(361);X(215);x(JH)(1);