',a.$after("#"+f._id+"_appletdiv",g.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,e,f))});a.$appEvent(f,"localReader_loadfile","click");a.$appEvent(f,"localReader_loadfile","click",function(){var c=a.$(f,"localReader_files")[0].files[0],d=new FileReader;d.onloadend=function(d){d.target.readyState==FileReader.DONE&&(a._hideLocalFileReader(f,0),a._setData(b,c.name,c.name,d.target.result,e,f))};try{d.readAsArrayBuffer(c)}catch(g){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,e,f)});a.$setVisible(f._localReader,!0);f._readingLocal=!0};a._setData=function(b,f,c,e,d,g){e&&(e=a._strToBytes(e));null!=e&&(null==b||0<=f.indexOf(".jdx"))&&a.Cache.put("cache://"+f,e);null==b?g._applet.openFileAsyncSpecial(null==e?f:"cache://"+f,1):b.setData(f,c,e,d)};a._doAjax=function(b,f,c){b=b.toString();if(null!=c)return a._saveFile(b,
c);f&&(b+="?POST?"+f);return a._getFileData(b,null,!0)};a._saveFile=function(b,f,c,e){if(a._localFileSaveFunction&&a._localFileSaveFunction(b,f))return"OK";b=b.substring(b.lastIndexOf("/")+1);c||(c=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?JU:J.util).Base64.getBase64("string"==typeof f?f.getBytes("UTF-8"):f).toString();e||(e="base64");var d=a._serverUrl;d&&0<=d.indexOf("your.server")&&(d="");
a._useDataURI||!d?(e=document.createElement("a"),e.href="data:"+c+";base64,"+f,e.type=c||"text/plain;charset=utf-8",e.download=b,e.target="_blank",h("body").append(e),e.click(),e.remove()):(a._formdiv||(a.$after("body",'
\t\t\t\t\t\t\t\t\t\t\t\t
'),
a._formdiv="__jsmolform__"),a.$attr(a._formdiv,"action",d+"?"+(new Date).getMilliseconds()),a.$val("__jsmoldata__",f),a.$val("__jsmolfilename__",b),a.$val("__jsmolmimetype__",c),a.$val("__jsmolencoding__",e),a.$submit("__jsmolform__"),a.$val("__jsmoldata__",""),a.$val("__jsmolfilename__",""));return"OK"};a._strToBytes=function(b){if(Clazz.instanceOf(b,self.ArrayBuffer))return Clazz.newByteArray(-1,b);for(var a=Clazz.newByteArray(b.length,0),c=b.length;0<=--c;)a[c]=b.charCodeAt(c)&255;return a};a._setConsoleDiv=
function(b){self.Clazz&&Clazz.setConsoleDiv(b)};a._registerApplet=function(b,f){return window[b]=a._applets[b]=a._applets[b+"__"+a._syncId+"__"]=f};a._readyCallback=function(b,f,c,e,d){b=b.split("_object")[0];var g=a._applets[b];if(c=c.booleanValue?c.booleanValue():c)g._appletPanel=d||e,g._applet=e;a._track(g)._readyCallback(b,f,c)};a._getWrapper=function(b,f){var c;if(f){var e="";if(b._coverImage)var e=' onclick="Jmol.coverApplet(ID, false)" title="'+b._coverTitle+'"',d='
",e='
"+d+"
";d=b._isJava?"":'
';c=a._appletCssText.replace(/\'/g,'"');var g=b._getSpinner&&b._getSpinner();b._spinner=g=!g||"none"==g?"":"background-image:url("+g+"); background-repeat:no-repeat; background-position:center;";c=g+(0<=c.indexOf('style="')?c.split('style="')[1]:'" '+c);c='...
IMG WAIT......
";var g=b._height,h=b._width;if("string"!==typeof g||0>g.indexOf("%"))g+="px";if("string"!==typeof h||0>h.indexOf("%"))h+="px";c=c.replace(/IMG/,e).replace(/WAIT/,d).replace(/Hpx/g,g).replace(/Wpx/g,h)}else c='......
......
......
...
';
return c.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.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,c=0;cc[0]?-1:0}if(!b||"object"!=typeof b)return[];for(var c=[],e=b.length-1;0<=e;e--)for(var d=0,g=b[e].length;df.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],g=b._touches[1];d.push([c.touches[0].pageX-e.left,c.touches[0].pageY-e.top]);g.push([c.touches[1].pageX-e.left,c.touches[1].pageY-e.top]);c=d.length;3e?
-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 k=a.Swing;SwingController=k;k.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(b,a,e){c.mouseMove(e)});this.container.bind("mouseupoutjsmol touchendoutjsmol",function(b,a,e){c.mouseUp(e)})}})};k.JSDialog=function(){};k.setDraggable(k.JSDialog);k.getScreenDimensions=function(b){b.width=h(window).width();b.height=h(window).height()};k.dispose=function(b){a.$remove(b.id+"_mover");delete k.htDialogs[b.id];b.container.obj.dragBind(!1)};
k.register=function(b,a){b.id=a+ ++k.count;k.htDialogs[b.id]=b};k.setDialog=function(b){a._setMouseOwner(null);a.$remove(b.id);var e=b.id+"_mover",c=a._$(e),d;c[0]?(c.html(b.html),d=c[0].jd):(a.$after("body",""+b.html+"
"),d=new k.JSDialog,c=a._$(e),b.container=c,d.applet=b.manager.vwr.html5Applet,d.setContainer(c),d.dialog=b,d.setPosition(),d.dragBind(!0),c[0].jd=d);a.$bind("#"+b.id+" .JButton","mousedown touchstart",function(){d.ignoreMouse=
!0});a.$bind("#"+b.id+" .JComboBox","mousedown touchstart",function(){d.ignoreMouse=!0});a.$bind("#"+b.id+" .JCheckBox","mousedown touchstart",function(){d.ignoreMouse=!0});a.$bind("#"+b.id+" .JTextField","mousedown touchstart",function(){d.ignoreMouse=!0});a.$bind("#"+b.id+" .JTable","mousedown touchstart",function(){d.ignoreMouse=!0});a.$bind("#"+b.id+" .JScrollPane","mousedown touchstart",function(){d.ignoreMouse=!0});a.$bind("#"+b.id+" .JEditorPane","mousedown touchstart",function(){d.ignoreMouse=
!0})};k.setSelected=function(b){a.$prop(b.id,"checked",!!b.selected)};k.setSelectedIndex=function(b){a.$prop(b.id,"selectedIndex",b.selectedIndex)};k.setText=function(b){a.$prop(b.id,"value",b.text)};k.setVisible=function(b){a.$setVisible(b.id,b._visible)};k.setEnabled=function(b){a.$setEnabled(b.id,b.enabled)};k.click=function(b,e){var c=k.htDialogs[b.id];if(c){var d=c.toString();if(0<=d.indexOf("JCheck"))c.selected=b.checked;else if(0<=d.indexOf("JCombo"))c.selectedIndex=b.selectedIndex;else if(null!=
c.text&&(c.text=b.value,e&&13!=(e.charCode||e.keyCode)))return}d=k.htDialogs[a.$getAncestorDiv(b.id,"JDialog").id];d.manager.actionPerformed(c?c.name:d.registryKey+"/"+b.id)};k.setFront=function(b){var e=b.manager.vwr.html5Applet;b.zIndex!=a._getZ(e,"dialog")&&(b.zIndex=a._incrZ(e,"dialog"));b.container&&((b.container[0]||b.container).style.zIndex=b.zIndex)};k.hideMenus=function(b){if(b=b._menus)for(var a in b)b[a]._visible&&k.hideMenu(b[a])};k.windowClosing=function(b){b=k.htDialogs[a.$getAncestorDiv(b.id,
"JDialog").id];b.registryKey?b.manager.processWindowClosing(b.registryKey):b.dispose()};a._track=function(b){if(a._tracker){try{var e='';a.$after("body",e)}catch(c){}delete a._tracker}return b};var l;a.getProfile=function(b){if(self.Clazz&&self.JSON)return l||Clazz._startProfiling(l=
0==arguments.length||b),Clazz.getProfile()};a._getInChIKey=function(b,a){0<=a.indexOf("MOL=")&&a.split("MOL=")[1].split('"')};a._getAttr=function(b,a){var e=b.indexOf(a+"=");return 0<=e&&0<=(e=b.indexOf('"',e))?b.substring(e+1,b.indexOf('"',e+1)):null};a.User={viewUpdatedCallback:null};a.View={count:0,applets:{},sets:{}};(function(b){b.resetView=function(b,e){debugger;if(e){if(e._viewSet){var d=a.View.applets[e._viewSet];for(b in d)b!=e&&a.View.resetView(b)}}else b&&(b._reset(),a.View.updateView(b))};
b.updateView=function(e,c){if(null!=e._viewSet){c||(c={});c.chemID||(e._searchQuery=null);c.data||(c.data="N/A");c.type=e._viewType;if(null==(e._currentView=b.__findView(e._viewSet,c)))e._currentView=b.__createViewSet(e._viewSet,c.chemID,c.viewID||c.chemID);e._currentView[c.type].data=c.data;e._currentView[c.type].smiles=e._getSmiles();a.User.viewUpdatedCallback&&a.User.viewUpdatedCallback(e,"updateView");b.__setView(e._currentView,e,!1)}};b.updateFromSync=function(e,c){e._updateMsg=c;var d=a._getAttr(c,
"sourceID")||a._getAttr(c,"file");if(d){var g=b.__findView(e._viewSet,{viewID:d});if(null==g)return a.updateView(e,c);g!=e._currentView&&b.__setView(g,e,!0);var h=(d=a._getAttr(c,"atoms"))&&0<=c.indexOf("selectionhalos ON")?eval("["+d+"]"):[];setTimeout(function(){e._currentView==g&&b.updateAtomPick(e,h)},10);a.User.viewUpdatedCallback&&a.User.viewUpdatedCallback(e,"updateFromSync")}};b.updateAtomPick=function(b,e){var d=b._currentView;if(null!=d){for(var g in d)"info"!=g&&d[g].applet!=b&&d[g].applet._updateAtomPick(e);
a.User.viewUpdatedCallback&&a.User.viewUpdatedCallback(b,"updateAtomPick")}};b.dumpViews=function(a){var e=b.sets[a];if(e){var d="View set "+a+":\n";a=b.applets[a];for(var g in a)d+="\napplet "+a[g]._id+" currentView="+(a[g]._currentView?a[g]._currentView.info.viewID:null);for(g=e.length;0<=--g;){a=e[g];var d=d+("\n\nview="+g+" viewID="+a.info.viewID+" chemID="+a.info.chemID+"\n"),h,m;for(m in a)"info"!=m&&(d+="\nview="+g+" type="+m+" applet="+((h=a[m]).applet?h.applet._id:null)+" SMILES="+
h.smiles+"\n atomMap="+JSON.stringify(h.atomMap)+"\n data=\n"+h.data+"\n")}return d}};b.__init=function(a){var e=a._viewSet,d=b.applets;d[e]||(d[e]={});d[e][a._viewType]=a};b.__findView=function(a,e){var d=b.sets[a];null==d&&(d=b.sets[a]=[]);for(var g=d.length;0<=--g;){var h=d[g];if(e.viewID){if(h.info.viewID==e.viewID)return h}else{if(null!=e.chemID&&e.chemID==h.info.chemID)return h;for(var m in h)if("info"!=m&&(null!=e.data&&null!=h[m].data?e.data==h[m].data:e.type==m))return h}}return null};b.__createViewSet=
function(e,c,d){b.count++;c={info:{chemID:c,viewID:d||"model_"+b.count}};for(var g in a._applets)d=a._applets[g],d._viewSet==e&&(c[d._viewType]={applet:d,data:null});b.sets[e].push(c);return c};b.__setView=function(b,a,e){for(var d in b)if("info"!=d){var g=b[d],h=g.applet,m=e||null!=h&&""==h._molData;if(!(null==h||h==a&&!m)){var j=null==g.data,k=null!=h._currentView;h._currentView=b;if(!k||!(b[d].data==g.data&&!j&!m))if(h._loadModelFromView(b),j)break}}}})(a.View);a.Cache={fileCache:{}};
a.Cache.get=function(b){return a.Cache.fileCache[b]};a.Cache.put=function(b,e){a.Cache.fileCache[b]=e};a.Cache.setDragDrop=function(b){a.$appEvent(b,"appletdiv","dragover",function(b){b=b.originalEvent;b.stopPropagation();b.preventDefault();b.dataTransfer.dropEffect="copy"});a.$appEvent(b,"appletdiv","drop",function(e){var c=e.originalEvent;c.stopPropagation();c.preventDefault();var d=c.dataTransfer.files[0];if(null==d)try{d=""+c.dataTransfer.getData("text"),(0==d.indexOf("file:/")||0==d.indexOf("http:/")||
0==d.indexOf("https:/"))&&b._scriptLoad(d)}catch(g){}else c=new FileReader,c.onloadend=function(c){if(c.target.readyState==FileReader.DONE){var g="cache://DROP_"+d.name;c=Clazz.newByteArray(-1,c.target.result);g.endsWith(".spt")||b._appletPanel.cacheFileByName("cache://DROP_*",!1);"JSV"==b._viewType||g.endsWith(".jdx")?a.Cache.put(g,c):b._appletPanel.cachePut(g,c);(c=a._jsGetXY(b._canvas,e))&&(!b._appletPanel.setStatusDragDropped||b._appletPanel.setStatusDragDropped(0,c[0],c[1],g))&&b._appletPanel.openFileAsyncSpecial(g,
1)}},c.readAsArrayBuffer(d)})}})(Jmol,jQuery);Jmol._debugCode=!1;Jmol._grabberOptions=[["$","NCI(small molecules)"],[":","PubChem(small molecules)"]];Jmol.say=function(a){alert(a)};Jmol._TMApplet=function(a,h,e){this._uniqueId=(""+Math.random()).substring(3);this._id=a;this._is2D=!0;this._isJava=!1;this._ready=!0;this._mouseDown=!1;this._jmolType="Jmol._Canvas2D (TwirlyMol)";if(e)return this;this._createCanvas(a,h);return this};
Jmol._TMApplet._getApplet=function(a,h,e){if(!Jmol.featureDetection.allowHTML5)return null;e||(e=!1);h||(h={});Jmol._addDefaultInfo(h,{color:"#FFFFFF",width:300,height:300,addSelectionOptions:!1,serverURL:"http://your.server.here/jsmol.php",defaultModel:"",readyFunction:null,use:"HTML5",bondWidth:5,shadeAtoms:!1,zoomScaling:1.5,pinchScaling:2,mouseDragFactor:0.5,touchDragFactor:0.15,multipleBondSpacing:4,spinRateX:0,spinRateY:0.5,spinFPS:20,spin:!1,noscript:!0,debug:!1});h=new Jmol._TMApplet(a,h,
e);return e?h:Jmol._registerApplet(a,h)};Jmol.getTMApplet=Jmol._TMApplet._getApplet;
(function(a){a._CPK="#FF1493 #FFFFFF #D9FFFF #CC80FF #C2FF00 #FFB5B5 #909090 #3050F8 #FF0D0D #90E050 #B3E3F5 #AB5CF2 #8AFF00 #BFA6A6 #F0C8A0 #FF8000 #FFFF30 #1FF01F #80D1E3 #8F40D4 #3DFF00 #E6E6E6 #BFC2C7 #A6A6AB #8A99C7 #9C7AC7 #E06633 #F090A0 #50D050 #C88033 #7D80B0 #C28F8F #668F8F #BD80E3 #FFA100 #A62929 #5CB8D1 #702EB0 #00FF00 #94FFFF #94E0E0 #73C2C9 #54B5B5 #3B9E9E #248F8F #0A7D8C #006985 #C0C0C0 #FFD98F #A67573 #668080 #9E63B5 #D47A00 #940094 #429EB0 #57178F #00C900".split(" ");a._elem="X H He Li Be B C N O F Ne Na Mg Al Si P S Cl Ar K Ca Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Kr Rb Sr Y Zr Nb Mo Tc Ru Rh Pd Ag Cd In Sn Sb Te I Xe Cs Ba La Ce Pr Nd Pm Sm Eu Gd Tb Dy Ho Er Tm Yb Lu Hf Ta W Re Os Ir Pt Au Hg Tl Pb Bi Po At Rn Fr Ra Ac Th Pa U Np Pu Am Cm Bk Cf Es".split(" ");
a._elemNo={};var h=a.prototype;h.spin=function(a){this.__Info.spin=a;this._spin(a)};h._spin=function(a){this._spinThread&&clearTimeout(this._spinThread);if(0==this.spinFPS||0==this.spinRateX&&0==this.spinRateY)a=!1;if(a){var d=this;a=1E3/this.spinFPS;this._mouseDown||(this._rotate(this.spinRateY,this.spinRateX),this._draw());this._spinThread=setTimeout(function(){d._spin(!0)},a)}};h._initParams=function(){this.zoom=this.__Info.defaultZoom||100;this.doSpin=this.__Info.spin||!1;this.center2D=[this._canvas.width/
2,this._canvas.height/2,0];this._getCenterAndRadius();this.rotation=new a.M3;this.shadeAtoms=!1;this._setParams()};h._setParams=function(){this.bondWidth=this.__Info.bondWidth||5;this.zoomScaling=this.__Info.zoomScaling||1.5;this.pinchScaling=this.__Info.pinchScaling||1;this.mouseDragFactor=this.__Info.mouseDragFactor||0.5;this.touchDragFactor=this.__Info.touchDragFactor||0.15;this.multipleBondSpacing=this.__Info.multipleBondSpacing||4;this.spinRateX=this.__Info.spinRateX||0;this.spinRateY=this.__Info.spinRateY||
0;this.spinFPS=this.__Info.spinFPS||0;var a=this.shadeAtoms;(this.shadeAtoms=this.__Info.shadeAtoms||!1)&&!a&&this._setAtomShades()};h._setAtomShades=function(){if(this.atoms)for(var a=this.atoms.length;0<=--a;)this.atoms[a].color50=this._getColor(this.atoms[a].color,0.5)};h._createCanvas=function(a,d){Jmol._setObject(this,a,d);this._color=this._color.replace(/0x/,"#");var g=Jmol._getWrapper(this,!0);Jmol._document?(Jmol._documentWrite(g),this._createCanvas2d(!1),g=""):g+='