(function(a){function j(a){try{return a?new window.ActiveXObject("Microsoft.XMLHTTP"):new window.XMLHttpRequest}catch(c){}}a.ajaxSettings.xhr=void 0===window.ActiveXObject?j:function(){return(this.url==document.location||0==this.url.indexOf("http")||!this.isLocal)&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&j()||j(1)};a.ajaxTransport("+script",function(a){var c,b=document.head||jQuery("head")[0]||document.documentElement;return{send:function(f,k){c=document.createElement("script");a.scriptCharset&&
(c.charset=a.scriptCharset);c.src=a.url;c.onload=c.onreadystatechange=function(a,b){if(b||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,c.parentNode&&c.parentNode.removeChild(c),c=null,b||k(200,"success")};b.insertBefore(c,b.firstChild)},abort:function(){if(c)c.onload(void 0,!0)}}});a.extend(a.support,{iecors:!!window.XDomainRequest});a.support.iecors?a.ajaxTransport(function(a){return{send:function(c,b){var f=new window.XDomainRequest;f.onload=function(){b(200,
"OK",{text:f.responseText},{"Content-Type":f.contentType})};a.xhrFields&&(f.onerror=a.xhrFields.error,f.ontimeout=a.xhrFields.timeout);f.open(a.type,a.url);f.send(a.hasContent&&a.data||null)},abort:function(){xdr.abort()}}}):(a.ajaxSetup({accepts:{binary:"text/plain; charset=x-user-defined"},responseFields:{binary:"response"}}),a.ajaxTransport("binary",function(a){var c;return{send:function(b,f){var k=a.xhr();console.log("xhr.open binary async="+a.async+" url="+a.url);k.open(a.type,a.url,a.async);
var j=!1;try{k.hasOwnProperty("responseType")&&(k.responseType="arraybuffer",j=!0)}catch(m){}try{!j&&k.overrideMimeType&&k.overrideMimeType("text/plain; charset=x-user-defined")}catch(d){}!a.crossDomain&&!b["X-Requested-With"]&&(b["X-Requested-With"]="XMLHttpRequest");try{for(var e in b)k.setRequestHeader(e,b[e])}catch(h){}k.send(a.hasContent&&a.data||null);c=function(){var d=k.status,e="",h=k.getAllResponseHeaders(),b={};try{if(c&&4===k.readyState){c=void 0;try{b.text="string"===typeof k.responseText?
k.responseText:null}catch(j){}try{b.binary=k.response}catch(l){}try{e=k.statusText}catch(m){e=""}!d&&a.isLocal&&!a.crossDomain?d=b.text?200:404:1223===d&&(d=204);f(d,e,b,h)}}catch(u){alert(u),f(-1,u)}};a.async?4===k.readyState?setTimeout(c):k.onreadystatechange=c:c()},abort:function(){}}}))})(jQuery);
(function(a,j,g,c){function b(b,g){function l(d){a(m).each(function(){self.Jmol&&(0<=g.indexOf("mouseup")||0<=g.indexOf("touchend"))&&Jmol._setMouseOwner(null);var h=a(this);this!==d.target&&!h.has(d.target).length&&h.triggerHandler(g,[d.target,d])})}g=g||b+c;var m=a(),d=b+"."+g+"-special-event";a.event.special[g]={setup:function(){m=m.add(this);1===m.length&&a(j).bind(d,l)},teardown:function(){self.Jmol&&Jmol._setMouseOwner(null);m=m.not(this);0===m.length&&a(j).unbind(d)},add:function(a){var d=
a.handler;a.handler=function(a,e){a.target=e;d.apply(this,arguments)}}}}a.map(g.split(" "),function(a){b(a)});b("focusin","focus"+c);b("focusout","blur"+c)})(jQuery,document,"click mousemove mouseup touchmove touchend","outjsmol");"undefined"==typeof jQuery&&alert("Note -- JSmoljQuery is required for JSmol, but it's not defined.");self.Jmol||(Jmol={});
Jmol._version||(Jmol=function(a){var j=function(a){return{rear:a++,header:a++,main:a++,image:a++,front:a++,fileOpener:a++,coverImage:a++,dialog:a++,menu:a+9E4,console:a+91E3,consoleImage:a+91001,monitorZIndex:a+99999}},j={_version:"$Date: 2021-05-26 21:16:02 -0500 (Wed, 26 May 2021) $",_alertNoBinary:!0,_allowedJmolSize:[25,2048,300],_appletCssClass:"",_appletCssText:"",_fileCache:null,_jarFile:null,_j2sPath:null,_use:null,_j2sLoadMonitorOpacity:90,_applets:{},_asynchronous:!0,_ajaxQueue:[],_persistentMenu:!1,
_getZOrders:j,_z:j(Jmol.z||9E3),_debugCode:!0,_debugCore:!1,db:{_databasePrefixes:"$=:",_fileLoadScript:";if (_loadScript = '' && defaultLoadScript == '' && _filetype == 'Pdb') { select protein or nucleic;cartoons Only;color structure; select * };",_nciLoadScript:";n = ({molecule=1}.length < {molecule=2}.length ? 2 : 1); select molecule=n;display selected;center selected;",_pubChemLoadScript:"",_DirectDatabaseCalls:{"cactus.nci.nih.gov":null,".x3dna.org":null,"rruff.geo.arizona.edu":null,".rcsb.org":null,
"ftp.wwpdb.org":null,"pdbe.org":null,"materialsproject.org":null,".ebi.ac.uk":null,"pubchem.ncbi.nlm.nih.gov":null,"www.nmrdb.org/tools/jmol/predict.php":null,$:"https://cactus.nci.nih.gov/chemical/structure/%FILENCI/file?format=sdf&get3d=True",$$:"https://cactus.nci.nih.gov/chemical/structure/%FILENCI/file?format=sdf","=":"https://files.rcsb.org/download/%FILE.pdb","*":"https://www.ebi.ac.uk/pdbe/entry-files/download/%FILE.cif","==":"https://files.rcsb.org/ligands/download/%FILE.cif",":":"https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/%FILE/SDF?record_type=3d"},
_restQueryUrl:"http://www.rcsb.org/pdb/rest/search",_restQueryXml:"<orgPdbQuery><queryType>org.pdb.query.simple.AdvancedKeywordQuery</queryType><description>Text Search</description><keywords>QUERY</keywords></orgPdbQuery>",_restReportUrl:"http://www.pdb.org/pdb/rest/customReport?pdbids=IDLIST&customReportColumns=structureId,structureTitle"},_debugAlert:!1,_document:a,_isXHTML:!1,_lastAppletID:null,_mousePageX:null,_mouseOwner:null,_serverUrl:"https://your.server.here/jsmol.php",_syncId:(""+Math.random()).substring(3),
_touching:!1,_XhtmlElement:null,_XhtmlAppendChild:!1};a=a.location.href.toLowerCase();j._debugCore=0<=a.indexOf("j2sdebugcore");j._httpProto=0==a.indexOf("https")?"https://":"http://";j._isFile=0==a.indexOf("file:");j._isFile&&$.ajaxSetup({mimeType:"text/plain"});j._ajaxTestSite=j._httpProto+"google.com";a=j._isFile||0==a.indexOf("http://localhost")||0==a.indexOf("http://127.");j._tracker=!a&&"https://chemapps.stolaf.edu/jmol/JmolTracker.php?id=UA-45940799-1";j._isChrome=0<=navigator.userAgent.toLowerCase().indexOf("chrome");
j._isSafari=!j._isChrome&&0<=navigator.userAgent.toLowerCase().indexOf("safari");j._isMsie=void 0!==window.ActiveXObject;j._isEdge=0<=navigator.userAgent.indexOf("Edge/");j._useDataURI=!j._isMsie&&!j._isEdge;window.requestAnimationFrame||(window.requestAnimationFrame=window.setTimeout);for(var g in Jmol)j[g]=Jmol[g];return j}(document,Jmol));
(function(a,j){a.__$=j;j(document).ready(function(){a._document=null});a.$=function(a,e){null==a&&alert(e+arguments.callee.caller.toString());return j(e?"#"+a._id+"_"+e:a)};a._$=function(a){return"string"==typeof a?j("#"+a):a};a.$ajax=function(d){a._ajaxCall=d.url;d.cache="NO"!=d.cache;d.url=a._fixProtocol(d.url);return j.ajax(d)};a._fixProtocol=function(d){0<=d.indexOf("get3d=True")&&(d=d.replace(/get3d\=True/,"get3d=true"));return 0==d.indexOf("http://www.rcsb.org/pdb/files/")&&0>d.indexOf("/ligand/")?
"http://files.rcsb.org/view/"+d.substring(30).replace(/\.gz/,""):0==d.indexOf("http://")&&("https://"==a._httpProto||0<d.indexOf(".gov/")||0==d.indexOf("http://www.materialsproject"))?"https"+d.substring(4):d};a._getNCIInfo=function(d,e){return a._getFileData("https://cactus.nci.nih.gov/chemical/structure/"+d+"/"+("name"==e?"names":e))};a.$appEvent=function(d,e,h,b){d=a.$(d,e);d.off(h)&&b&&d.on(h,b)};a.$resize=function(a){return j(window).resize(a)};a.$after=function(a,e){return j(a).after(e)};a.$append=
function(a,e){return j(a).append(e)};a.$bind=function(a,e,h){return h?j(a).bind(e,h):j(a).unbind(e)};a.$closest=function(a,e){return j(a).closest(e)};a.$get=function(a,e){return j(a).get(e)};a.$documentOff=function(a,e){return j(document).off(a,"#"+e)};a.$documentOn=function(a,e,h){return j(document).on(a,"#"+e,h)};a.$getAncestorDiv=function(a,e){return j("div."+e+":has(#"+a+")")[0]};a.$supportsIECrossDomainScripting=function(){return j.support.iecors};a.$attr=function(d,e,h){return a._$(d).attr(e,
h)};a.$css=function(d,e){return a._$(d).css(e)};a.$find=function(d,e){return a._$(d).find(e)};a.$focus=function(d){return a._$(d).focus()};a.$html=function(d,e){return a._$(d).html(e)};a.$offset=function(d){return a._$(d).offset()};a.$windowOn=function(a,e){return j(window).on(a,e)};a.$prop=function(d,e,h){var b=a._$(d);return 3==arguments.length?b.prop(e,h):b.prop(e)};a.$remove=function(d){return a._$(d).remove()};a.$scrollTo=function(d,e){var h=a._$(d);return h.scrollTop(0>e?h[0].scrollHeight:e)};
a.$setEnabled=function(d,e){return a._$(d).attr("disabled",e?null:"disabled")};a.$getSize=function(d){d=a._$(d);return[d.width(),d.height()]};a.$setSize=function(d,e,h){return a._$(d).width(e).height(h)};a.$is=function(d,e){return a._$(d).is(e)};a.$setVisible=function(d,e){var h=a._$(d);return e?h.show():h.hide()};a.$submit=function(d){return a._$(d).submit()};a.$val=function(d,e){var h=a._$(d);return 1==arguments.length?h.val():h.val(e)};a._clearVars=function(){delete jQuery;delete j;delete a;delete SwingController;
delete J;delete JM;delete JS;delete JSV;delete JU;delete JV;delete java;delete javajs;delete Clazz;delete c$};var g=document,c=window,b={};b.ua=navigator.userAgent.toLowerCase();var f;a:{f=["linux","unix","mac","win"];for(var k=f.length;k--;)if(-1!=b.ua.indexOf(f[k])){f=f[k];break a}f="unknown"}b.os=f;b.browser=function(){for(var a=b.ua,e="konqueror webkit omniweb opera webtv icab msie mozilla".split(" "),h=0;h<e.length;h++)if(0<=a.indexOf(e[h]))return e[h];return"unknown"};b.browserName=b.browser();
b.browserVersion=parseFloat(b.ua.substring(b.ua.indexOf(b.browserName)+b.browserName.length+1));b.supportsXhr2=function(){return j.support.cors||j.support.iecors};b.allowDestroy="msie"!=b.browserName;b.allowHTML5="msie"!=b.browserName||0>navigator.appVersion.indexOf("MSIE 8");b.getDefaultLanguage=function(){return navigator.language||navigator.userLanguage||"en-US"};b._webGLtest=0;b.supportsWebGL=function(){if(!a.featureDetection._webGLtest){var d;a.featureDetection._webGLtest=c.WebGLRenderingContext&&
((d=g.createElement("canvas")).getContext("webgl")||d.getContext("experimental-webgl"))?1:-1}return 0<a.featureDetection._webGLtest};b.supportsLocalization=function(){for(var a=g.getElementsByTagName("meta"),e=a.length;0<=--e;)if(0<=a[e].outerHTML.toLowerCase().indexOf("utf-8"))return!0;return!1};b.supportsJava=function(){a.featureDetection._javaEnabled||(a.featureDetection._javaEnabled=a._isMsie?navigator.javaEnabled()?1:-1:navigator.javaEnabled()&&(!navigator.mimeTypes||navigator.mimeTypes["application/x-java-applet"])?
1:-1);return 0<a.featureDetection._javaEnabled};b.compliantBrowser=function(){var a=!!g.getElementById,e=b.os;if("opera"==b.browserName&&7.54>=b.browserVersion&&"mac"==e||"webkit"==b.browserName&&125.12>b.browserVersion||"msie"==b.browserName&&"mac"==e||"konqueror"==b.browserName&&3.3>=b.browserVersion)a=!1;return a};b.isFullyCompliant=function(){return b.compliantBrowser()&&b.supportsJava()};b.useIEObject="win"==b.os&&"msie"==b.browserName&&5.5<=b.browserVersion;b.useHtml4Object="mozilla"==b.browserName&&
5<=b.browserVersion||"opera"==b.browserName&&8<=b.browserVersion||"webkit"==b.browserName;b.hasFileReader=c.File&&c.FileReader;a.featureDetection=b;a._ajax=function(d){if(!d.async)return a.$ajax(d).responseText;a._ajaxQueue.push(d);1==a._ajaxQueue.length&&a._ajaxDone()};a._ajaxDone=function(){var d=a._ajaxQueue.shift();d&&a.$ajax(d)};a._grabberOptions=[["$","NCI(small molecules)"],[":","PubChem(small molecules)"],["=","RCSB(macromolecules)"],["*","PDBe(macromolecules)"]];a._getGrabberOptions=function(d){if(0==
a._grabberOptions.length)return"";var e='<input type="text" id="ID_query" onfocus="jQuery(this).select()" onkeypress="if(13==event.which){Jmol._applets[\'ID\']._search();return false}" size="32" value="" />',h='<button id="ID_submit" onclick="Jmol._applets[\'ID\']._search()">Search</button></nobr>';1==a._grabberOptions.length?(e="<nobr>"+e+'<span style="display:none">',h="</span>"+h):e+="<br /><nobr>";for(var e=e+'<select id="ID_select">',b=0;b<a._grabberOptions.length;b++)var c=a._grabberOptions[b],
e=e+('<option value="'+c[0]+'" '+(0==b?"selected":"")+">"+c[1]+"</option>");e=(e+"</select>"+h).replace(/ID/g,d._id);return"<br />"+e};a._getScriptForDatabase=function(d){return"$"==d?a.db._nciLoadScript:":"==d?a.db._pubChemLoadScript:a.db._fileLoadScript};a._setInfo=function(a,e,h){var b=[],c="";if(0==h.indexOf("ERROR"))c=h;else switch(e){case "=":e=h.split("<dimStructure.structureId>");b=["<table>"];for(h=1;h<e.length;h++)b.push('<tr><td valign=top><a href="javascript:Jmol.search('+a._id+",'="+
e[h].substring(0,4)+"')\">"+e[h].substring(0,4)+"</a></td>"),b.push("<td>"+e[h].split("Title>")[1].split("</")[0]+"</td></tr>");b.push("</table>");c=e.length-1+" matches";break;case "$":case ":":break;default:return}a._infoHeader=c;a._info=b.join("");a._showInfo(!0)};a._loadSuccess=function(d,e){e&&(a._ajaxDone(),e(d))};a._loadError=function(d){a._ajaxDone();a.say("Error connecting to server: "+a._ajaxCall);null!=d&&d()};a._isDatabaseCall=function(d){return 0<=a.db._databasePrefixes.indexOf(d.substring(0,
1))};a._getDirectDatabaseCall=function(d,e){if(e&&!a.featureDetection.supportsXhr2())return d;var h=2,b=d.substring(0,h),c=a.db._DirectDatabaseCalls[b]||a.db._DirectDatabaseCalls[b=d.substring(0,--h)];c&&(":"==b?(b=d.toLowerCase(),isNaN(parseInt(d.substring(1)))?0==b.indexOf(":smiles:")?(c+="?POST?smiles="+d.substring(8),d="smiles"):0==b.indexOf(":cid:")?d="cid/"+d.substring(5):(0==b.indexOf(":name:")?d=d.substring(5):0==b.indexOf(":cas:")&&(d=d.substring(4)),d="name/"+encodeURIComponent(d.substring(h))):
d="cid/"+d.substring(1)):d=encodeURIComponent(d.substring(h)),0<=d.indexOf(".mmtf")?d="https://mmtf.rcsb.org/v1.0/full/"+d.replace(/\.mmtf/,""):0<=c.indexOf("FILENCI")?(d=d.replace(/\%2F/g,"/"),d=c.replace(/\%FILENCI/,d)):d=c.replace(/\%FILE/,d));return d};a._getRawDataFromServer=function(d,e,h,b,c,f){d="?call=getRawDataFromDatabase&database="+d+(0<=e.indexOf("?POST?")?"?POST?":"")+"&query="+encodeURIComponent(e)+(c?"&encoding=base64":"")+(f?"":"&script="+encodeURIComponent(a._getScriptForDatabase(d)));
return a._contactServer(d,h,b)};a._checkFileName=function(d,e,h){a._isDatabaseCall(e)&&(h&&a._setQueryTerm(d,e),e=a._getDirectDatabaseCall(e,!0),a._isDatabaseCall(e)&&(e=a._getDirectDatabaseCall(e,!1),h&&(h[0]=!0)));return e};a._checkCache=function(d,e,h){if(d._cacheFiles&&a._fileCache&&!e.endsWith(".js")){if(d=a._fileCache[e])return Zystem.out.println("using "+d.length+" bytes of cached data for "+e),h(d),null;h=function(d,e){h(a._fileCache[d]=e)}}return h};a.playAudio=function(d){a.playAudio(null,
d)};a.playAudio=function(a,e){var h=e.get?function(a){return e.get(a)}:null,b=e.put?function(a,d){return e.put(a,d)}:null,c=h?h("audioFile"):e,f=h&&h("audioPlayer"),g=document.createElement("audio");b&&b("audioElement",g);var k=null;f&&(k=function(a){f.processUpdate(a)},f.myClip={open:function(){k("open")},start:function(){g.play();k("start")},loop:function(a){g.loop=0!=a},stop:function(){g.pause()},close:function(){k("close")},setMicrosecondPosition:function(a){g.currentTime=a/1E6}});g.controls=
"true";g.src=c;h&&h("loop")&&(g.loop="true");k&&(g.addEventListener("pause",function(){k("pause")}),g.addEventListener("play",function(){k("play")}),g.addEventListener("playing",function(){k("playing")}),g.addEventListener("ended",function(){k("ended")}),k("open"))};a._loadFileData=function(d,e,h,b){var c=[];e=a._checkFileName(d,e,c);h=a._checkCache(d,e,h);c[0]?a._getRawDataFromServer("_",e,h,b):(d={type:"GET",dataType:"text",url:e,async:a._asynchronous,success:function(d){a._loadSuccess(d,h)},error:function(){a._loadError(b)}},
a._checkAjaxPost(d),a._ajax(d))};a._getInfoFromDatabase=function(d,e,h){if("===="==e){var b=a.db._restQueryXml.replace(/QUERY/,h),b={dataType:"text",type:"POST",contentType:"application/x-www-form-urlencoded",url:a.db._restQueryUrl,data:encodeURIComponent(b)+"&req=browser",success:function(b){a._ajaxDone();a._extractInfoFromRCSB(d,e,h,b)},error:function(){a._loadError(null)},async:a._asynchronous};return a._ajax(b)}h="?call=getInfoFromDatabase&database="+e+"&query="+encodeURIComponent(h);return a._contactServer(h,
function(h){a._setInfo(d,e,h)})};a._extractInfoFromRCSB=function(d,e,h,b){var c=b.length/5;if(0!=c&&4==h.length&&1!=c){h=h.toUpperCase();var f=b.indexOf(h);0<f&&0<="123456789".indexOf(h.substring(0,1))&&(b=h+","+b.substring(0,f)+b.substring(f+5));50<c&&(b=b.substring(0,250));b=b.replace(/\n/g,",");b=a._restReportUrl.replace(/IDLIST/,b);a._loadFileData(d,b,function(h){a._setInfo(d,e,h)})}};a._checkAjaxPost=function(a){var e=a.url.indexOf("?POST?");0<e&&(a.data=a.url.substring(e+6),a.url=a.url.substring(0,
e),a.type="POST",a.contentType="application/x-www-form-urlencoded")};a._contactServer=function(d,e,h){d={dataType:"text",type:"GET",url:a._serverUrl+d,success:function(d){a._loadSuccess(d,e)},error:function(){a._loadError(h)},async:e?a._asynchronous:!1};a._checkAjaxPost(d);return a._ajax(d)};a._setQueryTerm=function(d,e){if(e&&d._hasOptions&&"http://"!=e.substring(0,7)){if(a._isDatabaseCall(e)){var h=e.substring(0,1);e=e.substring(1);e.substring(0,1)==h&&0<="=$".indexOf(h)&&(e=e.substring(1));var b=
a._getElement(d,"select");if(b&&b.options)for(var c=0;c<b.options.length;c++)b[c].value==h&&(b[c].selected=!0)}a.$val(a.$(d,"query"),e)}};a._search=function(d,e,h){1<arguments.length||(e=null);a._setQueryTerm(d,e);e||(e=a.$val(a.$(d,"query")));0==e.indexOf("!")?d._script(e.substring(1)):(e&&(e=e.replace(/\"/g,"")),d._showInfo(!1),a._searchMol(d,e,h,!0))};a._searchMol=function(d,e,h,b){var c;a._isDatabaseCall(e)?(c=e.substring(0,1),e=e.substring(1)):c=d._hasOptions?a.$val(a.$(d,"select")):"$";"="==
c&&3==e.length&&(e="="+e);var f=c+e;if(e&&!(0>f.indexOf("?")&&f==d._thisJmolModel)){d._thisJmolModel=f;var g;b&&null!=d._viewSet&&null!=(g=a.View.__findView(d._viewSet,{chemID:f}))?a.View.__setView(g,d,!1):("$"==c||":"==c?d._jmolFileType="MOL":"="==c&&(d._jmolFileType="PDB"),d._searchDatabase(e,c,h))}};a._searchDatabase=function(d,e,h,b){d._showInfo(!1);return 0<=e.indexOf("?")?(a._getInfoFromDatabase(d,h,e.split("?")[0]),!0):a.db._DirectDatabaseCalls[h]?(d._loadFile(h+e,b),!0):!1};a._syncBinaryOK=
"?";a._canSyncBinary=function(d){if(a._isAsync)return!0;if(self.VBArray)return a._syncBinaryOK=!1;if("?"!=a._syncBinaryOK)return a._syncBinaryOK;a._syncBinaryOK=!0;try{var e=new window.XMLHttpRequest;e.open("text",a._ajaxTestSite,!1);e.hasOwnProperty("responseType")?e.responseType="arraybuffer":e.overrideMimeType&&e.overrideMimeType("text/plain; charset=x-user-defined")}catch(h){return Zystem.out.println("JSmolCore.js: synchronous binary file transfer is requested but not available"),a._alertNoBinary&&
!d&&alert("JSmolCore.js: synchronous binary file transfer is requested but not available"),a._syncBinaryOK=!1}return!0};a._binaryTypes="mmtf .gz .bz2 .jpg .gif .png .zip .jmol .bin .smol .spartan .pmb .mrc .map .ccp4 .dn6 .delphi .omap .pse .dcd .uk/pdbe/densities/".split(" ");a.isBinaryUrl=function(d){for(var e=a._binaryTypes.length;0<=--e;)if(0<=d.indexOf(a._binaryTypes[e]))return!0;return!1};a._getFileData=function(d,e,h){var b=a.isBinaryUrl(d),c=0<=d.indexOf(".gz")&&0<=d.indexOf("rcsb.org");c&&
(d=d.replace(/\.gz/,""),b=!1);var c=b&&!e&&!a._canSyncBinary(c),f=0<=d.indexOf("?POST?");0==d.indexOf("file:/")&&0!=d.indexOf("file:///")&&(d="file://"+d.substring(5));var g=0>d.indexOf("://")||0==d.indexOf(document.location.protocol)&&0<=d.indexOf(document.location.host),k="https://"==a._httpProto&&0==d.indexOf("http://"),j=a._isDirectCall(d);!j&&0<=d.indexOf("?ALLOWSORIGIN?")&&(j=!0,d=d.replace(/\?ALLOWSORIGIN\?/,""));var l=!g&&a.$supportsIECrossDomainScripting(),m=null;if(k||c||!g&&!j||!e&&l)m=
a._getRawDataFromServer("_",d,e,e,c,!0);else{d=d.replace(/file:\/\/\/\//,"file://");var r={dataType:b?"binary":"text",async:!!e};f?(r.type="POST",r.url=d.split("?POST?")[0],r.data=d.split("?POST?")[1]):(r.type="GET",r.url=d);e&&(r.success=function(){e(a._xhrReturn(r.xhr))},r.error=function(){e(r.xhr.statusText)});r.xhr=a.$ajax(r);e||(m=a._xhrReturn(r.xhr))}if(!h)return m;null==m&&(m="",b=!1);b&&(b=a._canSyncBinary(!0));return b?a._strToBytes(m):JU.SB.newS(m)};a._xhrReturn=function(a){return!a.responseText||
self.Clazz&&Clazz.instanceOf(a.response,self.ArrayBuffer)?a.response||a.statusText:a.responseText};a._isDirectCall=function(d){if(0<=d.indexOf("?ALLOWSORIGIN?"))return!0;for(var e in a.db._DirectDatabaseCalls)if(0<=e.indexOf(".")&&0<=d.indexOf(e))return!0;return!1};a._cleanFileData=function(a){return 0<=a.indexOf("\r")&&0<=a.indexOf("\n")?a.replace(/\r\n/g,"\n"):0<=a.indexOf("\r")?a.replace(/\r/g,"\n"):a};a._getFileType=function(a){var e=a.substring(0,1);if("$"==e||":"==e)return"MOL";if("="==e)return"="==
a.substring(1,2)?"LCIF":"PDB";a=a.split(".").pop().toUpperCase();return a.substring(0,Math.min(a.length,3))};a._getZ=function(d,e){return d&&d._z&&d._z[e]||a._z[e]};a._incrZ=function(d,e){return d&&d._z&&++d._z[e]||++a._z[e]};a._hideLocalFileReader=function(d){d._localReader&&a.$setVisible(d._localReader,!1);d._readingLocal=!1;a.setCursor(d,0)};a.loadFileFromDialog=function(d){a.loadFileAsynchronously(null,d,null,null)};a.loadFileAsynchronously=function(d,e,h,b){if(h&&0!=h.indexOf("?")){var c=h;h=
a._checkFileName(e,h);var f=function(f){a._setData(d,h,c,f,b,e)},f=a._checkCache(e,h,f);0<=h.indexOf("|")&&(h=h.split("|")[0]);return null==f?null:a._getFileData(h,f)}if(!a.featureDetection.hasFileReader)return d?d.setData("Local file reading is not enabled in your browser",null,null,b,e):alert("Local file reading is not enabled in your browser");e._localReader||(f='<div id="ID" style="z-index:'+a._getZ(e,"fileOpener")+';position:absolute;background:#E0E0E0;left:10px;top:10px"><div style="margin:5px 5px 5px 5px;"><button id="ID_loadurl">URL</button><input type="file" id="ID_files" /><button id="ID_loadfile">load</button><button id="ID_cancel">cancel</button></div><div>',
a.$after("#"+e._id+"_appletdiv",f.replace(/ID/g,e._id+"_localReader")),e._localReader=a.$(e,"localReader"));a.$appEvent(e,"localReader_loadurl","click");a.$appEvent(e,"localReader_loadurl","click",function(){var d=prompt("Enter a URL");d&&(a._hideLocalFileReader(e,0),a._setData(null,d,d,null,b,e))});a.$appEvent(e,"localReader_loadfile","click");a.$appEvent(e,"localReader_loadfile","click",function(){var h=a.$(e,"localReader_files")[0].files[0],c=new FileReader;c.onloadend=function(c){c.target.readyState==
FileReader.DONE&&(a._hideLocalFileReader(e,0),a._setData(d,h.name,h.name,c.target.result,b,e))};try{c.readAsArrayBuffer(h)}catch(f){alert("You must select a file first.")}});a.$appEvent(e,"localReader_cancel","click");a.$appEvent(e,"localReader_cancel","click",function(){a._hideLocalFileReader(e);d&&d.setData("#CANCELED#",null,null,b,e)});a.$setVisible(e._localReader,!0);e._readingLocal=!0};a._setData=function(d,e,h,b,c,f){b&&(b=a._strToBytes(b));null!=b&&(null==d||0<=e.indexOf(".jdx"))&&a.Cache.put("cache://"+
e,b);null==d?f._applet.openFileAsyncSpecial(null==b?e:"cache://"+e,1):d.setData(e,h,b,c)};a.doAjax=function(d,e,h){d=d.toString();if(h){if(0!=d.indexOf("http://")&&0!=d.indexOf("https://"))return a._saveFile(d,h);d={async:!1,url:d,type:"POST",data:"string"==typeof data?h:";base64,"+(JU||J.util).Base64.getBase64(h).toString(),processData:!1};return a.$ajax(d).responseText}e&&(d+="?POST?"+e);return a._getFileData(d,null,!0)};a._saveFile=function(d,e,h,b){if(a._localFileSaveFunction&&a._localFileSaveFunction(d,
e))return"OK";d=d.substring(d.lastIndexOf("/")+1);h||(h=0<=d.indexOf(".pdf")?"application/pdf":0<=d.indexOf(".png")?"image/png":0<=d.indexOf(".gif")?"image/gif":0<=d.indexOf(".jpg")?"image/jpg":"");var c="string"==typeof e;e=c&&0<=e.indexOf(";base64,")?e.split(";base64,")[1]:(JU||J.util).Base64.getBase64(c?e.getBytes("UTF-8"):e).toString();b||(b="base64");(c=a._serverUrl)&&0<=c.indexOf("your.server")&&(c="");a._useDataURI||!c?(b=document.createElement("a"),b.href="data:"+h+";base64,"+e,b.type=h||
"text/plain;charset=utf-8",b.download=d,b.target="_blank",j("body").append(b),b.click(),b.remove()):(a._formdiv||(a.$after("body",'<div id="__jsmolformdiv__" style="display:none">\t\t\t\t\t\t<form id="__jsmolform__" method="post" target="_blank" action="">\t\t\t\t\t\t<input name="call" value="saveFile"/>\t\t\t\t\t\t<input id="__jsmolmimetype__" name="mimetype" value=""/>\t\t\t\t\t\t<input id="__jsmolencoding__" name="encoding" value=""/>\t\t\t\t\t\t<input id="__jsmolfilename__" name="filename" value=""/>\t\t\t\t\t\t<textarea id="__jsmoldata__" name="data"></textarea>\t\t\t\t\t\t</form>\t\t\t\t\t\t</div>'),
a._formdiv="__jsmolform__"),a.$attr(a._formdiv,"action",c+"?"+(new Date).getMilliseconds()),a.$val("__jsmoldata__",e),a.$val("__jsmolfilename__",d),a.$val("__jsmolmimetype__",h),a.$val("__jsmolencoding__",b),a.$submit("__jsmolform__"),a.$val("__jsmoldata__",""),a.$val("__jsmolfilename__",""));return"OK"};a._strToBytes=function(a){if(Clazz.instanceOf(a,self.ArrayBuffer))return Clazz.newByteArray(-1,a);for(var e=Clazz.newByteArray(a.length,0),h=a.length;0<=--h;)e[h]=a.charCodeAt(h)&255;return e};a._setConsoleDiv=
function(a){self.Clazz&&Clazz.setConsoleDiv(a)};a._registerApplet=function(d,e){return window[d]=a._applets[d]=a._applets.master=a._applets[d+"__"+a._syncId+"__"]=e};a._readyCallback=function(d,e,h,b,c){d=d.split("_object")[0];var f=a._applets[d];if(h=h.booleanValue?h.booleanValue():h)f._appletPanel=c||b,f._applet=b;a._track(f)._readyCallback(d,e,h)};a._getWrapper=function(d,e){var h;if(e){var b="";if(d._coverImage)var b=' onclick="Jmol.coverApplet(ID, false)" title="'+d._coverTitle+'"',c='<image id="ID_coverclickgo" src="'+
d._makeLiveImage+'" style="width:25px;height:25px;position:absolute;bottom:10px;left:10px;z-index:'+a._getZ(d,"coverImage")+';opacity:0.5;"'+b+" />",b='<div id="ID_coverdiv" style="background-color:red;z-index:'+a._getZ(d,"coverImage")+';width:100%;height:100%;display:inline;position:absolute;top:0px;left:0px"><image id="ID_coverimage" src="'+d._coverImage+'" style="width:100%;height:100%"'+b+"/>"+c+"</div>";c=d._isJava?"":'<image id="ID_waitimage" src="'+d._j2sPath+'/img/cursor_wait.gif" style="display:none;position:absolute;bottom:10px;left:10px;z-index:'+
a._getZ(d,"coverImage")+';" />';h=a._appletCssText.replace(/\'/g,'"');var f=d._getSpinner&&d._getSpinner();d._spinner=f=!f||"none"==f?"":"background-image:url("+f+"); background-repeat:no-repeat; background-position:center;";h=f+(0<=h.indexOf('style="')?h.split('style="')[1]:'" '+h);h='...<div id="ID_appletinfotablediv" style="width:Wpx;height:Hpx;position:relative;font-size:14px;text-align:left">IMG WAIT......<div id="ID_appletdiv" style="z-index:'+a._getZ(d,"header")+";width:100%;height:100%;position:absolute;top:0px;left:0px;"+
h+">";var f=d._height,g=d._width;if("string"!==typeof f||0>f.indexOf("%"))f+="px";if("string"!==typeof g||0>g.indexOf("%"))g+="px";h=h.replace(/IMG/,b).replace(/WAIT/,c).replace(/Hpx/g,f).replace(/Wpx/g,g)}else h='......</div>......<div id="ID_2dappletdiv" style="position:absolute;width:100%;height:100%;overflow:hidden;display:none"></div>......<div id="ID_infotablediv" style="width:100%;height:100%;position:absolute;top:0px;left:0px">.........<div id="ID_infoheaderdiv" style="height:20px;width:100%;background:yellow;display:none"><span id="ID_infoheaderspan"></span><span id="ID_infocheckboxspan" style="position:absolute;text-align:right;right:1px;"><a href="javascript:Jmol.showInfo(ID,false)">[x]</a></span></div>.........<div id="ID_infodiv" style="position:absolute;top:20px;bottom:0px;width:100%;height:100%;overflow:auto"></div>......</div>...</div>';
return h.replace(/\.\.\./g,"").replace(/[\n\r]/g,"").replace(/ID/g,d._id)};a._hideLoadingSpinner=function(d){d._spinner&&a.$css(a.$(d,"appletdiv"),{"background-image":""})};a._documentWrite=function(d){if(a._document){if(a._isXHTML&&!a._XhtmlElement){var e=document.getElementsByTagName("script");a._XhtmlElement=e.item(e.length-1);a._XhtmlAppendChild=!1}a._XhtmlElement?a._domWrite(d):a._document.write(d)}return d};a._domWrite=function(d){for(var e=[0];e[0]<d.length;){var b=a._getDomElement(d,e);if(!b)break;
a._XhtmlAppendChild?a._XhtmlElement.appendChild(b):a._XhtmlElement.parentNode.insertBefore(b,_jmol.XhtmlElement)}};a._getDomElement=function(a,e){var b=document.createElement("span");b.innerHTML=a;e[0]=a.length;return b};a._setObject=function(d,e,b){d._id=e;d.__Info={};b.z&&b.zIndexBase&&(a._z=a._getZOrders(b.zIndexBase));for(var c in b)d.__Info[c]=b[c];(d._z=b.z)||b.zIndexBase&&(d._z=d.__Info.z=a._getZOrders(b.zIndexBase));d._width=b.width;d._height=b.height;d._noscript=!d._isJava&&b.noscript;d._console=
b.console;d._cacheFiles=!!b.cacheFiles;d._viewSet=null==b.viewSet||d._isJava?null:"Set"+b.viewSet;null!=d._viewSet&&(a.View.__init(d),d._currentView=null);!a._fileCache&&d._cacheFiles&&(a._fileCache={});d._console||(d._console=d._id+"_infodiv");"none"==d._console&&(d._console=null);d._color=b.color?b.color.replace(/0x/,"#"):"#FFFFFF";d._disableInitialConsole=b.disableInitialConsole;d._noMonitor=b.disableJ2SLoadMonitor;a._j2sPath&&(b.j2sPath=a._j2sPath);d._j2sPath=b.j2sPath;d._coverImage=b.coverImage;
d._makeLiveImage=b.makeLiveImage||b.j2sPath+"/img/play_make_live.jpg";d._isCovered=!!d._coverImage;d._deferApplet=b.deferApplet||d._isCovered&&d._isJava;d._deferUncover=b.deferUncover&&!d._isJava;d._coverScript=b.coverScript;d._coverTitle=b.coverTitle;d._coverTitle||(d._coverTitle=d._deferApplet?"activate 3D model":"3D model is loading...");d._containerWidth=d._width+(d._width==parseFloat(d._width)?"px":"");d._containerHeight=d._height+(d._height==parseFloat(d._height)?"px":"");d._info="";d._infoHeader=
d._jmolType+' "'+d._id+'"';d._hasOptions=b.addSelectionOptions;d._defaultModel=b.defaultModel;d._readyScript=b.script?b.script:"";d._readyFunction=b.readyFunction;d._coverImage&&!d._deferApplet&&(d._readyScript+=";javascript "+e+"._displayCoverImage(false)");d._src=b.src};a._addDefaultInfo=function(d,e){for(var b in e)"undefined"==typeof d[b]&&(d[b]=e[b]);a._use&&(d.use=a._use);0<=d.use.indexOf("SIGNED")&&(0>d.jarFile.indexOf("Signed")&&(d.jarFile=d.jarFile.replace(/Applet/,"AppletSigned")),d.use=
d.use.replace(/SIGNED/,"JAVA"),d.isSigned=!0)};a._syncedApplets=[];a._syncedCommands=[];a._syncedReady=[];a._syncReady=!1;a._isJmolJSVSync=!1;a._setReady=function(d){a._syncedReady[d]=1;for(var e=0,b=0;b<a._syncedApplets.length;b++){if(a._syncedApplets[b]==d._id)a._syncedApplets[b]=d,a._syncedReady[b]=1;else if(!a._syncedReady[b])continue;e++}e==a._syncedApplets.length&&a._setSyncReady()};a._setDestroy=function(d){a.featureDetection.allowDestroy&&a.$windowOn("beforeunload",function(){a._destroy(d)})};
a._destroy=function(d){try{d._appletPanel&&d._appletPanel.destroy();d._applet=null;a._unsetMouse(d._canvas);d._canvas=null;for(var e=0,b=0;b<a._syncedApplets.length;b++)a._syncedApplets[b]==d&&(a._syncedApplets[b]=null),a._syncedApplets[b]&&e++;0<e||a._clearVars()}catch(c){}};a._setSyncReady=function(){a._syncReady=!0;for(var d="",e=0;e<a._syncedApplets.length;e++)a._syncedCommands[e]&&(d+="Jmol.script(Jmol._syncedApplets["+e+"], Jmol._syncedCommands["+e+"]);");setTimeout(d,50)};a._mySyncCallback=
function(d,e){app=a._applets[d];if(app._viewSet)a.View.updateFromSync(app,e);else{if(!a._syncReady||!a._isJmolJSVSync)return 1;for(var b=0;b<a._syncedApplets.length;b++)0<=e.indexOf(a._syncedApplets[b]._syncKeyword)&&a._syncedApplets[b]._syncScript(e);return 0}};a._getElement=function(a,e){return document.getElementById(a._id+"_"+e)||{}};a._evalJSON=function(a,e){a+="";if(!a)return[];if("{"!=a.charAt(0))return 0<=a.indexOf(" | ")&&(a=a.replace(/\ \|\ /g,"\n")),a;var b=(new Function("return "+a))();
return!b?null:e&&void 0!=b[e]?b[e]:b};a._sortMessages=function(a){function e(a,d){return a[0]<d[0]?1:a[0]>d[0]?-1:0}if(!a||"object"!=typeof a)return[];for(var b=[],c=a.length-1;0<=c;c--)for(var f=0,g=a[c].length;f<g;f++)b[b.length]=a[c][f];if(0!=b.length)return b=b.sort(e)};a._setMouseOwner=function(d,b){null==d||b?a._mouseOwner=d:a._mouseOwner==d&&(a._mouseOwner=null)};a._jsGetMouseModifiers=function(a){var b=0;switch(a.button){case 0:b=16;break;case 1:b=8;break;case 2:b=4}a.shiftKey&&(b+=1);a.altKey&&
(b+=8);a.ctrlKey&&(b+=2);return b};a._jsGetXY=function(d,b){if(!d.applet._ready||a._touching&&0>b.type.indexOf("touch"))return!1;var h=a.$offset(d.id),c,f=b.originalEvent;b.pageX||(b.pageX=f.pageX);b.pageY||(b.pageY=f.pageY);a._mousePageX=b.pageX;a._mousePageY=b.pageY;f.targetTouches&&f.targetTouches[0]?(c=f.targetTouches[0].pageX-h.left,h=f.targetTouches[0].pageY-h.top):f.changedTouches?(c=f.changedTouches[0].pageX-h.left,h=f.changedTouches[0].pageY-h.top):(c=b.pageX-h.left,h=b.pageY-h.top);return void 0==
c?null:[Math.round(c),Math.round(h),a._jsGetMouseModifiers(b)]};a.setCursor=function(d,b){if(!d._isJava&&!d._readingLocal){var h;switch(b){case 1:h="crosshair";break;case 3:h="wait";a.$setVisible(a.$(d,"waitimage"),!0);break;case 8:h="ns-resize";break;case 12:h="grab";break;case 13:h="move";break;default:a.$setVisible(a.$(d,"waitimage"),!1),h="default"}d._canvas.style.cursor=h}};a._gestureUpdate=function(d,b){b.stopPropagation();b.preventDefault();var h=b.originalEvent;switch(b.type){case "touchstart":a._touching=
!0;break;case "touchend":a._touching=!1}if(!h.touches||2!=h.touches.length)return!1;switch(b.type){case "touchstart":d._touches=[[],[]];break;case "touchmove":var c=a.$offset(d.id),f=d._touches[0],g=d._touches[1];f.push([h.touches[0].pageX-c.left,h.touches[0].pageY-c.top]);g.push([h.touches[1].pageX-c.left,h.touches[1].pageY-c.top]);h=f.length;3<h&&(f.shift(),g.shift());2<=h&&d.applet._processGesture(d._touches)}return!0};a._jsSetMouse=function(b){var e=function(a){return!a.target||0<=(""+a.target.className).indexOf("swingjs-ui")};
a.$bind(b,"mousedown touchstart",function(h){if(e(h))return!0;a._setMouseOwner(b,!0);h.stopPropagation();var c=h.target["data-UI"];(!c||!c.handleJSEvent(b,501,h))&&h.preventDefault();b.isDragging=!0;if("touchstart"==h.type&&a._gestureUpdate(b,h))return!!c;a._setConsoleDiv(b.applet._console);var f=a._jsGetXY(b,h);f&&(2!=h.button&&a.Swing.hideMenus(b.applet),b.applet._processEvent(501,f));return!!c});a.$bind(b,"mouseup touchend",function(h){if(e(h))return!0;a._setMouseOwner(null);h.stopPropagation();
var c=h.target["data-UI"];(!c||!c.handleJSEvent(b,502,h))&&h.preventDefault();b.isDragging=!1;if("touchend"==h.type&&a._gestureUpdate(b,h))return!!c;(h=a._jsGetXY(b,h))&&b.applet._processEvent(502,h);return!!c});a.$bind(b,"mousemove touchmove",function(h){if(e(h))return!0;if(a._mouseOwner&&a._mouseOwner!=b&&a._mouseOwner.isDragging){if(!a._mouseOwner.mouseMove)return!0;a._mouseOwner.mouseMove(h);return!1}return a._drag(b,h)});a._drag=function(b,d){d.stopPropagation();d.preventDefault();if("touchmove"==
d.type&&a._gestureUpdate(b,d))return!1;var e=a._jsGetXY(b,d);if(!e)return!1;b.isDragging||(e[2]=0);var c=d.target["data-UI"];b.isdragging&&(!c||c.handleJSEvent(b,506,d));b.applet._processEvent(b.isDragging?506:503,e);return!!c};a.$bind(b,"DOMMouseScroll mousewheel",function(h){if(e(h))return!0;h.stopPropagation();h.preventDefault();b.isDragging=!1;var c=h.originalEvent,c=c.detail?c.detail:("mac"==a.featureDetection.os?1:-1)*c.wheelDelta;h=a._jsGetMouseModifiers(h);b.applet._processEvent(507,[0>c?
-1:1,0,h]);return!1});a.$bind(b,"contextmenu",function(){return!1});a.$bind(b,"mouseout",function(h){if(e(h))return!0;a._mouseOwner&&!a._mouseOwner.mouseMove&&a._setMouseOwner(null);b.applet._appletPanel&&b.applet._appletPanel.startHoverWatcher(!1);a._jsGetXY(b,h);return!1});a.$bind(b,"mouseenter",function(h){if(e(h))return!0;b.applet._appletPanel&&b.applet._appletPanel.startHoverWatcher(!0);if(0===h.buttons||0===h.which){b.isDragging=!1;h=a._jsGetXY(b,h);if(!h)return!1;b.applet._processEvent(504,
h);b.applet._processEvent(502,h);return!1}});a.$bind(b,"mousemoveoutjsmol",function(h,c,f){if(e(f))return!0;if(b==a._mouseOwner&&b.isDragging)return a._drag(b,f)});b.applet._is2D&&a.$resize(function(){b.applet&&b.applet._resize()});a.$bind("body","mouseup touchend",function(h){if(e(h))return!0;b.applet&&(b.isDragging=!1);a._setMouseOwner(null)})};a._jsUnsetMouse=function(b){b.applet=null;a.$bind(b,"mousedown touchstart mousemove touchmove mouseup touchend DOMMouseScroll mousewheel contextmenu mouseout mouseenter",
null);a._setMouseOwner(null)};a.Swing={count:0,menuInitialized:0,menuCounter:0,htDialogs:{}};var l=a.Swing;SwingController=l;l.setDraggable=function(b){b=b.prototype;b.setContainer||(b.setContainer=function(b){this.container=b;b.obj=this;this.ignoreMouse=this.isDragging=!1;var d=this;b.bind("mousedown touchstart",function(b){if(d.ignoreMouse)return d.ignoreMouse=!1,!0;a._setMouseOwner(d,!0);d.isDragging=!0;d.pageX=b.pageX;d.pageY=b.pageY;return!1});b.bind("mousemove touchmove",function(b){if(d.isDragging&&
a._mouseOwner==d)return d.mouseMove(b),!1});b.bind("mouseup touchend",function(b){d.mouseUp(b);a._setMouseOwner(null)})},b.mouseUp=function(b){if(this.isDragging&&a._mouseOwner==this)return this.pageX0+=b.pageX-this.pageX,this.pageY0+=b.pageY-this.pageY,this.isDragging=!1;a._setMouseOwner(null)},b.setPosition=function(){if(null===a._mousePageX){var b=a.$offset(this.applet._id+"_"+(this.applet._is2D?"canvas2d":"canvas"));a._mousePageX=b.left;a._mousePageY=b.top}this.pageX0=a._mousePageX;this.pageY0=
a._mousePageY;this.container.css({top:a._mousePageY+"px",left:a._mousePageX+"px"})},b.mouseMove=function(b){if(this.isDragging&&a._mouseOwner==this){this.timestamp=Zystem.currentTimeMillis();var d=this.pageX0+(b.pageX-this.pageX);b=this.pageY0+(b.pageY-this.pageY);a._mousePageX=d;a._mousePageY=b;this.container.css({top:b+"px",left:d+"px"})}},b.dragBind=function(b){this.applet._ignoreMouse=!b;this.container.unbind("mousemoveoutjsmol");this.container.unbind("touchmoveoutjsmol");this.container.unbind("mouseupoutjsmol");
this.container.unbind("touchendoutjsmol");a._setMouseOwner(null);if(b){var d=this;this.container.bind("mousemoveoutjsmol touchmoveoutjsmol",function(a,b,e){d.mouseMove(e)});this.container.bind("mouseupoutjsmol touchendoutjsmol",function(a,b,e){d.mouseUp(e)})}})};l.JSDialog=function(){};l.setDraggable(l.JSDialog);l.getScreenDimensions=function(a){a.width=j(window).width();a.height=j(window).height()};l.dispose=function(b){a.$remove(b.id+"_mover");delete l.htDialogs[b.id];b.container.obj.dragBind(!1)};
l.register=function(a,b){a.id=b+ ++l.count;l.htDialogs[a.id]=a};l.setDialog=function(b){a._setMouseOwner(null);a.$remove(b.id);var e=b.id+"_mover",h=a._$(e),c;h[0]?(h.html(b.html),c=h[0].jd):(a.$after("body","<div id='"+e+"' style='position:absolute;left:0px;top:0px;'>"+b.html+"</div>"),c=new l.JSDialog,h=a._$(e),b.container=h,c.applet=b.manager.vwr.html5Applet,c.setContainer(h),c.dialog=b,c.setPosition(),c.dragBind(!0),h[0].jd=c);a.$bind("#"+b.id+" .JButton","mousedown touchstart",function(){c.ignoreMouse=
!0});a.$bind("#"+b.id+" .JComboBox","mousedown touchstart",function(){c.ignoreMouse=!0});a.$bind("#"+b.id+" .JCheckBox","mousedown touchstart",function(){c.ignoreMouse=!0});a.$bind("#"+b.id+" .JTextField","mousedown touchstart",function(){c.ignoreMouse=!0});a.$bind("#"+b.id+" .JTable","mousedown touchstart",function(){c.ignoreMouse=!0});a.$bind("#"+b.id+" .JScrollPane","mousedown touchstart",function(){c.ignoreMouse=!0});a.$bind("#"+b.id+" .JEditorPane","mousedown touchstart",function(){c.ignoreMouse=
!0})};l.setSelected=function(b){a.$prop(b.id,"checked",!!b.selected)};l.setSelectedIndex=function(b){a.$prop(b.id,"selectedIndex",b.selectedIndex)};l.setText=function(b){a.$prop(b.id,"value",b.text)};l.setVisible=function(b){a.$setVisible(b.id,b._visible)};l.setEnabled=function(b){a.$setEnabled(b.id,b.enabled)};l.click=function(b,e){var h=l.htDialogs[b.id];if(h){var c=h.toString();if(0<=c.indexOf("JCheck"))h.selected=b.checked;else if(0<=c.indexOf("JCombo"))h.selectedIndex=b.selectedIndex;else if(null!=
h.text&&(h.text=b.value,e&&13!=(e.charCode||e.keyCode)))return}c=l.htDialogs[a.$getAncestorDiv(b.id,"JDialog").id];c.manager.actionPerformed(h?h.name:c.registryKey+"/"+b.id)};l.setFront=function(b){var e=b.manager.vwr.html5Applet;b.zIndex!=a._getZ(e,"dialog")&&(b.zIndex=a._incrZ(e,"dialog"));b.container&&((b.container[0]||b.container).style.zIndex=b.zIndex)};l.hideMenus=function(a){if(a=a._menus)for(var b in a)a[b]._visible&&l.hideMenu(a[b])};l.windowClosing=function(b){b=l.htDialogs[a.$getAncestorDiv(b.id,
"JDialog").id];b.registryKey?b.manager.processWindowClosing(b.registryKey):b.dispose()};a._track=function(b){if(a._tracker){try{var e='<iframe style="display:none" width="0" height="0" frameborder="0" tabindex="-1" src="'+(a._tracker+"&applet="+b._jmolType+"&version="+a._version+"&appver="+a.___JmolVersion+"&url="+encodeURIComponent(document.location.href))+'"></iframe>';a.$after("body",e)}catch(c){}delete a._tracker}return b};var m;a.getProfile=function(a){if(self.Clazz&&self.JSON)return m||Clazz._startProfiling(m=
0==arguments.length||a),Clazz.getProfile()};a._getInChIKey=function(a,b){0<=b.indexOf("MOL=")&&b.split("MOL=")[1].split('"')};a._getAttr=function(a,b){var c=a.indexOf(b+"=");return 0<=c&&0<=(c=a.indexOf('"',c))?a.substring(c+1,a.indexOf('"',c+1)):null};a.User={viewUpdatedCallback:null};a.View={count:0,applets:{},sets:{}};(function(b){b.resetView=function(b,d){debugger;if(d){if(d._viewSet){var c=a.View.applets[d._viewSet];for(b in c)b!=d&&a.View.resetView(b)}}else b&&(b._reset(),a.View.updateView(b))};
b.updateView=function(e,c){if(null!=e._viewSet){c||(c={});c.chemID||(e._searchQuery=null);c.data||(c.data="N/A");c.type=e._viewType;if(null==(e._currentView=b.__findView(e._viewSet,c)))e._currentView=b.__createViewSet(e._viewSet,c.chemID,c.viewID||c.chemID);e._currentView[c.type].data=c.data;e._currentView[c.type].smiles=e._getSmiles();a.User.viewUpdatedCallback&&a.User.viewUpdatedCallback(e,"updateView");b.__setView(e._currentView,e,!1)}};b.updateFromSync=function(e,c){e._updateMsg=c;var f=a._getAttr(c,
"sourceID")||a._getAttr(c,"file");if(f){var g=b.__findView(e._viewSet,{viewID:f});if(null==g)return a.updateView(e,c);g!=e._currentView&&b.__setView(g,e,!0);var k=(f=a._getAttr(c,"atoms"))&&0<=c.indexOf("selectionhalos ON")?eval("["+f+"]"):[];setTimeout(function(){e._currentView==g&&b.updateAtomPick(e,k)},10);a.User.viewUpdatedCallback&&a.User.viewUpdatedCallback(e,"updateFromSync")}};b.updateAtomPick=function(b,d){var c=b._currentView;if(null!=c){for(var f in c)"info"!=f&&c[f].applet!=b&&c[f].applet._updateAtomPick(d);
a.User.viewUpdatedCallback&&a.User.viewUpdatedCallback(b,"updateAtomPick")}};b.dumpViews=function(a){var c=b.sets[a];if(c){var f="View set "+a+":\n";a=b.applets[a];for(var g in a)f+="\napplet "+a[g]._id+" currentView="+(a[g]._currentView?a[g]._currentView.info.viewID:null);for(g=c.length;0<=--g;){a=c[g];var f=f+("\n\n<b>view="+g+" viewID="+a.info.viewID+" chemID="+a.info.chemID+"</b>\n"),k,j;for(j in a)"info"!=j&&(f+="\nview="+g+" type="+j+" applet="+((k=a[j]).applet?k.applet._id:null)+" SMILES="+
k.smiles+"\n atomMap="+JSON.stringify(k.atomMap)+"\n data=\n"+k.data+"\n")}return f}};b.__init=function(a){var c=a._viewSet,f=b.applets;f[c]||(f[c]={});f[c][a._viewType]=a};b.__findView=function(a,c){var f=b.sets[a];null==f&&(f=b.sets[a]=[]);for(var g=f.length;0<=--g;){var k=f[g];if(c.viewID){if(k.info.viewID==c.viewID)return k}else{if(null!=c.chemID&&c.chemID==k.info.chemID)return k;for(var j in k)if("info"!=j&&(null!=c.data&&null!=k[j].data?c.data==k[j].data:c.type==j))return k}}return null};b.__createViewSet=
function(e,c,f){b.count++;c={info:{chemID:c,viewID:f||"model_"+b.count}};for(var g in a._applets)f=a._applets[g],f._viewSet==e&&(c[f._viewType]={applet:f,data:null});b.sets[e].push(c);return c};b.__setView=function(a,b,d){for(var c in a)if("info"!=c){var f=a[c],g=f.applet,k=d||null!=g&&"<modified>"==g._molData;if(!(null==g||g==b&&!k)){var j=null==f.data,l=null!=g._currentView;g._currentView=a;if(!l||!(a[c].data==f.data&&!j&!k))if(g._loadModelFromView(a),j)break}}}})(a.View);a.Cache={fileCache:{}};
a.Cache.get=function(b){return a.Cache.fileCache[b]};a.Cache.put=function(b,e){a.Cache.fileCache[b]=e};a.Cache.setDragDrop=function(b){a.$appEvent(b,"appletdiv","dragover",function(a){a=a.originalEvent;a.stopPropagation();a.preventDefault();a.dataTransfer.dropEffect="copy"});a.$appEvent(b,"appletdiv","drop",function(e){var c=e.originalEvent;c.stopPropagation();c.preventDefault();var f=c.dataTransfer.files[0];if(null==f)try{f=""+c.dataTransfer.getData("text"),(0==f.indexOf("file:/")||0==f.indexOf("http:/")||
0==f.indexOf("https:/"))&&b._scriptLoad(f)}catch(g){}else c=new FileReader,c.onloadend=function(c){if(c.target.readyState==FileReader.DONE){var h="cache://DROP_"+f.name;c=Clazz.newByteArray(-1,c.target.result);h.endsWith(".spt")||b._appletPanel.cacheFileByName("cache://DROP_*",!1);"JSV"==b._viewType||h.endsWith(".jdx")?a.Cache.put(h,c):b._appletPanel.cachePut(h,c);(c=a._jsGetXY(b._canvas,e))&&(!b._appletPanel.setStatusDragDropped||b._appletPanel.setStatusDragDropped(0,c[0],c[1],h))&&b._appletPanel.openFileAsyncSpecial(h,
1)}},c.readAsArrayBuffer(f)})}})(Jmol,jQuery);Jmol._debugCode=!1;
(function(a){a._isAsync=!1;a._asyncCallbacks={};a._coreFiles=[];var j=!1,g=[],c=[],b=0,f=[],k=[],l=function(e){arguments.length||(e=!0);delete b;for(var d;0<c.length&&"done"==(d=c[0])[4];)c.shift();if(0!=c.length)if(!a._isAsync&&!e)setTimeout(l,10);else{d.push("done");var f="JSmol exec "+d[0]._id+" "+d[3]+" "+d[2];self.Zystem&&Zystem.out.println(f);self.console&&console.log(f+" -- OK");g.push(f);d[1](d[0],d[2])}},m=function(b){j?l():(j=!0,LoadClazz(),b._noMonitor&&(Clazz._LoaderProgressMonitor.showStatus=
function(){}),LoadClazz=null,b.__Info.uncompressed&&Clazz.loadClass(),Clazz._Loader.onGlobalLoaded=function(){Clazz._LoaderProgressMonitor.showStatus("Application loaded.",!0);if(!a._debugCode||!a.haveCore)a.haveCore=!0,l()},Clazz._Loader.loadPackageClasspath("java",null,!0,l))},d=function(a,b){Clazz._Loader.loadClass(b,function(){l()})};a.showExecLog=function(){return g.join("\n")};a._addExec=function(a){a[1]||(a[1]=d);var b="JSmol load "+a[0]._id+" "+a[3];self.console&&console.log(b+"...");g.push(b);
c.push(a)};a._addCoreFile=function(b,c,d){b=b.toLowerCase().split(".")[0];if(!(0<=f.join("").indexOf(b))){f.push(b);f.sort();a._coreFiles=[c+"/core/core"+f.join("")+".z.js"];if(d&&(d=d.split(" ")))for(b=0;b<d.length;b++)0>k.join("").indexOf(d[b])&&k.push(c+"/core/core"+d[b]+".z.js");for(b=0;b<k.length;b++)a._coreFiles.push(k[b])}};a._Canvas2D=function(b,d,c,f){this._uniqueId=(""+Math.random()).substring(3);this._id=b;this._is2D=!0;this._isJava=!1;this._jmolType="Jmol._Canvas2D ("+c+")";this._isLayered=
d._isLayered||!1;this._isSwing=d._isSwing||!1;this._isJSV=d._isJSV||!1;this._isAstex=d._isAstex||!1;this._platform=d._platform||"";if(f)return this;window[b]=this;this._createCanvas(b,d);if(!a._document||this._deferApplet)return this;this._init();return this};a._setAppletParams=function(b,d,c,f){for(var g in c)if(!b||0<=b.indexOf(";"+g.toLowerCase()+";"))null==c[g]||"language"==g&&!a.featureDetection.supportsLocalization()||(f?d.put(g,!0===c[g]?Boolean.TRUE:!1===c[g]?Boolean.FALSE:c[g]):d[g]=c[g])};
a._jsSetPrototype=function(d){d._init=function(){this._setupJS();this._showInfo(!0);this._disableInitialConsole&&this._showInfo(!1)};d._createCanvas=function(b,d,c){a._setObject(this,b,d);c&&(this._GLmol=c,this._GLmol.applet=this,this._GLmol.id=this._id);c=a._getWrapper(this,!0);this._deferApplet||(a._document?(a._documentWrite(c),this._newCanvas(!1),c=""):(this._deferApplet=!0,c+="<img width=0 height=0 onerror="+b+"._cover(false) >"));c+=a._getWrapper(this,!1);d.addSelectionOptions&&(c+=a._getGrabberOptions(this));
a._debugAlert&&!a._document&&alert(c);this._code=a._documentWrite(c)};d._newCanvas=function(a){this._is2D?this._createCanvas2d(a):this._GLmol.create()};d._getHtml5Canvas=function(){return this._canvas};d._getWidth=function(){return this._canvas.width};d._getHeight=function(){return this._canvas.height};d._getContentLayer=function(){return a.$(this,"contentLayer")[0]};d._repaintNow=function(){a.repaint(this,!1)};d._createCanvas2d=function(){var b=a.$(this,"appletdiv");try{b[0].removeChild(this._canvas),
this._canvas.frontLayer&&b[0].removeChild(this._canvas.frontLayer),this._canvas.rearLayer&&b[0].removeChild(this._canvas.rearLayer),this._canvas.contentLayer&&b[0].removeChild(this._canvas.contentLayer),a._jsUnsetMouse(this._mouseInterface)}catch(d){}var c=Math.round(b.width()),e=Math.round(b.height()),f=document.createElement("canvas");f.applet=this;this._canvas=f;f.style.width="100%";f.style.height="100%";f.width=c;f.height=e;f.id=this._id+"_canvas2d";b.append(f);a._$(f.id).css({"z-index":a._getZ(this,
"main")});if(this._isLayered){var g=document.createElement("div");f.contentLayer=g;g.id=this._id+"_contentLayer";b.append(g);a._$(g.id).css({zIndex:a._getZ(this,"image"),position:"absolute",left:"0px",top:"0px",width:(this._isSwing?c:0)+"px",height:(this._isSwing?e:0)+"px",overflow:"hidden"});this._isSwing?(b=document.createElement("div"),b.id=this._id+"_swingdiv",a._$(this._id+"_appletinfotablediv").append(b),a._$(b.id).css({zIndex:a._getZ(this,"rear"),position:"absolute",left:"0px",top:"0px",width:c+
"px",height:e+"px",overflow:"hidden"}),this._mouseInterface=f.contentLayer,f.contentLayer.applet=this):this._mouseInterface=this._getLayer("front",b,c,e,!1)}else this._mouseInterface=f;a._jsSetMouse(this._mouseInterface)};d._getLayer=function(b,d,c,e,f){var g=document.createElement("canvas");this._canvas[b+"Layer"]=g;g.style.width="100%";g.style.height="100%";g.id=this._id+"_"+b+"Layer";g.width=c;g.height=e;d.append(g);g.applet=this;a._$(g.id).css({background:f?"rgb(0,0,0,1)":"rgb(0,0,0,0.001)","z-index":a._getZ(this,
b),position:"absolute",left:"0px",top:"0px",overflow:"hidden"});return g};d._setupJS=function(){window["j2s.lib"]={base:this._j2sPath+"/",alias:".",console:this._console,monitorZIndex:a._getZ(this,"monitorZIndex")};0==c.length&&a._addExec([this,m,null,"loadClazz"]);this._addCoreFiles();a._addExec([this,this.__startAppletJS,null,"start applet"]);this._isSigned=!0;this._ready=!1;this._applet=null;this._canScript=function(){return!0};this._savedOrientations=[];b&&clearTimeout(b);b=setTimeout(l,100)};
d.__startAppletJS=function(b){0==a._version.indexOf("$Date: ")&&(a._version=(a._version.substring(7)+" -").split(" -")[0]+" (JSmol/j2s)");var d=Clazz._4Name("java.util.Hashtable").newInstance();a._setAppletParams(b._availableParams,d,b.__Info,!0);d.put("appletReadyCallback","Jmol._readyCallback");d.put("applet",!0);d.put("name",b._id);d.put("syncId",a._syncId);a._isAsync&&d.put("async",!0);b._color&&d.put("bgcolor",b._color);b._startupScript&&d.put("script",b._startupScript);a._syncedApplets.length&&
d.put("synccallback","Jmol._mySyncCallback");d.put("signedApplet","true");d.put("platform",b._platform);b._is2D&&d.put("display",b._id+"_canvas2d");d.put("documentBase",document.location.href);var c=b._j2sPath+"/";if(0>c.indexOf("://")){var e=document.location.href.split("#")[0].split("?")[0].split("/");0==c.indexOf("/")?e=[e[0],c.substring(1)]:e[e.length-1]=c;c=e.join("/")}b._j2sFullPath=c.substring(0,c.length-1);d.put("codePath",c);a._registerApplet(b._id,b);try{b._newApplet(d)}catch(f){Zystem.out.println((a._isAsync?
"normal async abort from ":"")+f);return}b._jsSetScreenDimensions();l()};d._restoreState||(d._restoreState=function(){});d._jsSetScreenDimensions=function(){if(this._appletPanel){var b=a._getElement(this,this._is2D?"canvas2d":"canvas");this._appletPanel.setScreenDimension(b.width,b.height)}};d._show=function(b){a.$setVisible(a.$(this,"appletdiv"),b);b&&a.repaint(this,!0)};d._canScript=function(){return!0};d.equals=function(a){return this==a};d.clone=function(){return this};d.hashCode=function(){return parseInt(this._uniqueId)};
d._processGesture=function(a){return this._appletPanel.processTwoPointGesture(a)};d._processEvent=function(a,b){this._appletPanel.processMouseEvent(a,b[0],b[1],b[2],Zystem.currentTimeMillis())};d._resize=function(){var b="__resizeTimeout_"+this._id;a[b]&&clearTimeout(a[b]);var d=this;a[b]=setTimeout(function(){a.repaint(d,!0);a[b]=null},100)};return d};a.repaint=function(b,d){if(b&&b._appletPanel){var c=a.$(b,"appletdiv"),f=Math.round(c.width()),c=Math.round(c.height());if(b._is2D&&(b._canvas.width!=
f||b._canvas.height!=c))b._newCanvas(!0),b._appletPanel.setDisplay(b._canvas);b._appletPanel.setScreenDimension(f,c);f=function(){b._appletPanel.paint?b._appletPanel.paint(null):b._appletPanel.update(null)};d?requestAnimationFrame(f):f()}};a.loadImage=function(b,d,c,f,g,k){var j="echo_"+d+c+(f?"_"+f.length:""),l=a.getHiddenCanvas(b.vwr.html5Applet,j,0,0,!1,!0);if(null==l){if(null==k){k=new Image;if(null==f)return k.onload=function(){a.loadImage(b,d,c,null,g,k)},k.src=c,null;Zystem.out.println("Jsmol.js Jmol.loadImage using data URI for "+
j);k.src="string"==typeof f?f:"data:"+JU.Rdr.guessMimeTypeForBytes(f)+";base64,"+JU.Base64.getBase64(f)}var m=k.width,u=k.height;"webgl"==d&&(m/=2,u/=2);l=a.getHiddenCanvas(b.vwr.html5Applet,j,m,u,!0,!1);l.imageWidth=m;l.imageHeight=u;l.id=j;l.image=k;a.setCanvasImage(l,m,u)}else Zystem.out.println("Jsmol.js Jmol.loadImage reading cached image for "+j);return null==f?g(l,c):l};a._canvasCache={};a.getHiddenCanvas=function(b,d,c,f,g,k){d=b._id+"_"+d;b=a._canvasCache[d];if(k)return b;if(g||!b||b.width!=
c||b.height!=f)b=document.createElement("canvas"),b.width=b.style.width=c,b.height=b.style.height=f,b.id=d,a._canvasCache[d]=b;return b};a.setCanvasImage=function(a,b,d){a.buf32=null;a.width=b;a.height=d;a.getContext("2d").drawImage(a.image,0,0,a.image.width,a.image.height,0,0,b,d)};a.applyFunc=function(a,b){return a(b)}})(Jmol);
(function(a,j){a._Applet=function(b,c,g){window[b]=this;this._jmolType="Jmol._Applet"+(c.isSigned?" (signed)":"");this._viewType="Jmol";this._isJava=!0;this._syncKeyword="Select:";this._availableParams=";progressbar;progresscolor;boxbgcolor;boxfgcolor;allowjavascript;boxmessage;\t\t\t\t\t\t\t\t\t;messagecallback;pickcallback;animframecallback;appletreadycallback;atommovedcallback;\t\t\t\t\t\t\t\t\t;echocallback;evalcallback;hovercallback;language;loadstructcallback;measurecallback;\t\t\t\t\t\t\t\t\t;minimizationcallback;resizecallback;scriptcallback;statusform;statustext;statustextarea;\t\t\t\t\t\t\t\t\t;synccallback;usecommandthread;syncid;appletid;startupscript;menufile;";
if(g)return this;this._isSigned=c.isSigned;this._readyFunction=c.readyFunction;this._ready=!1;this._isJava=!0;this._isInfoVisible=!1;this._applet=null;this._memoryLimit=c.memoryLimit||512;this._canScript=function(){return!0};this._savedOrientations=[];this._initialize=function(b,g){var d=!1;a._jarFile&&(g=a._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")?(b=e.substring(0,e.lastIndexOf("/")),g=e.substring(e.lastIndexOf("/")+1)):d=!0):g=e;this_isSigned=c.isSigned=0<=g.indexOf("Signed")}this._jarPath=c.jarPath=b||".";this._jarFile=c.jarFile="string"==typeof g?g:(g?"JmolAppletSigned":"JmolApplet")+"0.jar";d&&alert("The web page URL was ignored. Continuing using "+this._jarFile+' in directory "'+this._jarPath+'"');void 0==a.controls||a.controls._onloadResetForms()};this._create(b,c);return this};
var g=a._Applet,c=a._Applet.prototype;g._get=function(b,c,k){k||(k=!1);c||(c={});a._addDefaultInfo(c,{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,makeLiveImage:null,coverTitle:"",coverCommand:"",deferApplet:!1,deferUncover:!1,disableJ2SLoadMonitor:!1,disableInitialConsole:!0,debug:!1});a._debugAlert=
c.debug;c.serverURL&&(a._serverUrl=c.serverURL);for(var j=!1,m=null,d=c.use.toUpperCase().split("#")[0].split(" "),e=0;e<d.length;e++){switch(d[e]){case "JAVA":j=!0;a.featureDetection.supportsJava()&&(m=new g(b,c,k));break;case "WEBGL":m=g._getCanvas(b,c,k,!0);break;case "HTML5":a.featureDetection.allowHTML5?m=g._getCanvas(b,c,k,!1):d.push("JAVA")}if(null!=m)break}null==m&&(k||!j?m={_jmolType:"none"}:j&&(m=new g(b,c)));return k?m:a._registerApplet(b,m)};g._getCanvas=function(b,c,k,j){c._isLayered=
!1;c._platform="J.awtjs2d.Platform";return j&&a.featureDetection.supportsWebGL()?(a._Canvas3D.prototype=a.GLmol.extendApplet(a._jsSetPrototype(new g(b,c,!0))),new a._Canvas3D(b,c,"Jmol",k)):!j?(a._Canvas2D.prototype=a._jsSetPrototype(new g(b,c,!0)),new a._Canvas2D(b,c,"Jmol",k)):null};g._noJavaMsg="Either you do not have Java applets enabled in your web<br />browser or your browser is blocking this applet.<br />\t\t\tCheck the warning message from your browser and/or enable Java applets in<br />\t\t\tyour web browser preferences, or install the Java Runtime Environment from <a href='http://www.java.com'>www.java.com</a>";
g._setCommonMethods=function(a){a._showInfo=c._showInfo;a._search=c._search;a._getName=c._getName;a._readyCallback=c._readyCallback};g._createApplet=function(b,c,k){b._initialize(c.jarPath,c.jarFile);var l=b._jarFile;a._isFile&&(l=l.replace(/0\.jar/,".jar"));var m=0<=b._containerWidth.indexOf("px")?b._containerWidth:"100%",d=0<=b._containerHeight.indexOf("px")?b._containerHeight:"100%",m=' style="width:'+m+";height:"+d+'" ',d="name='"+b._id+"_object' id='"+b._id+"_object' \n"+m+"\n";k.codebase=b._jarPath;
k.codePath=k.codebase+"/";if(0>k.codePath.indexOf("://")){var e=j.location.href.split("#")[0].split("?")[0].split("/");e[e.length-1]=k.codePath;k.codePath=e.join("/")}k.archive=l;k.mayscript="true";k.java_arguments="-Xmx"+Math.round(c.memoryLimit||b._memoryLimit)+"m";k.permissions=b._isSigned?"all-permissions":"sandbox";k.documentLocation=j.location.href;k.documentBase=j.location.href.split("#")[0].split("?")[0];k.jarPath=c.jarPath;a._syncedApplets.length&&(k.synccallback="Jmol._mySyncCallback");
b._startupScript&&(k.script=b._startupScript);var e="\n",h;for(h in k)k[h]&&(e+="  <param name='"+h+"' value='"+k[h]+"' />\n");e=a.featureDetection.useIEObject||a.featureDetection.useHtml4Object?"<object "+d+(a.featureDetection.useIEObject?" classid='clsid:8AD9C840-044E-11D1-B3E9-00805F499D93' codebase='http://java.sun.com/update/1.6.0/jinstall-6u22-windows-i586.cab'>":" type='application/x-java-applet'>")+e+"<p style='background-color:yellow;"+m.split('"')[1]+";text-align:center;vertical-align:middle;'>\n"+
g._noJavaMsg+"</p></object>\n":"<applet "+d+" code='"+k.code+"' codebase='"+b._jarPath+"' archive='"+l+"' mayscript='true'>\n"+e+"<table bgcolor='yellow'><tr><td align='center' valign='middle' "+m+">\n"+g._noJavaMsg+"</td></tr></table></applet>\n";b._deferApplet&&(b._javaCode=e,e="");e=a._getWrapper(b,!0)+e+a._getWrapper(b,!1)+(c.addSelectionOptions?a._getGrabberOptions(b):"");a._debugAlert&&alert(e);b._code=a._documentWrite(e)};c._newApplet=function(a){this._is2D||a.put("script",(a.get("script")||
"")+";set multipleBondSpacing 0.35;");this._viewerOptions=a;return new J.appletjs.Jmol(a)};c._addCoreFiles=function(){a._addCoreFile("jmol",this._j2sPath,this.__Info.preloadCore);this._is2D||a._addExec([this,null,"J.export.JSExporter","load JSExporter"]);a._debugCode&&a._addExec([this,null,"J.appletjs.Jmol","load Jmol"])};c._create=function(b,c){a._setObject(this,b,c);var k={syncId:a._syncId,progressbar:"true",progresscolor:"blue",boxbgcolor:this._color||"black",boxfgcolor:"white",boxmessage:"Downloading JmolApplet ...",
script:this._color?'background "'+this._color+'"':"",code:"JmolApplet.class"};a._setAppletParams(this._availableParams,k,c);var j;c.inlineModel?(j=c.inlineModel,j=j.replace(/\r|\n|\r\n/g,0<=j.indexOf("|")?"\\/n":"|").replace(/'/g,"&#39;"),a._debugAlert&&alert("inline model:\n"+j)):j="";k.loadInline=j;k.appletReadyCallback="Jmol._readyCallback";a._syncedApplets.length&&(k.synccallback="Jmol._mySyncCallback");k.java_arguments="-Xmx"+Math.round(c.memoryLimit||this._memoryLimit)+"m";this._initialize(c.jarPath,
c.jarFile);g._createApplet(this,c,k)};c._restoreState=function(b,c){Zystem.out.println("\n\nasynchronous restore state for "+b+" "+c);var g=this,j=g._applet&&g._applet.viewer;switch(c){case "setOptions":return function(){g.__startAppletJS(g)};case "render":return function(){setTimeout(function(){j.refresh(2)},10)};default:switch(b){case "J.shape.Balls":case "J.shape.Sticks":case "J.shape.Frank":return null}if(j&&j.isScriptExecuting&&j.isScriptExecuting()){if(a._asyncCallbacks[b])return Zystem.out.println("...ignored"),
1;var m=j.getEvalContextAndHoldQueue(j.eval),d=m.pc-1;m.asyncID=b;a._asyncCallbacks[b]=function(a){m.pc=a;Zystem.out.println("sc.asyncID="+m.asyncID+" sc.pc = "+m.pc);j.eval.resumeEval(m)};j.eval.pc=j.eval.pcEnd;Zystem.out.println("setting resume for pc="+m.pc+" "+b+" to "+a._asyncCallbacks[b]+"//");return function(){Zystem.out.println("resuming "+b+" "+a._asyncCallbacks[b]);a._asyncCallbacks[b](d)}}Zystem.out.println(b+"?????????????????????"+c);return function(){setTimeout(function(){j.refresh(2)},
10)}}};c._notifyAudioEnded=function(a){this._applet.notifyAudioEnded(a)};c._readyCallback=function(b,c,g){if(g){a._setDestroy(this);this._ready=!0;b=this._readyScript;this._defaultModel?a._search(this,this._defaultModel,b?";"+b:""):b?this._script(b):this._src&&this._script('load "'+this._src+'"');this._showInfo(!0);this._showInfo(!1);a.Cache.setDragDrop(this);this._readyFunction&&this._readyFunction(this);a._setReady(this);if((b=this._2dapplet)&&b._isEmbedded&&b._ready&&b.__Info.visible)this._show2d(!0),
this._show2d(!1),this._show2d(!0);a._hideLoadingSpinner(this)}};c._showInfo=function(b){b&&this._2dapplet&&this._2dapplet._show(!1);a.$html(a.$(this,"infoheaderspan"),this._infoHeader);this._info&&a.$html(a.$(this,"infodiv"),this._info);if(!this._isInfoVisible!=!b){this._isInfoVisible=b;if(this._isJava){var c=b?2:"100%";a.$setSize(a.$(this,"appletdiv"),c,c)}a.$setVisible(a.$(this,"infotablediv"),b);a.$setVisible(a.$(this,"infoheaderdiv"),b);this._show(!b)}};c._show2d=function(a){this._2dapplet._show2d(a);
this._2dapplet._isEmbedded&&(this._showInfo(!1),this._show(!a),this._2dapplet.__showContainer(!0,!0))};c._getSpinner=function(){return this.__Info.appletLoadingImage||this._j2sPath+"/img/JSmol_spinner.gif"};c._getAtomCorrelation=function(a,c){var g=this._evaluate("{*}.count");if(0!=g){this._loadMolData(a,"atommap = compare({1.1} {2.1} 'MAP' "+(c?"":"'H'")+"); zap 2.1",!0);for(var j=this._evaluate("atommap"),m=[],d=[],e=0;e<j.length;e++){var h=j[e];m[h[0]+1]=h[1]-g+1;d[h[1]-g+1]=h[0]+1}return{fromJmol:m,
toJmol:d}}};c._show=function(b){var c=!b?2:"100%";a.$setSize(a.$(this,"object"),c,c);this._isJava||a.$setVisible(a.$(this,"appletdiv"),b)};c._clearConsole=function(){this._console==this._id+"_infodiv"&&(this.info="");self.Clazz&&(a._setConsoleDiv(this._console),Clazz.Console.clear())};c._addScript=function(a){this._readyScript||(this.readyScript="");this._readyScript&&(this._readyScript+=";");this._readyScript+=a;return!0};c._script=function(b){if(!this._ready)return this._addScript(b);a._setConsoleDiv(this._console);
a._hideLocalFileReader(this);this._applet.script(b)};c._syncScript=function(a){this._applet.syncScript(a)};c._scriptCheck=function(a){return this._ready&&this._applet.scriptCheck(a)};c._scriptWait=function(a,c){var g=this._scriptWaitAsArray(a),j="";if(!c)for(var m=g.length;0<=--m;)for(var d=0,e=g[m].length;d<e;d++)j+=g[m][d]+"\n";return j};c._scriptEcho=function(a){a=this._scriptWaitAsArray(a);for(var c="",g=a.length;0<=--g;)for(var j=a[g].length;0<=--j;)"scriptEcho"==a[g][j][1]&&(c+=a[g][j][3]+"\n");
return c.replace(/ \| /g,"\n")};c._scriptMessage=function(a){a=this._scriptWaitAsArray(a);for(var c="",g=a.length;0<=--g;)for(var j=a[g].length;0<=--j;)"scriptStatus"==a[g][j][1]&&(c+=a[g][j][3]+"\n");return c.replace(/ \| /g,"\n")};c._scriptWaitOutput=function(a){var c="";try{a&&(c+=this._applet.scriptWaitOutput(a))}catch(g){}return c};c._scriptWaitAsArray=function(b){var c="";try{if(this._getStatus("scriptEcho,scriptMessage,scriptStatus,scriptError"),b&&(c+=this._applet.scriptWait(b),c=a._evalJSON(c,
"jmolStatus"),"object"==typeof c))return c}catch(g){}return[[c]]};c._getStatus=function(b){return a._sortMessages(this._getPropertyAsArray("jmolStatus",b))};c._getPropertyAsArray=function(b,c){return a._evalJSON(this._getPropertyAsJSON(b,c),b)};c._getPropertyAsString=function(a,c){void 0==c&&(c="");return this._applet.getPropertyAsString(a,c)+""};c._getPropertyAsJSON=function(a,c){void 0==c&&(c="");try{return this._applet.getPropertyAsJSON(a,c)+""}catch(g){return""}};c._getPropertyAsJavaObject=function(a,
c){void 0==c&&(c="");return this._applet.getProperty(a,c)};c._evaluate=function(a){null!=a||(a="");return this._getPropertyAsArray("variableInfo",a)};c._evaluateDEPRECATED=function(a){a=""+this._getPropertyAsJavaObject("evaluate",a);var c=a.replace(/\-*\d+/,"");if(""==c&&!isNaN(parseInt(a)))return parseInt(a);c=a.replace(/\-*\d*\.\d*/,"");return""==c&&!isNaN(parseFloat(a))?parseFloat(a):a};c._saveOrientation=function(a){return this._savedOrientations[a]=this._getPropertyAsArray("orientationInfo",
"info").moveTo};c._restoreOrientation=function(a){a=this._savedOrientations[a];return!a||""==a?a.replace(/1\.0/,"0"):this._scriptWait(a)};c._restoreOrientationDelayed=function(a,c){1>arguments.length&&(c=1);var g=this._savedOrientations[a];return!g||""==g?g.replace(/1\.0/,c):this._scriptWait(g)};c._resizeApplet=function(b){function c(b,g){var d=""+b;return 0==d.length?g?"":a._allowedJmolSize[2]:d.indexOf("%")==d.length-1?d:1>=(b=parseFloat(b))&&0<b?100*b+"%":(isNaN(b=Math.floor(b))?a._allowedJmolSize[2]:
b<a._allowedJmolSize[0]?a._allowedJmolSize[0]:b>a._allowedJmolSize[1]?a._allowedJmolSize[1]:b)+(g?g:"")}var g;"object"==typeof b&&null!=b?(g=b[0]||b.width,b=b[1]||b.height):g=b;g=[c(g,"px"),c(b,"px")];b=a._getElement(this,"appletinfotablediv");b.style.width=g[0];b.style.height=g[1];this._containerWidth=g[0];this._containerHeight=g[1];this._is2D&&a.repaint(this,!0)};c._search=function(b,c){a._search(this,b,c)};c._searchDatabase=function(b,c,g){if(this._2dapplet&&this._2dapplet._isEmbedded&&!a.$(this,
"appletdiv:visible")[0])return this._2dapplet._searchDatabase(b,c,g);this._showInfo(!1);0<=b.indexOf("?")?a._getInfoFromDatabase(this,c,b.split("?")[0]):(g||(g=a._getScriptForDatabase(c)),b=c+b,this._currentView=null,this._searchQuery=b,this._loadFile(b,g,b))};c._loadFile=function(b,c,g){this._showInfo(!1);c||(c="");this._thisJmolModel=""+Math.random();this._fileName=b;if(!this._scriptLoad(b,c)){var j=this;a._loadFileData(this,b,function(a){j.__loadModel(a,c,g)},function(){j.__loadModel(null)})}};
c._scriptLoad=function(a,c){c||(c="");var g=this._isJava||!this._noscript;g&&this._script("zap;set echo middle center;echo Retrieving data...");if(!this._isSigned||null!=this._viewSet)return!1;g?this._script('load async "'+a+'";'+c):this._applet.openFile(a);this._checkDeferred("");return!0};c.__loadModel=function(b,c,g){null!=b&&(null!=this._viewSet&&(c||(c=""),c+=";if ({*}.molecule.max > 1 || {*}.modelindex.max > 0){ delete molecule > 1 or modelindex > 0;x = getProperty('extractModel',{*});load inline @x};"),
!c&&this._noscript?this._applet.loadInlineString(b,"",!1):this._loadMolData(b,c,!1),null!=this._viewSet&&a.View.updateView(this,{chemID:g,data:b}))};c._loadMolData=function(a,c,g){c||(c="");g=g?"append":"model";this._applet.scriptWait('load DATA "'+g+'"'+a+'\nEND "'+g+'" ;'+c)};c._loadModelFromView=function(b){this._currentView=b;var c=b.Jmol;null!=c.data?this.__loadModel(c.data,null,b.info.chemID):null!=b.info.chemID?a._searchMol(this,b.info.chemID,null,!1):(c=b.JME)&&c.applet._show2d(!1,this)};
c._reset=function(){this._scriptWait("zap",!0)};c._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}")}))};c._atomPickedCallback=function(b,c){if(!(0>c)){var g=[c+1];a.View.updateAtomPick(this,g);this._updateAtomPick(g)}};c._updateAtomPick=
function(a){this._script(0==a.length?"select none":"select on visible and (@"+a.join(",@")+")")};c._isDeferred=function(){return!this._canvas&&this._cover&&this._isCovered&&this._deferApplet};c._checkDeferred=function(a){return this._isDeferred()?(this._coverScript=a,this._cover(!1),!0):!1};c._cover=function(b){b||!this._deferApplet?this._displayCoverImage(b):(b=this._coverScript?this._coverScript:"",this._coverScript="",this._deferUncover&&(b+=";refresh;javascript "+this._id+"._displayCoverImage(false)"),
this._script(b,!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())};c._displayCoverImage=function(b){this._coverImage&&this._isCovered!=b&&(this._isCovered=b,a._getElement(this,"coverdiv").style.display=
b?"block":"none")};c._getSmiles=function(){return this._evaluate("{visible}.find('SMILES')")};c._getMol=function(){return this._evaluate("getProperty('ExtractModel',{visible})")};c._getMol2D=function(){return this._evaluate("script('select visible;show chemical sdf')")};a.jmolSmiles=function(a){return a._getSmiles()}})(Jmol,document);
(function(a){var j=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:""};
j._addScript=function(a,c){var b=j._scripts.length;j._scripts[b]=[a,c];return b};j._getIdForControl=function(a,c){return"string"==typeof a?a:!c||!a._canScript||a._canScript(c)?a._id:null};j._radio=function(a,c,b,f,k,l,m,d){var e=j._getIdForControl(a,c);if(null==e)return null;++j._radioCount;void 0!=l&&null!=l||(l="jmolRadioGroup"+(j._radioGroupCount-1));if(!c)return"";void 0!=m&&null!=m||(m="jmolRadio"+(j._radioCount-1));void 0!=b&&null!=b||(b=c.substring(0,32));k||(k="");a="</span>";j._actions[m]=
j._addScript(e,c);c='<span id="span_'+m+'"'+(d?' title="'+d+'"':"")+"><input name='"+l+"' id='"+m+"' type='radio' onclick='Jmol.controls._click(this);return true;' onmouseover='Jmol.controls._mouseOver(this);return true;' onmouseout='Jmol.controls._mouseOut()' "+(f?"checked='true' ":"")+j._radioCssText+" />";0<=b.toLowerCase().indexOf("<td>")&&(c+=a,a="");return c+('<label for="'+m+'">'+b+"</label>"+a+k)};j._scriptExecute=function(g,c){var b=a._applets[c[0]],f=c[1];if("object"==typeof f)f[0](g,f,
b);else"function"==typeof f?f(b):a.script(b,f)};j.__checkScript=function(a,c){var b=0<=c.value.indexOf("JSCONSOLE ")||""===a._scriptCheck(c.value);c.style.color=b?"black":"red";return b};j.__getCmd=function(a,c){if(c._cmds&&c._cmds.length){var b=c._cmds[c._cmdpt=(c._cmdpt+c._cmds.length+a)%c._cmds.length];setTimeout(function(){c.value=b},10);c._cmdadd=1;c._cmddir=a}};j._commandKeyPress=function(g,c,b){g=13==g?13:window.event?window.event.keyCode:g?g.keyCode||g.which:0;var f=document.getElementById(c),
k=a._applets[b];switch(g){case 13:return c=f.value,j._scriptExecute(f,[b,c]),f._cmds||(f._cmds=[],f._cmddir=0,f._cmdpt=-1,f._cmdadd=0),c&&0==f._cmdadd?(++f._cmdpt,f._cmds.splice(f._cmdpt,0,c),f._cmdadd=0,f._cmddir=0):f._cmdadd=0,f.value="",!1;case 27:return setTimeout(function(){f.value=""},20),!1;case 38:j.__getCmd(-1,f);break;case 40:j.__getCmd(1,f);break;default:f._cmdadd=0}setTimeout(function(){j.__checkScript(k,f)},20);return!0};j._click=function(a,c){j._element=a;1==arguments.length&&(c=j._actions[a.id]);
j._scriptExecute(a,j._scripts[c])};j._menuSelected=function(a){var c=a.value;if(void 0!=c)j._scriptExecute(a,j._scripts[c]);else{c=a.length;if("number"==typeof c)for(var b=0;b<c;++b)if(a[b].selected){j._click(a[b],a[b].value);return}alert("?Que? menu selected bug #8734")}};j._cbNotifyMaster=function(a){var c=!0,b=!0,f=!1,k,l;for(l in a.chkGroup)k=a.chkGroup[l],k.checked?b=!1:c=!1,k.indeterminate&&(f=!0);k=a.chkMaster;c?k.checked=!0:b?k.checked=!1:f=!0;k.indeterminate=f;(a=j._checkboxItems[k.id])&&
(k=a.chkMaster)&&j._cbNotifyMaster(j._checkboxMasters[k.id])};j._cbNotifyGroup=function(a,c){for(var b in a.chkGroup){var f=a.chkGroup[b];f.checked!=c&&(f.checked=c,j._cbClick(f));j._checkboxMasters[f.id]&&j._cbNotifyGroup(j._checkboxMasters[f.id],c)}};j._cbSetCheckboxGroup=function(a,c,b){var f=a;"number"==typeof f&&(f="jmolCheckbox"+f);(a=document.getElementById(f))||alert("jmolSetCheckboxGroup: master checkbox not found: "+f);var k=j._checkboxMasters[f]={};k.chkMaster=a;k.chkGroup={};"string"==
typeof c?(c=b,f=1):f=0;for(a=f;a<c.length;a++)f=c[a],"number"==typeof f&&(f="jmolCheckbox"+f),(b=document.getElementById(f))||alert("jmolSetCheckboxGroup: group checkbox not found: "+f),k.chkGroup[f]=b,j._checkboxItems[f]=k};j._cbClick=function(a){j._control=a;var c=j._actions[a.id][0],b=j._actions[a.id][1];j._click(a,a.checked?c:b);j._checkboxMasters[a.id]&&j._cbNotifyGroup(j._checkboxMasters[a.id],a.checked);j._checkboxItems[a.id]&&j._cbNotifyMaster(j._checkboxItems[a.id])};j._cbOver=function(a){var c=
j._actions[a.id][0],b=j._actions[a.id][1];window.status=j._scripts[a.checked?b:c]};j._mouseOver=function(a,c){1==arguments.length&&(c=j._actions[a.id]);window.status=j._scripts[c]};j._mouseOut=function(){window.status=" ";return!0};j._onloadResetForms=function(){j._hasResetForms||(j._hasResetForms=!0,j._previousOnloadHandler=window.onload,window.onload=function(){if(0<j._buttonCount+j._checkboxCount+j._menuCount+j._radioCount+j._radioGroupCount)for(var a=document.forms,c=a.length;0<=--c;)a[c].reset();
j._previousOnloadHandler&&j._previousOnloadHandler()})};j._getButton=function(g,c,b,f,k){g=j._getIdForControl(g,c);if(null==g)return"";void 0!=f&&null!=f||(f="jmolButton"+j._buttonCount);void 0!=b&&null!=b||(b=c.substring(0,32));++j._buttonCount;j._actions[f]=j._addScript(g,c);c='<span id="span_'+f+'"'+(k?' title="'+k+'"':"")+"><input type='button' name='"+f+"' id='"+f+"' value='"+b+"' onclick='Jmol.controls._click(this)' onmouseover='Jmol.controls._mouseOver(this);return true' onmouseout='Jmol.controls._mouseOut()' "+
j._buttonCssText+" /></span>";a._debugAlert&&alert(c);return a._documentWrite(c)};j._getCheckbox=function(g,c,b,f,k,l,m){var d=j._getIdForControl(g,c);null!=d&&(d=j._getIdForControl(g,b));if(null==d)return"";void 0!=l&&null!=l||(l="jmolCheckbox"+j._checkboxCount);++j._checkboxCount;if(void 0==c||null==c||void 0==b||null==b)alert("jmolCheckbox requires two scripts");else if(void 0==f||null==f)alert("jmolCheckbox requires a label");else return j._actions[l]=[j._addScript(d,c),j._addScript(d,b)],g="</span>",
k='<span id="span_'+l+'"'+(m?' title="'+m+'"':"")+"><input type='checkbox' name='"+l+"' id='"+l+"' onclick='Jmol.controls._cbClick(this)' onmouseover='Jmol.controls._cbOver(this);return true' onmouseout='Jmol.controls._mouseOut()' "+(k?"checked='true' ":"")+j._checkboxCssText+" />",0<=f.toLowerCase().indexOf("<td>")&&(k+=g,g=""),k+='<label for="'+l+'">'+f+"</label>"+g,a._debugAlert&&alert(k),a._documentWrite(k)};j._getCommandInput=function(g,c,b,f,k,l){g=j._getIdForControl(g,"x");if(null==g)return"";
void 0!=f&&null!=f||(f="jmolCmd"+j._cmdCount);void 0!=c&&null!=c||(c="Execute");void 0!=b&&!isNaN(b)||(b=60);void 0!=l||(l="help");++j._cmdCount;c='<span id="span_'+f+'"'+(k?' title="'+k+'"':"")+"><input name='"+f+"' id='"+f+"' size='"+b+"' onkeydown='return Jmol.controls._commandKeyPress(event,\""+f+'","'+g+"\")' value='"+l+"'/><input  type='button' name='"+f+"Btn' id='"+f+"Btn' value = '"+c+"' onclick='Jmol.controls._commandKeyPress(13,\""+f+'","'+g+"\")' /></span>";a._debugAlert&&alert(c);return a._documentWrite(c)};
j._getLink=function(g,c,b,f,k){g=j._getIdForControl(g,c);if(null==g)return"";void 0!=f&&null!=f||(f="jmolLink"+j._linkCount);void 0!=b&&null!=b||(b=c.substring(0,32));++j._linkCount;c=j._addScript(g,c);b='<span id="span_'+f+'"'+(k?' title="'+k+'"':"")+"><a name='"+f+"' id='"+f+"' href='javascript:Jmol.controls._click(null,"+c+");' onmouseover='Jmol.controls._mouseOver(null,"+c+");return true;' onmouseout='Jmol.controls._mouseOut()' "+j._linkCssText+">"+b+"</a></span>";a._debugAlert&&alert(b);return a._documentWrite(b)};
j._getMenu=function(g,c,b,f,k){var l=j._getIdForControl(g,null);void 0!=f&&null!=f||(f="jmolMenu"+j._menuCount);++j._menuCount;l=typeof c;if(null!=l&&"object"==l&&c.length){var m=c.length;"number"!=typeof b||1==b?b=null:0>b&&(b=m);b='<span id="span_'+f+'"'+(k?' title="'+k+'"':"")+"><select name='"+f+"' id='"+f+"' onChange='Jmol.controls._menuSelected(this)'"+(b?" size='"+b+"' ":"")+j._menuCssText+">";for(f=0;f<m;++f){var d=c[f],l=typeof d,e=null,h=k=null;"object"==l&&null!=d?(e=d[0],k=d[1],h=d[2]):
e=k=d;l=j._getIdForControl(g,e);if(null==l)return"";null==k&&(k=e);"#optgroup"==e?b+="<optgroup label='"+k+"'>":"#optgroupEnd"==e?b+="</optgroup>":(l=j._addScript(l,e),b+="<option value='"+l+(h?"' selected='true'>":"'>")+k+"</option>")}b+="</select></span>";a._debugAlert&&alert(b);return a._documentWrite(b)}};j._getRadio=function(g,c,b,f,k,l,m,d){0==j._radioGroupCount&&++j._radioGroupCount;l||(l="jmolRadioGroup"+(j._radioGroupCount-1));g=j._radio(g,c,b,f,k,l,m?m:l+"_"+j._radioCount,d?d:0);if(null==
g)return"";a._debugAlert&&alert(g);return a._documentWrite(g)};j._getRadioGroup=function(g,c,b,f,k,l){var m=typeof c;if("object"!=m||null==m||!c.length)alert("invalid arrayOfRadioButtons");else{void 0!=b&&null!=b||(b="&#xa0; ");var d=c.length;++j._radioGroupCount;f||(f="jmolRadioGroup"+(j._radioGroupCount-1));for(var e="<span id='"+(k?k:f)+"'>",h=0;h<d;++h){h==d-1&&(b="");var s=c[h],m=typeof s,N=null,e="object"==m?e+(N=j._radio(g,s[0],s[1],s[2],b,f,3<s.length?s[3]:(k?k:f)+"_"+h,4<s.length?s[4]:0,
l)):e+(N=j._radio(g,s,null,null,b,f,(k?k:f)+"_"+h,l));if(null==N)return""}e+="</span>";a._debugAlert&&alert(e);return a._documentWrite(e)}}})(Jmol);
(function(a){var j=function(a){a="&"+a+"=";return decodeURI(("&"+document.location.search.substring(1)+a).split(a)[1].split("&")[0])};a._j2sPath=j("_J2S");a._jarFile=j("_JAR");a._use=j("_USE");a.getVersion=function(){return a._jmolInfo.version};a.getApplet=function(g,c,b){return a._Applet._get(g,c,b)};a.getJMEApplet=function(g,c,b,f){return a._JMEApplet._get(g,c,b,f)};a.getJSVApplet=function(g,c,b){return a._JSVApplet._get(g,c,b)};a.loadFile=function(a,c,b){a._loadFile(c,b)};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,b){a._search(c,b)};a.evaluateVar=function(a,c){return a._evaluate(c)};a.evaluate=function(a,c){return a._evaluateDEPRECATED(c)};
a.getAppletHtml=function(g,c){if(c){var b=a._document;a._document=null;g=a.getApplet(g,c);a._document=b}return g._code};a.getPropertyAsArray=function(a,c,b){return a._getPropertyAsArray(c,b)};a.getPropertyAsJavaObject=function(a,c,b){return a._getPropertyAsJavaObject(c,b)};a.getPropertyAsJSON=function(a,c,b){return a._getPropertyAsJSON(c,b)};a.getPropertyAsString=function(a,c,b){return a._getPropertyAsString(c,b)};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,b){return a._restoreOrientationDelayed(c,b)};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,b){a._info=c;2<arguments.length&&a._showInfo(b)};a.showInfo=function(a,c){a._showInfo(c)};a.show2d=function(a,c){a._show2d(c)};a.jmolBr=function(){return a._documentWrite("<br>")};
a.jmolButton=function(g,c,b,f,j){return a.controls._getButton(g,c,b,f,j)};a.jmolCheckbox=function(g,c,b,f,j,l,m){return a.controls._getCheckbox(g,c,b,f,j,l,m)};a.jmolCommandInput=function(g,c,b,f,j,l){return a.controls._getCommandInput(g,c,b,f,j,l)};a.jmolHtml=function(g){return a._documentWrite(g)};a.jmolLink=function(g,c,b,f,j){return a.controls._getLink(g,c,b,f,j)};a.jmolMenu=function(g,c,b,f,j){return a.controls._getMenu(g,c,b,f,j)};a.jmolRadio=function(g,c,b,f,j,l,m,d){return a.controls._getRadio(g,
c,b,f,j,l,m,d)};a.jmolRadioGroup=function(g,c,b,f,j,l){return a.controls._getRadioGroup(g,c,b,f,j,l)};a.setCheckboxGroup=function(g,c){a.controls._cbSetCheckboxGroup(g,c,arguments)};a.setDocument=function(g){a._document=g};a.setXHTML=function(g){a._isXHTML=!0;a._XhtmlElement=null;a._XhtmlAppendChild=!1;g&&(a._XhtmlElement=document.getElementById(g),a._XhtmlAppendChild=!0)};a.setAppletCss=function(g,c){null!=g&&(a._appletCssClass=g);a._appletCssText=c?c+" ":g?'class="'+g+'" ':""};a.setButtonCss=function(g,
c){null!=g&&(a.controls._buttonCssClass=g);a.controls._buttonCssText=c?c+" ":g?'class="'+g+'" ':""};a.setCheckboxCss=function(g,c){null!=g&&(a.controls._checkboxCssClass=g);a.controls._checkboxCssText=c?c+" ":g?'class="'+g+'" ':""};a.setRadioCss=function(g,c){null!=g&&(a.controls._radioCssClass=g);a.controls._radioCssText=c?c+" ":g?'class="'+g+'" ':""};a.setLinkCss=function(g,c){null!=g&&(a.controls._linkCssClass=g);a.controls._linkCssText=c?c+" ":g?'class="'+g+'" ':""};a.setMenuCss=function(g,c){null!=
g&&(a.controls._menuCssClass=g);a.controls._menuCssText=c?c+" ":g?'class="'+g+'" ':""};a.setAppletSync=function(g,c,b){a._syncedApplets=g;a._syncedCommands=c;a._syncedReady={};a._isJmolJSVSync=b};a.setGrabberOptions=function(g){a._grabberOptions=g};a.setAppletHtml=function(g,c){g._code&&(a.$html(c,g._code),g._init&&!g._deferApplet&&g._init())};a.coverApplet=function(a,c){a._cover&&a._cover(c)};a.setFileCaching=function(g,c){g?g._cacheFiles=c:a.fileCache=c?{}:null};a.resetView=function(g,c){a.View.resetView(g,
c)};a.updateView=function(a,c,b){a._updateView(c,b)};a.getChemicalInfo=function(g,c,b){c||(c="name");"string"!=typeof g&&(g=g._getSmiles());return a._getNCIInfo(g,c,b)};a.saveImage=function(g,c,b){c=(c||"png").toLowerCase();b||(b=g.id+"."+c.toLowerCase());0>b.indexOf(".")&&(b+="."+c);switch(g._viewType){case "Jmol":return g._script('write PNGJ "'+b+'"');case "JSV":if("PDF"==c)return g._script("write PDF");break;case "JME":return g._script("print")}a._saveFile(b,g._canvas.toDataURL("image/png"))}})(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,_debugging:!1},function(a,j){try{a._debugging=0<=document.location.href.indexOf("j2sdebug")}catch(g){}var c=["j2s.clazzloaded","j2s.object.native"];a.setGlobal=function(a,b){c.push(a);window[a]=b};a.getGlobals=function(){return c.sort().join("\n")};a.setConsoleDiv=function(a){window["j2s.lib"]&&(window["j2s.lib"].console=
a)};var b=null;a._startProfiling=function(a){b=a&&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 f=a._O.prototype;f.equals=function(a){return this==a};f.hashCode=function(){return this._$hashcode||(this._$hashcode=++a._hashCode)};f.getClass=function(){return a.getClass(this)};
f.clone=function(){return a.clone(this)};a.clone=function(a){var b=a instanceof Array?Array(a.length):new a.constructor,c;for(c in a)b[c]=a[c];return b};f.finalize=function(){};f.notify=function(){};f.notifyAll=function(){};f.wait=function(){};f.to$tring=Object.prototype.toString;f.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;d<a._extendedObjectMethods.length;d++){var e=a._extendedObjectMethods[d];b.prototype[e]=a._O.prototype[e]}};a.extractClassName=function(a){a=a.substring(1,a.length-1);return 0<=a.indexOf("Array")?"Array":0<=a.indexOf("object ")?a.substring(7):a};a.getClassName=function(b,c){if(null==b)return"NullObject";if(b instanceof a.CastedNull)return b.clazzName;switch(typeof b){case "number":return"n";
case "boolean":return"b";case "string":return"String";case "function":if(b.__CLASS_NAME__)return c?b.__CLASS_NAME__:"Class";var d=b.toString(),e=d.indexOf("function");if(0>e)return"["==d.charAt(0)?a.extractClassName(d):d.replace(/[^a-zA-Z0-9]/g,"");var e=e+8,f=d.indexOf("(",e);if(0>f)break;d=d.substring(e,f);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||b.BYTES_PER_ELEMENT)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 k=function(b,c){for(var d=0;d<a.innerFunctionNames.length;d++)if(c==a.innerFunctionNames[d]&&a._innerFunctions[c]===b[c])return!0;return!1},l=function(){};a.inheritArgs=new l;a.inheritClass=function(b,c,d){for(var e in c)"b$"!=e&&("prototype"!=e&&"superClazz"!=e&&"__CLASS_NAME__"!=e&&"implementz"!=e&&!k(c,e))&&(b[e]=c[e]);a.unloadedClasses[a.getClassName(b,!0)]||(b.prototype=d?d:c!==Number?new c(a.inheritArgs):
new Number);b.superClazz=c;b.prototype.__CLASS_NAME__=b.__CLASS_NAME__};a.implementOf=function(a,b){if(2<=arguments.length){a.implementz||(a.implementz=[]);var c=a.implementz;if(2==arguments.length)if("function"==typeof b)c.push(b),m(a,b);else{if(b instanceof Array)for(var d=0;d<b.length;d++)c.push(b[d]),m(a,b[d])}else for(d=1;d<arguments.length;d++)c.push(arguments[d]),m(a,arguments[d])}};var m=function(a,b){for(var c in b)if("b$"!=c&&"prototype"!=c&&"superClazz"!=c&&"__CLASS_NAME__"!=c&&"implementz"!=
c&&("function"!=typeof b[c]||!k(b,c)))a[c]=a.prototype[c]=b[c]};a.extendInterface=a.implementOf;a.equalsOrExtendsLevel=function(b,c){if(b===c)return 0;if(b.implementz)for(var d=b.implementz,e=0;e<d.length;e++){var f=a.equalsOrExtendsLevel(d[e],c);if(0<=f)return f+1}return-1};a.getInheritedLevel=function(b,c){if(b===c)return 0;var d="string"==typeof b;if(d&&("void"==b||"unknown"==b))return-1;var e="string"==typeof c;if(e&&("void"==c||"unknown"==c))return-1;if(b===(d?"NullObject":NullObject))switch(c){case "n":case "b":return-1;
case Number:case Boolean:case NullObject:break;default:return 0}d&&(b=a.evalType(b));e&&(c=a.evalType(c));if(!c||!b)return-1;d=0;for(e=b;e!==c&&10>d;){if(e.implementz)for(var f=e.implementz,g=0;g<f.length;g++){var h=a.equalsOrExtendsLevel(f[g],c);if(0<=h)return d+h+1}e=e.superClazz;if(!e)return c===Object||c===a._O?d+1.5:-1;d++}return d};a.instanceOf=function(b,c){return null!=b&&c&&(b==c||b instanceof c||0<=a.getInheritedLevel(a.getClassName(b),c))};a.superCall=function(b,c,d,e){var f=null,g=-1,
h=b[d];if(h)if(h.claxxOwner)h.claxxOwner!==c&&(f=h);else if(!h.stacks&&(!h.lastClaxxRef||!h.lastClaxxRef.prototype[d]||!h.lastClaxxRef.prototype[d].stacks))f=h;else{var j=h.stacks;j||(j=h.lastClaxxRef.prototype[d].stacks);for(g=j.length;0<=--g;)if(c===j[g]){f=0<g?j[--g].prototype[d]:j[0].prototype[d]["\\unknown"];break}else if(0<a.getInheritedLevel(c,j[g])){f=j[g].prototype[d];break}}if(f)return 0==g&&"construct"==d&&(c=h.stacks)&&(!c[0].superClazz&&c[0].con$truct)&&c[0].con$truct.apply(b,[]),f.apply(b,
e||[]);"construct"!=d&&(a.alert(["j2slib","no class found",e.typeString]),W(b,c,d,a.getParamsType(e).typeString))};a.superConstructor=function(b,c,d){a.superCall(b,c,"construct",d);c.con$truct&&c.con$truct.apply(b,[])};a.CastedNull=function(b){this.clazzName=b?b instanceof String?b:b instanceof Function?a.getClassName(b,!0):""+b:"Object";this.toString=function(){return null};this.valueOf=function(){return null}};a.castNullAs=function(b){return new a.CastedNull(b)};a._initializingException=!1;a._callingStackTraces=
[];var d=function(){this.toString=function(){return"J2S MethodException"}},e;try{null.hello()}catch(h){if(f=function(a,b,c){c||(c="[^\\s]+");var d=a.indexOf(b);a=a.substring(0,d)+c+a.substring(d+b.length);return RegExp("^"+a+"$")},/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)){var f=h.message.indexOf(":"),s=h.message.indexOf(":",f+2),N=h.message.substr(f+1,s-f-20);e=function(a){return-1!=a.message.indexOf(N)}}else if(-1!=navigator.userAgent.toLowerCase().indexOf("webkit")){var P=f(h.message,"hello");
e=function(a){return P.test(a.message)}}else P=f(h.message,"$$o$$"),e=function(a){return P.test(a.message)}}a.exceptionOf=function(b,c){if(b.__CLASS_NAME__)return a.instanceOf(b,c);b.getMessage||(b.getMessage=function(){return""+b+(b.stack?"\n"+b.stack:"")});b.printStackTrace||(b.printStackTrace=function(){});if(c==Error){if(0>(""+b).indexOf("Error"))return!1;Zystem.out.println(a.getStackTrace());return!0}return c==Exception||c==Throwable||c==NullPointerException&&e(b)};a.getStackTrace=function(a){a||
(a=25);var b="\n",c=arguments.callee,d=0>a;d&&(a=-a);try{for(var e=0;e<a&&(c=c.caller);e++){var f=c.toString?c.toString().substring(0,c.toString().indexOf("{")):"<native method>",b=b+(e+" "+(c.exName?(c.claxxOwner?c.claxxOwner.__CLASS_NAME__+".":"")+c.exName+f.replace(/function /,""):f)+"\n");if(c==c.caller){b+="<recursing>\n";break}if(d)for(var g=c.arguments,h=0;h<g.length;h++){var j=""+g[h];60<j.length&&(j=j.substring(0,60)+"...");b+=" args["+h+"]="+j.replace(/\s+/g," ")+"\n"}}}catch(k){}return b};
a.makeConstructor=function(b,c,d){a.defineMethod(b,"construct",c,d);b.con$truct&&(b.con$truct.index=b.con$truct.stacks.length)};a.overrideConstructor=function(b,c,d){a.overrideMethod(b,"construct",c,d);b.con$truct&&(b.con$truct.index=b.con$truct.stacks.length)};a.defineMethod=function(c,e,f,g){f.exName=e;g=V(g);var h=c.prototype,j=h[e];a._Loader._checkLoad&&T(c,e,g);if(!j||j.claxxOwner===c&&j.funParams==g)return f.funParams=g,f.claxxOwner=c,f.exClazz=c,h[e]=f;var k=null,l=j.stacks;l||(l=[],k=j,j.claxxOwner&&
(l[0]=k.claxxOwner));if(!j.stacks||j.claxxReference!==c){++r;j=function(){var c;a:{var e=arguments.callee.claxxReference,B=arguments.callee.methodName;c=arguments;fx=this[B];var f=a.getParamsType(c);if(!fx)try{Zystem.out.println(a.getStackTrace(5))}catch(g){}if(b){var E=e.__CLASS_NAME__+" "+B+" ";0>u.indexOf(E)&&(u+=E+"\n");b[E]||(b[E]=0);b[E]++}if(fx.lastParams==f.typeString&&fx.lastClaxxRef===e){if(f.hasCastedNull){e=[];for(B=0;B<c.length;B++)e[B]=c[B]instanceof a.CastedNull?null:c[B]}else e=c;
c=fx.lastMethod?fx.lastMethod.apply(this,e):null}else{fx.lastParams=f.typeString;fx.lastClaxxRef=e;E=fx.stacks;E||(E=e.prototype[B].stacks);for(var h=!1,j=E.length;0<=--j;)if(h||E[j]===e){var t=E[j].prototype[B],F=f,h=c,k=fx,l=[],I=!0,m=void 0;for(m in t)if(92==m.charCodeAt(0)){var C=m.substring(1).split("\\");C.length==F.length&&l.push(C);I=!1}else if(I&&"funParams"==m&&t.funParams){m=t.funParams;C=m.substring(1).split("\\");C.length==F.length&&(l[0]=C);break}if(!(m=0==l.length)){for(var m=F,C=[],
n=l.length,G=0;G<n;G++){for(var p=[],ta=!0,s=l[G].length,r=0;r<s;r++)if(p[r]=a.getInheritedLevel(m[r],l[G][r]),0>p[r]){ta=!1;break}ta&&(p[m.length]=G,C.push(p))}if(0==C.length)l=null;else{n=C[0];for(G=1;G<C.length;G++){p=!0;for(r=0;r<m.length;r++)if(n[r]<C[G][r]){p=!1;break}p&&(n=C[G])}l=l[n[m.length]].join("\\")}m=!l}if(m)h=new d;else{t=I?t:t["\\"+l];I=null;if(F.hasCastedNull){I=[];for(F=0;F<h.length;F++)I[F]=h[F]instanceof a.CastedNull?null:h[F]}else I=h;k.lastMethod=t;h=t.apply(this,I)}if(!(h instanceof
d)){c=h;break a}h=!0}"construct"!=B&&W(this,e,B,f.typeString);c=void 0}}return c};j.methodName=e;j.claxxReference=c;j=h[e]=j;e=[];for(h=0;h<l.length;h++)e[h]=l[h];j.stacks=e}l=j.stacks;0>U(l,c)&&l.push(c);k&&(k.claxxOwner===c?(j[k.funParams]=k,k.claxxOwner=null,k.funParams=null):k.claxxOwner||(j["\\unknown"]=k));f.exClazz=c;j[g]=f;return j};duplicatedMethods={};var T=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,Zystem.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<c[e]&&(b+=c[e]+"\t"+e+"\n",d++);b="Duplicates: "+d+"\n\n"+b;Zystem.out.println(b);a||alert(b)};var U=function(a,b){if(a&&b)for(var c=a.length;0<=--c;)if(a[c]===b)return c;return-1},ma=function(a,b){var c=U(a,b);if(0<=c){for(var d=a.length-1;c<d;c++)a[c]=a[c+1];a.length--;return!0}},V=function(a){return a?
a.replace(/~([NABSO])/g,function(a,b){switch(b){case "N":return"n";case "B":return"b";case "S":return"String";case "O":return"Object";case "A":return"Array"}return"Unknown"}).replace(/\s+/g,"").replace(/^|,/g,"\\").replace(/\$/g,"org.eclipse.s"):"\\void"};a.overrideMethod=function(b,c,d,e){d.exName=c;e=V(e);a._Loader._checkLoad&&T(b,c,e);d.funParams=e;d.claxxOwner=b;return b.prototype[c]=d};var u="";a.getProfile=function(){var a="";if(b){var a=[],c;for(c in b){var d=""+b[c];a.push("        ".substring(d.length)+
d+"\t"+c)}a=a.sort().reverse().join("\r\n");b={}}return a};a.getParamsType=function(b){var c=b.length;switch(c){case 0:var d=["void"];d.typeString="\\void";return d;case 1:switch(typeof obj){case "number":return d=["n"],d.typeString="\\n",d;case "boolean":return d=["b"],d.typeString="\\b",d}}d=[];d.hasCastedNull=!1;if(b)for(var e=0;e<c;e++)d[e]=a.getClassName(b[e]),b[e]instanceof a.CastedNull&&(d.hasCastedNull=!0);d.typeString="\\"+d.join("\\");return d};var r=0;a.allPackage={};a.allClasses={};a.lastPackageName=
null;a.lastPackage=null;a.unloadedClasses=[];a.declarePackage=function(b){if(a.lastPackageName==b)return a.lastPackage;if(b&&b.length){for(var c=b.split(/\./),d=a.allPackage,e=0;e<c.length;e++)d[c[e]]||(d[c[e]]={__PKG_NAME__:d.__PKG_NAME__?d.__PKG_NAME__+"."+c[e]:c[e]},0==e&&a.setGlobal(c[e],d[c[e]])),d=d[c[e]];a.lastPackageName=b;return a.lastPackage=d}};a.evalType=function(b,c){var d=b.lastIndexOf(".");if(-1!=d){var e=b.substring(0,d),e=a.declarePackage(e),d=b.substring(d+1);return e[d]}if(c)return window[b];
switch(b){case "string":return String;case "number":return Number;case "object":return a._O;case "boolean":return Boolean;case "function":return Function;case "void":case "undefined":case "unknown":return b;case "NullObject":return NullObject;default:return window[b]}};a.defineType=function(b,c,d,e){var f=a.unloadedClasses[b];f&&(c=f);f=b.lastIndexOf(".");if(-1!=f){var g=b.substring(0,f),g=a.declarePackage(g),f=b.substring(f+1);if(g[f])return g[f];g[f]=c}else{if(window[b])return window[b];a.setGlobal(b,
c)}a.decorateAsType(c,b,d,e);b=a._innerFunctions;c.defineMethod=b.defineMethod;c.defineStaticMethod=b.defineStaticMethod;c.makeConstructor=b.makeConstructor;return c};var Y=!1;-1!=navigator.userAgent.indexOf("Safari")&&(f=navigator.userAgent,s=f.indexOf("Version/"),-1!=s&&(f=f.substring(s+8),Y=4<=parseFloat(f)));a.instantialize=function(a,b){if(!b||!(1==b.length&&b[0]&&b[0]instanceof l)){a instanceof Number&&(a.valueOf=function(){return this});if(Y){for(var c=[],d=0;d<b.length;d++)c[d]=b[d];b=c}(c=
a.construct)?a.con$truct?a.getClass().superClazz?c.claxxOwner&&c.claxxOwner===a.getClass()||c.stacks&&c.stacks[c.stacks.length-1]==a.getClass()?c.apply(a,b):(c.claxxOwner&&!c.claxxOwner.superClazz&&c.claxxOwner.con$truct?c.claxxOwner.con$truct.apply(a,[]):c.stacks&&(1==c.stacks.length&&!c.stacks[0].superClazz)&&c.stacks[0].con$truct.apply(a,[]),c.apply(a,b),a.con$truct.apply(a,[])):(a.con$truct.apply(a,[]),c.apply(a,b)):c.apply(a,b):a.con$truct&&a.con$truct.apply(a,[])}};a.innerFunctionNames="isInstance equals hashCode getName getCanonicalName getClassLoader getResource getResourceAsStream defineMethod defineStaticMethod makeConstructor".split(" ");
a._innerFunctions={isInstance:function(b){return a.instanceOf(b,this)},equals:function(a){return this===a},hashCode:function(){return this.getName().hashCode()},toString:function(){return"class "+this.getName()},getName:function(){return a.getClassName(this,!0)},getCanonicalName:function(){return this.__CLASS_NAME__},getClassLoader:function(){var b=this.__CLASS_NAME__,c=a._Loader.getClasspathFor(b),d=c.lastIndexOf(b.replace(/\./g,"/")),c=-1!=d?c.substring(0,d):a._Loader.getClasspathFor(b,!0),b=a._Loader.requireLoaderByBase(c);
b.getResourceAsStream=a._innerFunctions.getResourceAsStream;b.getResource=a._innerFunctions.getResource;return b},getResource:function(a){return(a=this.getResourceAsStream(a))?a.url:null},getResourceAsStream:function(b){if(!b)return null;b=b.replace(/\\/g,"/");var c=null,d=b,d=this.__CLASS_NAME__;2==arguments.length&&0!=b.indexOf("/")&&(b="/"+b);if(0==b.indexOf("/"))if(2==arguments.length?(c=arguments[1])||(c=a.binaryFolders[0]):a._Loader&&(c=a._Loader.getClasspathFor(d,!0)),c){var c=c.replace(/\\/g,
"/"),e=c.length,e=c.charAt(e-1);"/"!=e&&(c+="/");d=c+b.substring(1)}else d=b.substring(1);else{if(this.base)c=this.base;else if(a._Loader)if(c=a._Loader.getClasspathFor(d),e=c.lastIndexOf(d.replace(/\./g,"/")),-1!=e)c=c.substring(0,e);else if(e=-1,c.indexOf(".z.js")==c.length-5&&-1!=(e=c.lastIndexOf("/")))for(var c=c.substring(0,e+1),e=d.split(/\./),f=1;f<e.length;f++){for(var g="/",h=0;h<f;h++)g+=e[h]+"/";if(g.length>c.length)break;if(c.indexOf(g)==c.length-g.length){c=c.substring(0,c.length-g.length+
1);break}}else c=a._Loader.getClasspathFor(d,!0);else(e=a.binaryFolders)&&e.length&&(c=e[0]);c||(c="j2s/");c=c.replace(/\\/g,"/");e=c.length;e=c.charAt(e-1);"/"!=e&&(c+="/");this.base?d=c+b:(e=d.lastIndexOf("."),d=-1==e||this.base?c+b:c+d.substring(0,e).replace(/\./g,"/")+"/"+b)}c=null;try{if(0>d.indexOf(":/")){var k=document.location.href.split("?")[0].split("/");k[k.length-1]=d;d=k.join("/")}c=new java.net.URL(d)}catch(l){}k=null==c?null:j._getFileData(d.toString());if(!k||"error"==k||0==k.indexOf("[Exception"))return null;
k=(new java.lang.String(k)).getBytes();k=new java.io.BufferedInputStream(new java.io.ByteArrayInputStream(k));k.url=c;return k},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 Z=[];a.pu$h=function(a){a||(a=self.c$);a&&Z.push(a)};a.p0p=function(){return Z.pop()};a.decorateAsClass=function(b,c,d,e,f,g){var h=null;c&&(h=c.__PKG_NAME__,h||(h=
c.__CLASS_NAME__));var j=(h?h+".":"")+d;a._Loader._classPending[j]&&(delete a._Loader._classPending[j],a._Loader._classCountOK++,a._Loader._classCountPending--);a._Loader&&a._Loader._checkLoad&&Zystem.out.println("decorating class "+h+"."+d);(h=a.unloadedClasses[j])&&(b=h);aa(b,c,d);g?a.inheritClass(b,e,g):e&&a.inheritClass(b,e);f&&a.implementOf(b,f);return b};var aa=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;d<c.length;d++)b[c[d]]=a._innerFunctions[c[d]];a._Loader&&a._Loader.updateNodeForFunctionDecoration(e)};a.declareInterface=function(b,c,d){var e=function(){};aa(e,b,c);d&&a.implementOf(e,d);return e};a.declareType=function(b,c,d,e,f){return a.decorateAsClass(function(){a.instantialize(this,arguments)},b,c,d,e,f)};a.declareAnonymous=function(b,c,d,e,f){return a.decorateAsClass(function(){a.prepareCallback(this,arguments);a.instantialize(this,
arguments)},b,c,d,e,f)};a.decorateAsType=function(b,c,d,e,f,g){a.extendJO(b,c);b.equals=a._innerFunctions.equals;b.getName=a._innerFunctions.getName;if(g)for(c=0;c<a.innerFunctionNames.length;c++)g=a.innerFunctionNames[c],b[g]=a._innerFunctions[g];f?a.inheritClass(b,d,f):d&&a.inheritClass(b,d);e&&a.implementOf(b,e);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.declarePackage("java.security");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"};var W=function(b,c,d,e){b="";e&&(b=e.substring(1).replace(/\\/g,","));c=(d&&"construct"!=d?"Method":"Constructor")+" "+a.getClassName(c,!0)+"."+d+"("+b+") is not found!";throw new java.lang.NoSuchMethodException(c);};a.prepareCallback=function(b,
c){var d=c[0];if(b&&d&&d!==window){var e=a.getClassName(d,!0),f={};if(b.b$)for(var g in b.b$)f[g]=b.b$[g];b.b$=f;f[e]=d;for(e=a.getClass(d);e.superClazz;)e=e.superClazz,f[a.getClassName(e,!0)]=d;if(d=d.b$)for(g in d)f[g]=d[g]}for(f=0;f<c.length-1;f++)c[f]=c[f+1];0<c.length&&c.length--};a.innerTypeInstance=function(b,c,d){b||(b=arguments.callee.caller);var e;if(d||c.$finals)if(e=new b(c,a.inheritArgs),d)if(c.f$){var f={},g;for(g in c.f$)f[g]=c.f$[g];for(g in d)f[g]=d[g];e.f$=f}else e.f$=d;else c.f$&&
(e.f$=c.f$);else switch(arguments.length){case 3:return new b(c);case 4:return c.__CLASS_NAME__==b.__CLASS_NAME__&&arguments[3]===a.inheritArgs?c:new b(c,arguments[3]);case 5:return new b(c,arguments[3],arguments[4]);case 6:return new b(c,arguments[3],arguments[4],arguments[5]);case 7:return new b(c,arguments[3],arguments[4],arguments[5],arguments[6]);case 8:return new b(c,arguments[3],arguments[4],arguments[5],arguments[6],arguments[7]);case 9:return new b(c,arguments[3],arguments[4],arguments[5],
arguments[6],arguments[7],arguments[8]);case 10:return new b(c,arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9]);default:e=new b(c,a.inheritArgs)}g=arguments.length-3;for(f=Array(g);0<=--g;)f[g]=arguments[g+3];a.instantialize(e,f);return e};a.cloneFinals=function(){for(var a={},b=arguments.length/2;0<=--b;)a[arguments[b+b]]=arguments[b+b+1];return a};a.isClassDefined=a.isDefinedClass=function(b){if(!b)return!1;if(a.allClasses[b])return!0;for(var c=b.split(/\./),
d=null,e=0;e<c.length;e++)if(!(d=d?d[c[e]]:a.allPackage[c[0]]))return!1;return d&&(a.allClasses[b]=!0)};a.defineEnumConstant=function(a,b,c,d,e){e=e?new e:new a;e.$name=b;e.$ordinal=c;d&&d.length&&e.construct.apply(e,d);a[b]=e;a.prototype[b]=e;a["$ values"]||(a["$ values"]=[],a.values=function(){return this["$ values"]});a["$ values"].push(e);return e};a.floatToInt=function(a){return isNaN(a)?0:0>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;var ba=function(a,b){a||(a=0);if("object"==typeof a)var c=a;else for(var c=Array(a),d=0;d<a;d++)c[d]=0;c.BYTES_PER_ELEMENT=b>>3;c._fake=!0;return c},Q=function(a,b){a||(a=0);b||(b=this.length);if(this._fake){var c=new this.constructor(b-a);Zystem.arraycopy(this,a,c,0,b-a);return c}return new this.constructor(this.buffer.slice(a*
this.BYTES_PER_ELEMENT,b*this.BYTES_PER_ELEMENT))};!0==(a.haveInt32=!!(self.Int32Array&&self.Int32Array!=Array))?Int32Array.prototype.sort||(Int32Array.prototype.sort=Array.prototype.sort):(Int32Array=function(a){return ba(a,32)},Int32Array.prototype.sort=Array.prototype.sort,Int32Array.prototype.toString=function(){return"[object Int32Array]"});Int32Array.prototype.slice||(Int32Array.prototype.slice=function(){return Q.apply(this,arguments)});Int32Array.prototype.clone=function(){var a=this.slice();
a.BYTES_PER_ELEMENT=4;return a};!0==(a.haveFloat64=!!(self.Float64Array&&self.Float64Array!=Array))?Float64Array.prototype.sort||(Float64Array.prototype.sort=Array.prototype.sort):(Float64Array=function(a){return ba(a,64)},Float64Array.prototype.sort=Array.prototype.sort,Float64Array.prototype.toString=function(){return"[object Float64Array]"});Float64Array.prototype.slice||(Float64Array.prototype.slice=function(){return Q.apply(this,arguments)});Float64Array.prototype.clone=function(){return this.slice()};
a.newArray=function(a,b,c,d){if(-1!=a||2==arguments.length)return L(arguments,0);a=b.slice(c,d);a.BYTES_PER_ELEMENT=b.BYTES_PER_ELEMENT;return a};var L=function(a,b){var c=a[0];"string"==typeof c&&(c=c.charCodeAt(0));var d=a.length-1,e=a[d];if(1<d){for(var e=Array(d),f=0;f<d;f++)e[f]=a[f+1];d=Array(c);for(f=0;f<c;f++)d[f]=L(e,b);return d}0<b&&0>c&&(c=e);switch(b){case 8:return d=new Int8Array(c),d.BYTES_PER_ELEMENT=1,d;case 32:return d=new Int32Array(c),d.BYTES_PER_ELEMENT=4,d;case 64:return d=new Float64Array(c),
d.BYTES_PER_ELEMENT=8,d;default:d=0>c?e:Array(c);d.BYTES_PER_ELEMENT=0;if(0<c&&null!=e)for(f=c;0<=--f;)d[f]=e;return d}};a.newByteArray=function(){return L(arguments,8)};a.newIntArray=function(){return L(arguments,32)};a.newFloatArray=function(){return L(arguments,64)};a.newDoubleArray=a.newFloatArray;a.newLongArray=a.newShortArray=a.newIntArray;a.newCharArray=a.newBooleanArray=a.newArray;!0==(a.haveInt8=!!self.Int8Array)?(Int8Array.prototype.sort||(Int8Array.prototype.sort=Array.prototype.sort),
Int8Array.prototype.slice||(Int8Array.prototype.slice=function(){return Q.apply(this,arguments)})):a.newByteArray=a.newIntArray;Int8Array.prototype.clone=function(){var a=this.slice();a.BYTES_PER_ELEMENT=1;return a};a.isAB=function(a){return a&&"object"==typeof a&&1==a.BYTES_PER_ELEMENT};a.isAI=function(a){return a&&"object"==typeof a&&4==a.BYTES_PER_ELEMENT};a.isAF=function(a){return a&&"object"==typeof a&&8==a.BYTES_PER_ELEMENT};a.isAS=function(a){return a&&"object"==typeof a&&a.constructor==Array&&
("string"==typeof a[0]||"undefined"==typeof a[0])};a.isAII=function(b){return b&&"object"==typeof b&&a.isAI(b[0])};a.isAFF=function(b){return b&&"object"==typeof b&&a.isAF(b[0])};a.isAFFF=function(b){return b&&"object"==typeof b&&a.isAFF(b[0])};a.isASS=function(b){return b&&"object"==typeof b&&a.isAS(b[0])};a.isAFloat=function(b){return b&&"object"==typeof b&&b.constructor==Array&&a.instanceOf(b[0],Float)};a.isAP=function(b){return b&&"JU.P3"==a.getClassName(b[0])};a.defineStatics=function(a){for(var b=
arguments.length,c=(b-1)/2;0<=--c;){var d=arguments[--b],e=arguments[--b];a[e]=a.prototype[e]=d}};a.prepareFields=function(a,b){var c=[];if(a.con$truct)for(var d=a.con$truct.stacks,e=0;e<d.length;e++)c[e]=d[e];d=a.con$truct=function(){var a=arguments.callee.stacks;if(a)for(var b=0;b<a.length;b++)a[b].apply(this,[])};a.prototype.con$truct=d;c.push(b);a.con$truct.stacks=c;a.con$truct.index=0};a.checkPrivateMethod=function(){me=arguments.callee.caller;caller=arguments.callee.caller.caller;var b="\\"+
a.getParamsType(arguments[0]).join("\\");me.privateNote||(me.privateNote="You are seeing this note because the method "+me.exName+b+" in class "+me.exClazz.__CLASS_NAME__+" has a superclass method by the same name (possibly with the same parameters) that is private and  therefore might be called improperly from this class. If your  code does not run properly, or you want to make it run faster, change the name of this method to something else.",Zystem.out.println(me.privateNote),alert(me.privateNote));
return null};java.lang.Object=a._O;a._O.getName=a._innerFunctions.getName;java.lang.Zystem=Zystem={props:null,$props:{},arraycopy:function(a,b,c,d,e){if(a!==c||b>d)for(;0<=--e;)c[d++]=a[b++];else{d+=e;for(b+=e;0<=--e;)a[--d]=a[--b]}},currentTimeMillis:function(){return(new Date).getTime()},gc:function(){},getProperties:function(){return Zystem.props},getProperty:function(a,b){if(Zystem.props)return Zystem.props.getProperty(a,b);var c=Zystem.$props[a];if("undefined"!=typeof c)return c;if(0<a.indexOf(".")){c=
null;switch(a){case "java.version":case "file.separator":case "path.separator":c="/";break;case "line.separator":c=0<=navigator.userAgent.indexOf("Windows")?"\r\n":"\n";break;case "os.name":case "os.version":c=navigator.userAgent}if(c)return Zystem.$props[a]=c}return 1==arguments.length?null:null==b?a:b},getSecurityManager:function(){return null},setProperties:function(a){Zystem.props=a},lineSeparator:function(){return"\n"},setProperty:function(a,b){if(!Zystem.props)return Zystem.$props[a]=b;Zystem.props.setProperty(a,
b)}};Zystem.identityHashCode=function(b){return null==b?0:b._$hashcode||(b._$hashcode=++a._hashCode)};Zystem.out=new a._O;Zystem.out.__CLASS_NAME__="java.io.PrintStream";Zystem.out.print=function(){};Zystem.out.printf=function(){};Zystem.out.println=function(){};Zystem.out.write=function(){};Zystem.out.flush=function(){};Zystem.err=new a._O;Zystem.err.__CLASS_NAME__="java.io.PrintStream";Zystem.err.print=function(){};Zystem.err.printf=function(){};Zystem.err.println=function(){};Zystem.err.write=
function(){};Zystem.err.flush=function(){};a.popup=a.assert=a.log=a.error=window.alert;Thread=function(){};Thread.J2S_THREAD=Thread.prototype.J2S_THREAD=new Thread;Thread.currentThread=Thread.prototype.currentThread=function(){return this.J2S_THREAD};a.innerFunctionNames=a.innerFunctionNames.concat("getSuperclass isAssignableFrom getConstructor getDeclaredMethod getDeclaredMethods getMethod getMethods getModifiers newInstance".split(" "));a._innerFunctions.getSuperclass=function(){return this.superClazz};
a._innerFunctions.isAssignableFrom=function(b){return 0<=a.getInheritedLevel(b,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]&&!b[c].__CLASS_NAME__&&a.push(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]&&!b[c].__CLASS_NAME__&&a.push(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]&&!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]&&!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.newInstance=function(a){switch(null==a?0:a.length){case 0:return new this;case 1:return new this(a[0]);case 2:return new this(a[0],a[1]);case 3:return new this(a[0],a[1],a[2]);case 4:return new this(a[0],a[1],a[2],a[3]);default:for(var b="new "+this.__CLASS_NAME__+"(",c=0;c<a.length;c++)b+=(0==
c?"":",")+"a["+c+"]";return eval(b+")")}};f=a.innerFunctionNames;for(s=0;s<f.length;s++)a._O[f[s]]=a._innerFunctions[f[s]],Array[f[s]]=a._innerFunctions[f[s]];a._Loader=a.ClazzLoader=function(){};var n=function(){this.parents=[];this.musts=[];this.optionals=[];this.onLoaded=this.path=this.name=this.declaration=null;this.status=0;this.random=0.13412};(function(a,b){b._checkLoad=j._checkLoad;b.updateNodeForFunctionDecoration=function(a){(a=D(a))&&a.status==n.STATUS_KNOWN&&window.setTimeout(function(a){return function(){updateNode(a)}}(a),
1)};n.prototype.toString=function(){return this.name||this.path||"ClazzNode"};n.STATUS_UNKNOWN=0;n.STATUS_KNOWN=1;n.STATUS_CONTENT_LOADED=2;n.STATUS_MUSTS_LOADED=3;n.STATUS_DECLARED=4;n.STATUS_LOAD_COMPLETE=5;var c=[];b.requireLoaderByBase=function(a){for(var d=0;d<c.length;d++)if(c[d].base==a)return c[d];d=new b;d.base=a;c.push(d);return d};var d=new n,e={},f=0,g=6,h=navigator.userAgent.toLowerCase(),k=-1!=h.indexOf("opera"),l=-1!=h.indexOf("msie")&&!k,m=-1!=h.indexOf("gecko");if(k&&(g=1,k=h.indexOf("opera/"),
-1!=k)){var p=9;try{p=parseFloat(h.subString(k+6))}catch(s){}9.6<=p&&(g=6)}var u;self.Clazz&&a.isClassDefined?isClassDefined=a.isClassDefined:(u={},isClassDefined=function(a){return!0==u[a]});var v=function(a){if(!a||0==a.length)return[];for(var b=null,c=0;c<a.length;c++)if(a[c]){if("$"==a[c].charAt(0))if("."==a[c].charAt(1)){if(!b)continue;var d=b.lastIndexOf(".");-1!=d&&(b=b.substring(0,d),a[c]=b+a[c].substring(1))}else a[c]="org.eclipse.s"+a[c].substring(1);b=a[c]}return a},x=[],w={},z=0;b.loadPackageClasspath=
function(a,c,d,e,f,g){f||(f=0);e||(e=null);g||(g=0);var h=d&&w["@"+a];if(0==f&&(d&&!w["@java"]&&0!=a.indexOf("java")&&null!=window["java.registered"]&&!w["@java"])&&(b.loadPackage("java",e?function(){b.loadPackageClasspath(a,c,d,e,1)}:null),e))return;if(a instanceof Array)if(v(a),e)g<a.length?b.loadPackageClasspath(a[g],c,d,function(){b.loadPackageClasspath(a,c,d,e,1,g+1)},1):e();else for(h=0;h<a.length;h++)b.loadPackageClasspath(a[h],c,d,null);else{switch(a){case "java.*":a="java";case "java":c&&
(f="@net.sf.j2s.ajax",w[f]||(w[f]=c),f="@net.sf.j2s",w[f]||(w[f]=c));break;case "swt":a="org.eclipse.swt";break;case "ajax":a="net.sf.j2s.ajax";break;case "j2s":a="net.sf.j2s";break;default:a.lastIndexOf(".*")==a.length-2&&(a=a.substring(0,a.length-2))}c&&(w["@"+a]=c);d&&!h&&!window[a+".registered"]?(z++,"java"==a&&(a="core"),b.loadClass(a+".package",function(){0==--z&&ua()},!0,!0,1)):e&&e()}};a.loadClass=function(c,d,e){self.Class||(Class=a,Class.forName=a._4Name,JavaObject=a._O);return c&&b.loadClass(c,
d,!0,e,1)};b.loadClass=function(c,f,g,h,j){j||(j=0);null==h&&(h=!1);if("boolean"==typeof f)return a.evalType(c);null!=window["java.registered"]&&!w["@java"]&&b.loadPackage("java");b.keepOnLoading=!0;if(!g&&(z&&c.lastIndexOf(".package")!=c.length-8||0!=c.indexOf("java.")&&!isClassDefined(ca)))na.push([c,f]),Zystem.out.println("loadclass-queuing"+c+ca+" "+isClassDefined(ca));else if((j=isClassDefined(c))||A["@"+c]){if(j&&f&&(g=D(c),!g||g.status>=n.STATUS_LOAD_COMPLETE))h?window.setTimeout(f,25):f()}else{var k=
b.getClasspathFor(c);j=e[k];if(!j)for(h=x.length;0<=--h;)if(x[h].path==k||x[h].name==c){j=!0;break}if(j){if(f&&(j=D(c)))if(j.onLoaded){if(f!=j.onLoaded){var l=j.onLoaded,m=f;j.onLoaded=function(){l();m()}}}else j.onLoaded=f}else{j=a.unloadedClasses[c]&&D(c)||new n;j.name=c;j.path=k;j.isPackage=k.lastIndexOf("package.js")==k.length-10;ha(k,c,j);j.onLoaded=f;j.status=n.STATUS_KNOWN;c=!1;for(h=x.length;0<=--h;)if(x[h].status!=n.STATUS_LOAD_COMPLETE){c=!0;break}if(j.isPackage){for(h=x.length;0<=--h&&
!x[h].isPackage;)x[h+1]=x[h];x[++h]=j}else c&&x.push(j);if(!c){var t=!1;f&&(t=K,K=!0);g&&(f=null);da(d,j,!0);H(j,j.path,j.requiredBy,!1,f?function(){K=t;f()}:null)}}}};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=[b]);v(b);j._debugCore&&(a=a.replace(/\.z\./,"."));for(var c=b.length;0<=--c;)w["#"+b[c]]=a;w["$"+a]=b};b.registerPackages=function(c,
d){for(var e=b.getClasspathFor(c+".*",!0),f=0;f<d.length;f++)window.Clazz&&a.declarePackage(c+"."+d[f]),b.loadPackageClasspath(c+"."+d[f],e)};b.getClasspathFor=function(c,d,e){var f=w["#"+c];if(!f||d||e){var g,h;if(f){if(c=c.replace(/\./g,"/"),0<=(h=f.lastIndexOf(c))||0<=(h=c.lastIndexOf("/"))&&0<=(h=f.lastIndexOf(c.substring(0,h))))g=f.substring(0,h)}else{for(h=c.length+2;0<=(h=c.lastIndexOf(".",h-2))&&!(g=w["@"+c.substring(0,h)]););d||(c=c.replace(/\./g,"/"))}null==g&&(g=window.Clazz&&a.binaryFolders&&
a.binaryFolders.length?a.binaryFolders[0]:b.binaryFolders&&b.binaryFolders.length?b.binaryFolders[0]:"j2s");f=(g.lastIndexOf("/")==g.length-1?g:g+"/")+(d?"":c.lastIndexOf("/*")==c.length-2?c.substring(0,h+1):c+(!e?".js":"."!=e.charAt(0)?"."+e:e))}return f};b.ignore=function(){var a=1==arguments.length&&arguments[0]instanceof Array?a=arguments[0]:null,b=a?a.length:arguments.length;if(!a)for(var a=Array(b),c=0;c<b;c++)a[c]=arguments[c];v(a);for(c=0;c<b;c++)A["@"+a[c]]=1};b.onScriptLoading=function(){};
b.onScriptLoaded=function(){};b.onScriptInitialized=function(){};b.onScriptCompleted=function(){};b.onClassUnloaded=function(){};b.onGlobalLoaded=function(){};b.keepOnLoading=!0;var y={},A={},M=function(c,d,e,f){if(!f)try{eval(e+";//# sourceURL="+c)}catch(g){if(a._isQuiet)return;c="[Java2Script] The required class file \n\n"+c+(0==e.indexOf("[Exception")&&e.indexOf("data: no")?"\nwas not found.\n":"\ncould not be loaded. Script error: "+g.message+" \n\ndata:\n\n"+e)+"\n\n"+a.getStackTrace();alert(c);
a.alert(c);throw g;}b.onScriptLoaded(c,!1);X(d)},N=function(a){return function(){if("interactive"!=a.readyState){try{a.parentNode&&a.parentNode.removeChild(a)}catch(b){}a=null}}},L=function(a){window["j2s.script.debugging"]||window.setTimeout(N(a),1)};a._4Name=function(c,d,e){if(a.isClassDefined(c))return a.evalType(c);d=j._isAsync&&d?d._restoreState(c,e):null;if(1==d)return null;if(b.setLoadingMode(d?b.MODE_SCRIPT:"xhr.sync"))return b.loadClass(c,d,!1,!0,1),null;b.loadClass(c);return a.evalType(c)};
a.currentPath="";var H=function(c,d,g,h,k){a.currentPath=d;h&&alert("WHY>>");h=e[d];e[d]=!0;ma(x,d);ia=!0;ja=!1;b._checkLoad&&Zystem.out.println("\t"+d+(g?"\n -- required by "+g:"")+"  ajax="+ia+" async="+ja);g=d;a._debugging&&(d=d.replace(/\.z\.js/,".js"));h||Zystem.out.println("loadScript "+d);b.onScriptLoading(d);if(ia&&!ja){var l=j._getFileData(d);try{M(d,g,l,h)}catch(m){alert(m+" loading file "+d+" "+c.name+" "+a.getStackTrace())}k&&k()}else c={dataType:"script",async:!0,type:"GET",url:d,success:O(d,
!1,k),error:O(d,!0,k)},f++,h?setTimeout(c.success,0):j.$ajax(c)},O=function(c,d,e){a.getStackTrace();return function(){m&&this.timeoutHandle&&(window.clearTimeout(this.timeoutHandle),this.timeoutHandle=null);0<f&&f--;this.onerror=this.onload=null;d&&alert("There was a problem loading "+c);b.onScriptLoaded(c,!0);var a=this,g;g=e?function(){L(a);X(c,e)}:function(){L(a);X(c)};0<=oa?window.setTimeout(function(){X(c,g)},oa):X(c,g)}},K=!0,P=!1,X=function(c,h){var j=y["@"+c];if(j){var k,m=w["$"+c];if(m)for(var q=
0;q<m.length;q++){var t=m[q];if(t!=j.name&&(k=D(t)))k.status<n.STATUS_CONTENT_LOADED&&(k.status=n.STATUS_CONTENT_LOADED,updateNode(k));else{k=new n;k.name=t;var p=w["#"+t];p||(alert(t+" J2S error in tryToLoadNext"),error("Java2Script implementation error! Please report this bug!"));k.path=p;ha(k.path,t,k);k.status=n.STATUS_CONTENT_LOADED;da(d,k,!1);updateNode(k)}}if(j instanceof Array)for(q=0;q<j.length;q++)j[q].status<n.STATUS_CONTENT_LOADED&&(j[q].status=n.STATUS_CONTENT_LOADED,updateNode(j[q]));
else if(j.status<n.STATUS_CONTENT_LOADED){k=!1;m=document.getElementsByTagName("SCRIPT");for(q=0;q<m.length;q++)if(l){if(m[q].onreadystatechange&&m[q].onreadystatechange.path==j.path&&"interactive"==m[q].readyState){k=!0;break}}else if(m[q].onload&&m[q].onload.path==j.path){k=!0;break}k||(j.status=n.STATUS_CONTENT_LOADED,updateNode(j))}if(b.keepOnLoading){q=!0;if(k=pa(n.STATUS_KNOWN))for(ka(k);f<g&&(k=pa(n.STATUS_KNOWN));)ka(k);else if(0!=x.length)k=x.shift(),!e[k.path]||0!=x.length||!K||k.musts.length||
k.optionals.length?(da(d,k,!0),H(k,k.path,k.requiredBy,!1)):K&&(K=!1);else if(k=qa(n.STATUS_KNOWN))for(ka(k);f<g&&(k=qa(n.STATUS_KNOWN));)ka(k);else q=!1;if(!(q||0<f)){j=[pa,qa];m=null;for(q=0;2>q;q++)for(;k=j[q](n.STATUS_CONTENT_LOADED);)1==q&&m===k&&(k.status=n.STATUS_LOAD_COMPLETE),updateNode(k),m=k;for(;!(Q=[],!S(d,c)););for(q=0;2>q;q++)for(m=null;(k=j[q](n.STATUS_DECLARED))&&m!==k;)updateNode(m=k);m=[];for(q=0;2>q;q++)for(;k=j[q](n.STATUS_DECLARED);)m.push(k),k.status=n.STATUS_LOAD_COMPLETE;
if(m.length){for(q=0;q<m.length;q++)R(m[q]);for(q=0;q<m.length;q++)if(j=m[q].onLoaded)m[q].onLoaded=null,j()}if(h)h();else if(b._classCountPending)for(t in b._classPending){if(k=D(t),Zystem.out.println("class left pending "+t+" "+k),k){updateNode(k);break}}else b._checkLoad&&(Zystem.out.println("I think I'm done: SAEM call count: "+r),a.showDuplicates(!0));b.onGlobalLoaded()}}}},Q=[],S=function(a,c){var d=Q,e=d.length;d.push(a);for(var f=e;0<=--f&&!(d[f]===a&&d[f].status>=n.STATUS_DECLARED););if(0<=
f){if(b._checkLoad){var g;Zystem.out.println("cycle found loading "+c+" for "+a)}for(;f<e;f++){var h=d[f];h.status=n.STATUS_LOAD_COMPLETE;R(h);for(g=0;g<h.parents.length;g++)updateNode(h.parents[g]);h.parents=[];var j=h.onLoaded;b._checkLoad&&(g="cycle setting status to LOAD_COMPLETE for "+h.name+(j?" firing "+j.toString():""),Zystem.out.println(g));j&&(h.onLoaded=null,j())}d.length=0;return!0}h=[a.musts,a.optionals];for(g=0;2>g;g++){j=h[g];for(f=j.length;0<=--f;)if(j[f].status==n.STATUS_DECLARED&&
S(j[f],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=D(c);d?(a.push(d),Zystem.out.println(T("","",d,"",0))):alert("No node for "+c)}return a};var T=function(a,b,c,d,e){b+="--"+c.name;a+=b+"\n";if(5<e)return a+(d+" ...\n");d+="\t";a+=d+"status: "+c.status+"\n";if(c.parents&&c.parents.length&&c.parents[0]&&c.parents[0].name){a+=d+"parents: "+c.parents.length+"\n";for(var f=0;f<c.parents.length;f++)a=
T(a,b,c.parents[f],d+"\t",e+1);a+="\n"}return a};updateNode=function(a){if(!a.name||a.status>=n.STATUS_LOAD_COMPLETE)R(a);else{var c=!0;if(a.musts.length&&a.declaration)for(var d=a.musts.length,e=d;0<=--e;){var f=a.musts[e];f.requiredBy=a;if(f.status<n.STATUS_DECLARED&&isClassDefined(f.name)){var g=[];f.status=n.STATUS_LOAD_COMPLETE;R(f);if(f.declaration&&f.declaration.clazzList){for(var h=0,j=f.declaration.clazzList,k=j.length;h<k;h++){var l=D(j[h]);l&&(l.status!=n.STATUS_LOAD_COMPLETE&&l!==f)&&
(l.status=f.status,l.declaration=null,R(l),l.onLoaded&&g.push(l))}f.declaration=null}f.onLoaded&&g.push(f);for(h=0;h<g.length;h++)if(j=g[h].onLoaded)g[h].onLoaded=null,j()}else f.status==n.STATUS_CONTENT_LOADED&&updateNode(f),f.status<n.STATUS_DECLARED&&(c=!1);a.musts.length!=d&&(e=d=a.musts.length,c=!0)}if(c){if(a.status<n.STATUS_DECLARED){if(e=a.declaration)e(),e.executed=!0;b._checkLoad&&b._classPending[a.name]&&(delete b._classPending[a.name],b._classCountOK,b._classCountPending--);a.status=n.STATUS_DECLARED;
u&&(u[a.name]=!0);b.onScriptInitialized(a.path);if(a.declaration&&a.declaration.clazzList){h=0;j=a.declaration.clazzList;for(k=j.length;h<k;h++)if((l=D(j[h]))&&l.status!=n.STATUS_DECLARED&&l!==a)l.status=n.STATUS_DECLARED,u&&(u[l.name]=!0),b.onScriptInitialized(l.path)}}c=n.STATUS_DECLARED;if(0==a.optionals.length&&0==a.musts.length||a.status>n.STATUS_KNOWN&&!a.declaration||U(a.musts,n.STATUS_LOAD_COMPLETE)&&U(a.optionals,n.STATUS_LOAD_COMPLETE)){c=n.STATUS_LOAD_COMPLETE;if(!V(a,c))return!1;if(a.declaration&&
a.declaration.clazzList){h=0;j=a.declaration.clazzList;for(k=j.length;h<k;h++)if((l=D(j[h]))&&l.status!=c&&l!==a)if(l.declaration=null,!V(l,c))return!1}}if(a.parents&&a.parents.length){for(e=0;e<a.parents.length;e++)h=a.parents[e],h.status<c&&updateNode(h,h.name);c==n.STATUS_LOAD_COMPLETE&&(a.parents=[])}}}};var U=function(a,b){for(var c=a.length;0<=--c;)if(a[c].status<b)return!1;return!0},V=function(a,c){a.status=c;b.onScriptCompleted(a.path);var d=a.onLoaded;if(d&&(a.onLoaded=null,d(),!b.keepOnLoading))return!1;
R(a);return!0},W={"r0.13412":1},Y=function(){for(;;){var a=Math.random(),b="r"+a;if(!W[b])return W[b]=1,d.random=a}},D=function(a){Y();return Z(a,d)},qa=function(a){Y();return ea(d,a)},pa=function(a){return ba(d,a)},Z=function(a,b){var c;return b.name==a?b:(c=aa(a,b.musts))||(c=aa(a,b.optionals))?c:null},aa=function(a,b){for(var c=d.random,e=b.length;0<=--e;){var f=b[e];if(f.name==a||f.random!=c&&(f.random=c,f=Z(a,f)))return f}return null},la=function(a,b){return a.status==b&&(b!=n.STATUS_KNOWN||
!e[a.path])&&(b==n.STATUS_DECLARED||!isClassDefined(a.name))},ba=function(a,b){for(var c=a.musts.length;0<=--c;){var d=a.musts[c];if(la(d,b)||(d=ba(d,b)))return d}return la(a,b)?a:null},ea=function(a,b){var c;return(c=fa(a.musts,b))||(c=fa(a.optionals,b))||la(c=a,b)?c:null},fa=function(a,b){if(a)for(var c=d.random,e=0;e<a.length;e++){var f=a[e];if(la(f,b)||f.random!=c&&(f.random=c,f=ea(f,b)))return f}return null},ra=function(a,c,e,f){if(c instanceof Array){v(c);for(var g=0;g<c.length;g++)ra(a,c[g],
e,f,c)}else{b._checkLoad&&!b._classPending[c]&&(b._classPending[c]=1,0==b._classCountPending++&&(b._classCountOK=0),Zystem.out.println("Loading class "+c));g=y["#"+c];g||(g=(g=D(c))?g:new n,g.name=c,g.path=w["#"+c]||"unknown",ha(g.path,c,g),g.status=n.STATUS_KNOWN,da(d,g,!1));ga(g,a,!0);5==arguments.length&&f&&(f.status=g.status,f.clazzList=arguments[4]);if(g.declaration=f)g.status=n.STATUS_CONTENT_LOADED;ga(g,e,!1)}},ga=function(a,b,c){if(b&&b.length){v(b);for(var d=0;d<b.length;d++){var e=b[d];
if(e&&!isClassDefined(e)&&!A["@"+e]){var f=D(e);f||(f=new n,f.name=e,f.status=n.STATUS_KNOWN);f.requiredBy=a;da(a,f,c)}}}};window.Clazz?a.load=ra:b.load=ra;var ha=function(a,b,c){var d="@"+a;if(a=y[d])if(a instanceof Array){for(var d=!1,e=0;e<a.length;e++)if(a[e].name==b){d=!0;break}d||a.push(c)}else y[d]=[a,c];else y[d]=c;y["#"+b]=c},ka=function(a){var c=a.name;if(!isClassDefined(c)&&!A["@"+c]){var d=b.getClasspathFor(c);a.path=d;ha(d,c,a);if(!e[d])return H(a,d,a.requiredBy,!1),!0}return!1},ca=b.runtimeKeyClass=
"java.lang.String",na=[];b.getJ2SLibBase=function(){var a=window["j2s.lib"];return a?a.base+("."==a.alias?"":(a.alias?a.alias:a.version?a.version:"1.0.0")+"/"):null};var ja=!0,ia=!1,oa=-1;b.MODE_SCRIPT=4;b.MODE_XHR=2;b.MODE_SYNC=1;b.setLoadingMode=function(a,c){var d=!0,e=!0;"string"==typeof a?(a=a.toLowerCase(),0<=a.indexOf("script")?e=!1:a.indexOf("async"),d=!1):a&b.MODE_SCRIPT?e=!1:d=!(a&b.MODE_SYNC);ia=e;oa=(ja=d)&&0<=c?c:-1;return d};var ua=function(){if(!z&&isClassDefined(ca)){for(var a=na,
c=0;c<a.length;c++)b.loadClass(a[c][0],a[c][1]);na=[]}};b.loadZJar=function(a,c){var d=null,e=c instanceof Array;e?c=c[c.length-1]:d=c==ca?ua:null;b.jarClasspath(a,e?c:[c]);b.loadClass(c,d,!0)};var va={},sa=[],da=function(a,b,c){var e=!1;c?(c=a.musts,b.requiredBy||(b.requiredBy=a)):c=a.optionals;va[b.name]||(sa.push(b),va[b.name]=b);for(var f=0;f<c.length;f++)if(c[f].name==b.name){e=!0;break}e||(c.push(b),K&&(0!=b.name.indexOf("java")&&0!=b.name.indexOf("net.sf.j2s.ajax"))&&(P&&(K=!1),P=!0));a:{if(a.name&&
a!=d&&a!=b)for(e=0;e<b.parents.length;e++)if(b.parents[e].name==a.name)break a;b.parents.push(a)}},R=function(a){var b=a.parents;if(b)for(var c=b.length;0<=--c;)ma(b[c].musts,a)||ma(b[c].optionals,a)};a.binaryFolders=b.binaryFolders=[b.getJ2SLibBase()]})(a,a._Loader);a._LoaderProgressMonitor={};var y=a._LoaderProgressMonitor,H=null,M=0,v=null,S=0;y.DEFAULT_OPACITY=j&&j._j2sLoadMonitorOpacity?j._j2sLoadMonitorOpacity:55;y.hideMonitor=function(){v.style.display="none"};y.showStatus=function(a,b){if(!v){var c=
document.createElement("DIV");c.id="_Loader-status";c.style.cssText="position:absolute;bottom:4px;left:4px;padding:2px 8px;z-index:"+(window["j2s.lib"].monitorZIndex||1E4)+";background-color:#8e0000;color:yellow;font-family:Arial, sans-serif;font-size:10pt;white-space:nowrap;";c.onmouseover=sa;v=c;document.body.appendChild(c);ea||(ea=!0)}fa(v);if(null==a)b?O():y.hideMonitor();else{v.appendChild(document.createTextNode(""+a));"none"==v.style.display&&(v.style.display="");ga(y.DEFAULT_OPACITY);var d,
c=navigator.userAgent;d=document.body;var e=d.parentNode,f=e.clientHeight;d=d.scrollTop+d.offsetTop;var g=e.scrollTop+e.offsetTop,c=0>c.indexOf("Opera")&&document.all?0==f?d:g:0>c.indexOf("Gecko")?f==e.offsetHeight&&f==e.scrollHeight?d:g:d;S!=c&&(S=c,v.style.bottom=S+4+"px");b&&O()}};var fa=function(a){if(a)for(var b=a.childNodes.length;0<=--b;){var c=a.childNodes[b];if(c){c.childNodes&&c.childNodes.length&&fa(c);try{a.removeChild(c)}catch(d){}}}},ga=function(a){H&&a==y.DEFAULT_OPACITY&&(window.clearTimeout(H),
H=null);M=a;navigator.userAgent.toLowerCase();v.style.filter="Alpha(Opacity="+a+")";v.style.opacity=a/100},sa=function(){y.hideMonitor()},ea=!1,O=function(){"none"!=v.style.display&&(M==y.DEFAULT_OPACITY?(H=window.setTimeout(function(){O()},750),M-=5):0<=M-10?(ga(M-10),H=window.setTimeout(function(){O()},40)):v.style.display="none")},p=a.Console,z=Zystem;p.maxTotalLines=1E4;p.setMaxTotalLines=function(a){p.maxTotalLines=0<a?a:999999};p.maxLatency=40;p.setMaxLatency=function(a){p.maxLatency=0<a?a:
40};p.pinning=!1;p.enablePinning=function(a){p.pinning=a};p.linesCount=0;p.metLineBreak=!1;p.createConsoleWindow=function(){var a=document.createElement("DIV");a.style.cssText="font-family:monospace, Arial, sans-serif;";document.body.appendChild(a);return a};var A=String.fromCharCode(160),A=A+(A+A+A);p.consoleOutput=function(a,b){var c=window["j2s.lib"];(c=c&&c.console)&&"string"==typeof c&&(c=document.getElementById(c));if(!c)return!1;if(p.linesCount>p.maxTotalLines){for(var d=0;d<p.linesCount-p.maxTotalLines;d++)c&&
0<c.childNodes.length&&c.removeChild(c.childNodes[0]);p.linesCount=p.maxTotalLines}var e=!1;a=("undefined"==typeof a?"":null==a?"null":""+a).replace(/\t/g,A);if(0<a.length)switch(a.charAt(a.length-1)){case "\n":case "\r":a=1<a.length?a.substring(0,a.length-("\r"==a.charAt(a.length-2)?2:1)):"",e=!0}var f=null;a=a.replace(/\t/g,A);for(var f=a.split(/\r\n|\r|\n/g),d=0,g=f.length-1;d<=g;d++){var h=null;if(p.metLineBreak||0==p.linesCount||1>c.childNodes.length)h=document.createElement("DIV"),c.appendChild(h),
h.style.whiteSpace="nowrap",p.linesCount++;else try{h=c.childNodes[c.childNodes.length-1]}catch(j){h=document.createElement("DIV"),c.appendChild(h),h.style.whiteSpace="nowrap",p.linesCount++}var k=document.createElement("SPAN");h.appendChild(k);k.style.whiteSpace="nowrap";b&&(k.style.color=b);h=f[d];0==h.length&&(h=A);k.appendChild(document.createTextNode(h));p.pinning||(c.scrollTop+=100);p.metLineBreak=d!=g||e}d=c.parentNode.className;!p.pinning&&(d&&-1!=d.indexOf("composite"))&&(c.parentNode.scrollTop=
c.parentNode.scrollHeight);p.lastOutputTime=(new Date).getTime()};p.clear=function(){try{p.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]);p.linesCount=0}}catch(e){}};a.alert=function(a){p.consoleOutput(a+"\r\n")};z.out.print=function(a){p.consoleOutput(a)};z.out.println=function(a){p.consoleOutput("undefined"==typeof a?"\r\n":null==a?"null\r\n":a+"\r\n")};z.out.write=function(a,b,c){z.out.print(String.instantialize(a).substring(b,
b+c))};z.err.__CLASS_NAME__="java.io.PrintStream";z.err.print=function(a){p.consoleOutput(a,"red")};z.err.println=function(a){p.consoleOutput("undefined"==typeof a?"\r\n":null==a?"null\r\n":a+"\r\n","red")};z.err.write=function(a,b,c){z.err.print(String.instantialize(a).substring(b,b+c))}}(Clazz,Jmol))};Jmol.___JmolDate="$Date: 2021-08-17 21:17:38 -0500 (Tue, 17 Aug 2021) $";Jmol.___fullJmolProperties="src/org/jmol/viewer/Jmol.properties";Jmol.___JmolVersion="14.31.52";
