var ZO="3",$O="Any",aP="Aromatic",bP="Nonring",cP="Reset",dP="Ring";function eP(){eP=r;fP=new Wo(bd,new gP)}function gP(){}q(210,207,{},gP);_.Pc=function(a){mx();FL(this,a.b,hP(a.a.a,a.a.a.ob.selectedIndex))};_.Sc=function(){return fP};var fP;function iP(a,b){if(0>b||b>=a.ob.options.length)throw new ou;}function hP(a,b){iP(a,b);return a.ob.options[b].value}function jP(){this.ob=$doc.createElement("select");this.ob[dd]="gwt-ListBox"}q(356,334,rh,jP);function kP(){kP=r}
function lP(a,b){if(null==b)throw new Nq("Missing message: awt.103");var c=-1,d,e,f;f=a.mc.a.ob;e=$doc.createElement(nf);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 mP(){kP();lx.call(this);new xi;this.mc=new nP((mx(),this))}q(421,408,{90:1,92:1,99:1,111:1,117:1},mP);_.ae=function(){return qx(this.mc,this)};
_.pe=function(){return(null==this.jc&&(this.jc=Yw(this)),this.jc)+xa+this.uc+xa+this.vc+xa+this.rc+Kg+this.hc+(this.qc?l:",hidden")+",current="+hP(this.mc.a,this.mc.a.ob.selectedIndex)};function oP(){dL.call(this,7)}q(434,1,Xh,oP);function rP(a){fL.call(this,a,0)}q(439,408,xh,rP);function sP(a){var b=a.j;EL(a.mc.c,b.a,b.b);!$w(a)&&yK(a);tK(a)}
function tP(a,b,c){BL.call(this);this.mc&&ZK(this.mc.c,!1);WK(this,!1);zx(this,new dL(0));a=new fL(a,1);$(this,a,null);a=new Ex;$(a,this.i,null);$(this,a,null);b&&(this.j=ax(b),VK(this),AL(this.j,~~(G(b.$b.ob,kf)/2)-~~(this.rc/2),~~(G(b.$b.ob,jf)/2)-~~(this.hc/2)));c&&Z(this,c)}q(567,568,pH,tP);_.jg=function(){return"OK"};q(573,574,yh);_.Lc=function(){sP(new tP(this.b,this.a,(uA(),wA)))};q(576,574,yh);_.Lc=function(){!this.a.Ib?this.a.Ib=new uP(this.a):this.a.Ib.mc.c.gb?sM(this.a.Ib.mc.c):sP(this.a.Ib)};
function vP(a,b){pK(b)==a.a?Z(b,(Xx(),fy)):Z(b,a.a)}
function wP(a){var b,c,d,e;e=l;d=!1;pK(xP)!=a.a?(e=va,d=!0):pK(yP)!=a.a?(e="!#6",d=!0):pK(zP)!=a.a?(Z(AP,(Xx(),fy)),Z(BP,fy),Z(CP,fy),Z(DP,fy),e="F,Cl,Br,I"):(b=pK(EP)!=a.a,c=pK(FP)!=a.a,pK(GP)!=a.a&&(b?e+="c,":c?e+="C,":e+="#6,"),pK(HP)!=a.a&&(b?e+="n,":c?e+="N,":e+="#7,"),pK(IP)!=a.a&&(b?e+="o,":c?e+="O,":e+="#8,"),pK(JP)!=a.a&&(b?e+="s,":c?e+="S,":e+="#16,"),pK(KP)!=a.a&&(b?e+="p,":c?e+="P,":e+="#15,"),pK(AP)!=a.a&&(e+="F,"),pK(BP)!=a.a&&(e+="Cl,"),pK(CP)!=a.a&&(e+="Br,"),pK(DP)!=a.a&&(e+="I,"),
pE(e,xa)&&(e=e.substr(0,e.length-1-0)),1>e.length&&!a.b&&(b?e=rc:c?e=qb:(Z(xP,(Xx(),fy)),e=va)));b=l;d&&pK(EP)!=a.a&&(b+=";a");d&&pK(FP)!=a.a&&(b+=";A");pK(LP)!=a.a&&(b+=";R");pK(MP)!=a.a&&(b+=";!R");pK(xP)!=a.a&&0<b.length?e=b.substr(1,b.length-1):e+=b;d=NP.mc.a.ob.selectedIndex;0<d&&(--d,e+=";H"+d);d=OP.mc.a.ob.selectedIndex;0<d&&(--d,e+=";D"+d);pK(PP)!=a.a&&(e="~");pK(QP)!=a.a&&(e=gb);pK(RP)!=a.a&&(e=pb);pK(SP)!=a.a&&(e="!@");iL(a.e,e)}
function TP(a){UP(a);VP(a);var b=NP.mc.a;iP(b,0);b.ob.options[0].selected=!0;b=OP.mc.a;iP(b,0);b.ob.options[0].selected=!0;Z(EP,a.a);Z(FP,a.a);Z(LP,a.a);Z(MP,a.a);Z(NP,a.a);Z(OP,a.a);WP(a)}function UP(a){Z(GP,a.a);Z(HP,a.a);Z(IP,a.a);Z(JP,a.a);Z(KP,a.a);Z(AP,a.a);Z(BP,a.a);Z(CP,a.a);Z(DP,a.a)}function VP(a){Z(xP,a.a);Z(yP,a.a);Z(zP,a.a)}function WP(a){Z(PP,a.a);Z(QP,a.a);Z(RP,a.a);Z(SP,a.a);a.b=!1}
function uP(a){XK.call(this,"Atom/Bond Query");this.i=new QK(this.jg());Qx(this.q,new CL(this));this.a=(uA(),wA);this.c=a;this.d||(a=ax(a),this.d=new hL(a),AL(this.d,-150,10));this.j=this.d;zx(this,new oP);Z(this,this.a);a=new Ex;zx(a,new wy(0,3,1));$(a,new rP("Atom type :"),null);xP=new QK($O);yP=new QK("Any except C");zP=new QK("Halogen");$(a,xP,null);$(a,yP,null);$(a,zP,null);$(this,a,null);a=new Ex;zx(a,new wy(0,3,1));$(a,new fL("Or select one or more from the list :",0),null);$(this,a,null);
a=new Ex;zx(a,new wy(0,3,1));GP=new QK(tb);HP=new QK(Nb);IP=new QK(Tb);JP=new QK($b);KP=new QK(Ub);AP=new QK(Cb);BP=new QK(xb);CP=new QK(sb);DP=new QK(Ib);$(a,GP,null);$(a,HP,null);$(a,IP,null);$(a,JP,null);$(a,KP,null);$(a,AP,null);$(a,BP,null);$(a,CP,null);$(a,DP,null);$(this,a,null);a=new Ex;zx(a,new wy(0,3,1));NP=new mP;lP(NP,$O);lP(NP,$a);lP(NP,db);lP(NP,fb);lP(NP,ZO);$(a,new rP("Number of hydrogens :  "),null);$(a,NP,null);$(this,a,null);a=new Ex;zx(a,new wy(0,3,1));OP=new mP;lP(OP,$O);lP(OP,
$a);lP(OP,db);lP(OP,fb);lP(OP,ZO);lP(OP,"4");lP(OP,"5");lP(OP,"6");$(a,new fL("Number of connections :",0),null);$(a,OP,null);$(a,new fL(" (H's don't count.)",0),null);$(this,a,null);a=new Ex;zx(a,new wy(0,3,1));$(a,new rP("Atom is :"),null);EP=new QK(aP);$(a,EP,null);FP=new QK("Nonaromatic");$(a,FP,null);LP=new QK(dP);$(a,LP,null);MP=new QK(bP);$(a,MP,null);$(this,a,null);a=new Ex;Z(a,my(pK(this)));zx(a,new wy(0,3,1));$(a,new rP("Bond is :"),null);PP=new QK($O);$(a,PP,null);QP=new QK(aP);$(a,QP,
null);RP=new QK(dP);$(a,RP,null);SP=new QK(bP);$(a,SP,null);$(this,a,null);a=new Ex;zx(a,new wy(1,3,1));this.e=new bz(va,20);$(a,this.e,null);$(a,new QK(cP),null);$(a,this.i,null);$(this,a,null);this.mc&&ZK(this.mc.c,!1);WK(this,!1);UP(this);VP(this);WP(this);Z(EP,this.a);Z(FP,this.a);Z(LP,this.a);Z(MP,this.a);Z(NP,this.a);Z(OP,this.a);vP(this,xP);VK(this);a=this.j;EL(this.mc.c,a.a,a.b);!$w(this)&&yK(this);tK(this)}q(586,568,pH,uP);
_.kg=function(a,b){var c;H(b,cP)?(TP(this),vP(this,xP),wP(this)):D(a.f,89)?(WP(this),ur(a.f)===ur(xP)?(UP(this),VP(this)):ur(a.f)===ur(yP)?(UP(this),VP(this)):ur(a.f)===ur(zP)?(UP(this),VP(this)):ur(a.f)===ur(LP)?Z(MP,this.a):ur(a.f)===ur(MP)?(Z(LP,this.a),Z(EP,this.a)):ur(a.f)===ur(EP)?(Z(FP,this.a),Z(MP,this.a)):ur(a.f)===ur(FP)?Z(EP,this.a):ur(a.f)===ur(PP)||ur(a.f)===ur(QP)||ur(a.f)===ur(RP)||ur(a.f)===ur(SP)?(TP(this),this.b=!0):VP(this),vP(this,a.f),wP(this)):D(a.f,90)&&(WP(this),c=a.f,0==c.mc.a.ob.selectedIndex?
Z(c,this.a):Z(c,(Xx(),fy)),wP(this));107!=this.c.e&&(this.c.e=107,Jx(this.c));return!0};_.lg=function(){return Fm(this.e.mc.a.ob,Eg)};_.mg=function(){return this.b};_.b=!1;_.c=null;_.d=null;var xP=_.e=null,PP=null,yP=null,EP=null,QP=null,CP=null,GP=null,OP=null,NP=null,BP=null,AP=null,zP=null,DP=null,HP=null,FP=null,MP=null,SP=null,IP=null,KP=null,LP=null,RP=null,JP=null;function nP(a){xG();zG.call(this);this.a=new jP;Wt(this.a,new XP(this,a),(eP(),eP(),fP))}q(632,630,{},nP);_.Je=function(){return this.a};
_.a=null;function XP(a,b){this.a=a;this.b=b}q(633,1,{},XP);_.a=null;_.b=null;X(567);X(586);X(421);X(632);X(633);X(356);X(210);x(oH)(1);