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