c.indexOf("://")){var f=g.location.href,d=f.lastIndexOf("/");c=f.substring(0,d+1)+c}f=a._serverUrl+"?call=getImageForFileLoad&file="+escape(c)+"&width="+this._width+"&height="+this._height+"¶ms="+encodeURIComponent(e+";frank off;");a._getElement(this,"image").src=f};f._searchDatabase=function(c,e,f){c.indexOf("?")==
c.length-1?a._getInfoFromDatabase(this,e,c.split("?")[0]):(this._showInfo(!1),f||(f=a._getScriptForDatabase(e)),c=a._serverUrl+"?call=getImageFromDatabase&database="+e+"&query="+c+"&width="+this._width+"&height="+this._height+"&script="+encodeURIComponent(f+";frank off;"),a._getElement(this,"image").src=c)}})(Jmol,document);
(function(a){var g=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:""};
g._addScript=function(a,c){var e=g._scripts.length;g._scripts[e]=[a,c];return e};g._getIdForControl=function(a,c){return"string"==typeof a?a:!c||!a._canScript||a._canScript(c)?a._id:null};g._radio=function(a,c,e,h,d,b,l,k){var m=g._getIdForControl(a,c);if(null==m)return null;++g._radioCount;void 0!=b&&null!=b||(b="jmolRadioGroup"+(g._radioGroupCount-1));if(!c)return"";void 0!=l&&null!=l||(l="jmolRadio"+(g._radioCount-1));void 0!=e&&null!=e||(e=c.substring(0,32));d||(d="");a="";g._actions[l]=
g._addScript(m,c);c='";0<=e.toLowerCase().indexOf("")&&(c+=a,a="");return c+('"+a+d)};g._scriptExecute=function(f,c){var e=a._applets[c[0]],g=c[1];if("object"==typeof g)g[0](f,g,
e);else"function"==typeof g?g(e):a.script(e,g)};g.__checkScript=function(a,c){var e=0<=c.value.indexOf("JSCONSOLE ")||""===a._scriptCheck(c.value);c.style.color=e?"black":"red";return e};g.__getCmd=function(a,c){if(c._cmds&&c._cmds.length){var e=c._cmds[c._cmdpt=(c._cmdpt+c._cmds.length+a)%c._cmds.length];setTimeout(function(){c.value=e},10);c._cmdadd=1;c._cmddir=a}};g._commandKeyPress=function(f,c,e){f=13==f?13:window.event?window.event.keyCode:f?f.keyCode||f.which:0;var h=document.getElementById(c),
d=a._applets[e];switch(f){case 13:c=h.value;if(g.__checkScript(d,h)&&(g._scriptExecute(h,[e,c])||1))h._cmds||(h._cmds=[],h._cmddir=0,h._cmdpt=-1,h._cmdadd=0),c&&0==h._cmdadd?(++h._cmdpt,h._cmds.splice(h._cmdpt,0,c),h._cmdadd=0,h._cmddir=0):h._cmdadd=0,h.value="";return!1;case 27:return setTimeout(function(){h.value=""},20),!1;case 38:g.__getCmd(-1,h);break;case 40:g.__getCmd(1,h);break;default:h._cmdadd=0}setTimeout(function(){g.__checkScript(d,h)},20);return!0};g._click=function(a,c){g._element=
a;1==arguments.length&&(c=g._actions[a.id]);g._scriptExecute(a,g._scripts[c])};g._menuSelected=function(a){var c=a.value;if(void 0!=c)g._scriptExecute(a,g._scripts[c]);else{c=a.length;if("number"==typeof c)for(var e=0;e";a._debugAlert&&alert(c);return a._documentWrite(c)};g._getCheckbox=function(f,c,e,h,d,b,l){var k=g._getIdForControl(f,c);null!=k&&(k=g._getIdForControl(f,e));if(null==k)return"";void 0!=b&&null!=b||(b="jmolCheckbox"+g._checkboxCount);++g._checkboxCount;if(void 0==c||null==c||void 0==e||null==e)alert("jmolCheckbox requires two scripts");else if(void 0==h||null==h)alert("jmolCheckbox requires a label");else return g._actions[b]=[g._addScript(k,c),g._addScript(k,e)],f="",
d='",0<=h.toLowerCase().indexOf("")&&(d+=f,f=""),d+='"+f,a._debugAlert&&alert(d),a._documentWrite(d)};g._getCommandInput=function(f,c,e,h,d){f=g._getIdForControl(f,"x");if(null==f)return"";
void 0!=h&&null!=h||(h="jmolCmd"+g._cmdCount);void 0!=c&&null!=c||(c="Execute");void 0!=e&&!isNaN(e)||(e=60);++g._cmdCount;c='";a._debugAlert&&alert(c);return a._documentWrite(c)};g._getLink=
function(f,c,e,h,d){f=g._getIdForControl(f,c);if(null==f)return"";void 0!=h&&null!=h||(h="jmolLink"+g._linkCount);void 0!=e&&null!=e||(e=c.substring(0,32));++g._linkCount;c=g._addScript(f,c);e='"+e+"";a._debugAlert&&alert(e);return a._documentWrite(e)};
g._getMenu=function(f,c,e,h,d){var b=g._getIdForControl(f,null);void 0!=h&&null!=h||(h="jmolMenu"+g._menuCount);++g._menuCount;b=typeof c;if(null!=b&&"object"==b&&c.length){var l=c.length;"number"!=typeof e||1==e?e=null:0>e&&(e=l);e='";a._debugAlert&&alert(e);return a._documentWrite(e)}};g._getRadio=function(f,c,e,h,d,b,l,k){0==g._radioGroupCount&&++g._radioGroupCount;b||(b="jmolRadioGroup"+(g._radioGroupCount-1));f=g._radio(f,c,e,h,d,b,l?l:b+"_"+g._radioCount,k?k:0);if(null==
f)return"";a._debugAlert&&alert(f);return a._documentWrite(f)};g._getRadioGroup=function(f,c,e,h,d,b){var l=typeof c;if("object"!=l||null==l||!c.length)alert("invalid arrayOfRadioButtons");else{void 0!=e&&null!=e||(e=" ");var k=c.length;++g._radioGroupCount;h||(h="jmolRadioGroup"+(g._radioGroupCount-1));for(var m="",q=0;q";a._debugAlert&&alert(m);return a._documentWrite(m)}}})(Jmol);
(function(a){var g=function(a){a="&"+a+"=";return decodeURI(("&"+document.location.search.substring(1)+a).split(a)[1].split("&")[0])};a._j2sPath=g("_J2S");a._jarFile=g("_JAR");a._use=g("_USE");a.getVersion=function(){return a._jmolInfo.version};a.getApplet=function(f,c,e){return a._Applet._get(f,c,e)};a.getJMEApplet=function(f,c,e,g){return a._JMEApplet._get(f,c,e,g)};a.getJSVApplet=function(f,c,e){return a._JSVApplet._get(f,c,e)};a.loadFile=function(a,c,e){a._loadFile(c,e)};a.script=function(a,c){a._checkDeferred(c)||
a._script(c)};a.scriptCheck=function(a,c){return a&&a._scriptCheck&&a._ready&&a._scriptCheck(c)};a.scriptWait=function(a,c){return a._scriptWait(c)};a.scriptEcho=function(a,c){return a._scriptEcho(c)};a.scriptMessage=function(a,c){return a._scriptMessage(c)};a.scriptWaitOutput=function(a,c){return a._scriptWait(c)};a.scriptWaitAsArray=function(a,c){return a._scriptWaitAsArray(c)};a.search=function(a,c,e){a._search(c,e)};a.evaluateVar=function(a,c){2<=arguments.length||(c="");return a._getPropertyAsArray("variableInfo",
c)};a.evaluate=function(a,c){return a._evaluate(c)};a.getAppletHtml=function(f,c){if(c){var e=a._document;a._document=null;f=a.getApplet(f,c);a._document=e}return f._code};a.getPropertyAsArray=function(a,c,e){return a._getPropertyAsArray(c,e)};a.getPropertyAsJavaObject=function(a,c,e){return a._getPropertyAsJavaObject(c,e)};a.getPropertyAsJSON=function(a,c,e){return a._getPropertyAsJSON(c,e)};a.getPropertyAsString=function(a,c,e){return a._getPropertyAsString(c,e)};a.getStatus=function(a,c){return a._getStatus(c)};
a.resizeApplet=function(a,c){return a._resizeApplet(c)};a.restoreOrientation=function(a,c){return a._restoreOrientation(c)};a.restoreOrientationDelayed=function(a,c,e){return a._restoreOrientationDelayed(c,e)};a.saveOrientation=function(a,c){return a._saveOrientation(c)};a.say=function(a){alert(a)};a.clearConsole=function(a){a._clearConsole()};a.getInfo=function(a){return a._info};a.setInfo=function(a,c,e){a._info=c;2")};a.jmolButton=function(f,c,e,g,d){return a.controls._getButton(f,c,e,g,d)};a.jmolCheckbox=function(f,c,e,g,d,b,l){return a.controls._getCheckbox(f,c,e,g,d,b,l)};a.jmolCommandInput=function(f,c,e,g,d){return a.controls._getCommandInput(f,c,e,g,d)};a.jmolHtml=function(f){return a._documentWrite(f)};a.jmolLink=function(f,c,e,g,d){return a.controls._getLink(f,c,e,g,d)};a.jmolMenu=function(f,c,e,g,d){return a.controls._getMenu(f,
c,e,g,d)};a.jmolRadio=function(f,c,e,g,d,b,l,k){return a.controls._getRadio(f,c,e,g,d,b,l,k)};a.jmolRadioGroup=function(f,c,e,g,d,b){return a.controls._getRadioGroup(f,c,e,g,d,b)};a.setCheckboxGroup=function(f,c){a.controls._cbSetCheckboxGroup(f,c,arguments)};a.setDocument=function(f){a._document=f};a.setXHTML=function(f){a._isXHTML=!0;a._XhtmlElement=null;a._XhtmlAppendChild=!1;f&&(a._XhtmlElement=document.getElementById(f),a._XhtmlAppendChild=!0)};a.setAppletCss=function(f,c){null!=f&&(a.controls._appletCssClass=
f);a.controls._appletCssText=c?c+" ":f?'class="'+f+'" ':""};a.setButtonCss=function(f,c){null!=f&&(a.controls._buttonCssClass=f);a.controls._buttonCssText=c?c+" ":f?'class="'+f+'" ':""};a.setCheckboxCss=function(f,c){null!=f&&(a.controls._checkboxCssClass=f);a.controls._checkboxCssText=c?c+" ":f?'class="'+f+'" ':""};a.setRadioCss=function(f,c){null!=f&&(a.controls._radioCssClass=f);a.controls._radioCssText=c?c+" ":f?'class="'+f+'" ':""};a.setLinkCss=function(f,c){null!=f&&(a.controls._linkCssClass=
f);a.controls._linkCssText=c?c+" ":f?'class="'+f+'" ':""};a.setMenuCss=function(f,c){null!=f&&(a.controls._menuCssClass=f);a.controls._menuCssText=c?c+" ":f?'class="'+f+'" ':""};a.setAppletSync=function(f,c,e){a._syncedApplets=f;a._syncedCommands=c;a._syncedReady={};a._isJmolJSVSync=e};a.setGrabberOptions=function(f){a._grabberOptions=f};a.setAppletHtml=function(f,c){f._code&&(a.$html(c,f._code),f._init&&!f._deferApplet&&f._init())};a.coverApplet=function(a,c){a._cover&&a._cover(c)}})(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(a){a.debuggingBH=!1;a.profile=window["j2s.doProfile"]&&self.JSON?{}:null;a.getProfile=function(){var d="";if(a.profile){var d=[],b;for(b in a.profile){var c=""+a.profile[b];d.push(" ".substring(c.length)+c+"\t"+b)}d=d.sort().reverse().join("\r\n");a.profile={}}return d};a.addProfile=function(d,
b,c){d=d.__CLASS_NAME__+" "+b+" "+JSON.stringify(c);a.profile[d]||(a.profile[d]=0);a.profile[d]++};NullObject=function(){};JavaObject=Object;a.supportsNativeObject=window["j2s.object.native"];JavaObject=a.supportsNativeObject?function(){}:Object;ClazzLoaderProgressMonitor=ClassLoaderProgressMonitor={};a.Console={};a.dateToString=Date.prototype.toString;a.getSignature=function(a,b,c,e){return e?a[b]=c:a[b]};a.addProto=function(d,b,c){a.getSignature(d,b,c,!0)};var g=JavaObject.prototype;a.addProto(g,
"equals",function(a){return this==a});a.addProto(g,"hashCode",function(){try{return this.toString().hashCode()}catch(a){var b=":",c;for(c in this)b+=c+":";return b.hashCode()}});a.addProto(g,"getClass",function(){return a.getClass(this)});a.addProto(g,"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};a.addProto(g,"finalize",function(){});a.addProto(g,"notify",function(){});a.addProto(g,"notifyAll",function(){});a.addProto(g,"wait",
function(){});a.addProto(g,"to$tring",Object.prototype.toString);a.addProto(g,"toString",function(){return null!=this.__CLASS_NAME__?"["+this.__CLASS_NAME__+" object]":this.to$tring.apply(this,arguments)});if(a.supportsNativeObject){a.extendedObjectMethods="equals hashCode getClass clone finalize notify notifyAll wait to$tring toString".split(" ");for(g=0;ge)return"["==c.charAt(0)?a.extractClassName(c):c.replace(/[^a-zA-Z0-9]/g,"");var e=e+8,f=c.indexOf("(",e);if(0>f)return"Object";c=c.substring(e,f);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 a.extractClassName(c)}}return a.getClassName(d.constructor,!0)};a.getClass=function(d){if(null==d)return JavaObject;if("function"==typeof d)return d;var b=null;if(d instanceof a.CastedNull)b=
d.clazzName;else{if("string"==typeof d)return String;if("object"==typeof d)if(null!=d.__CLASS_NAME__)b=d.__CLASS_NAME__;else return null==d.constructor?JavaObject:d.constructor}return null!=b?a.evalType(b,!0):d.constructor};a.extendsProperties=function(d,b){for(var c in b)"b$"!=c&&("prototype"!=c&&"superClazz"!=c&&"__CLASS_NAME__"!=c&&"implementz"!=c&&!a.checkInnerFunction(b,c))&&(d[c]=b[c])};a.checkInnerFunction=function(d,b){for(var c=0;cc;){if(null!=e.implementz)for(var f=
e.implementz,g=0;gf[j]){g=!1;break}g&&(f[b.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=a.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?b.url=c+d:(f=e.lastIndexOf("."),b.url=-1==f||null!=this.base?c+d:c+e.substring(0,f).replace(/\./g,"/")+"/"+d)}return b},defineMethod:function(d,b,c){a.defineMethod(this,d,b,c)},defineStaticMethod:function(d,b,c){a.defineMethod(this,d,b,c);this[d]=this.prototype[d]},
makeConstructor:function(d,b){a.makeConstructor(this,d,b)}};a.decorateFunction=function(d,b,c){null!=window.ClazzLoader&&ClazzLoader.checkInteractive();var e=null;null==b?(e=c,window[c]=d):null!=b.__PKG_NAME__?(e=b.__PKG_NAME__+"."+c,b[c]=d,b===java.lang&&(window[c]=d)):(e=b.__CLASS_NAME__+"."+c,b[c]=d);a.extendJO(d,e);b=a.innerFunctionNames;for(c=0;c")+"\n",c=c.caller;return b};Number.prototype._numberToString=Number.prototype.toString;a.declarePackage("java.io");a.declarePackage("java.lang.annotation");a.declarePackage("java.lang.instrument");a.declarePackage("java.lang.management");
a.declarePackage("java.lang.reflect");a.declarePackage("java.lang.ref");java.lang.ref.reflect=java.lang.reflect;a.declarePackage("java.util");a.declareInterface(java.io,"Closeable");a.declareInterface(java.io,"DataInput");a.declareInterface(java.io,"DataOutput");a.declareInterface(java.io,"Externalizable");a.declareInterface(java.io,"Flushable");a.declareInterface(java.io,"Serializable");a.declareInterface(java.lang,"Iterable");a.declareInterface(java.lang,"CharSequence");a.declareInterface(java.lang,
"Cloneable");a.declareInterface(java.lang,"Appendable");a.declareInterface(java.lang,"Comparable");a.declareInterface(java.lang,"Runnable");a.declareInterface(java.util,"Comparator");java.lang.ClassLoader={__CLASS_NAME__:"ClassLoader"};if(null!=window.Clazz&&null==window.Clazz.unloadClass){a.MethodNotFoundException=function(d,b,c,e){d="";null!=e&&(d=e.substring(1).replace(/\\/g,","));this.message=(null!=c&&"construct"!=c?"Method":"Constructor")+" "+a.getClassName(b,!0)+"."+c+"("+d+") is not found!";
this.toString=function(){return"MethodNotFoundException:"+this.message}};a.prepareCallback=function(d,b){var c=b[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 g=a.getClassName(c,!0);e[g.replace(/org\.eclipse\.swt\./,"$wt.")]=c;for(g=a.getClass(c);null!=g.superClazz;)g=g.superClazz,e[a.getClassName(g,!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
a?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;self.Int32Array&&self.Int32Array!=Array?(a.haveInt32=!0,Int32Array.prototype.sort||(Int32Array.prototype.sort=Array.prototype.sort)):(Int32Array=function(a){a||(a=0);var b=Array(a);b.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===b&&a.haveInt32)return new Int32Array(c);if(!1===b&&a.haveFloat64)return new Float64Array(c);if(b==Array&&null==f)return Array(c);for(var d=!0===b?new Int32Array:!1===b?new Float64Array:Array(c),g=
c;0<=--g;)d[g]=f;return d}for(var j=Array(e),g=0;gf)return Array(c);try{return b?new Int32Array(c):new Float64Array(c)}catch(g){alert(c+" "+arguments.callee.caller.arguments.callee.caller+g)}}for(f=Array(e);0<=
--e;)f[e]=d[e+1];for(var j=Array(c),e=0;e>24,c=(a&
16711680)>>16,e=(a&65280)>>8;a&=255;return 0!=(b&128)?-(((b&127)<<24)+(c<<16)+(e<<8)+a+1):(b<<24)+(c<<16)+(e<<8)+a};a.shortCast=function(){var a=(n&65280)>>8,b=n&255;return 0!=(a&128)?-(((a&127)<<8)+b+1):(a<<8)+b4};a.byteCast=function(a){return 0!=(a&128)?-((a&127)+1):a&255};a.charCast=function(a){return String.fromCharCode(a&255).charAt(0)};a.floatCast=function(a){return a};a.longMasks=[];a.longReverseMasks=[];a.longBits=[];g=[1];for(f=1;53>f;f++)g[f]=g[f-1]+g[f-1];a.longBits=g;a.longMasks[52]=g[52];
for(f=51;0<=f;f--)a.longMasks[f]=a.longMasks[f+1]+g[f];a.longReverseMasks[0]=g[0];for(f=1;52>f;f++)a.longReverseMasks[f]=a.longReverseMasks[f-1]+g[f];a.longLeftShift=function(d,b){if(0==b)return d;if(64<=b)return 0;if(52>b:d>>b};a.intRightShift=function(a,b){return a>>b};a.long0RightShift=function(a,b){return a>>>b};a.int0RightShift=function(a,b){return a>>>b};$_L=a.load;$_W=a.declareAnonymous;$_T=a.declareType;$_J=a.declarePackage;$_C=a.decorateAsClass;$_Z=a.instantialize;$_I=a.declareInterface;$_D=a.isClassDefined;$_H=
a.pu$h;$_P=a.p0p;$_B=a.prepareCallback;$_N=a.innerTypeInstance;$_K=a.makeConstructor;$_U=a.superCall;$_R=a.superConstructor;$_M=a.defineMethod;$_V=a.overrideMethod;$_S=a.defineStatics;$_E=a.defineEnumConstant;$_F=a.cloneFinals;$_Y=a.prepareFields;$_A=a.newArray;$_O=a.instanceOf;$_G=a.inheritArgs;$_X=a.checkPrivateMethod;$_Q=a.makeFunction;$_s=a.registerSerializableFields;$_k=a.overrideConstructor;a.declarePackage("java.lang.reflect");a.declarePackage("java.security");a.innerFunctionNames=a.innerFunctionNames.concat("getSuperclass isAssignableFrom getMethods getMethod getDeclaredMethods getDeclaredMethod getConstructor getModifiers isArray newInstance".split(" "));
a.innerFunctions.getSuperclass=function(){return this.superClazz};a.innerFunctions.isAssignableFrom=function(d){return 0<=a.getInheritedLevel(d,this)};a.innerFunctions.getConstructor=function(){return new java.lang.reflect.Constructor(this,[],[],java.lang.reflect.Modifier.PUBLIC)};a.innerFunctions.getDeclaredMethods=a.innerFunctions.getMethods=function(){var a=[],b=this.prototype,c;for(c in b)"function"==typeof b[c]&&null==b[c].__CLASS_NAME__&&(a[a.length]=new java.lang.reflect.Method(this,c,[],java.lang.Void,
[],java.lang.reflect.Modifier.PUBLIC));b=this;for(c in b)"function"==typeof b[c]&&null==b[c].__CLASS_NAME__&&(a[a.length]=new java.lang.reflect.Method(this,c,[],java.lang.Void,[],java.lang.reflect.Modifier.PUBLIC|java.lang.reflect.Modifier.STATIC));return a};a.innerFunctions.getDeclaredMethod=a.innerFunctions.getMethod=function(a){var b=this.prototype,c;for(c in b)if(a==c&&"function"==typeof b[c]&&null==b[c].__CLASS_NAME__)return new java.lang.reflect.Method(this,c,[],java.lang.Void,[],java.lang.reflect.Modifier.PUBLIC);
b=this;for(c in b)if(a==c&&"function"==typeof b[c]&&null==b[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};a.innerFunctions.getModifiers=function(){return java.lang.reflect.Modifier.PUBLIC};a.innerFunctions.isArray=function(){return!1};a.innerFunctions.newInstance=function(){return new this};g=a.innerFunctionNames;for(f=0;fb.loadingTimeLag?0:b.loadingTimeLag)):(a.onreadystatechange=null,0<=b.loadingTimeLag?window.setTimeout(d,b.loadingTimeLag):b.xhrOnload(a,c));c=a=null}}};b.loadingNextByPath=function(a){0<=b.loadingTimeLag?window.setTimeout(function(){b.tryToLoadNext(a)},b.loadingTimeLag):b.tryToLoadNext(a)};b.ieToLoadScriptAgain=function(a,c){return window.setTimeout(function(){b.takeAnotherTry&&(b.failedScripts[a]=
0,b.loadedScripts[a]=!1,0=c.STATUS_DECLARED){f=g;break}d[d.length]=a;if(-1!=f){for(g=f;g=c.STATUS_OPTIONALS_LOADED)b.destroyClassNode(a);else{var d=!1;if(null==a.musts||0==a.musts.length||null==a.declaration)d=!0;else for(var d=!0,e=a.musts.length,f=e-1;0<=f;f--){var g=a.musts[f];g.requiredBy=a;if(g.statusc.STATUS_KNOWN&&null==a.declaration)k=!0;else{k=!0;for(f=0;f=d||b.updateNode(f)}d==c.STATUS_OPTIONALS_LOADED&&
(a.parents=[])}};b.findNextMustClass=function(a,d){if(null!=a){if(null!=a.musts&&0!=a.musts.length)for(var e=0;e=c.STATUS_OPTIONALS_LOADED))h?window.setTimeout(f,25):f()};b.loadJ2SApp=function(c,e,f){if(null!=c){var g=c;"$"==c.charAt(0)&&(g="org.eclipse.s"+c.substring(1));var h=-1;if(-1!=(h=g.indexOf("@")))c=g.substring(h+1),b.setPrimaryFolder(c),g=g.substring(0,h),h=g.lastIndexOf("."),-1!=h&&(h=g.substring(0,h),b.packageClasspath(h,c));if(null==e||!(e instanceof Array))e=
[];if(null==f){var l=g,k=e;f=function(){a.evalType(l).main(k)}}else f=f(g,e);b.loadClass(g,f)}};b.loadJUnit=function(c,e){b.loadJ2SApp(c,e,function(c){return function(){b.loadClass("junit.textui.TestRunner",function(){junit.textui.TestRunner.run(a.evalType(c))})}})};b.runtimeLoaded=function(){if(0==b.pkgRefCount&&b.isClassDefined(b.runtimeKeyClass)){for(var a=b.queueBe4KeyClazz,c=0;c=a?999999:a};h.maxLatency=40;h.setMaxLatency=function(a){h.maxLatency=0>=a?40:a};h.pinning=!1;h.enablePinning=function(a){h.pinning=a};h.linesCount=0;h.metLineBreak=!1;h.splitNeedFixed=2!="\n".split(/\n/).length;h.splitIntoLineByR=function(a){for(var b=[],c=0,e=-1;;)if(c=a.indexOf("\r",e+1),-1!=c){if(b[b.length]=a.substring(e+1,c),e=c,e+1==a.length){b[b.length]="";break}}else{b[b.length]=a.substring(e+1);break}return b};h.splitIntoLines=function(a){var b=[];if(null==a)return b;for(var c=0,e=-1;;){var c=
a.indexOf("\n",e+1),f=null;-1!=c?(f=0h.maxTotalLines){for(var e=0;ec.childNodes.length)p=document.createElement("DIV"),c.appendChild(p),p.style.whiteSpace="nowrap",h.linesCount++;else try{p=c.childNodes[c.childNodes.length-1]}catch(r){p=document.createElement("DIV"),c.appendChild(p),p.style.whiteSpace="nowrap",h.linesCount++}var s=document.createElement("SPAN");p.appendChild(s);
s.style.whiteSpace="nowrap";null!=b&&(s.style.color=b);0==g[e].length&&(g[e]=String.fromCharCode(160));s.appendChild(document.createTextNode(g[e]));h.pinning||(c.scrollTop+=100);h.metLineBreak=e!=g.length-1?!0:f}f=c.parentNode.className;!h.pinning&&(null!=f&&-1!=f.indexOf("composite"))&&(c.parentNode.scrollTop=c.parentNode.scrollHeight);h.lastOutputTime=(new Date).getTime()};h.clear=function(){try{h.metLineBreak=!0;var a=window["j2s.lib"],b=a&&a.console;if(b&&(b=document.getElementById(b))){for(var c=
b.childNodes,e=c.length-1;0<=e;e--)b.removeChild(c[e]);h.linesCount=0}}catch(f){}};a.alert=function(a){h.consoleOutput(a+"\r\n")};h.c160=String.fromCharCode(160);h.c160+=h.c160+h.c160+h.c160;System.out.print=function(a){h.consoleOutput(a)};System.out.println=function(a){h.consoleOutput("undefined"==typeof a?"\r\n":null==a?"null\r\n":a+"\r\n")};System.err.__CLASS_NAME__="java.io.PrintStream";System.err.print=function(a){h.consoleOutput(a,"red")};System.err.println=function(a){h.consoleOutput("undefined"==
typeof a?"\r\n":null==a?"null\r\n":a+"\r\n","red")};a.setConsoleDiv=function(a){window["j2s.lib"]&&(window["j2s.lib"].console=a)}}(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(" ")))};
| |