(function(b,l){function f(r){var a=r.length,b=g.type(r);return g.isWindow(r)?!1:1===r.nodeType&&a?!0:"array"===b||"function"!==b&&(0===a||"number"===typeof a&&0b;b+=2)"margin"===c&&(k+=g.css(a,c+ga[b],!0,j)),d?("content"===c&&(k-=g.css(a,"padding"+ga[b],!0,j)),"margin"!==c&&(k-=g.css(a,"border"+ ga[b]+"Width",!0,j))):(k+=g.css(a,"padding"+ga[b],!0,j),"padding"!==c&&(k+=g.css(a,"border"+ga[b]+"Width",!0,j)));return k}function Hb(a,b,c){var d=!0,j="width"===b?a.offsetWidth:a.offsetHeight,k=ha(a),p=g.support.boxSizing&&"border-box"===g.css(a,"boxSizing",!1,k);if(0>=j||null==j){j=ia(a,b,k);if(0>j||null==j)j=a.style[b];if(Ea.test(j))return j;d=p&&(g.support.boxSizingReliable||j===a.style[b]);j=parseFloat(j)||0}return j+Gb(a,b,c||(p?"border":"content"),d,k)+"px"}function Eb(a){var b=w,c=Ib[a]; if(!c){c=Jb(a,b);if("none"===c||!c)za=(za||g("';b.$after("body",c)}catch(d){}delete b._tracker}return a};b.getProfile= function(){window["j2s.doProfile"]=!0;if(self.Clazz)return Clazz._profile=self.JSON&&{},Clazz.getProfile()};b._getInChIKey=function(a,b){0<=b.indexOf("MOL=")&&b.split("MOL=")[1].split('"')};b.User={viewUpdatedCallback:null};b.View={count:0,applets:{},sets:{}};(function(a){a.updateView=function(c,d){if(null!=c._viewSet){d.chemID||(c._searchQuery=null);d.data||(d.data="N/A");d.type=c._viewType;if(null==(c._currentView=a.__findView(c._viewSet,d)))c._currentView=a.__createViewSet(c._viewSet,d.chemID); c._currentView[d.type].data=d.data;c._currentView[d.type].smiles=c._getSmiles();b.User.viewUpdatedCallback&&b.User.viewUpdatedCallback(c,"updateView");a.__setView(c._currentView,c,!1)}};a.updateFromSync=function(c,d){c._updateMsg=d;var e=a.__getAttr(d,"sourceID");if(e){var f=a.__findView(c._viewSet,{viewID:e});f!=c._currentView&&a.__setView(f,c,!0);var j=(e=a.__getAttr(d,"atoms"))&&0<=d.indexOf("selectionhalos ON")?eval("["+e+"]"):[];setTimeout(function(){a.updateAtomPick(c,j)},10);a.updateAtomPick(c, j);b.User.viewUpdatedCallback&&b.User.viewUpdatedCallback(c,"updateFromSync")}};a.updateAtomPick=function(a,d){var e=a._currentView;if(null!=e){for(var f in e)"info"!=f&&e[f].applet!=a&&e[f].applet._updateAtomPick(d);b.User.viewUpdatedCallback&&b.User.viewUpdatedCallback(a,"updateAtomPick")}};a.dumpViews=function(b){var d=a.sets[b];if(d){var e="View set "+b+":\n";b=a.applets[b];for(var f in b)e+="\napplet "+b[f]._id+" currentView="+(b[f]._currentView?b[f]._currentView.info.viewID:null);for(f=d.length;0<= --f;){b=d[f];var e=e+("\n\nview="+f+" viewID="+b.info.viewID+" chemID="+b.info.chemID+"\n"),j,p;for(p in b)"info"!=p&&(e+="\nview="+f+" type="+p+" applet="+((j=b[p]).applet?j.applet._id:null)+" SMILES="+j.smiles+"\n atomMap="+JSON.stringify(j.atomMap)+"\n data=\n"+j.data+"\n")}return e}};a.__init=function(b){var d=b._viewSet,e=a.applets;e[d]||(e[d]={});e[d][b._viewType]=b};a.__getAttr=function(a,b){var d=a.indexOf(b+"=");return 0<=d&&0<=(d=a.indexOf('"',d))?a.substring(d+1,a.indexOf('"',d+ 1)):null};a.__findView=function(b,d){var e=a.sets[b];null==e&&(e=a.sets[b]=[]);for(var f=e.length;0<=--f;){var j=e[f];if(d.viewID){if(j.info.viewID==d.viewID)return j}else{if(null!=d.chemID&&d.chemID==j.info.chemID)return j;for(var p in j)if("info"!=p&&(null!=d.data&&null!=j[p].data?d.data==j[p].data:d.type==p))return j}}return null};a.__createViewSet=function(c,d){a.count++;var e={info:{chemID:d,viewID:d||"model_"+a.count}},f;for(f in b._applets){var j=b._applets[f];j._viewSet==c&&(e[j._viewType]= {applet:j,data:null})}a.sets[c].push(e);return e};a.__setView=function(a,b,d){for(var e in a)if("info"!=e){var j=a[e],p=j.applet,f=d||null!=p&&""==p._molData;if(!(null==p||p==b&&!f)){var m=null==j.data,h=null!=p._currentView;p._currentView=a;if(!h||!(a[e].data==j.data&&!m&!f))if(p._loadModelFromView(a),m)break}}}})(b.View)})(Jmol,jQuery);Jmol._debugCode=!1; (function(b){b._coreFiles=[];b.__execLog=[];b.__execStack=[];b.__execTimer=0;b.__coreSet=[];b.__coreMore=[];b.__execDelayMS=100;b.showExecLog=function(){return b.__execLog.join("\n")};b.__addExec=function(l){var f="JSmol load "+l[0]._id+" "+l[3];self.console&&console.log(f+"...");b.__execLog.push(f);b.__execStack.push(l)};b.__addCoreFile=function(l,f,h){if(!(0<=b.__coreSet.join("").indexOf(l))){b.__coreSet.push(l);b.__coreSet.sort();l=b.__coreSet.join("");b._coreFiles=[f+"/core/core"+("jmol"==l?"": l)+".z.js"];if(h&&(h=h.split(" ")))for(l=0;lb.__coreMore.join("").indexOf(h[l])&&b.__coreMore.push(f+"/core/core"+h[l]+".z.js");for(l=0;l'+f+"._cover(false)\x3c/script>"));e+=b._getWrapper(this,!1);h.addSelectionOptions&&(e+=b._getGrabberOptions(this));b._debugAlert&&!b._document&&alert(e);this._code=b._documentWrite(e)};l._cover=function(f){if(f|| !this._deferApplet)this._displayCoverImage(f);else{var h=this._coverScript?this._coverScript:"";this._coverScript="";this._deferUncover&&(h+=";refresh;javascript "+this._id+"._displayCoverImage(false)");this._script(h,!0);this._deferUncover&&"activate 3D model"==this._coverTitle&&(b._getElement(this,"coverimage").title="3D model is loading...");this._start();this._deferUncover||this._displayCoverImage(f);this._init&&this._init()}};l._displayCoverImage=function(f){this._coverImage&&this._isCovered!= f&&(this._isCovered=f,b._getElement(this,"coverdiv").style.display=f?"block":"none")};l._start=function(){this._deferApplet&&this._getCanvas(!1);this._defaultModel&&b._search(this,this._defaultModel);this._showInfo(!1)};l._getCanvas=function(b){this._is2D?this._createCanvas2d(b):this._GLmol.create()};l._createCanvas2d=function(f){var h=b.$(this,"appletdiv");if(f)try{h[0].removeChild(this._canvas),this._canvas.frontLayer&&h[0].removeChild(this._canvas.frontLayer),this._canvas.rearLayer&&h[0].removeChild(this._canvas.rearLayer), this._canvas.imageLayer&&h[0].removeChild(this._canvas.imageLayer),b._jsUnsetMouse(this._mouseInterface)}catch(e){}f=Math.round(h.width());var m=Math.round(h.height()),l=document.createElement("canvas");l.applet=this;this._canvas=l;l.style.width="100%";l.style.height="100%";l.width=f;l.height=m;l.id=this._id+"_canvas2d";h.append(l);b._$(l.id).css({"z-index":b._getZ(this,"main")});if(this._isLayered){var d=document.createElement("div");l.imageLayer=d;d.id=this._id+"_imagelayer";h.append(d);b._$(d.id).css({zIndex:b._getZ(this, "image"),position:"absolute",left:"0px",top:"0px",width:"0px",height:"0px",overflow:"hidden"});this._mouseInterface=this._getLayer("front",h,f,m,!1)}else this._mouseInterface=l;b._jsSetMouse(this._mouseInterface)};l._getLayer=function(f,h,e,m,l){var d=document.createElement("canvas");this._canvas[f+"Layer"]=d;d.style.width="100%";d.style.height="100%";d.id=this._id+"_"+f+"Layer";d.width=e;d.height=m;h.append(d);d.applet=this;b._$(d.id).css({background:l?"rgb(0,0,0,1)":"rgb(0,0,0,0.001)","z-index":b._getZ(this, f),position:"absolute",left:"0px",top:"0px",overflow:"hidden"});return d};l._setupJS=function(){window["j2s.lib"]={base:this._j2sPath+"/",alias:".",console:this._console,monitorZIndex:b._getZ(this,"monitorZIndex")};0==b.__execStack.length&&b.__addExec([this,b.__loadClazz,null,"loadClazz"]);this._isJSV?(b.__addCoreFile("jsv",this._j2sPath,this.__Info.preloadCore),b._debugCode&&(b.__addExec([this,b.__loadClass,"JSV.appletjs.JSVApplet","load JSV"]),this._isPro&&b.__addExec([this,b.__loadClass,"JSV.appletjs.JSVAppletPro", "load JSV(signed)"]))):(b.__addCoreFile("jmol",this._j2sPath,this.__Info.preloadCore),this._is2D||b.__addExec([this,b.__loadClass,"J.export.JSExporter","load JSExporter"]),b._debugCode&&b.__addExec([this,b.__loadClass,"J.appletjs.Jmol","load Jmol"]));b.__addExec([this,this.__startAppletJS,null,"start applet"]);this._isSigned=!0;this._ready=!1;this._applet=null;this._canScript=function(){return!0};this._savedOrientations=[];b.__execTimer&&clearTimeout(b.__execTimer);b.__execTimer=setTimeout(b.__nextExecution, b.__execDelayMS)};l.__startAppletJS=function(f){var h=new java.util.Hashtable;b._setJmolParams(h,f.__Info,!0);h.put("appletReadyCallback","Jmol._readyCallback");h.put("applet",!0);h.put("name",f._id+"_object");h.put("syncId",b._syncId);f._color&&h.put("bgcolor",f._color);f._is2D?f._startupScript&&h.put("script",f._startupScript):h.put("script","set multipleBondSpacing 0.35;");b._syncedApplets.length&&h.put("synccallback","Jmol._mySyncCallback");h.put("signedApplet","true");h.put("platform",f._platform); f._is2D&&h.put("display",f._id+"_canvas2d");h.put("documentBase",document.location.href);var e=f._j2sPath+"/";if(0>e.indexOf("://")){var m=document.location.href.split("#")[0].split("?")[0].split("/");m[m.length-1]=e;e=m.join("/")}h.put("codePath",e);b._registerApplet(f._id,f);f._applet=!f._isJSV?new J.appletjs.Jmol(h):f._isPro?new JSV.appletjs.JSVAppletPro(h):new JSV.appletjs.JSVApplet(h);f._is2D||(f._GLmol.applet=f);f._jsSetScreenDimensions();b.__nextExecution()};l._jsSetScreenDimensions=function(){if(this._applet){var f= b._getElement(this,this._is2D?"canvas2d":"canvas");this._applet.viewer.setScreenDimension(f.width,f.height)}};l._show=function(f){b.$setVisible(b.$(this,"appletdiv"),f);f&&b._repaint(this,!0)};l._canScript=function(){return!0};l._delay=function(b,h,e){this._delayID=setTimeout(function(){b.resumeEval(h,!1)},e)};l._createDomNode=function(b,h){b=this._id+"_"+b;var e=document.getElementById(b);e&&document.body.removeChild(e);if(h){0==h.indexOf("")){for(var e= h.split("/>"),m=e.length-1;0<=--m;)for(var l=e[m],d=l.lastIndexOf("<")+1,a=d,c=l.length,k="";++a";break}h=e.join("")}e=document.createElement("_xml");e.id=b;e.innerHTML=h;e.style.display="none";document.body.appendChild(e);return e}};l.equals=function(b){return this==b};l.clone=function(){return this};l.hashCode=function(){return parseInt(this._uniqueId)};l._processGesture=function(b){return this._applet.viewer.mouse.processTwoPointGesture(b)}; l._processEvent=function(b,h){this._applet.viewer.processMouseEvent(b,h[0],h[1],h[2],System.currentTimeMillis())};l._resize=function(){var f="__resizeTimeout_"+this._id;b[f]&&clearTimeout(b[f]);var h=this;b[f]=setTimeout(function(){b._repaint(h,!0);b[f]=null},100)};return l};b._repaint=function(l,f){if(l&&l._applet){var h=b.$(l,"appletdiv"),e=Math.round(h.width()),h=Math.round(h.height());if(l._is2D&&(l._canvas.width!=e||l._canvas.height!=h))l._getCanvas(!0),l._applet.viewer.setDisplay(l._canvas); l._applet.viewer.setScreenDimension(e,h);f?setTimeout(function(){l._applet&&l._applet.viewer.updateJS(0,0)}):l._applet.viewer.updateJS(0,0)}};b._getHiddenCanvas=function(b,f,h,e,m){f=b._id+"_"+f;(b=document.getElementById(f))&&m&&(b=null);b||(b=document.createElement("canvas"));b.width=b.style.width=h;b.height=b.style.height=e;b.id!=f&&(b.id=f);return b};b._loadImage=function(l,f,h,e,m){var s=f[1];if(null==m)return m=new Image,m.onload=function(){b._loadImage(l,f,null,e,m)},null!=h&&(h=J.io.Base64.getBase64(h).toString(), h=s.substring(url.lastIndexOf("/")+1),0<=h.indexOf(".png")||h.indexOf(".jpg")),m.src=s,!0;h=m.width;var d=m.height,a="echo_"+f[0],c=b._getHiddenCanvas(l.viewer.applet,a,h,d,!0);c.imageWidth=h;c.imageHeight=d;c.id=a;c.image=m;b._setCanvasImage(c,h,d);e(c,s)};b._setCanvasImage=function(b,f,h){b.buf32=null;b.width=f;b.height=h;b.getContext("2d").drawImage(b.image,0,0,f,h)}})(Jmol); (function(b,l){b._Applet=function(e,f,h){window[e]=this;this._jmolType="Jmol._Applet"+(f.isSigned?" (signed)":"");this._viewType="Jmol";this._isJava=!0;this._syncKeyword="Select:";if(h)return this;this._isSigned=f.isSigned;this._readyFunction=f.readyFunction;this._ready=!1;this._isJava=!0;this._isInfoVisible=!1;this._applet=null;this._memoryLimit=f.memoryLimit||512;this._canScript=function(){return!0};this._savedOrientations=[];this._initialize=function(d,a){var c=!1;b._jarFile&&(a=b._jarFile);if(this._jarFile){var e= this._jarFile;0<=e.indexOf("/")?(alert("This web page URL is requesting that the applet used be "+e+". This is a possible security risk, particularly if the applet is signed, because signed applets can read and write files on your local machine or network."),"yes"==prompt("Do you want to use applet "+e+"? ","yes or no")?(d=e.substring(0,e.lastIndexOf("/")),a=e.substring(e.lastIndexOf("/")+1)):c=!0):a=e;this_isSigned=f.isSigned=0<=a.indexOf("Signed")}this._jarPath=f.jarPath=d||".";this._jarFile=f.jarFile= "string"==typeof a?a:(a?"JmolAppletSigned":"JmolApplet")+"0.jar";c&&alert("The web page URL was ignored. Continuing using "+this._jarFile+' in directory "'+this._jarPath+'"');void 0==b.controls||b.controls._onloadResetForms()};this._create(e,f);return this};var f=b._Applet,h=b._Applet.prototype;f._get=function(e,m,h){h||(h=!1);m||(m={});b._addDefaultInfo(m,{color:"#FFFFFF",width:300,height:300,addSelectionOptions:!1,serverURL:"http://your.server.here/jsmol.php",defaultModel:"",script:null,src:null, readyFunction:null,use:"HTML5",jarPath:"java",jarFile:"JmolApplet0.jar",isSigned:!1,j2sPath:"j2s",coverImage:null,coverTitle:"",coverCommand:"",deferApplet:!1,deferUncover:!1,disableJ2SLoadMonitor:!1,disableInitialConsole:!1,debug:!1});b._debugAlert=m.debug;b.featureDetection.allowHTML5||(m.use="JAVA");m.serverURL&&(b._serverUrl=m.serverURL);for(var d=!1,a=null,c=m.use.toUpperCase().split("#")[0].split(" "),k=0;kh.codePath.indexOf("://")&&(k=l.location.href.split("#")[0].split("?")[0].split("/"), k[k.length-1]=h.codePath,h.codePath=k.join("/"));h.archive=d;h.mayscript="true";h.java_arguments="-Xmx"+Math.round(m.memoryLimit||e._memoryLimit)+"m";h.permissions=e._isSigned?"all-permissions":"sandbox";h.documentLocation=l.location.href;h.documentBase=l.location.href.split("#")[0].split("?")[0];h.jarPath=m.jarPath;b._syncedApplets.length&&(h.synccallback="Jmol._mySyncCallback");e._startupScript&&(h.script=e._startupScript);var k="\n",q;for(q in h)h[q]&&(k+=" \n"); k=b.featureDetection.useIEObject||b.featureDetection.useHtml4Object?"":" type='application/x-java-applet'>")+k+"

\n"+f._noJavaMsg+"

\n":"\n"+ k+"
\n"+f._noJavaMsg+"
\n";k=b._getWrapper(e,!0)+k+b._getWrapper(e,!1)+(m.addSelectionOptions?b._getGrabberOptions(e):"");b._debugAlert&&alert(k);e._code=b._documentWrite(k)};h._create=function(e,h){b._setObject(this,e,h);var l={syncId:b._syncId,progressbar:"true",progresscolor:"blue",boxbgcolor:this._color||"black",boxfgcolor:"white",boxmessage:"Downloading JmolApplet ...",script:this._color?'background "'+ this._color+'"':"",code:"JmolApplet.class"};b._setJmolParams(l,h);var d;h.inlineModel?(d=h.inlineModel,d=d.replace(/\r|\n|\r\n/g,0<=d.indexOf("|")?"\\/n":"|").replace(/'/g,"'"),b._debugAlert&&alert("inline model:\n"+d)):d="";l.loadInline=d;l.appletReadyCallback="Jmol._readyCallback";b._syncedApplets.length&&(l.synccallback="Jmol._mySyncCallback");l.java_arguments="-Xmx"+Math.round(h.memoryLimit||this._memoryLimit)+"m";this._initialize(h.jarPath,h.jarFile);f._createApplet(this,h,l)};h._readyCallback= function(e,f,h,d){h&&(b._setDestroy(this),this._ready=!0,e=this._readyScript,this._applet=d,this._defaultModel?b._search(this,this._defaultModel,e?";"+e:""):e?this._script(e):this._src&&this._script('load "'+this._src+'"'),this._showInfo(!0),this._showInfo(!1),this._setDragDrop(),this._readyFunction&&this._readyFunction(this),b._setReady(this),(d=this._2dapplet)&&(d._isEmbedded&&d._ready&&d.__Info.visible)&&this._show2d(!0))};h._setDragDrop=function(){var e=this;b.$appEvent(e,"appletdiv","dragover", function(b){b=b.originalEvent;b.stopPropagation();b.preventDefault();b.dataTransfer.dropEffect="copy"});b.$appEvent(e,"appletdiv","drop",function(f){f=f.originalEvent;f.stopPropagation();f.preventDefault();var h=f.dataTransfer.files[0];f=new FileReader;f.onloadend=function(d){if(d.target.readyState==FileReader.DONE){var a="cache://DROP_"+h.name;d=b._toBytes(d.target.result);e._applet.viewer.cacheFileByName("cache://DROP_*",!1);e._applet.viewer.cachePut(a,d);e._applet.viewer.openFileAsyncSpecial(a, 1)}};f.readAsArrayBuffer(h)})};h._showInfo=function(e){e&&this._2dapplet&&this._2dapplet._show(!1);b.$html(b.$(this,"infoheaderspan"),this._infoHeader);this._info&&b.$html(b.$(this,"infodiv"),this._info);if(!this._isInfoVisible!=!e){this._isInfoVisible=e;if(this._isJava){var f=e?2:"100%";b.$setSize(b.$(this,"appletdiv"),f,f)}b.$setVisible(b.$(this,"infotablediv"),e);b.$setVisible(b.$(this,"infoheaderdiv"),e);this._show(!e)}};h._show2d=function(b){this._2dapplet._show2d(b);this._2dapplet._isEmbedded&& (this._showInfo(!1),this._show(!b))};h._show=function(e){var f=!e?2:"100%";b.$setSize(b.$(this,"object"),f,f);this._isJava||b.$setVisible(b.$(this,"appletdiv"),e)};h._clearConsole=function(){this._console==this._id+"_infodiv"&&(this.info="");self.Clazz&&(b._setConsoleDiv(this._console),Clazz.Console.clear())};h._addScript=function(b){this._readyScript||(this.Script=";");this._readyScript+=";"+b;return!0};h._script=function(e){if(!this._ready)return this._addScript(e);b._setConsoleDiv(this._console); this._applet.script(e)};h._syncScript=function(b){this._applet.syncScript(b)};h._scriptCheck=function(b){return this._ready&&this._applet.scriptCheck(b)};h._scriptWait=function(b,f){var h=this._scriptWaitAsArray(b),d="";if(!f)for(var a=h.length;0<=--a;)for(var c=0,k=h[a].length;carguments.length&&(f=1);var h=this._savedOrientations[b];return!h||""==h?h.replace(/1\.0/,f):this._scriptWait(h)};h._resizeApplet=function(e){function f(d,a){var c=""+d;return 0==c.length?a?"":b._allowedJmolSize[2]:c.indexOf("%")==c.length-1?c:1>=(d=parseFloat(d))&&0b._allowedJmolSize[1]?b._allowedJmolSize[1]:d)+(a?a:"")}var h;"object"==typeof e&&null!=e?(h=e[0]||e.width,e=e[1]||e.height):h=e;h=[f(h,"px"),f(e,"px")];e=b._getElement(this,"appletinfotablediv");e.style.width=h[0];e.style.height=h[1];this._containerWidth=h[0];this._containerHeight=h[1];this._is2D&&b._repaint(this,!0)};h._search=function(e,f){b._search(this,e,f)};h._searchDatabase=function(e,f,h){if(this._2dapplet&&this._2dapplet._isEmbedded&&b.$(this,"2dappletdiv:visible")[0])return this._2dapplet._searchDatabase(e, f,h);this._showInfo(!1);0<=e.indexOf("?")?b._getInfoFromDatabase(this,f,e.split("?")[0]):(h||(h=b._getScriptForDatabase(f)),e=f+e,this._currentView=null,this._searchQuery=e,this._loadFile(e,h,e))};h._loadFile=function(e,f,h){this._showInfo(!1);f||(f="");this._thisJmolModel=""+Math.random();this._fileName=e;if(!this._scriptLoad(e,f)){var d=this;b._loadFileData(this,e,function(a){d.__loadModel(a,f,h)},function(){d.__loadModel(null)})}};h._scriptLoad=function(b,f){var h=this._isJava||!this._noscript|| 1 1 || {*}.modelindex.max > 0){ delete molecule > 1 or modelindex > 0;x = getProperty('extractModel',{*});load inline @x};"),!f&&this._noscript?this._applet.viewer.loadInline(e, "\x00"):this._loadMolData(e,f,!1),null!=this._viewSet&&b.View.updateView(this,{chemID:h,data:e}))};h._loadMolData=function(b,f,h){f||(f="");h=h?"append":"model";this._applet.scriptWait('load DATA "'+h+'"'+b+'\nEND "'+h+'" ;'+f)};h._loadModelFromView=function(e){this._currentView=e;var f=e.Jmol;null!=f.data?this.__loadModel(f.data,null,e.info.chemID):null!=e.info.chemID?b._searchMol(this,e.info.chemID,null,!1):(f=e.JME)&&f.applet._show2d(!1,this)};h._updateView=function(){null!=this._viewSet&&this._applet&& (chemID=""+this._getPropertyAsJavaObject("variableInfo","script('show chemical inchiKey')"),chemID=36>chemID.length()?null:chemID.substring(36).split("\n")[0],b.View.updateView(this,{chemID:chemID,data:""+this._getPropertyAsJavaObject("evaluate","extractModel","{visible}")}))};h._atomPickedCallback=function(e,f){if(!(0>f)){var h=[f+1];b.View.updateAtomPick(this,h);this._updateAtomPick(h)}};h._updateAtomPick=function(b){this._script(0==b.length?"select none":"select on visible and (@"+b.join(",@")+ ")")};h._isDeferred=function(){return this._cover&&this._isCovered&&this._deferApplet};h._checkDeferred=function(b){return this._isDeferred()?(this._coverScript=b,this._cover(!1),!0):!1};h._getSmiles=function(){return this._evaluate("{visible}.find('SMILES')")};h._getMol=function(){return this._evaluate("getProperty('ExtractModel',{visible})")};h._getMol2D=function(){return jmol._evaluate("script('select visible;show chemical sdf')")};b.jmolSmiles=function(b){return b._getSmiles()}})(Jmol,document); (function(b){var l=b.controls={_hasResetForms:!1,_scripts:[""],_checkboxMasters:{},_checkboxItems:{},_actions:{},_buttonCount:0,_checkboxCount:0,_radioGroupCount:0,_radioCount:0,_linkCount:0,_cmdCount:0,_menuCount:0,_previousOnloadHandler:null,_control:null,_element:null,_appletCssClass:null,_appletCssText:"",_buttonCssClass:null,_buttonCssText:"",_checkboxCssClass:null,_checkboxCssText:"",_radioCssClass:null,_radioCssText:"",_linkCssClass:null,_linkCssText:"",_menuCssClass:null,_menuCssText:""}; l._addScript=function(b,h){var e=l._scripts.length;l._scripts[e]=[b,h];return e};l._getIdForControl=function(b,h){return"string"==typeof b?b:!h||!b._canScript||b._canScript(h)?b._id:null};l._radio=function(b,h,e,m,s,d,a,c){var k=l._getIdForControl(b,h);if(null==k)return null;++l._radioCount;void 0!=d&&null!=d||(d="jmolRadioGroup"+(l._radioGroupCount-1));if(!h)return"";void 0!=a&&null!=a||(a="jmolRadio"+(l._radioCount-1));void 0!=e&&null!=e||(e=h.substring(0,32));s||(s="");b="";l._actions[a]= l._addScript(k,h);h='";0<=e.toLowerCase().indexOf("")&&(h+=b,b="");return h+('"+b+s)};l._scriptExecute=function(f,h){var e=b._applets[h[0]],l=h[1];if("object"==typeof l)l[0](f,l, e);else"function"==typeof l?l(e):b.script(e,l)};l.__checkScript=function(b,h){var e=0<=h.value.indexOf("JSCONSOLE ")||""===b._scriptCheck(h.value);h.style.color=e?"black":"red";return e};l.__getCmd=function(b,h){if(h._cmds&&h._cmds.length){var e=h._cmds[h._cmdpt=(h._cmdpt+h._cmds.length+b)%h._cmds.length];setTimeout(function(){h.value=e},10);h._cmdadd=1;h._cmddir=b}};l._commandKeyPress=function(f,h,e){f=13==f?13:window.event?window.event.keyCode:f?f.keyCode||f.which:0;var m=document.getElementById(h), s=b._applets[e];switch(f){case 13:h=m.value;if(l.__checkScript(s,m)&&(l._scriptExecute(m,[e,h])||1))m._cmds||(m._cmds=[],m._cmddir=0,m._cmdpt=-1,m._cmdadd=0),h&&0==m._cmdadd?(++m._cmdpt,m._cmds.splice(m._cmdpt,0,h),m._cmdadd=0,m._cmddir=0):m._cmdadd=0,m.value="";return!1;case 27:return setTimeout(function(){m.value=""},20),!1;case 38:l.__getCmd(-1,m);break;case 40:l.__getCmd(1,m);break;default:m._cmdadd=0}setTimeout(function(){l.__checkScript(s,m)},20);return!0};l._click=function(b,h){l._element= b;1==arguments.length&&(h=l._actions[b.id]);l._scriptExecute(b,l._scripts[h])};l._menuSelected=function(b){var h=b.value;if(void 0!=h)l._scriptExecute(b,l._scripts[h]);else{h=b.length;if("number"==typeof h)for(var e=0;e";b._debugAlert&&alert(h);return b._documentWrite(h)};l._getCheckbox=function(f,h,e,m,s,d,a){var c=l._getIdForControl(f,h);null!=c&&(c=l._getIdForControl(f,e));if(null==c)return"";void 0!=d&&null!=d||(d="jmolCheckbox"+l._checkboxCount);++l._checkboxCount;if(void 0==h||null==h||void 0==e||null==e)alert("jmolCheckbox requires two scripts");else if(void 0==m||null==m)alert("jmolCheckbox requires a label");else return l._actions[d]=[l._addScript(c,h),l._addScript(c,e)],f="", s='",0<=m.toLowerCase().indexOf("")&&(s+=f,f=""),s+='"+f,b._debugAlert&&alert(s),b._documentWrite(s)};l._getCommandInput=function(f,h,e,m,s){f=l._getIdForControl(f,"x");if(null==f)return""; void 0!=m&&null!=m||(m="jmolCmd"+l._cmdCount);void 0!=h&&null!=h||(h="Execute");void 0!=e&&!isNaN(e)||(e=60);++l._cmdCount;h='";b._debugAlert&&alert(h);return b._documentWrite(h)};l._getLink= function(f,h,e,m,s){f=l._getIdForControl(f,h);if(null==f)return"";void 0!=m&&null!=m||(m="jmolLink"+l._linkCount);void 0!=e&&null!=e||(e=h.substring(0,32));++l._linkCount;h=l._addScript(f,h);e='"+e+"";b._debugAlert&&alert(e);return b._documentWrite(e)}; l._getMenu=function(f,h,e,m,s){var d=l._getIdForControl(f,null);void 0!=m&&null!=m||(m="jmolMenu"+l._menuCount);++l._menuCount;d=typeof h;if(null!=d&&"object"==d&&h.length){var a=h.length;"number"!=typeof e||1==e?e=null:0>e&&(e=a);e='";b._debugAlert&&alert(e);return b._documentWrite(e)}};l._getRadio=function(f,h,e,m,s,d,a,c){0==l._radioGroupCount&&++l._radioGroupCount;d||(d="jmolRadioGroup"+(l._radioGroupCount-1));f=l._radio(f,h,e,m,s,d,a?a:d+"_"+l._radioCount,c?c:0);if(null== f)return"";b._debugAlert&&alert(f);return b._documentWrite(f)};l._getRadioGroup=function(f,h,e,m,s,d){var a=typeof h;if("object"!=a||null==a||!h.length)alert("invalid arrayOfRadioButtons");else{void 0!=e&&null!=e||(e="  ");var c=h.length;++l._radioGroupCount;m||(m="jmolRadioGroup"+(l._radioGroupCount-1));for(var k="",q=0;q";b._debugAlert&&alert(k);return b._documentWrite(k)}}})(Jmol); (function(b){var l=function(b){b="&"+b+"=";return decodeURI(("&"+document.location.search.substring(1)+b).split(b)[1].split("&")[0])};b._j2sPath=l("_J2S");b._jarFile=l("_JAR");b._use=l("_USE");b.getVersion=function(){return b._jmolInfo.version};b.getApplet=function(f,h,e){return b._Applet._get(f,h,e)};b.getJMEApplet=function(f,h,e,l){return b._JMEApplet._get(f,h,e,l)};b.getJSVApplet=function(f,h,e){return b._JSVApplet._get(f,h,e)};b.loadFile=function(b,h,e){b._loadFile(h,e)};b.script=function(b,h){b._checkDeferred(h)|| b._script(h)};b.scriptCheck=function(b,h){return b&&b._scriptCheck&&b._ready&&b._scriptCheck(h)};b.scriptWait=function(b,h){return b._scriptWait(h)};b.scriptEcho=function(b,h){return b._scriptEcho(h)};b.scriptMessage=function(b,h){return b._scriptMessage(h)};b.scriptWaitOutput=function(b,h){return b._scriptWait(h)};b.scriptWaitAsArray=function(b,h){return b._scriptWaitAsArray(h)};b.search=function(b,h,e){b._search(h,e)};b.evaluateVar=function(b,h){return b._evaluate(h)};b.evaluate=function(b,h){return b._evaluateDEPRECATED(h)}; b.getAppletHtml=function(f,h){if(h){var e=b._document;b._document=null;f=b.getApplet(f,h);b._document=e}return f._code};b.getPropertyAsArray=function(b,h,e){return b._getPropertyAsArray(h,e)};b.getPropertyAsJavaObject=function(b,h,e){return b._getPropertyAsJavaObject(h,e)};b.getPropertyAsJSON=function(b,h,e){return b._getPropertyAsJSON(h,e)};b.getPropertyAsString=function(b,h,e){return b._getPropertyAsString(h,e)};b.getStatus=function(b,h){return b._getStatus(h)};b.resizeApplet=function(b,h){return b._resizeApplet(h)}; b.restoreOrientation=function(b,h){return b._restoreOrientation(h)};b.restoreOrientationDelayed=function(b,h,e){return b._restoreOrientationDelayed(h,e)};b.saveOrientation=function(b,h){return b._saveOrientation(h)};b.say=function(b){alert(b)};b.clearConsole=function(b){b._clearConsole()};b.getInfo=function(b){return b._info};b.setInfo=function(b,h,e){b._info=h;2")}; b.jmolButton=function(f,h,e,l,s){return b.controls._getButton(f,h,e,l,s)};b.jmolCheckbox=function(f,h,e,l,s,d,a){return b.controls._getCheckbox(f,h,e,l,s,d,a)};b.jmolCommandInput=function(f,h,e,l,s){return b.controls._getCommandInput(f,h,e,l,s)};b.jmolHtml=function(f){return b._documentWrite(f)};b.jmolLink=function(f,h,e,l,s){return b.controls._getLink(f,h,e,l,s)};b.jmolMenu=function(f,h,e,l,s){return b.controls._getMenu(f,h,e,l,s)};b.jmolRadio=function(f,h,e,l,s,d,a,c){return b.controls._getRadio(f, h,e,l,s,d,a,c)};b.jmolRadioGroup=function(f,h,e,l,s,d){return b.controls._getRadioGroup(f,h,e,l,s,d)};b.setCheckboxGroup=function(f,h){b.controls._cbSetCheckboxGroup(f,h,arguments)};b.setDocument=function(f){b._document=f};b.setXHTML=function(f){b._isXHTML=!0;b._XhtmlElement=null;b._XhtmlAppendChild=!1;f&&(b._XhtmlElement=document.getElementById(f),b._XhtmlAppendChild=!0)};b.setAppletCss=function(f,h){null!=f&&(b.controls._appletCssClass=f);b.controls._appletCssText=h?h+" ":f?'class="'+f+'" ':""}; b.setButtonCss=function(f,h){null!=f&&(b.controls._buttonCssClass=f);b.controls._buttonCssText=h?h+" ":f?'class="'+f+'" ':""};b.setCheckboxCss=function(f,h){null!=f&&(b.controls._checkboxCssClass=f);b.controls._checkboxCssText=h?h+" ":f?'class="'+f+'" ':""};b.setRadioCss=function(f,h){null!=f&&(b.controls._radioCssClass=f);b.controls._radioCssText=h?h+" ":f?'class="'+f+'" ':""};b.setLinkCss=function(f,h){null!=f&&(b.controls._linkCssClass=f);b.controls._linkCssText=h?h+" ":f?'class="'+f+'" ':""}; b.setMenuCss=function(f,h){null!=f&&(b.controls._menuCssClass=f);b.controls._menuCssText=h?h+" ":f?'class="'+f+'" ':""};b.setAppletSync=function(f,h,e){b._syncedApplets=f;b._syncedCommands=h;b._syncedReady={};b._isJmolJSVSync=e};b.setGrabberOptions=function(f){b._grabberOptions=f};b.setAppletHtml=function(f,h){f._code&&(b.$html(h,f._code),f._init&&!f._deferApplet&&f._init())};b.coverApplet=function(b,h){b._cover&&b._cover(h)};b.setFileCaching=function(f,h){f?f._cacheFiles=h:b.fileCache=h?{}:null}; b.updateView=function(b,h,e){b._updateView(h,e)}})(Jmol); LoadClazz=function(){window["j2s.clazzloaded"]||(window["j2s.clazzloaded"]=!1);window["j2s.clazzloaded"]||(window["j2s.clazzloaded"]=!0,window["j2s.object.native"]=!0,Class=Clazz=function(){},function(b){b.__debuggingBH=!1;b._profile=window["j2s.doProfile"]&&self.JSON?{}:null;b.getProfile=function(){var d="";if(b._profile){var d=[],a;for(a in b._profile){var c=""+b._profile[a];d.push(" ".substring(c.length)+c+"\t"+a)}d=d.sort().reverse().join("\r\n");b._profile={}}return d};b.addProfile=function(d, a,c){d=d.__CLASS_NAME__+" "+a+" "+JSON.stringify(c);b._profile[d]||(b._profile[d]=0);b._profile[d]++};NullObject=function(){};JavaObject=Object;b._supportsNativeObject=window["j2s.object.native"];JavaObject=b._supportsNativeObject?function(){}:Object;ClazzLoaderProgressMonitor=ClassLoaderProgressMonitor={};b.Console={};b.dateToString=Date.prototype.toString;b.getSignature=function(b,a,c,k){return k?b[a]=c:b[a]};b.addProto=function(d,a,c){b.getSignature(d,a,c,!0)};var l=JavaObject.prototype;b.addProto(l, "equals",function(b){return this==b});b.addProto(l,"hashCode",function(){try{return this.toString().hashCode()}catch(b){var a=":",c;for(c in this)a+=c+":";return a.hashCode()}});b.addProto(l,"getClass",function(){return b.getClass(this)});b.addProto(l,"clone",function(){return b.clone(this)});b.clone=function(b){var a=new b.constructor,c;for(c in b)a[c]=b[c];return a};b.addProto(l,"finalize",function(){});b.addProto(l,"notify",function(){});b.addProto(l,"notifyAll",function(){});b.addProto(l,"wait", function(){});b.addProto(l,"to$tring",Object.prototype.toString);b.addProto(l,"toString",function(){return null!=this.__CLASS_NAME__?"["+this.__CLASS_NAME__+" object]":this.to$tring.apply(this,arguments)});if(b._supportsNativeObject){b._extendedObjectMethods="equals hashCode getClass clone finalize notify notifyAll wait to$tring toString".split(" ");for(var f=0;fk)return"["==c.charAt(0)?b.extractClassName(c):c.replace(/[^a-zA-Z0-9]/g,"");var k=k+8,e=c.indexOf("(",k);if(0>e)return"Object";c=c.substring(k,e);if(0<=c.indexOf("Array"))return"Array";c=c.replace(/^\s+/,"").replace(/\s+$/,"");return"anonymous"==c||""==c?"Function":c;case "object":if(null!= d.__CLASS_NAME__)return d.__CLASS_NAME__;if(null==d.constructor)return"Object";if(null==d.constructor.__CLASS_NAME__){if(d instanceof Number)return"Number";if(d instanceof Boolean)return"Boolean";if(d instanceof Array)return"Array";c=d.toString();if("["==c.charAt(0))return b.extractClassName(c)}}return b.getClassName(d.constructor,!0)};b.getClass=function(d){if(null==d)return JavaObject;if("function"==typeof d)return d;var a=null;if(d instanceof b.CastedNull)a=d.clazzName;else{if("string"==typeof d)return String; if("object"==typeof d)if(null!=d.__CLASS_NAME__)a=d.__CLASS_NAME__;else return null==d.constructor?JavaObject:d.constructor}return null!=a?b.evalType(a,!0):d.constructor};b.extendsProperties=function(d,a){for(var c in a)"b$"!=c&&("prototype"!=c&&"superClazz"!=c&&"__CLASS_NAME__"!=c&&"implementz"!=c&&!b.checkInnerFunction(a,c))&&(d[c]=a[c])};b.checkInnerFunction=function(d,a){for(var c=0;cc;){if(null!=k.implementz)for(var e=k.implementz,f= 0;ff[j]){h=!1;break}h&&(f[a.length]=e,c[c.length]=f)}if(0==c.length)return null;f=c[0];for(e=1;ec.length)break;if(c.indexOf(j)==c.length-j.length){c=c.substring(0, c.length-j.length+1);break}}else c=ClazzLoader.getClasspathFor(e,!0);else f=b.binaryFolders,null!=f&&0!=f.length&&(c=f[0]);if(null==c||0==c.length)c="j2s/";c=c.replace(/\\/g,"/");f=c.length;f=c.charAt(f-1);"/"!=f&&(c+="/");null!=this.base?a.url=c+d:(f=e.lastIndexOf("."),a.url=-1==f||null!=this.base?c+d:c+e.substring(0,f).replace(/\./g,"/")+"/"+d)}return a},defineMethod:function(d,a,c){b.defineMethod(this,d,a,c)},defineStaticMethod:function(d,a,c){b.defineMethod(this,d,a,c);this[d]=this.prototype[d]}, makeConstructor:function(d,a){b.makeConstructor(this,d,a)}};b.decorateFunction=function(d,a,c){null!=window.ClazzLoader&&ClazzLoader.checkInteractive();var e=null;null==a?(e=c,window[c]=d):null!=a.__PKG_NAME__?(e=a.__PKG_NAME__+"."+c,a[c]=d,a===java.lang&&(window[c]=d)):(e=a.__CLASS_NAME__+"."+c,a[c]=d);b.extendJO(d,e);a=b.innerFunctionNames;for(c=0;c")+"\n",c=c.caller;return a};Number.prototype._numberToString=Number.prototype.toString;b.declarePackage("java.io");b.declarePackage("java.lang.annotation");b.declarePackage("java.lang.instrument");b.declarePackage("java.lang.management"); b.declarePackage("java.lang.reflect");b.declarePackage("java.lang.ref");java.lang.ref.reflect=java.lang.reflect;b.declarePackage("java.util");b.declareInterface(java.io,"Closeable");b.declareInterface(java.io,"DataInput");b.declareInterface(java.io,"DataOutput");b.declareInterface(java.io,"Externalizable");b.declareInterface(java.io,"Flushable");b.declareInterface(java.io,"Serializable");b.declareInterface(java.lang,"Iterable");b.declareInterface(java.lang,"CharSequence");b.declareInterface(java.lang, "Cloneable");b.declareInterface(java.lang,"Appendable");b.declareInterface(java.lang,"Comparable");b.declareInterface(java.lang,"Runnable");b.declareInterface(java.util,"Comparator");java.lang.ClassLoader={__CLASS_NAME__:"ClassLoader"};if(null!=window.Clazz&&null==window.Clazz.unloadClass){b.MethodNotFoundException=function(d,a,c,e){d="";null!=e&&(d=e.substring(1).replace(/\\/g,","));this.message=(null!=c&&"construct"!=c?"Method":"Constructor")+" "+b.getClassName(a,!0)+"."+c+"("+d+") is not found!"; this.toString=function(){return"MethodNotFoundException:"+this.message}};b.prepareCallback=function(d,a){var c=a[0];if(null!=d&&null!=c&&c!==window){var e=[];if(null!=d.b$)for(var f in d.b$)"length"!=f&&(e[f]=d.b$[f]);d.b$=e;var h=b.getClassName(c,!0);e[h.replace(/org\.eclipse\.swt\./,"$wt.")]=c;for(h=b.getClass(c);null!=h.superClazz;)h=h.superClazz,e[b.getClassName(h,!0).replace(/org\.eclipse\.swt\./,"$wt.")]=c;c=c.b$;if(null!=c&&c instanceof Array)for(f in c)"length"!=f&&(e[f]=c[f])}for(e=0;e b?Math.ceil(b):Math.floor(b)};b.floatToByte=b.floatToShort=b.floatToLong=b.floatToInt;b.doubleToByte=b.doubleToShort=b.doubleToLong=b.doubleToInt=b.floatToInt;b.floatToChar=function(b){return String.fromCharCode(0>b?Math.ceil(b):Math.floor(b))};b.doubleToChar=b.floatToChar;self.Int32Array&&self.Int32Array!=Array?(b.haveInt32=!0,Int32Array.prototype.sort||(Int32Array.prototype.sort=Array.prototype.sort)):(Int32Array=function(b){b||(b=0);var a=Array(b);a.toString=function(){return"[object Int32Array]"}; for(var c=0;c=d.length)return[];var c=d[0];"string"==typeof c&&(c=c.charCodeAt(0));var e=d.length-1,f=d[e];if(2==d.length){if(null==f)return Array(c);if(!0===a&&b.haveInt32)return new Int32Array(c);if(!1===a&&b.haveFloat64)return new Float64Array(c);if(a==Array&&null==f)return Array(c);for(var d=!0===a?new Int32Array:!1===a?new Float64Array:Array(c),h= c;0<=--h;)d[h]=f;return d}for(var j=Array(e),h=0;hf)return Array(c);try{return a?new Int32Array(c):new Float64Array(c)}catch(h){alert(c+" "+arguments.callee.caller.arguments.callee.caller+h)}}for(f=Array(e);0<= --e;)f[e]=d[e+1];for(var j=Array(c),e=0;e>24,c=(b&16711680)>>16,e=(b&65280)>>8;b&=255;return 0!=(a&128)?-(((a&127)<<24)+(c<<16)+(e<<8)+b+1):(a<<24)+(c<<16)+(e<<8)+b};b.shortCast=function(){var b=(n&65280)>>8,a=n&255;return 0!=(b&128)?-(((b&127)<<8)+a+1):(b<<8)+b4};b.byteCast=function(b){return 0!=(b&128)?-((b&127)+1):b&255};b.charCast=function(b){return String.fromCharCode(b&255).charAt(0)};b.floatCast=function(b){return b};b.longMasks=[];b.longReverseMasks=[];b.longBits=[];l=[1];for(f=1;53>f;f++)l[f]=l[f-1]+l[f-1];b.longBits= l;b.longMasks[52]=l[52];for(f=51;0<=f;f--)b.longMasks[f]=b.longMasks[f+1]+l[f];b.longReverseMasks[0]=l[0];for(f=1;52>f;f++)b.longReverseMasks[f]=b.longReverseMasks[f-1]+l[f];b.longLeftShift=function(d,a){if(0==a)return d;if(64<=a)return 0;if(52>a:d>>a};b.intRightShift=function(b,a){return b>>a};b.long0RightShift=function(b,a){return b>>>a};b.int0RightShift=function(b,a){return b>>>a};$_L=b.load;$_W=b.declareAnonymous;$_T=b.declareType;$_J=b.declarePackage;$_C=b.decorateAsClass;$_Z=b.instantialize;$_I=b.declareInterface; $_D=b.isClassDefined;$_H=b.pu$h;$_P=b.p0p;$_B=b.prepareCallback;$_N=b.innerTypeInstance;$_K=b.makeConstructor;$_U=b.superCall;$_R=b.superConstructor;$_M=b.defineMethod;$_V=b.overrideMethod;$_S=b.defineStatics;$_E=b.defineEnumConstant;$_F=b.cloneFinals;$_Y=b.prepareFields;$_A=b.newArray;$_O=b.instanceOf;$_G=b.inheritArgs;$_X=b.checkPrivateMethod;$_Q=b.makeFunction;$_s=b.registerSerializableFields;$_k=b.overrideConstructor;b.declarePackage("java.lang.reflect");b.declarePackage("java.security");b.innerFunctionNames= b.innerFunctionNames.concat("getSuperclass isAssignableFrom getMethods getMethod getDeclaredMethods getDeclaredMethod getConstructor getModifiers isArray newInstance".split(" "));b._innerFunctions.getSuperclass=function(){return this.superClazz};b._innerFunctions.isAssignableFrom=function(d){return 0<=b.getInheritedLevel(d,this)};b._innerFunctions.getConstructor=function(){return new java.lang.reflect.Constructor(this,[],[],java.lang.reflect.Modifier.PUBLIC)};b._innerFunctions.getDeclaredMethods= b._innerFunctions.getMethods=function(){var b=[],a=this.prototype,c;for(c in a)"function"==typeof a[c]&&null==a[c].__CLASS_NAME__&&(b[b.length]=new java.lang.reflect.Method(this,c,[],java.lang.Void,[],java.lang.reflect.Modifier.PUBLIC));a=this;for(c in a)"function"==typeof a[c]&&null==a[c].__CLASS_NAME__&&(b[b.length]=new java.lang.reflect.Method(this,c,[],java.lang.Void,[],java.lang.reflect.Modifier.PUBLIC|java.lang.reflect.Modifier.STATIC));return b};b._innerFunctions.getDeclaredMethod=b._innerFunctions.getMethod= function(b){var a=this.prototype,c;for(c in a)if(b==c&&"function"==typeof a[c]&&null==a[c].__CLASS_NAME__)return new java.lang.reflect.Method(this,c,[],java.lang.Void,[],java.lang.reflect.Modifier.PUBLIC);a=this;for(c in a)if(b==c&&"function"==typeof a[c]&&null==a[c].__CLASS_NAME__)return new java.lang.reflect.Method(this,c,[],java.lang.Void,[],java.lang.reflect.Modifier.PUBLIC|java.lang.reflect.Modifier.STATIC);return null};b._innerFunctions.getModifiers=function(){return java.lang.reflect.Modifier.PUBLIC}; b._innerFunctions.isArray=function(){return!1};b._innerFunctions.newInstance=function(){return new this};l=b.innerFunctionNames;for(f=0;fa.loadingTimeLag?0:a.loadingTimeLag)):(b.onreadystatechange=null,0<=a.loadingTimeLag?window.setTimeout(d,a.loadingTimeLag):a.xhrOnload(b,c));c=b=null}}}; a.loadingNextByPath=function(b){0<=a.loadingTimeLag?window.setTimeout(function(){a.tryToLoadNext(b)},a.loadingTimeLag):a.tryToLoadNext(b)};a.ieToLoadScriptAgain=function(b,c){return window.setTimeout(function(){a.takeAnotherTry&&(a.failedScripts[b]=0,a.loadedScripts[b]=!1,0=c.STATUS_DECLARED){f=h;break}d[d.length]=b;if(-1!=f){for(h=f;h=c.STATUS_OPTIONALS_LOADED)a.destroyClassNode(b);else{var d=!1;if(null==b.musts||0==b.musts.length||null==b.declaration)d=!0;else for(var d=!0,e=b.musts.length,f=e-1;0<=f;f--){var h=b.musts[f];h.requiredBy=b;if(h.statusc.STATUS_KNOWN&&null==b.declaration)l=!0;else{l=!0;for(f=0;f=d||a.updateNode(f)}d==c.STATUS_OPTIONALS_LOADED&&(b.parents=[])}};a.findNextMustClass=function(b,d){if(null!=b){if(null!=b.musts&&0!=b.musts.length)for(var e=0;e=c.STATUS_OPTIONALS_LOADED))k?window.setTimeout(f,25):f()};a.loadJ2SApp=function(c,e,f){if(null!=c){var h=c;"$"==c.charAt(0)&&(h="org.eclipse.s"+c.substring(1));var k=-1;if(-1!=(k=h.indexOf("@")))c=h.substring(k+1),a.setPrimaryFolder(c),h=h.substring(0,k),k=h.lastIndexOf("."), -1!=k&&(k=h.substring(0,k),a.packageClasspath(k,c));if(null==e||!(e instanceof Array))e=[];if(null==f){var l=h,m=e;f=function(){b.evalType(l).main(m)}}else f=f(h,e);a.loadClass(h,f)}};a.loadJUnit=function(c,e){a.loadJ2SApp(c,e,function(c){return function(){a.loadClass("junit.textui.TestRunner",function(){junit.textui.TestRunner.run(b.evalType(c))})}})};a.runtimeLoaded=function(){if(0==a.pkgRefCount&&a.isClassDefined(a.runtimeKeyClass)){for(var b=a.queueBe4KeyClazz,c=0;c=b?999999:b};s.maxLatency=40;s.setMaxLatency=function(b){s.maxLatency=0>=b?40:b};s.pinning=!1;s.enablePinning=function(b){s.pinning=b};s.linesCount=0;s.metLineBreak=!1;s.splitNeedFixed=2!="\n".split(/\n/).length;s.splitIntoLineByR=function(b){for(var a=[],c=0,e=-1;;)if(c=b.indexOf("\r",e+1),-1!=c){if(a[a.length]=b.substring(e+1,c),e=c,e+1==b.length){a[a.length]="";break}}else{a[a.length]=b.substring(e+1);break}return a}; s.splitIntoLines=function(b){var a=[];if(null==b)return a;for(var c=0,e=-1;;){var c=b.indexOf("\n",e+1),f=null;-1!=c?(f=0s.maxTotalLines){for(var e=0;ec.childNodes.length)l=document.createElement("DIV"),c.appendChild(l),l.style.whiteSpace="nowrap",s.linesCount++;else try{l=c.childNodes[c.childNodes.length-1]}catch(m){l=document.createElement("DIV"),c.appendChild(l), l.style.whiteSpace="nowrap",s.linesCount++}var F=document.createElement("SPAN");l.appendChild(F);F.style.whiteSpace="nowrap";null!=a&&(F.style.color=a);0==h[e].length&&(h[e]=String.fromCharCode(160));F.appendChild(document.createTextNode(h[e]));s.pinning||(c.scrollTop+=100);s.metLineBreak=e!=h.length-1?!0:f}f=c.parentNode.className;!s.pinning&&(null!=f&&-1!=f.indexOf("composite"))&&(c.parentNode.scrollTop=c.parentNode.scrollHeight);s.lastOutputTime=(new Date).getTime()};s.clear=function(){try{s.metLineBreak= !0;var b=window["j2s.lib"],a=b&&b.console;if(a&&(a=document.getElementById(a))){for(var c=a.childNodes,e=c.length-1;0<=e;e--)a.removeChild(c[e]);s.linesCount=0}}catch(f){}};b.alert=function(b){s.consoleOutput(b+"\r\n")};s.c160=String.fromCharCode(160);s.c160+=s.c160+s.c160+s.c160;System.out.print=function(b){s.consoleOutput(b)};System.out.println=function(b){s.consoleOutput("undefined"==typeof b?"\r\n":null==b?"null\r\n":b+"\r\n")};System.err.__CLASS_NAME__="java.io.PrintStream";System.err.print= function(b){s.consoleOutput(b,"red")};System.err.println=function(b){s.consoleOutput("undefined"==typeof b?"\r\n":null==b?"null\r\n":b+"\r\n","red")};b.setConsoleDiv=function(b){window["j2s.lib"]&&(window["j2s.lib"].console=b)}}(Clazz),Clazz.binaryFolders=ClazzLoader.binaryFolders=[ClazzLoader.getJ2SLibBase()],ClazzLoader.registerPackages("java","io lang lang.reflect util util.regex util.zip net text".split(" ")),window.reflect=java.lang.reflect,ClazzLoader.ignore("net.sf.j2s.ajax.HttpRequest java.util.MapEntry.Type java.net.UnknownServiceException java.lang.Runtime java.security.AccessController java.security.PrivilegedExceptionAction java.io.File java.io.FileInputStream java.io.FileWriter java.io.OutputStreamWriter java.util.Calendar java.text.SimpleDateFormat java.text.DateFormat java.util.concurrent.Executors".split(" ")))}; ___JmolDate="$Date: 2014-02-20 13:41:36 -0600 (Thu, 20 Feb 2014) $";___fullJmolProperties="src/org/jmol/viewer/Jmol.properties";___JmolVersion="14.1.11_2014.02.21";