(function(c,m){function h(a){var d=a.length,l=e.type(a);return e.isWindow(a)?!1:1===a.nodeType&&d?!0:"array"===l||"function"!==l&&(0===d||"number"===typeof d&&0d;d+=2)"margin"===l&&(c+=e.css(a,l+ca[d],!0,b)),q?("content"===l&&(c-=e.css(a,"padding"+ca[d],!0,b)),"margin"!==l&&(c-=e.css(a,"border"+ ca[d]+"Width",!0,b))):(c+=e.css(a,"padding"+ca[d],!0,b),"padding"!==l&&(c+=e.css(a,"border"+ca[d]+"Width",!0,b)));return c}function Hb(a,d,l){var q=!0,b="width"===d?a.offsetWidth:a.offsetHeight,c=da(a),f=e.support.boxSizing&&"border-box"===e.css(a,"boxSizing",!1,c);if(0>=b||null==b){b=ea(a,d,c);if(0>b||null==b)b=a.style[d];if(Ba.test(b))return b;q=f&&(e.support.boxSizingReliable||b===a.style[d]);b=parseFloat(b)||0}return b+Gb(a,d,l||(f?"border":"content"),q,c)+"px"}function Eb(a){var d=u,l=Ib[a]; if(!l){l=Jb(a,d);if("none"===l||!l)wa=(wa||e("';c.$after("body",f)}catch(g){}delete c._tracker}return b};c.getProfile= function(){window["j2s.doProfile"]=!0;if(self.Clazz)return Clazz._profile=self.JSON&&{},Clazz.getProfile()};c._getInChIKey=function(b,c){0<=c.indexOf("MOL=")&&c.split("MOL=")[1].split('"')};c.User={viewUpdatedCallback:null};c.View={count:0,applets:{},sets:{}};(function(b){b.updateView=function(f,g){if(null!=f._viewSet){g.chemID||(f._searchQuery=null);g.data||(g.data="N/A");g.type=f._viewType;if(null==(f._currentView=b.__findView(f._viewSet,g)))f._currentView=b.__createViewSet(f._viewSet,g.chemID); f._currentView[g.type].data=g.data;f._currentView[g.type].smiles=f._getSmiles();c.User.viewUpdatedCallback&&c.User.viewUpdatedCallback(f,"updateView");b.__setView(f._currentView,f,!1)}};b.updateFromSync=function(f,g){f._updateMsg=g;var h=b.__getAttr(g,"sourceID");if(h){var j=b.__findView(f._viewSet,{viewID:h});j!=f._currentView&&b.__setView(j,f,!0);var k=(h=b.__getAttr(g,"atoms"))&&0<=g.indexOf("selectionhalos ON")?eval("["+h+"]"):[];setTimeout(function(){b.updateAtomPick(f,k)},10);b.updateAtomPick(f, k);c.User.viewUpdatedCallback&&c.User.viewUpdatedCallback(f,"updateFromSync")}};b.updateAtomPick=function(b,g){var h=b._currentView;if(null!=h){for(var j in h)"info"!=j&&h[j].applet!=b&&h[j].applet._updateAtomPick(g);c.User.viewUpdatedCallback&&c.User.viewUpdatedCallback(b,"updateAtomPick")}};b.dumpViews=function(c){var g=b.sets[c];if(g){var h="View set "+c+":\n";c=b.applets[c];for(var j in c)h+="\napplet "+c[j]._id+" currentView="+(c[j]._currentView?c[j]._currentView.info.viewID:null);for(j=g.length;0<= --j;){c=g[j];var h=h+("\n\nview="+j+" viewID="+c.info.viewID+" chemID="+c.info.chemID+"\n"),k,n;for(n in c)"info"!=n&&(h+="\nview="+j+" type="+n+" applet="+((k=c[n]).applet?k.applet._id:null)+" SMILES="+k.smiles+"\n atomMap="+JSON.stringify(k.atomMap)+"\n data=\n"+k.data+"\n")}return h}};b.__init=function(c){var g=c._viewSet,h=b.applets;h[g]||(h[g]={});h[g][c._viewType]=c};b.__getAttr=function(b,c){var h=b.indexOf(c+"=");return 0<=h&&0<=(h=b.indexOf('"',h))?b.substring(h+1,b.indexOf('"',h+ 1)):null};b.__findView=function(c,g){var h=b.sets[c];null==h&&(h=b.sets[c]=[]);for(var j=h.length;0<=--j;){var k=h[j];if(g.viewID){if(k.info.viewID==g.viewID)return k}else{if(null!=g.chemID&&g.chemID==k.info.chemID)return k;for(var n in k)if("info"!=n&&(null!=g.data&&null!=k[n].data?g.data==k[n].data:g.type==n))return k}}return null};b.__createViewSet=function(f,g){b.count++;var h={info:{chemID:g,viewID:g||"model_"+b.count}},j;for(j in c._applets){var k=c._applets[j];k._viewSet==f&&(h[k._viewType]= {applet:k,data:null})}b.sets[f].push(h);return h};b.__setView=function(b,c,h){for(var j in b)if("info"!=j){var k=b[j],n=k.applet,r=h||null!=n&&""==n._molData;if(!(null==n||n==c&&!r)){var m=null==k.data,t=null!=n._currentView;n._currentView=b;if(!t||!(b[j].data==k.data&&!m&!r))if(n._loadModelFromView(b),m)break}}}})(c.View)})(Jmol,jQuery);Jmol._debugCode=!1;Jmol._grabberOptions=[["$","NCI(small molecules)"],[":","PubChem(small molecules)"]];Jmol.say=function(c){alert(c)}; Jmol._TMApplet=function(c,m,h){this._uniqueId=(""+Math.random()).substring(3);this._id=c;this._is2D=!0;this._isJava=!1;this._ready=!0;this._mouseDown=!1;this._jmolType="Jmol._Canvas2D (TwirlyMol)";if(h)return this;this._createCanvas(c,m);return this}; Jmol._TMApplet._getApplet=function(c,m,h){if(!Jmol.featureDetection.allowHTML5)return null;h||(h=!1);m||(m={});Jmol._addDefaultInfo(m,{color:"#FFFFFF",width:300,height:300,addSelectionOptions:!1,serverURL:"http://your.server.here/jsmol.php",defaultModel:"",readyFunction:null,use:"HTML5",bondWidth:5,shadeAtoms:!1,zoomScaling:1.5,pinchScaling:2,mouseDragFactor:0.5,touchDragFactor:0.15,multipleBondSpacing:4,spinRateX:0,spinRateY:0.5,spinFPS:20,spin:!1,noscript:!0,debug:!1});m=new Jmol._TMApplet(c,m, h);return h?m:Jmol._registerApplet(c,m)};Jmol.getTMApplet=Jmol._TMApplet._getApplet; (function(c){c._CPK="#FF1493 #FFFFFF #D9FFFF #CC80FF #C2FF00 #FFB5B5 #909090 #3050F8 #FF0D0D #90E050 #B3E3F5 #AB5CF2 #8AFF00 #BFA6A6 #F0C8A0 #FF8000 #FFFF30 #1FF01F #80D1E3 #8F40D4 #3DFF00 #E6E6E6 #BFC2C7 #A6A6AB #8A99C7 #9C7AC7 #E06633 #F090A0 #50D050 #C88033 #7D80B0 #C28F8F #668F8F #BD80E3 #FFA100 #A62929 #5CB8D1 #702EB0 #00FF00 #94FFFF #94E0E0 #73C2C9 #54B5B5 #3B9E9E #248F8F #0A7D8C #006985 #C0C0C0 #FFD98F #A67573 #668080 #9E63B5 #D47A00 #940094 #429EB0 #57178F #00C900".split(" ");c._elem="X H He Li Be B C N O F Ne Na Mg Al Si P S Cl Ar K Ca Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Kr Rb Sr Y Zr Nb Mo Tc Ru Rh Pd Ag Cd In Sn Sb Te I Xe Cs Ba La Ce Pr Nd Pm Sm Eu Gd Tb Dy Ho Er Tm Yb Lu Hf Ta W Re Os Ir Pt Au Hg Tl Pb Bi Po At Rn Fr Ra Ac Th Pa U Np Pu Am Cm Bk Cf Es".split(" "); c._elemNo={};var m=c.prototype;m.spin=function(c){this.__Info.spin=c;this._spin(c)};m._spin=function(c){this._spinThread&&clearTimeout(this._spinThread);if(0==this.spinFPS||0==this.spinRateX&&0==this.spinRateY)c=!1;if(c){var k=this;c=1E3/this.spinFPS;this._mouseDown||(this._rotate(this.spinRateY,this.spinRateX),this._draw());this._spinThread=setTimeout(function(){k._spin(!0)},c)}};m._initParams=function(){this.zoom=this.__Info.defaultZoom||100;this.doSpin=this.__Info.spin||!1;this.center2D=[this._canvas.width/ 2,this._canvas.height/2,0];this._getCenterAndRadius();this.rotation=new c.M3;this.shadeAtoms=!1;this._setParams()};m._setParams=function(){this.bondWidth=this.__Info.bondWidth||5;this.zoomScaling=this.__Info.zoomScaling||1.5;this.pinchScaling=this.__Info.pinchScaling||1;this.mouseDragFactor=this.__Info.mouseDragFactor||0.5;this.touchDragFactor=this.__Info.touchDragFactor||0.15;this.multipleBondSpacing=this.__Info.multipleBondSpacing||4;this.spinRateX=this.__Info.spinRateX||0;this.spinRateY=this.__Info.spinRateY|| 0;this.spinFPS=this.__Info.spinFPS||0;var c=this.shadeAtoms;(this.shadeAtoms=this.__Info.shadeAtoms||!1)&&!c&&this._setAtomShades()};m._setAtomShades=function(){if(this.atoms)for(var c=this.atoms.length;0<=--c;)this.atoms[c].color50=this._getColor(this.atoms[c].color,0.5)};m._createCanvas=function(c,k){Jmol._setObject(this,c,k);this._color=this._color.replace(/0x/,"#");var j=Jmol._getWrapper(this,!0);Jmol._document?(Jmol._documentWrite(j),this._createCanvas2d(!1),j=""):j+='