a._allowedJmolSize[1]?a._allowedJmolSize[1]:d)+(b?b:"")}var j;"object"==typeof d&&null!=d?(j=d[0]||d.width,d=d[1]||d.height):j=d;j=[h(j,"px"),h(d,"px")];d=a._getElement(this,"appletinfotablediv");d.style.width=j[0];d.style.height=
j[1];this._containerWidth=j[0];this._containerHeight=j[1];this._is2D&&a._repaint(this,!0)};j._search=function(d,h){a._search(this,d,h)};j._searchDatabase=function(d,h,j){if(this._2dapplet&&this._2dapplet._isEmbedded&&!a.$(this,"appletdiv:visible")[0])return this._2dapplet._searchDatabase(d,h,j);this._showInfo(!1);0<=d.indexOf("?")?a._getInfoFromDatabase(this,h,d.split("?")[0]):(j||(j=a._getScriptForDatabase(h)),d=h+d,this._currentView=null,this._searchQuery=d,this._loadFile(d,j,d))};j._loadFile=function(d,
h,j){this._showInfo(!1);h||(h="");this._thisJmolModel=""+Math.random();this._fileName=d;if(!this._scriptLoad(d,h)){var l=this;a._loadFileData(this,d,function(a){l.__loadModel(a,h,j)},function(){l.__loadModel(null)})}};j._scriptLoad=function(a,h){h||(h="");var j=this._isJava||!this._noscript;j&&this._script("zap;set echo middle center;echo Retrieving data...");if(!this._isSigned||null!=this._viewSet)return!1;j?this._script('load async "'+a+'";'+h):this._applet.openFile(a);this._checkDeferred("");return!0};
j.__loadModel=function(d,h,j){null!=d&&(null!=this._viewSet&&(h||(h=""),h+=";if ({*}.molecule.max > 1 || {*}.modelindex.max > 0){ delete molecule > 1 or modelindex > 0;x = getProperty('extractModel',{*});load inline @x};"),!h&&this._noscript?this._applet.loadInlineString(d,"",!1):this._loadMolData(d,h,!1),null!=this._viewSet&&a.View.updateView(this,{chemID:j,data:d}))};j._loadMolData=function(a,h,j){h||(h="");j=j?"append":"model";this._applet.scriptWait('load DATA "'+j+'"'+a+'\nEND "'+j+'" ;'+h)};
j._loadModelFromView=function(d){this._currentView=d;var h=d.Jmol;null!=h.data?this.__loadModel(h.data,null,d.info.chemID):null!=d.info.chemID?a._searchMol(this,d.info.chemID,null,!1):(h=d.JME)&&h.applet._show2d(!1,this)};j._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],a.View.updateView(this,{chemID:chemID,data:""+this._getPropertyAsJavaObject("evaluate",
"extractModel","{visible}")}))};j._atomPickedCallback=function(d,h){if(!(0>h)){var j=[h+1];a.View.updateAtomPick(this,j);this._updateAtomPick(j)}};j._updateAtomPick=function(a){this._script(0==a.length?"select none":"select on visible and (@"+a.join(",@")+")")};j._isDeferred=function(){return!this._canvas&&this._cover&&this._isCovered&&this._deferApplet};j._checkDeferred=function(a){return this._isDeferred()?(this._coverScript=a,this._cover(!1),!0):!1};j._cover=function(d){d||!this._deferApplet?this._displayCoverImage(d):
(d=this._coverScript?this._coverScript:"",this._coverScript="",this._deferUncover&&(d+=";refresh;javascript "+this._id+"._displayCoverImage(false)"),this._script(d,!0),this._deferUncover&&"activate 3D model"==this._coverTitle&&(a._getElement(this,"coverimage").title="3D model is loading..."),this._isJava||this._newCanvas(!1),this._defaultModel&&a._search(this,this._defaultModel),this._showInfo(!1),this._deferUncover||this._displayCoverImage(!1),this._isJava&&a.$html(a.$(this,"appletdiv"),this._javaCode),
this._init&&this._init())};j._displayCoverImage=function(d){this._coverImage&&this._isCovered!=d&&(this._isCovered=d,a._getElement(this,"coverdiv").style.display=d?"block":"none")};j._getSmiles=function(){return this._evaluate("{visible}.find('SMILES')")};j._getMol=function(){return this._evaluate("getProperty('ExtractModel',{visible})")};j._getMol2D=function(){return jmol._evaluate("script('select visible;show chemical sdf')")};a.jmolSmiles=function(a){return a._getSmiles()}})(Jmol,document);
(function(a){var l=a.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(a,j){var d=l._scripts.length;l._scripts[d]=[a,j];return d};l._getIdForControl=function(a,j){return"string"==typeof a?a:!j||!a._canScript||a._canScript(j)?a._id:null};l._radio=function(a,j,d,n,s,r,b,e){var c=l._getIdForControl(a,j);if(null==c)return null;++l._radioCount;void 0!=r&&null!=r||(r="jmolRadioGroup"+(l._radioGroupCount-1));if(!j)return"";void 0!=b&&null!=b||(b="jmolRadio"+(l._radioCount-1));void 0!=d&&null!=d||(d=j.substring(0,32));s||(s="");a="";l._actions[b]=
l._addScript(c,j);j='";0<=d.toLowerCase().indexOf("")&&(j+=a,a="");return j+('"+a+s)};l._scriptExecute=function(h,j){var d=a._applets[j[0]],l=j[1];if("object"==typeof l)l[0](h,l,
d);else"function"==typeof l?l(d):a.script(d,l)};l.__checkScript=function(a,j){var d=0<=j.value.indexOf("JSCONSOLE ")||""===a._scriptCheck(j.value);j.style.color=d?"black":"red";return d};l.__getCmd=function(a,j){if(j._cmds&&j._cmds.length){var d=j._cmds[j._cmdpt=(j._cmdpt+j._cmds.length+a)%j._cmds.length];setTimeout(function(){j.value=d},10);j._cmdadd=1;j._cmddir=a}};l._commandKeyPress=function(h,j,d){h=13==h?13:window.event?window.event.keyCode:h?h.keyCode||h.which:0;var n=document.getElementById(j),
s=a._applets[d];switch(h){case 13:return j=n.value,l._scriptExecute(n,[d,j]),n._cmds||(n._cmds=[],n._cmddir=0,n._cmdpt=-1,n._cmdadd=0),j&&0==n._cmdadd?(++n._cmdpt,n._cmds.splice(n._cmdpt,0,j),n._cmdadd=0,n._cmddir=0):n._cmdadd=0,n.value="",!1;case 27:return setTimeout(function(){n.value=""},20),!1;case 38:l.__getCmd(-1,n);break;case 40:l.__getCmd(1,n);break;default:n._cmdadd=0}setTimeout(function(){l.__checkScript(s,n)},20);return!0};l._click=function(a,j){l._element=a;1==arguments.length&&(j=l._actions[a.id]);
l._scriptExecute(a,l._scripts[j])};l._menuSelected=function(a){var j=a.value;if(void 0!=j)l._scriptExecute(a,l._scripts[j]);else{j=a.length;if("number"==typeof j)for(var d=0;d";a._debugAlert&&
alert(j);return a._documentWrite(j)};l._getCheckbox=function(h,j,d,n,s,r,b){var e=l._getIdForControl(h,j);null!=e&&(e=l._getIdForControl(h,d));if(null==e)return"";void 0!=r&&null!=r||(r="jmolCheckbox"+l._checkboxCount);++l._checkboxCount;if(void 0==j||null==j||void 0==d||null==d)alert("jmolCheckbox requires two scripts");else if(void 0==n||null==n)alert("jmolCheckbox requires a label");else return l._actions[r]=[l._addScript(e,j),l._addScript(e,d)],h="",s='",0<=n.toLowerCase().indexOf("")&&(s+=h,h=""),s+='"+h,a._debugAlert&&alert(s),a._documentWrite(s)};l._getCommandInput=function(h,j,d,n,s,r){h=l._getIdForControl(h,"x");if(null==h)return"";void 0!=n&&null!=n||(n="jmolCmd"+l._cmdCount);
void 0!=j&&null!=j||(j="Execute");void 0!=d&&!isNaN(d)||(d=60);void 0!=r||(r="help");++l._cmdCount;j='";a._debugAlert&&alert(j);return a._documentWrite(j)};l._getLink=function(h,
j,d,n,s){h=l._getIdForControl(h,j);if(null==h)return"";void 0!=n&&null!=n||(n="jmolLink"+l._linkCount);void 0!=d&&null!=d||(d=j.substring(0,32));++l._linkCount;j=l._addScript(h,j);d='"+d+"";a._debugAlert&&alert(d);return a._documentWrite(d)};
l._getMenu=function(h,j,d,n,s){var r=l._getIdForControl(h,null);void 0!=n&&null!=n||(n="jmolMenu"+l._menuCount);++l._menuCount;r=typeof j;if(null!=r&&"object"==r&&j.length){var b=j.length;"number"!=typeof d||1==d?d=null:0>d&&(d=b);d='";a._debugAlert&&alert(d);return a._documentWrite(d)}};l._getRadio=function(h,j,d,n,s,r,b,e){0==l._radioGroupCount&&++l._radioGroupCount;r||(r="jmolRadioGroup"+(l._radioGroupCount-1));h=l._radio(h,j,d,n,s,r,b?b:r+"_"+l._radioCount,e?e:0);if(null==
h)return"";a._debugAlert&&alert(h);return a._documentWrite(h)};l._getRadioGroup=function(h,j,d,n,s,r){var b=typeof j;if("object"!=b||null==b||!j.length)alert("invalid arrayOfRadioButtons");else{void 0!=d&&null!=d||(d=" ");var e=j.length;++l._radioGroupCount;n||(n="jmolRadioGroup"+(l._radioGroupCount-1));for(var c="",q=0;q";a._debugAlert&&alert(c);return a._documentWrite(c)}}})(Jmol);
(function(a){var l=function(a){a="&"+a+"=";return decodeURI(("&"+document.location.search.substring(1)+a).split(a)[1].split("&")[0])};a._j2sPath=l("_J2S");a._jarFile=l("_JAR");a._use=l("_USE");a.getVersion=function(){return a._jmolInfo.version};a.getApplet=function(h,j,d){return a._Applet._get(h,j,d)};a.getJMEApplet=function(h,j,d,l){return a._JMEApplet._get(h,j,d,l)};a.getJSVApplet=function(h,j,d){return a._JSVApplet._get(h,j,d)};a.loadFile=function(a,j,d){a._loadFile(j,d)};a.script=function(a,j){a._checkDeferred(j)||
a._script(j)};a.scriptCheck=function(a,j){return a&&a._scriptCheck&&a._ready&&a._scriptCheck(j)};a.scriptWait=function(a,j){return a._scriptWait(j)};a.scriptEcho=function(a,j){return a._scriptEcho(j)};a.scriptMessage=function(a,j){return a._scriptMessage(j)};a.scriptWaitOutput=function(a,j){return a._scriptWait(j)};a.scriptWaitAsArray=function(a,j){return a._scriptWaitAsArray(j)};a.search=function(a,j,d){a._search(j,d)};a.evaluateVar=function(a,j){return a._evaluate(j)};a.evaluate=function(a,j){return a._evaluateDEPRECATED(j)};
a.getAppletHtml=function(h,j){if(j){var d=a._document;a._document=null;h=a.getApplet(h,j);a._document=d}return h._code};a.getPropertyAsArray=function(a,j,d){return a._getPropertyAsArray(j,d)};a.getPropertyAsJavaObject=function(a,j,d){return a._getPropertyAsJavaObject(j,d)};a.getPropertyAsJSON=function(a,j,d){return a._getPropertyAsJSON(j,d)};a.getPropertyAsString=function(a,j,d){return a._getPropertyAsString(j,d)};a.getStatus=function(a,j){return a._getStatus(j)};a.resizeApplet=function(a,j){return a._resizeApplet(j)};
a.restoreOrientation=function(a,j){return a._restoreOrientation(j)};a.restoreOrientationDelayed=function(a,j,d){return a._restoreOrientationDelayed(j,d)};a.saveOrientation=function(a,j){return a._saveOrientation(j)};a.say=function(a){alert(a)};a.clearConsole=function(a){a._clearConsole()};a.getInfo=function(a){return a._info};a.setInfo=function(a,j,d){a._info=j;2")};
a.jmolButton=function(h,j,d,l,s){return a.controls._getButton(h,j,d,l,s)};a.jmolCheckbox=function(h,j,d,l,s,r,b){return a.controls._getCheckbox(h,j,d,l,s,r,b)};a.jmolCommandInput=function(h,j,d,l,s,r){return a.controls._getCommandInput(h,j,d,l,s,r)};a.jmolHtml=function(h){return a._documentWrite(h)};a.jmolLink=function(h,j,d,l,s){return a.controls._getLink(h,j,d,l,s)};a.jmolMenu=function(h,j,d,l,s){return a.controls._getMenu(h,j,d,l,s)};a.jmolRadio=function(h,j,d,l,s,r,b,e){return a.controls._getRadio(h,
j,d,l,s,r,b,e)};a.jmolRadioGroup=function(h,j,d,l,s,r){return a.controls._getRadioGroup(h,j,d,l,s,r)};a.setCheckboxGroup=function(h,j){a.controls._cbSetCheckboxGroup(h,j,arguments)};a.setDocument=function(h){a._document=h};a.setXHTML=function(h){a._isXHTML=!0;a._XhtmlElement=null;a._XhtmlAppendChild=!1;h&&(a._XhtmlElement=document.getElementById(h),a._XhtmlAppendChild=!0)};a.setAppletCss=function(h,j){null!=h&&(a._appletCssClass=h);a._appletCssText=j?j+" ":h?'class="'+h+'" ':""};a.setButtonCss=function(h,
j){null!=h&&(a.controls._buttonCssClass=h);a.controls._buttonCssText=j?j+" ":h?'class="'+h+'" ':""};a.setCheckboxCss=function(h,j){null!=h&&(a.controls._checkboxCssClass=h);a.controls._checkboxCssText=j?j+" ":h?'class="'+h+'" ':""};a.setRadioCss=function(h,j){null!=h&&(a.controls._radioCssClass=h);a.controls._radioCssText=j?j+" ":h?'class="'+h+'" ':""};a.setLinkCss=function(h,j){null!=h&&(a.controls._linkCssClass=h);a.controls._linkCssText=j?j+" ":h?'class="'+h+'" ':""};a.setMenuCss=function(h,j){null!=
h&&(a.controls._menuCssClass=h);a.controls._menuCssText=j?j+" ":h?'class="'+h+'" ':""};a.setAppletSync=function(h,j,d){a._syncedApplets=h;a._syncedCommands=j;a._syncedReady={};a._isJmolJSVSync=d};a.setGrabberOptions=function(h){a._grabberOptions=h};a.setAppletHtml=function(h,j){h._code&&(a.$html(j,h._code),h._init&&!h._deferApplet&&h._init())};a.coverApplet=function(a,j){a._cover&&a._cover(j)};a.setFileCaching=function(h,j){h?h._cacheFiles=j:a.fileCache=j?{}:null};a.updateView=function(a,j,d){a._updateView(j,
d)};a.getChemicalInfo=function(h,j,d){j||(j="name");"string"!=typeof applet_or_Identifier&&(h=h._getSmiles());return a._getNCIInfo(h,j,d)};a.saveImage=function(a){switch(a._viewType){case "Jmol":a._script('write PNGJ "'+a._id+'.png"');break;case "JSV":a._script("write PDF");break;case "JME":a._script("print")}}})(Jmol);
LoadClazz=function(){c$=null;window["j2s.clazzloaded"]||(window["j2s.clazzloaded"]=!1);window["j2s.clazzloaded"]||(window["j2s.clazzloaded"]=!0,window["j2s.object.native"]=!0,Clazz={_isQuiet:!1},function(a,l){var h=["j2s.clazzloaded","j2s.object.native"];a.setGlobal=function(a,b){h.push(a);window[a]=b};a.getGlobals=function(){return h.sort().join("\n")};a.setConsoleDiv=function(a){window["j2s.lib"]&&(window["j2s.lib"].console=a)};var j=window["j2s.doProfile"]&&self.JSON?{}:null;NullObject=function(){};
a._supportsNativeObject=window["j2s.object.native"];a._supportsNativeObject?(a._O=function(){},a._O.__CLASS_NAME__="Object",a._O.getClass=function(){return a._O}):a._O=Object;a.Console={};a.dateToString=Date.prototype.toString;a._hashCode=0;var d=a._O.prototype;d.equals=function(a){return this==a};d.hashCode=function(){return this._$hashcode||(this._$hashcode=++a._hashCode)};d.getClass=function(){return a.getClass(this)};d.clone=function(){return a.clone(this)};a.clone=function(a){var b=new a.constructor,
c;for(c in a)b[c]=a[c];return b};d.finalize=function(){};d.notify=function(){};d.notifyAll=function(){};d.wait=function(){};d.to$tring=Object.prototype.toString;d.toString=function(){return this.__CLASS_NAME__?"["+this.__CLASS_NAME__+" object]":this.to$tring.apply(this,arguments)};a._extendedObjectMethods="equals hashCode getClass clone finalize notify notifyAll wait to$tring toString".split(" ");a.extendJO=function(b,c){c&&(b.__CLASS_NAME__=b.prototype.__CLASS_NAME__=c);if(a._supportsNativeObject)for(var d=
0;de)return"["==d.charAt(0)?a.extractClassName(d):d.replace(/[^a-zA-Z0-9]/g,"");var e=e+8,j=d.indexOf("(",e);if(0>j)break;d=d.substring(e,j);if(0<=d.indexOf("Array"))return"Array";d=d.replace(/^\s+/,"").replace(/\s+$/,"");return"anonymous"==d||""==d?"Function":d;case "object":if(b.__CLASS_NAME__)return b.__CLASS_NAME__;if(!b.constructor)break;if(!b.constructor.__CLASS_NAME__){if(b instanceof Number)return"Number";if(b instanceof Boolean)return"Boolean";
if(b instanceof Array)return"Array";d=b.toString();if("["==d.charAt(0))return a.extractClassName(d)}return a.getClassName(b.constructor,!0)}return"Object"};a.getClass=function(b){if(!b)return a._O;if("function"==typeof b)return b;if(b instanceof a.CastedNull)b=b.clazzName;else switch(typeof b){case "string":return String;case "object":if(!b.__CLASS_NAME__)return b.constructor||a._O;b=b.__CLASS_NAME__;break;default:return b.constructor}return a.evalType(b,!0)};var n=function(b,c){for(var d=0;d
d;){if(e.implementz)for(var j=e.implementz,h=0;ha;d&&(a=-a);for(var e=0;e",b=b+(e+" "+(c.exName?(c.claxxOwner?
c.claxxOwner.__CLASS_NAME__+".":"")+c.exName+j.replace(/function /,""):j)+"\n");if(c==c.caller){b+="\n";break}if(d)for(var j=c.arguments,h=0;hU.indexOf(m)&&(U+=m+"\n");j[m]||(j[m]=0);j[m]++}if(fx.lastParams==g.typeString&&fx.lastClaxxRef===k){if(g.hasCastedNull){k=[];for(d=0;dB[C]){D=!1;break}D&&
(B[y.length]=F,r.push(B))}if(0==r.length)r=null;else{sa=r[0];for(F=1;Frb(r,c)&&r.push(c);s&&(s.claxxOwner===c?(q[s.funParams]=s,s.claxxOwner=null,s.funParams=null):s.claxxOwner||(q["\\unknown"]=s));h.exClazz=c;q[l]=h;return q};duplicatedMethods={};var M=function(b,c,d){var e=b.prototype[c];if(e&&(e.claxxOwner||e.claxxReference)===b)key=b.__CLASS_NAME__+"."+c+d,(b=duplicatedMethods[key])?(c="Warning! Duplicate method found for "+key,System.out.println(c),a.alert(c),duplicatedMethods[key]=b+1):duplicatedMethods[key]=
1};a.showDuplicates=function(a){var b="",c=duplicatedMethods,d=0,e;for(e in c)1
d.length)break;if(d.indexOf(l)==d.length-l.length){d=d.substring(0,d.length-l.length+1);break}}else d=a._Loader.getClasspathFor(e,!0);else(h=a.binaryFolders)&&h.length&&(d=h[0]);d||(d="j2s/");d=d.replace(/\\/g,"/");h=d.length;h=d.charAt(h-1);"/"!=h&&(d+="/");this.base?c.url=d+b:(h=e.lastIndexOf("."),c.url=-1==h||this.base?d+b:d+e.substring(0,h).replace(/\./g,"/")+"/"+b)}return c},defineMethod:function(b,c,d){a.defineMethod(this,b,c,d)},defineStaticMethod:function(b,c,d){a.defineMethod(this,b,c,d);
this[b]=this.prototype[b]},makeConstructor:function(b,c){a.makeConstructor(this,b,c)}};var za=[];a.pu$h=function(a){a||(a=self.c$);a&&za.push(a)};a.p0p=function(){return za.pop()};a.decorateAsClass=function(b,c,d,e,h,j){var l=null;c&&(l=c.__PKG_NAME__,l||(l=c.__CLASS_NAME__));var n=(l?l+".":"")+d;a._Loader._classPending[n]&&(delete a._Loader._classPending[n],a._Loader._classCountOK++,a._Loader._classCountPending--);a._Loader&&a._Loader._checkLoad&&System.out.println("decorating class "+l+"."+d);(l=
a.unloadedClasses[n])&&(b=l);La(b,c,d);j?a.inheritClass(b,e,j):e&&a.inheritClass(b,e);h&&a.implementOf(b,h);return b};var La=function(b,c,d){var e;c?c.__PKG_NAME__?(e=c.__PKG_NAME__+"."+d,c[d]=b,c===java.lang&&a.setGlobal(d,b)):(e=c.__CLASS_NAME__+"."+d,c[d]=b):(e=d,a.setGlobal(d,b));a.extendJO(b,e);c=a.innerFunctionNames;for(d=0;da?Math.ceil(a):Math.floor(a)};a.floatToByte=a.floatToShort=a.floatToLong=a.floatToInt;a.doubleToByte=a.doubleToShort=a.doubleToLong=a.doubleToInt=a.floatToInt;a.floatToChar=function(a){return String.fromCharCode(0>a?Math.ceil(a):Math.floor(a))};a.doubleToChar=a.floatToChar;d=function(a){return function(){for(var b=
this.length,c=32==a?new Int32Array(b):new Float64Array(b);0<=--b;)c[b]=this[b];return c}};self.Int32Array&&self.Int32Array!=Array?(a.haveInt32=!0,Int32Array.prototype.sort||(Int32Array.prototype.sort=Array.prototype.sort),Int32Array.prototype.clone||(Int32Array.prototype.clone=d(32))):(Int32Array=function(a){a||(a=0);var b=Array(a);b.toString=function(){return"[object Int32Array]"};for(var c=0;cd?h:Array(d),j=d;0<=--j;)b[j]=h;return b;
default:for(var l=Array(e),j=0;jd)d=h.length;var j=0>h?Array(d):c?new Int32Array(d):new Float64Array(d);if(e)for(e=d;0<=--e;)j[e]=h[e];return j}for(h=Array(e);0<=--e;)h[e]=b[e+1];j=Array(d);for(e=
0;e=A.STATUS_LOAD_COMPLETE))j?window.setTimeout(g,25):g()}else{var m=b.getClasspathFor(c);l=e[m];if(!l)for(j=
C.length;0<=--j;)if(C[j].path==m||C[j].name==c){l=!0;break}if(l){if(g&&(l=Q(c)))if(l.onLoaded){if(g!=l.onLoaded){var n=l.onLoaded,q=g;l.onLoaded=function(){n();q()}}}else l.onLoaded=g}else{l=a.unloadedClasses[c]&&Q(c)||new A;l.name=c;l.path=m;l.isPackage=m.lastIndexOf("package.js")==m.length-10;Z(m,c,l);l.onLoaded=g;l.status=A.STATUS_KNOWN;c=!1;for(j=C.length;0<=--j;)if(C[j].status!=A.STATUS_LOAD_COMPLETE){c=!0;break}if(l.isPackage){for(j=C.length;0<=--j&&!C[j].isPackage;)C[j+1]=C[j];C[++j]=l}else c&&
C.push(l);if(!c){var r=!1;g&&(r=X,X=!0);h&&(g=null);Ea(d,l,!0);W(l,l.path,l.requiredBy,!1,g?function(){X=r;g()}:null)}}}};var H=function(a){return null!=window[a+".registered"]&&!P["@"+a]};b.loadPackage=function(a,c){c||(c=null);window[a+".registered"]=!1;b.loadPackageClasspath(a,b.J2SLibBase||(b.J2SLibBase=b.getJ2SLibBase()||"j2s/"),!0,c)};b.jarClasspath=function(a,b){b instanceof Array||(b=[classes]);D(b);for(var c=b.length;0<=--c;)P["#"+b[c]]=a;P["$"+a]=b};b.registerPackages=function(c,d){for(var e=
b.getClasspathFor(c+".*",!0),g=0;g>");e[d]=!0;Ka(C,d);L=!0;ta=!1;b._checkLoad&&System.out.println("\t"+d+(g?"\n -- required by "+g:"")+" ajax="+L+" async="+ta);b.onScriptLoading(d);if(L&&!ta){g=l._getFileData(d);try{T(d,g)}catch(n){alert(n+" loading file "+d+" "+c.name+" "+a.getStackTrace())}m&&m()}else System.out.println("for file "+d+" fSuccess = "+(m?m.toString():"")),c={dataType:"script",async:!0,type:"GET",url:d,success:aa(d,!1,m),error:aa(d,!0,m)},h++,l.$ajax(c)},aa=function(c,d,e){a.getStackTrace();return function(){s&&
this.timeoutHandle&&(window.clearTimeout(this.timeoutHandle),this.timeoutHandle=null);0q;q++)for(;m=l[q](A.STATUS_CONTENT_LOADED);)1==q&&n===m&&(m.status=A.STATUS_LOAD_COMPLETE),updateNode(m),n=m;for(;!(pa=[],!qa(d,c)););for(q=0;2>q;q++)for(n=null;(m=l[q](A.STATUS_DECLARED))&&n!==m;)updateNode(n=m);n=[];for(q=0;2>q;q++)for(;m=l[q](A.STATUS_DECLARED);)n.push(m),m.status=A.STATUS_LOAD_COMPLETE;if(n.length){for(q=0;q=A.STATUS_DECLARED););if(0<=g){if(b._checkLoad){var k;System.out.println("cycle found loading "+c+" for "+a)}for(;gk;k++){j=h[k];for(g=j.length;0<=--g;)if(j[g].status==A.STATUS_DECLARED&&qa(j[g],c))return!0}d.length=e;return!1};b._classCountPending=0;b._classCountOK=0;b._classPending={};b.showPending=function(){var a=[],c;for(c in b._classPending){var d=Q(c);d?(a.push(d),System.out.println(ra("",
"",d,"",0))):alert("No node for "+c)}return a};var ra=function(a,b,c,d,e){b+="--"+c.name;a+=b+"\n";if(5=A.STATUS_LOAD_COMPLETE)xa(a);else{var c=!0;if(a.musts.length&&a.declaration)for(var d=a.musts.length,
e=d;0<=--e;){var g=a.musts[e];g.requiredBy=a;if(g.statusA.STATUS_KNOWN&&!a.declaration||ua(a.musts,A.STATUS_LOAD_COMPLETE)&&ua(a.optionals,A.STATUS_LOAD_COMPLETE)){c=A.STATUS_LOAD_COMPLETE;if(!Pa(a,c))return!1;if(a.declaration&&a.declaration.clazzList){h=0;j=a.declaration.clazzList;for(l=j.length;hc.indexOf("Opera")&&document.all?0==h?d:j:0>c.indexOf("Gecko")?h==e.offsetHeight&&h==e.scrollHeight?d:j:d;ua!=c&&(ua=c,C.style.bottom=ua+4+"px");b&&ra()}};var qa=function(a){if(a)for(var b=a.childNodes.length;0<=--b;){var c=a.childNodes[b];if(c){c.childNodes&&c.childNodes.length&&qa(c);try{a.removeChild(c)}catch(d){}}}},
ib=function(a){ba&&a==aa.DEFAULT_OPACITY&&(window.clearTimeout(ba),ba=null);fa=a;navigator.userAgent.toLowerCase();C.style.filter="Alpha(Opacity="+a+")";C.style.opacity=a/100},tb=function(){aa.hideMonitor()},kb=!1,ra=function(){"none"!=C.style.display&&(fa==aa.DEFAULT_OPACITY?(ba=window.setTimeout(function(){ra()},750),fa-=5):0<=fa-10?(ib(fa-10),ba=window.setTimeout(function(){ra()},40)):C.style.display="none")},D=a.Console,V=System;D.maxTotalLines=1E4;D.setMaxTotalLines=function(a){D.maxTotalLines=
0D.maxTotalLines){for(var d=0;dc.childNodes.length)l=document.createElement("DIV"),c.appendChild(l),l.style.whiteSpace="nowrap",D.linesCount++;else try{l=c.childNodes[c.childNodes.length-1]}catch(n){l=document.createElement("DIV"),c.appendChild(l),l.style.whiteSpace="nowrap",D.linesCount++}var q=document.createElement("SPAN");l.appendChild(q);q.style.whiteSpace="nowrap";b&&(q.style.color=b);l=h[d];0==l.length&&(l=W);q.appendChild(document.createTextNode(l));D.pinning||(c.scrollTop+=100);D.metLineBreak=d!=j||
e}d=c.parentNode.className;!D.pinning&&(d&&-1!=d.indexOf("composite"))&&(c.parentNode.scrollTop=c.parentNode.scrollHeight);D.lastOutputTime=(new Date).getTime()};D.clear=function(){try{D.metLineBreak=!0;var a=window["j2s.lib"],b=a&&a.console;if(b&&(b=document.getElementById(b))){for(var c=b.childNodes,d=c.length;0<=--d;)b.removeChild(c[d]);D.linesCount=0}}catch(e){}};a.alert=function(a){D.consoleOutput(a+"\r\n")};V.out.print=function(a){D.consoleOutput(a)};V.out.println=function(a){D.consoleOutput("undefined"==
typeof a?"\r\n":null==a?"null\r\n":a+"\r\n")};V.out.write=function(a,b,c){V.out.print(String.instantialize(a).substring(b,b+c))};V.err.__CLASS_NAME__="java.io.PrintStream";V.err.print=function(a){D.consoleOutput(a,"red")};V.err.println=function(a){D.consoleOutput("undefined"==typeof a?"\r\n":null==a?"null\r\n":a+"\r\n","red")};V.err.write=function(a,b,c){V.err.print(String.instantialize(a).substring(b,b+c))}}(Clazz,Jmol))};Jmol.___JmolDate="$Date: 2015-06-19 12:14:06 -0500 (Fri, 19 Jun 2015) $";
Jmol.___fullJmolProperties="src/org/jmol/viewer/Jmol.properties";Jmol.___JmolVersion="14.3.15_2015.06.19b";
| |