biojs-vis-pdbviewer
Version:
A BioJS 2.0 component to view protein structures
180 lines • 94.9 kB
JavaScript
(function(la,ma,na,L,oa,y,pa,B,aa,ba,qa,ca,ra,da,sa,M,ta,N,ea,fa,ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,m,n){if(!jQuery.ui)try{var h=jQuery,P=function(a,b){var c,d,e,f=a.nodeName.toLowerCase();return"area"===f?(c=a.parentNode,d=c.name,!a.href||!d||"map"!==c.nodeName.toLowerCase()?!1:(e=h("img[usemap=#"+d+"]")[0],!!e&&O(e))):(/input|select|textarea|button|object/.test(f)?!a.disabled:"a"===f?a.href||b:b)&&O(a)},O=function(a){return h.expr.filters.visible(a)&&
!h(a).parents().andSelf().filter(function(){return"hidden"===h.css(this,"visibility")}).length},ga=0,ha=/^ui-id-\d+$/;h.ui=h.ui||{};if(!h.ui.version){h.extend(h.ui,{version:"1.9.2",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});h.fn.extend({_focus:h.fn.focus,focus:function(a,b){return"number"==
typeof a?this.each(function(){var c=this;setTimeout(function(){h(c).focus();b&&b.call(c)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;return h.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?a=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(h.css(this,"position"))&&/(auto|scroll)/.test(h.css(this,"overflow")+h.css(this,"overflow-y")+h.css(this,"overflow-x"))}).eq(0):a=this.parents().filter(function(){return/(auto|scroll)/.test(h.css(this,
"overflow")+h.css(this,"overflow-y")+h.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!a.length?h(document):a},zIndex:function(a){if(void 0!==a)return this.css("zIndex",a);if(this.length){a=h(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");if("absolute"===b||"relative"===b||"fixed"===b)if(b=parseInt(a.css("zIndex"),10),!isNaN(b)&&0!==b)return b;a=a.parent()}}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++ga)})},removeUniqueId:function(){return this.each(function(){ha.test(this.id)&&
h(this).removeAttr("id")})}});h.extend(h.expr[":"],{data:h.expr.createPseudo?h.expr.createPseudo(function(a){return function(b){return!!h.data(b,a)}}):function(a,b,c){return!!h.data(a,c[3])},focusable:function(a){return P(a,!isNaN(h.attr(a,"tabindex")))},tabbable:function(a){var b=h.attr(a,"tabindex"),c=isNaN(b);return(c||0<=b)&&P(a,!c)}});h(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));b.offsetHeight;h.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});
h.support.minHeight=100===b.offsetHeight;h.support.selectstart="onselectstart"in b;a.removeChild(b).style.display="none"});h("<a>").outerWidth(1).jquery||h.each(["Width","Height"],function(a,b){function c(a,b,c,e){return h.each(d,function(){b-=parseFloat(h.css(a,"padding"+this))||0;c&&(b-=parseFloat(h.css(a,"border"+this+"Width"))||0);e&&(b-=parseFloat(h.css(a,"margin"+this))||0)}),b}var d="Width"===b?["Left","Right"]:["Top","Bottom"],e=b.toLowerCase(),f={innerWidth:h.fn.innerWidth,innerHeight:h.fn.innerHeight,
outerWidth:h.fn.outerWidth,outerHeight:h.fn.outerHeight};h.fn["inner"+b]=function(a){return void 0===a?f["inner"+b].call(this):this.each(function(){h(this).css(e,c(this,a)+"px")})};h.fn["outer"+b]=function(a,d){return"number"!=typeof a?f["outer"+b].call(this,a):this.each(function(){h(this).css(e,c(this,a,!0,d)+"px")})}});if(h("<a>").data("a-b","a").removeData("a-b").data("a-b")){var Q=h.fn.removeData;h.fn.removeData=function(a){return arguments.length?Q.call(this,h.camelCase(a)):Q.call(this)}}var R=
/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];h.ui.ie=R.length?!0:!1;h.ui.ie6=6===parseFloat(R[1],10);h.fn.extend({disableSelection:function(){return this.bind((h.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});h.extend(h.ui,{plugin:{add:function(a,b,c){var d;a=h.ui[a].prototype;for(d in c)a.plugins[d]=a.plugins[d]||[],a.plugins[d].push([b,c[d]])},call:function(a,
b,c){var d=a.plugins[b];if(d&&a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType)for(b=0;b<d.length;b++)a.options[d[b][0]]&&d[b][1].apply(a.element,c)}},contains:h.contains,hasScroll:function(a,b){if("hidden"===h(a).css("overflow"))return!1;var c=b&&"left"===b?"scrollLeft":"scrollTop";return 0<a[c]?!0:(a[c]=1,a[c]=0,!1)},isOverAxis:function(a,b,c){return a>b&&a<b+c},isOver:function(a,b,c,d,e,f){return h.ui.isOverAxis(a,c,e)&&h.ui.isOverAxis(b,d,f)}})}}catch(cb){System.out.println("coremenu failed to load jQuery.ui.core -- jQuery version conflict?")}if(!jQuery.ui.widget)try{var j=
jQuery,ia=0,S=Array.prototype.slice,ja=j.cleanData;j.cleanData=function(a){for(var b=0,c;null!=(c=a[b]);b++)try{j(c).triggerHandler("remove")}catch(d){}ja(a)};j.widget=function(a,b,c){var d,e,f,g,h=a.split(".")[0];a=a.split(".")[1];d=h+"-"+a;c||(c=b,b=j.Widget);j.expr[":"][d.toLowerCase()]=function(a){return!!j.data(a,d)};j[h]=j[h]||{};e=j[h][a];f=j[h][a]=function(a,b){if(!this._createWidget)return new f(a,b);arguments.length&&this._createWidget(a,b)};j.extend(f,e,{version:c.version,_proto:j.extend({},
c),_childConstructors:[]});g=new b;g.options=j.widget.extend({},g.options);j.each(c,function(a,d){if(j.isFunction(d)){var e=function(){return b.prototype[a].apply(this,arguments)},f=function(c){return b.prototype[a].apply(this,c)};c[a]=function(){var a=this._super,b=this._superApply,c;return this._super=e,this._superApply=f,c=d.apply(this,arguments),this._super=a,this._superApply=b,c}}});f.prototype=j.widget.extend(g,{widgetEventPrefix:e?g.widgetEventPrefix:a},c,{constructor:f,namespace:h,widgetName:a,
widgetBaseClass:d,widgetFullName:d});e?(j.each(e._childConstructors,function(a,b){var c=b.prototype;j.widget(c.namespace+"."+c.widgetName,f,b._proto)}),delete e._childConstructors):b._childConstructors.push(f);j.widget.bridge(a,f)};j.widget.extend=function(a){for(var b=S.call(arguments,1),c=0,d=b.length,e,f;c<d;c++)for(e in b[c])f=b[c][e],b[c].hasOwnProperty(e)&&void 0!==f&&(j.isPlainObject(f)?a[e]=j.isPlainObject(a[e])?j.widget.extend({},a[e],f):j.widget.extend({},f):a[e]=f);return a};j.widget.bridge=
function(a,b){var c=b.prototype.widgetFullName||a;j.fn[a]=function(d){var e="string"==typeof d,f=S.call(arguments,1),g=this;return d=!e&&f.length?j.widget.extend.apply(null,[d].concat(f)):d,e?this.each(function(){var b,e=j.data(this,c);if(!e)return j.error("cannot call methods on "+a+" prior to initialization; attempted to call method '"+d+"'");if(!j.isFunction(e[d])||"_"===d.charAt(0))return j.error("no such method '"+d+"' for "+a+" widget instance");b=e[d].apply(e,f);if(b!==e&&void 0!==b)return g=
b&&b.jquery?g.pushStack(b.get()):b,!1}):this.each(function(){var a=j.data(this,c);a?a.option(d||{})._init():j.data(this,c,new b(d,this))}),g}};j.Widget=function(){};j.Widget._childConstructors=[];j.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(a,b){b=j(b||this.defaultElement||this)[0];this.element=j(b);this.uuid=ia++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=j.widget.extend({},this.options,
this._getCreateOptions(),a);this.bindings=j();this.hoverable=j();this.focusable=j();b!==this&&(j.data(b,this.widgetName,this),j.data(b,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target===b&&this.destroy()}}),this.document=j(b.style?b.ownerDocument:b.document||b),this.window=j(this.document[0].defaultView||this.document[0].parentWindow));this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:j.noop,_getCreateEventData:j.noop,
_create:j.noop,_init:j.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(j.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:j.noop,widget:function(){return this.element},
option:function(a,b){var c=a,d,e,f;if(0===arguments.length)return j.widget.extend({},this.options);if("string"==typeof a)if(c={},d=a.split("."),a=d.shift(),d.length){e=c[a]=j.widget.extend({},this.options[a]);for(f=0;f<d.length-1;f++)e[d[f]]=e[d[f]]||{},e=e[d[f]];a=d.pop();if(void 0===b)return void 0===e[a]?null:e[a];e[a]=b}else{if(void 0===b)return void 0===this.options[a]?null:this.options[a];c[a]=b}return this._setOptions(c),this},_setOptions:function(a){for(var b in a)this._setOption(b,a[b]);
return this},_setOption:function(a,b){return this.options[a]=b,"disabled"===a&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!b).attr("aria-disabled",b),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(a,b,c){var d,e=this;"boolean"!=typeof a&&(c=b,b=a,a=!1);c?(b=d=j(b),this.bindings=this.bindings.add(b)):
(c=b,b=this.element,d=this.widget());j.each(c,function(c,g){function h(){if(a||!(!0===e.options.disabled||j(this).hasClass("ui-state-disabled")))return("string"==typeof g?e[g]:g).apply(e,arguments)}"string"!=typeof g&&(h.guid=g.guid=g.guid||h.guid||j.guid++);var l=c.match(/^(\w+)\s*(.*)$/),k=l[1]+e.eventNamespace;(l=l[2])?d.delegate(l,k,h):b.bind(k,h)})},_off:function(a,b){b=(b||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;a.unbind(b).undelegate(b)},_delay:function(a,b){var c=
this;return setTimeout(function(){return("string"==typeof a?c[a]:a).apply(c,arguments)},b||0)},_hoverable:function(a){this.hoverable=this.hoverable.add(a);this._on(a,{mouseenter:function(a){j(a.currentTarget).addClass("ui-state-hover")},mouseleave:function(a){j(a.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(a){this.focusable=this.focusable.add(a);this._on(a,{focusin:function(a){j(a.currentTarget).addClass("ui-state-focus")},focusout:function(a){j(a.currentTarget).removeClass("ui-state-focus")}})},
_trigger:function(a,b,c){var d,e=this.options[a];c=c||{};b=j.Event(b);b.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();b.target=this.element[0];if(a=b.originalEvent)for(d in a)d in b||(b[d]=a[d]);return this.element.trigger(b,c),!(j.isFunction(e)&&!1===e.apply(this.element[0],[b].concat(c))||b.isDefaultPrevented())}};j.each({show:"fadeIn",hide:"fadeOut"},function(a,b){j.Widget.prototype["_"+a]=function(c,d,e){"string"==typeof d&&(d={effect:d});var f,g=d?!0===d||"number"==
typeof d?b:d.effect||b:a;d=d||{};"number"==typeof d&&(d={duration:d});f=!j.isEmptyObject(d);d.complete=e;d.delay&&c.delay(d.delay);f&&j.effects&&(j.effects.effect[g]||!1!==j.uiBackCompat&&j.effects[g])?c[a](d):g!==a&&c[g]?c[g](d.duration,d.easing,e):c.queue(function(b){j(this)[a]();e&&e.call(c[0]);b()})}});!1!==j.uiBackCompat&&(j.Widget.prototype._getCreateOptions=function(){return j.metadata&&j.metadata.get(this.element[0])[this.widgetName]})}catch(db){System.out.println("coremenu failed to load jQuery.ui.widget -- jQuery version conflict?")}if(!jQuery.ui.mouse)try{var r=
jQuery,C=!1;r(document).mouseup(function(){C=!1});r.widget("ui.mouse",{version:"1.9.2",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(b){return a._mouseDown(b)}).bind("click."+this.widgetName,function(b){if(!0===r.data(b.target,a.widgetName+".preventClickEvent"))return r.removeData(b.target,a.widgetName+".preventClickEvent"),b.stopImmediatePropagation(),!1});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+
this.widgetName);this._mouseMoveDelegate&&r(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(a){if(!C){this._mouseStarted&&this._mouseUp(a);this._mouseDownEvent=a;var b=this,c=1===a.which,d="string"==typeof this.options.cancel&&a.target.nodeName?r(a.target).closest(this.options.cancel).length:!1;if(!c||d||!this._mouseCapture(a))return!0;(this.mouseDelayMet=!this.options.delay)||(this._mouseDelayTimer=
setTimeout(function(){b.mouseDelayMet=!0},this.options.delay));return this._mouseDistanceMet(a)&&this._mouseDelayMet(a)&&(this._mouseStarted=!1!==this._mouseStart(a),!this._mouseStarted)?(a.preventDefault(),!0):(!0===r.data(a.target,this.widgetName+".preventClickEvent")&&r.removeData(a.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(a){return b._mouseMove(a)},this._mouseUpDelegate=function(a){return b._mouseUp(a)},r(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+
this.widgetName,this._mouseUpDelegate),a.preventDefault(),C=!0,!0)}},_mouseMove:function(a){return!r.ui.ie||9<=document.documentMode||a.button?this._mouseStarted?(this._mouseDrag(a),a.preventDefault()):(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,a),this._mouseStarted?this._mouseDrag(a):this._mouseUp(a)),!this._mouseStarted):this._mouseUp(a)},_mouseUp:function(a){return r(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+
this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,a.target===this._mouseDownEvent.target&&r.data(a.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(a)),!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}catch(eb){System.out.println("coremenu failed to load jQuery.ui.mouse -- jQuery version conflict?")}if(!jQuery.ui.position)try{var l=
jQuery,U=function(a,b,c){return[parseInt(a[0],10)*(T.test(a[0])?b/100:1),parseInt(a[1],10)*(T.test(a[1])?c/100:1)]};l.ui=l.ui||{};var D,z=Math.max,s=Math.abs,V=Math.round,W=/left|center|right/,X=/top|center|bottom/,Y=/[\+\-]\d+%?/,Z=/^\w+/,T=/%$/,ka=l.fn.position;l.position={scrollbarWidth:function(){if(void 0!==D)return D;var a,b,c=l("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),d=c.children()[0];return l("body").append(c),
a=d.offsetWidth,c.css("overflow","scroll"),b=d.offsetWidth,a===b&&(b=c[0].clientWidth),c.remove(),D=a-b},getScrollInfo:function(a){var b=a.isWindow?"":a.element.css("overflow-x"),c=a.isWindow?"":a.element.css("overflow-y"),c="scroll"===c||"auto"===c&&a.height<a.element[0].scrollHeight;return{width:"scroll"===b||"auto"===b&&a.width<a.element[0].scrollWidth?l.position.scrollbarWidth():0,height:c?l.position.scrollbarWidth():0}},getWithinInfo:function(a){a=l(a||window);var b=l.isWindow(a[0]);return{element:a,
isWindow:b,offset:a.offset()||{left:0,top:0},scrollLeft:a.scrollLeft(),scrollTop:a.scrollTop(),width:b?a.width():a.outerWidth(),height:b?a.height():a.outerHeight()}}};l.fn.position=function(a){if(!a||!a.of)return ka.apply(this,arguments);a=l.extend({},a);var b,c,d,e,f,g=l(a.of),j=l.position.getWithinInfo(a.within),h=l.position.getScrollInfo(j),k=g[0],m=(a.collision||"flip").split(" "),n={};return 9===k.nodeType?(c=g.width(),d=g.height(),e={top:0,left:0}):l.isWindow(k)?(c=g.width(),d=g.height(),e=
{top:g.scrollTop(),left:g.scrollLeft()}):k.preventDefault?(a.at="left top",c=d=0,e={top:k.pageY,left:k.pageX}):(c=g.outerWidth(),d=g.outerHeight(),e=g.offset()),f=l.extend({},e),l.each(["my","at"],function(){var b=(a[this]||"").split(" "),c,d;1===b.length&&(b=W.test(b[0])?b.concat(["center"]):X.test(b[0])?["center"].concat(b):["center","center"]);b[0]=W.test(b[0])?b[0]:"center";b[1]=X.test(b[1])?b[1]:"center";c=Y.exec(b[0]);d=Y.exec(b[1]);n[this]=[c?c[0]:0,d?d[0]:0];a[this]=[Z.exec(b[0])[0],Z.exec(b[1])[0]]}),
1===m.length&&(m[1]=m[0]),"right"===a.at[0]?f.left+=c:"center"===a.at[0]&&(f.left+=c/2),"bottom"===a.at[1]?f.top+=d:"center"===a.at[1]&&(f.top+=d/2),b=U(n.at,c,d),f.left+=b[0],f.top+=b[1],this.each(function(){var k,p,u=l(this),r=u.outerWidth(),v=u.outerHeight(),t=parseInt(l.css(this,"marginLeft"),10)||0,w=parseInt(l.css(this,"marginTop"),10)||0,x=r+t+(parseInt(l.css(this,"marginRight"),10)||0)+h.width,y=v+w+(parseInt(l.css(this,"marginBottom"),10)||0)+h.height,q=l.extend({},f),A=U(n.my,u.outerWidth(),
u.outerHeight());"right"===a.my[0]?q.left-=r:"center"===a.my[0]&&(q.left-=r/2);"bottom"===a.my[1]?q.top-=v:"center"===a.my[1]&&(q.top-=v/2);q.left+=A[0];q.top+=A[1];l.support.offsetFractions||(q.left=V(q.left),q.top=V(q.top));k={marginLeft:t,marginTop:w};l.each(["left","top"],function(e,f){l.ui.position[m[e]]&&l.ui.position[m[e]][f](q,{targetWidth:c,targetHeight:d,elemWidth:r,elemHeight:v,collisionPosition:k,collisionWidth:x,collisionHeight:y,offset:[b[0]+A[0],b[1]+A[1]],my:a.my,at:a.at,within:j,
elem:u})});l.fn.bgiframe&&u.bgiframe();a.using&&(p=function(b){var f=e.left-q.left,j=f+c-r,h=e.top-q.top,l=h+d-v,k={target:{element:g,left:e.left,top:e.top,width:c,height:d},element:{element:u,left:q.left,top:q.top,width:r,height:v},horizontal:0>j?"left":0<f?"right":"center",vertical:0>l?"top":0<h?"bottom":"middle"};c<r&&s(f+j)<c&&(k.horizontal="center");d<v&&s(h+l)<d&&(k.vertical="middle");z(s(f),s(j))>z(s(h),s(l))?k.important="horizontal":k.important="vertical";a.using.call(this,b,k)});u.offset(l.extend(q,
{using:p}))})};l.ui.position={fit:{left:function(a,b){var c=b.within,d=c.isWindow?c.scrollLeft:c.offset.left,c=c.width,e=a.left-b.collisionPosition.marginLeft,f=d-e,g=e+b.collisionWidth-c-d,h;b.collisionWidth>c?0<f&&0>=g?(h=a.left+f+b.collisionWidth-c-d,a.left+=f-h):0<g&&0>=f?a.left=d:f>g?a.left=d+c-b.collisionWidth:a.left=d:0<f?a.left+=f:0<g?a.left-=g:a.left=z(a.left-e,a.left)},top:function(a,b){var c=b.within,c=c.isWindow?c.scrollTop:c.offset.top,d=b.within.height,e=a.top-b.collisionPosition.marginTop,
f=c-e,g=e+b.collisionHeight-d-c,h;b.collisionHeight>d?0<f&&0>=g?(h=a.top+f+b.collisionHeight-d-c,a.top+=f-h):0<g&&0>=f?a.top=c:f>g?a.top=c+d-b.collisionHeight:a.top=c:0<f?a.top+=f:0<g?a.top-=g:a.top=z(a.top-e,a.top)}},flip:{left:function(a,b){var c=b.within,d=c.offset.left+c.scrollLeft,e=c.width,f=c.isWindow?c.scrollLeft:c.offset.left,g=a.left-b.collisionPosition.marginLeft,c=g-f,h=g+b.collisionWidth-e-f,g="left"===b.my[0]?-b.elemWidth:"right"===b.my[0]?b.elemWidth:0,j="left"===b.at[0]?b.targetWidth:
"right"===b.at[0]?-b.targetWidth:0,k=-2*b.offset[0];if(0>c){if(d=a.left+g+j+k+b.collisionWidth-e-d,0>d||d<s(c))a.left+=g+j+k}else if(0<h&&(d=a.left-b.collisionPosition.marginLeft+g+j+k-f,0<d||s(d)<h))a.left+=g+j+k},top:function(a,b){var c=b.within,d=c.offset.top+c.scrollTop,e=c.height,c=c.isWindow?c.scrollTop:c.offset.top,f=a.top-b.collisionPosition.marginTop,g=f-c,f=f+b.collisionHeight-e-c,h="top"===b.my[1]?-b.elemHeight:"bottom"===b.my[1]?b.elemHeight:0,j="top"===b.at[1]?b.targetHeight:"bottom"===
b.at[1]?-b.targetHeight:0,k=-2*b.offset[1],l,m;0>g?(m=a.top+h+j+k+b.collisionHeight-e-d,a.top+h+j+k>g&&(0>m||m<s(g))&&(a.top+=h+j+k)):0<f&&(l=a.top-b.collisionPosition.marginTop+h+j+k-c,a.top+h+j+k>f&&(0<l||s(l)<f)&&(a.top+=h+j+k))}},flipfit:{left:function(){l.ui.position.flip.left.apply(this,arguments);l.ui.position.fit.left.apply(this,arguments)},top:function(){l.ui.position.flip.top.apply(this,arguments);l.ui.position.fit.top.apply(this,arguments)}}};var t,w,x,E,F,G=document.getElementsByTagName("body")[0],
H=document.createElement("div");t=document.createElement(G?"div":"body");x={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};G&&l.extend(x,{position:"absolute",left:"-1000px",top:"-1000px"});for(F in x)t.style[F]=x[F];t.appendChild(H);w=G||document.documentElement;w.insertBefore(t,w.firstChild);H.style.cssText="position: absolute; left: 10.7432222px;";E=l(H).offset().left;l.support.offsetFractions=10<E&&11>E;t.innerHTML="";w.removeChild(t);if(!1!==l.uiBackCompat){var I=jQuery,
$=I.fn.position;I.fn.position=function(a){if(!a||!a.offset)return $.call(this,a);var b=a.offset.split(" "),c=a.at.split(" ");return 1===b.length&&(b[1]=b[0]),/^\d/.test(b[0])&&(b[0]="+"+b[0]),/^\d/.test(b[1])&&(b[1]="+"+b[1]),1===c.length&&(/left|center|right/.test(c[0])?c[1]="center":(c[1]=c[0],c[0]="center")),$.call(this,I.extend(a,{at:c[0]+b[0]+" "+c[1]+b[1],offset:void 0}))}}}catch(fb){System.out.println("coremenu failed to load jQuery.ui.position -- jQuery version conflict?")}if(!jQuery.ui.menu)try{var k=
jQuery,K=!1;k.widget("ui.menu",{version:"1.9.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,k.proxy(function(a){this.options.disabled&&
a.preventDefault()},this));this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true");this._on({"mousedown .ui-menu-item > a":function(a){a.preventDefault()},"click .ui-state-disabled > a":function(a){a.preventDefault()},"click .ui-menu-item:has(a)":function(a){var b=k(a.target).closest(".ui-menu-item");!K&&b.not(".ui-state-disabled").length&&(K=!0,this.select(a),b.has(".ui-menu").length?this.expand(a):this.element.is(":focus")||(this.element.trigger("focus",[!0]),
this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(a){var b=k(a.currentTarget);b.siblings().children(".ui-state-active").removeClass("ui-state-active");this.focus(a,b)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(a,b){var c=this.active||this.element.children(".ui-menu-item").eq(0);b||this.focus(a,c)},blur:function(a){this._delay(function(){k.contains(this.element[0],this.document[0].activeElement)||
this.collapseAll(a)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(a){k(a.target).closest(".ui-menu").length||this.collapseAll(a);K=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").andSelf().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show();
this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var a=k(this);a.data("ui-menu-submenu-carat")&&a.remove()});this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(a){function b(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,
"\\$&")}var c,d,e,f,g=!0;switch(a.keyCode){case k.ui.keyCode.PAGE_UP:this.previousPage(a);break;case k.ui.keyCode.PAGE_DOWN:this.nextPage(a);break;case k.ui.keyCode.HOME:this._move("first","first",a);break;case k.ui.keyCode.END:this._move("last","last",a);break;case k.ui.keyCode.UP:this.previous(a);break;case k.ui.keyCode.DOWN:this.next(a);break;case k.ui.keyCode.LEFT:this.collapse(a);break;case k.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(a);break;case k.ui.keyCode.ENTER:case k.ui.keyCode.SPACE:this._activate(a);
break;case k.ui.keyCode.ESCAPE:this.collapse(a);break;default:g=!1,c=this.previousFilter||"",d=String.fromCharCode(a.keyCode),e=!1,clearTimeout(this.filterTimer),d===c?e=!0:d=c+d,f=RegExp("^"+b(d),"i"),c=this.activeMenu.children(".ui-menu-item").filter(function(){return f.test(k(this).children("a").text())}),c=e&&-1!==c.index(this.active.next())?this.active.nextAll(".ui-menu-item"):c,c.length||(d=String.fromCharCode(a.keyCode),f=RegExp("^"+b(d),"i"),c=this.activeMenu.children(".ui-menu-item").filter(function(){return f.test(k(this).children("a").text())})),
c.length?(this.focus(a,c),1<c.length?(this.previousFilter=d,this.filterTimer=this._delay(function(){delete this.previousFilter},1E3)):delete this.previousFilter):delete this.previousFilter}g&&a.preventDefault()},_activate:function(a){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(a):this.select(a))},refresh:function(){var a,b=this.options.icons.submenu;a=this.element.find(this.options.menus);a.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,
"aria-hidden":"true","aria-expanded":"false"}).each(function(){var a=k(this),d=a.prev("a"),e=k("<span>").addClass("ui-menu-icon ui-icon "+b).data("ui-menu-submenu-carat",!0);d.attr("aria-haspopup","true").prepend(e);a.attr("aria-labelledby",d.attr("id"))});a=a.add(this.element);a.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()});a.children(":not(.ui-menu-item)").each(function(){var a=
k(this);/[^\-\u00e2\u20ac\u201d\u00e2\u20ac\u201c\s]/.test(a.text())||a.addClass("ui-widget-content ui-menu-divider")});a.children(".ui-state-disabled").attr("aria-disabled","true");this.active&&!k.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},focus:function(a,b){var c;this.blur(a,a&&"focus"===a.type);this._scrollIntoView(b);this.active=b.first();c=this.active.children("a").addClass("ui-state-focus");this.options.role&&
this.element.attr("aria-activedescendant",c.attr("id"));this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active");a&&"keydown"===a.type?this._close():this.timer=this._delay(function(){this._close()},this.delay);c=b.children(".ui-menu");c.length&&/^mouse/.test(a.type)&&this._startOpening(c);this.activeMenu=b.parent();this._trigger("focus",a,{item:b})},_scrollIntoView:function(a){var b,c,d,e,f,g;this._hasScroll()&&(b=parseFloat(k.css(this.activeMenu[0],"borderTopWidth"))||
0,c=parseFloat(k.css(this.activeMenu[0],"paddingTop"))||0,d=a.offset().top-this.activeMenu.offset().top-b-c,e=this.activeMenu.scrollTop(),f=this.activeMenu.height(),g=a.height(),0>d?this.activeMenu.scrollTop(e+d):d+g>f&&this.activeMenu.scrollTop(e+d-f+g))},blur:function(a,b){b||clearTimeout(this.timer);this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",a,{item:this.active}))},_startOpening:function(a){clearTimeout(this.timer);"true"===a.attr("aria-hidden")&&
(this.timer=this._delay(function(){this._close();this._open(a)},this.delay))},_open:function(a){var b=k.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(a.parents(".ui-menu")).hide().attr("aria-hidden","true");a.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(b)},collapseAll:function(a,b){clearTimeout(this.timer);this.timer=this._delay(function(){var c=b?this.element:k(a&&a.target).closest(this.element.find(".ui-menu"));
c.length||(c=this.element);this._close(c);this.blur(a);this.activeMenu=c},this.delay)},_close:function(a){a||(a=this.active?this.active.parent():this.element);a.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(a){var b=this.active&&this.active.parent().closest(".ui-menu-item",this.element);b&&b.length&&(this._close(),this.focus(a,b))},expand:function(a){var b=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();
b&&b.length&&(this._open(b.parent()),this._delay(function(){this.focus(a,b)}))},next:function(a){this._move("next","first",a)},previous:function(a){this._move("prev","last",a)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(a,b,c){var d;this.active&&("first"===a||"last"===a?d=this.active["first"===a?"prevAll":"nextAll"](".ui-menu-item").eq(-1):d=this.active[a+
"All"](".ui-menu-item").eq(0));if(!d||!d.length||!this.active)d=this.activeMenu.children(".ui-menu-item")[b]();this.focus(c,d)},nextPage:function(a){var b,c,d;this.active?this.isLastItem()||(this._hasScroll()?(c=this.active.offset().top,d=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return b=k(this),0>b.offset().top-c-d}),this.focus(a,b)):this.focus(a,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())):this.next(a)},previousPage:function(a){var b,
c,d;this.active?this.isFirstItem()||(this._hasScroll()?(c=this.active.offset().top,d=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return b=k(this),0<b.offset().top-c+d}),this.focus(a,b)):this.focus(a,this.activeMenu.children(".ui-menu-item").first())):this.next(a)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(a){this.active=this.active||k(a.target).closest(".ui-menu-item");var b={item:this.active};this.active.has(".ui-menu").length||
this.collapseAll(a,!0);this._trigger("select",a,b)}})}catch(gb){System.out.println("JSmolMenu failed to load jQuery.ui.menu -- jQuery version conflict?")}var p=Jmol.Swing;p.menuInitialized||(p.menuCounter=0,p.menuInitialized=1,p.__getMenuStyle=function(a){return"\t.jmolPopupMenu{font-family:Arial,sans-serif;font-size:11px;position:absolute;z-index:"+Jmol._getZ(a,"menu")+'}\t.jmolPopupMenu,.jmolPopupMenu .ui-corner-all{border-radius:5px}\t.jmolPopupMenu,.jmolPopupMenu .ui-widget-content{border:1px solid #a6c9e2;background-color:#fcfdfd;color:#222}\t.jmolPopupMenu a{color:#222;font-size:10px;}\t.jmolPopupMenu input[type="checkbox"]{vertical-align:middle;}\t.jmolPopupMenu,.jmolPopupMenu .ui-menu{list-style:none;padding:2px;margin:0;display:block;outline:none;box-shadow:1px 1px 5px rgba(50,50,50,0.75)}\t.jmolPopupMenu .ui-menu{margin-top:-3px;position:absolute}\t.jmolPopupMenu .ui-menu-item{cursor:pointer;margin:0 2ex 0 0;padding:0;width:100%}\t.jmolPopupMenu .ui-menu-divider{margin:3px 1px;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}\t.jmolPopupMenu .ui-menu-item a{text-decoration:none;display:block;padding:0.05em 0.4em;white-space:nowrap;border:1px solid transparent}\t.jmolPopupMenu .ui-menu-icons{position:relative}\t.jmolPopupMenu .ui-menu-icons .ui-menu-item a{position:relative;padding-left:2em}\t.jmolPopupMenu .ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat;position:absolute;top:.2em;left:.2em}\t.jmolPopupMenu .ui-menu-icon{position:static;float:right}\t.jmolPopupMenu .ui-icon-carat-1-e{min-width:2ex;text-align:right;background-image:none;background-position:0 0}\t.jmolPopupMenu .ui-icon-carat-1-e:after{content:"\\25B8"}\t.jmolPopupMenu .ui-state-default{border:1px solid #c5dbec;background:#dfeffc;color:#2e6e9e}\t.jmolPopupMenu .ui-state-default a{color:#2e6e9e;text-decoration:none}\t.jmolPopupMenu .ui-state-hover,.jmolPopupMenu .ui-state-focus{border:1px solid #79b7e7;background:#d0e5f5;color:#1d5987}\t.jmolPopupMenu .ui-state-hover a{color:#1d5987;text-decoration:none}\t.jmolPopupMenu .ui-state-active{border:1px solid #79b7e7;background:#f5f8f9;color:#e17009}\t.jmolPopupMenu .ui-state-active a{color:#e17009;text-decoration:none}\t.jmolPopupMenu .ui-state-highlight{border:1px solid #fad42e;background:#fbec88;color:#363636}\t.jmolPopupMenu .ui-state-highlight a{color:#363636}\t.jmolPopupMenu .ui-state-disabled *{color:#d6d6d6!important;font-weight:normal;cursor:default}\t.jmolPopupMenu .ui-state-disabled a:hover{background-color:transparent!important;border-color:transparent!important}\t.jmolPopupMenu .ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}'},
p.setMenu=function(a){p.__getMenuStyle&&Jmol.$after("head","<style>"+p.__getMenuStyle(a.applet)+"</style>");p.__getStyle=null;a.tainted=!0;a.popupMenu=a;a.id="top";a.id=p.getMenuID(a);a.applet._menus||(a.applet._menus={});a.applet._menus[a.name]=a;Jmol.$after("body",'<ul id="'+a.id+'" class="jmolPopupMenu"></ul>');a.setContainer(Jmol.$("#"+a.id))},p.showMenu=function(a,b,c){Jmol._showMenuCallback&&Jmol._showMenuCallback(a,b,c);a.tainted&&(a.container.html(a.toHTML()),a.tainted=!1,p.bindMenuActionCommands(a,
!0));a.setPosition();a.container.hide().menu().menu("refresh").show();a.visible=!0;a.timestamp=System.currentTimeMillis();a.dragBind(!0);a.container.unbind("clickoutjsmol");a.container.bind("clickoutjsmol mousemoveoutjsmol",function(){1E3<System.currentTimeMillis()-a.timestamp&&p.hideMenu(a)});a.container.bind("contextmenu",function(){return!1})},p.disposeMenu=function(a){p.hideMenu(a);p.bindMenuActionCommands(a,!1);delete a.applet._menus[a.name]},p.initMenuItem=function(a){a.applet=a.popupMenu.applet;
a.id=p.getMenuID(a);a.icon&&(a.icon='<img src="'+a.applet._j2sPath+"/"+a.icon+'" style="max-height: 20px;" />')},p.getMenuID=function(a){var b=a.popupMenu;return b.applet._id+"_"+b.name+"_"+a.id+"_"+ ++p.menuCounter},p.hideMenu=function(a){a.visible&&(a.dragBind(!1),a.container.hide(),a.visible=a.isDragging=!1)},p.bindMenuActionCommands=function(a,b){for(var c=a.getComponentCount(),d=0;d<c;d++)p.bindMenuActionCommands(a.getComponent(d),b);Jmol.$documentOff("click",a.id);b&&Jmol.$documentOn("click",
a.id,function(){a.itemListener?(a.selected=a.btnType==javajs.swing.JMenuItem.TYPE_CHECKBOX?Jmol.$prop(a.id+"-cb","checked"):!0,p.hideMenus(a.applet),a.itemListener.itemStateChanged({getSource:function(){return a}})):a.actionListener&&(p.hideMenus(a.applet),a.actionListener.actionPerformed({getSource:function(){return a},getActionCommand:function(){return a.actionCommand}}))})});y("J.popup");B(["J.popup.PopupResource"],"J.popup.MainPopupResourceBundle",["JU.PT","J.i18n.GT","JV.JC","$.Viewer"],function(){c$=
N(J.popup,"MainPopupResourceBundle",J.popup.PopupResource);n(c$,"getMenuName",function(){return"popupMenu"});n(c$,"buildStructure",function(a){this.addItems(J.popup.MainPopupResourceBundle.menuContents);this.addItems(J.popup.MainPopupResourceBundle.structureContents);null!=a&&this.setStructure(a,new J.i18n.GT)},"~S");c$.Box=m(c$,"Box",function(a){return"if (showBoundBox or showUnitcell) {"+a+"} else {boundbox on;"+a+";boundbox off}"},"~S");n(c$,"getWordContents",function(){var a=J.i18n.GT.setDoTranslate(!0),
b=["jmolMenu","Jmol","version",JV.JC.version,"date",JV.JC.date,"jmolorg","http://www.jmol.org","help",J.i18n.GT._("Jmol Script Commands"),"mouse",J.i18n.GT._("Mouse Manual"),"translations",J.i18n.GT._("Translations"),"systemMenu",J.i18n.GT._("System"),"os",JV.Viewer.strOSName,"JAVAmemTotal","?","JAVAmemMax","?","JAVAprocessors","?","javaVender",JV.Viewer.strJavaVendor,"javaVersion",JV.Viewer.strJavaVersion,"modelSetMenu",J.i18n.GT._("No atoms loaded"),"configurationComputedMenu",J.i18n.GT._("Configurations"),
"elementsComputedMenu",J.i18n.GT._("Element"),"FRAMESbyModelComputedMenu",J.i18n.GT._("Model/Frame"),"languageComputedMenu",J.i18n.GT._("Language"),"PDBaaResiduesComputedMenu",J.i18n.GT._("By Residue Name"),"PDBnucleicResiduesComputedMenu",J.i18n.GT._("By Residue Name"),"PDBcarboResiduesComputedMenu",J.i18n.GT._("By Residue Name"),"PDBheteroComputedMenu",J.i18n.GT._("By HETATM"),"surfMoComputedMenuText",J.i18n.GT._("Molecular Orbitals ({0})"),"SYMMETRYSelectComputedMenu",J.i18n.GT._("Symmetry"),"SYMMETRYShowComputedMenu",
J.i18n.GT._("Space Group"),"SYMMETRYhide",J.i18n.GT._("Hide Symmetry"),"hiddenModelSetText",J.i18n.GT._("Model information"),"selectMenuText",J.i18n.GT._("Select ({0})"),"allModelsText",J.i18n.GT._("All {0} models"),"configurationMenuText",J.i18n.GT._("Configurations ({0})"),"modelSetCollectionText",J.i18n.GT._("Collection of {0} models"),"atomsText",J.i18n.GT._("atoms: {0}"),"bondsText",J.i18n.GT._("bonds: {0}"),"groupsText",J.i18n.GT._("groups: {0}"),"chainsText",J.i18n.GT._("chains: {0}"),"polymersText",
J.i18n.GT._("polymers: {0}"),"modelMenuText",J.i18n.GT._("model {0}"),"viewMenuText",J.i18n.GT._("View {0}"),"mainMenuText",J.i18n.GT._("Main Menu"),"biomoleculesMenuText",J.i18n.GT._("Biomolecules"),"biomoleculeText",J.i18n.GT._("biomolecule {0} ({1} atoms)"),"loadBiomoleculeText",J.i18n.GT._("load biomolecule {0} ({1} atoms)"),"selectAll",J.i18n.GT._("All"),"selectNone",J.i18n.GT._("None"),"hideNotSelectedCB",J.i18n.GT._("Display Selected Only"),"invertSelection",J.i18n.GT._("Invert Selection"),
"viewMenu",J.i18n.GT._("View"),"best",J.i18n.GT._("Best"),"front",J.i18n.GT._("Front"),"left",J.i18n.GT._("Left"),"right",J.i18n.GT._("Right"),"top",JU.PT.split(J.i18n.GT._('Top[as in "view from the top, from above" - (translators: remove this bracketed part]'),"[")[0],"bottom",J.i18n.GT._("Bottom"),"back",J.i18n.GT._("Back"),"axisX",J.i18n.GT._("Axis x"),"axisY",J.i18n.GT._("Axis y"),"axisZ",J.i18n.GT._("Axis z"),"axisA",J.i18n.GT._("Axis a"),"axisB",J.i18n.GT._("Axis b"),"axisC",J.i18n.GT._("Axis c"),
"sceneComputedMenu",J.i18n.GT._("Scenes"),"PDBproteinMenu",J.i18n.GT._("Protein"),"allProtein",J.i18n.GT._("All"),"proteinBackbone",J.i18n.GT._("Backbone"),"proteinSideChains",J.i18n.GT._("Side Chains"),"polar",J.i18n.GT._("Polar Residues"),"nonpolar",J.i18n.GT._("Nonpolar Residues"),"positiveCharge",J.i18n.GT._("Basic Residues (+)"),"negativeCharge",J.i18n.GT._("Acidic Residues (-)"),"noCharge",J.i18n.GT._("Uncharged Residues"),"PDBnucleicMenu",J.i18n.GT._("Nucleic"),"allNucleic",J.i18n.GT._("All"),
"DNA",J.i18n.GT._("DNA"),"RNA",J.i18n.GT._("RNA"),"nucleicBackbone",J.i18n.GT._("Backbone"),"nucleicBases",J.i18n.GT._("Bases"),"atPairs",J.i18n.GT._("AT pairs"),"gcPairs",J.i18n.GT._("GC pairs"),"auPairs",J.i18n.GT._("AU pairs"),"PDBheteroMenu",J.i18n.GT._("Hetero"),"allHetero",J.i18n.GT._('All PDB "HETATM"'),"Solvent",J.i18n.GT._("All Solvent"),"Water",J.i18n.GT._("All Water"),"nonWaterSolvent",J.i18n.GT._("Nonaqueous Solvent")+" (solvent and not water)","exceptWater",J.i18n.GT._("Nonaqueous HETATM")+
" (hetero and not water)","Ligand",J.i18n.GT._("Ligand"),"allCarbo",J.i18n.GT._("All"),"PDBcarboMenu",J.i18n.GT._("Carbohydrate"),"PDBnoneOfTheAbove",J.i18n.GT._("None of the above"),"renderMenu",J.i18n.GT._("Style"),"renderSchemeMenu",J.i18n.GT._("Scheme"),"renderCpkSpacefill",J.i18n.GT._("CPK Spacefill"),"renderBallAndStick",J.i18n.GT._("Ball and Stick"),"renderSticks",J.i18n.GT._("Sticks"),"renderWireframe",J.i18n.GT._("Wireframe"),"PDBrenderCartoonsOnly",J.i18n.GT._("Cartoon"),"PDBrenderTraceOnly",
J.i18n.GT._("Trace"),"atomMenu",J.i18n.GT._("Atoms"),"atomNone",J.i18n.GT._("Off"),"atom15",J.i18n.GT.i(J.i18n.GT._("{0}% van der Waals"),15),"atom20",J.i18n.GT.i(J.i18n.GT._("{0}% van der Waals"),20),"atom25",J.i18n.GT.i(J.i18n.GT._("{0}% van der Waals"),25),"atom50",J.i18n.GT.i(J.i18n.GT._("{0}% van der Waals"),50),"atom75",J.i18n.GT.i(J.i18n.GT._("{0}% van der Waals"),75),"atom100",J.i18n.GT.i(J.i18n.GT._("{0}% van der Waals"),100),"bondMenu",J.i18n.GT._("Bonds"),"bondNone",J.i18n.GT._("Off"),
"bondWireframe",J.i18n.GT._("On"),"bond100",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"0.10"),"bond150",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"0.15"),"bond200",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"0.20"),"bond250",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"0.25"),"bond300",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"0.30"),"hbondMenu",J.i18n.GT._("Hydrogen Bonds"),"hbondNone",J.i18n.GT._("Off"),"hbondCalc",J.i18n.GT._("Calculate"),"hbondWireframe",J.i18n.GT._("On"),"PDBhbondSidechain",J.i18n.GT._("Set H-Bonds Side Chain"),
"PDBhbondBackbone",J.i18n.GT._("Set H-Bonds Backbone"),"hbond100",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"0.10"),"hbond150",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"0.15"),"hbond200",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"0.20"),"hbond250",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"0.25"),"hbond300",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"0.30"),"ssbondMenu",J.i18n.GT._("Disulfide Bonds"),"ssbondNone",J.i18n.GT._("Off"),"ssbondWireframe",J.i18n.GT._("On"),"PDBssbondSidechain",J.i18n.GT._("Set SS-Bonds Side Chain"),
"PDBssbondBackbone",J.i18n.GT._("Set SS-Bonds Backbone"),"ssbond100",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"0.10"),"ssbond150",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"0.15"),"ssbond200",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"0.20"),"ssbond250",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"0.25"),"ssbond300",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"0.30"),"PDBstructureMenu",J.i18n.GT._("Structures"),"structureNone",J.i18n.GT._("Off"),"backbone",J.i18n.GT._("Backbone"),"cartoon",J.i18n.GT._("Cartoon"),"cartoonRockets",
J.i18n.GT._("Cartoon Rockets"),"ribbons",J.i18n.GT._("Ribbons"),"rockets",J.i18n.GT._("Rockets"),"strands",J.i18n.GT._("Strands"),"trace",J.i18n.GT._("Trace"),"VIBRATIONMenu",J.i18n.GT._("Vibration"),"vibrationOff",J.i18n.GT._("Off"),"vibrationOn",J.i18n.GT._("On"),"vibration20","*2","vibration05","/2","VIBRATIONvectorMenu",J.i18n.GT._("Vectors"),"spectraMenu",J.i18n.GT._("Spectra"),"hnmrMenu",J.i18n.GT._("1H-NMR"),"cnmrMenu",J.i18n.GT._("13C-NMR"),"vectorOff",J.i18n.GT._("Off"),"vectorOn",J.i18n.GT._("On"),
"vector3",J.i18n.GT.i(J.i18n.GT._("{0} pixels"),3),"vector005",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"0.05"),"vector01",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"0.10"),"vectorScale02",J.i18n.GT.o(J.i18n.GT._("Scale {0}"),"0.2"),"vectorScale05",J.i18n.GT.o(J.i18n.GT._("Scale {0}"),"0.5"),"vectorScale1",J.i18n.GT.o(J.i18n.GT._("Scale {0}"),"1"),"vectorScale2",J.i18n.GT.o(J.i18n.GT._("Scale {0}"),"2"),"vectorScale5",J.i18n.GT.o(J.i18n.GT._("Scale {0}"),"5"),"stereoMenu",J.i18n.GT._("Stereographic"),"stereoNone",
J.i18n.GT._("None"),"stereoRedCyan",J.i18n.GT._("Red+Cyan glasses"),"stereoRedBlue",J.i18n.GT._("Red+Blue glasses"),"stereoRedGreen",J.i18n.GT._("Red+Green glasses"),"stereoCrossEyed",J.i18n.GT._("Cross-eyed viewing"),"stereoWallEyed",J.i18n.GT._("Wall-eyed viewing"),"labelMenu",J.i18n.GT._("Labels"),"labelNone",J.i18n.GT._("None"),"labelSymbol",J.i18n.GT._("With Element Symbol"),"labelName",J.i18n.GT._("With Atom Name"),"labelNumber",J.i18n.GT._("With Atom Number"),"labelPositionMenu",J.i18n.GT._("Position Label on Atom"),
"labelCentered",J.i18n.GT._("Centered"),"labelUpperRight",J.i18n.GT._("Upper Right"),"labelLowerRight",J.i18n.GT._("Lower Right"),"labelUpperLeft",J.i18n.GT._("Upper Left"),"labelLowerLeft",J.i18n.GT._("Lower Left"),"colorMenu",J.i18n.GT._("Color"),"[color_atoms]Menu",J.i18n.GT._("Atoms"),"schemeMenu",J.i18n.GT._("By Scheme"),"cpk",J.i18n.GT._("Element (CPK)"),"altloc#PDB",J.i18n.GT._("Alternative Location"),"molecule",J.i18n.GT._("Molecule"),"property_vxyz#VIBRATION",J.i18n.GT._("Vectors"),"formalcharge",
J.i18n.GT._("Formal Charge"),"partialcharge#CHARGE",J.i18n.GT._("Partial Charge"),"relativeTemperature#BFACTORS",J.i18n.GT._("Temperature (Relative)"),"fixedTemperature#BFACTORS",J.i18n.GT._("Temperature (Fixed)"),"amino#PDB",J.i18n.GT._("Amino Acid"),"structure#PDB",J.i18n.GT._("Secondary Structure"),"chain#PDB",J.i18n.GT._("Chain"),"group#PDB",J.i18n.GT._("Group"),"monomer#PDB",J.i18n.GT._("Monomer"),"shapely#PDB",J.i18n.GT._("Shapely"),"none",J.i18n.GT._("Inherit"),"black",J.i18n.GT._("Black"),
"white",J.i18n.GT._("White"),"cyan",J.i18n.GT._("Cyan"),"red",J.i18n.GT._("Red"),"orange",J.i18n.GT._("Orange"),"yellow",J.i18n.GT._("Yellow"),"green",J.i18n.GT._("Green"),"blue",J.i18n.GT._("Blue"),"indigo",J.i18n.GT._("Indigo"),"violet",J.i18n.GT._("Violet"),"salmon",J.i18n.GT._("Salmon"),"olive",J.i18n.GT._("Olive"),"maroon",J.i18n.GT._("Maroon"),"gray",J.i18n.GT._("Gray"),"slateblue",J.i18n.GT._("Slate Blue"),"gold",J.i18n.GT._("Gold"),"orchid",J.i18n.GT._("Orchid"),"opaque",J.i18n.GT._("Make Opaque"),
"translucent",J.i18n.GT._("Make Translucent"),"[color_bonds]Menu",J.i18n.GT._("Bonds"),"[color_hbonds]Menu",J.i18n.GT._("Hydrogen Bonds"),"[color_ssbonds]Menu",J.i18n.GT._("Disulfide Bonds"),"colorPDBStructuresMenu",J.i18n.GT._("Structures"),"[color_backbone]Menu",J.i18n.GT._("Backbone"),"[color_trace]Menu",J.i18n.GT._("Trace"),"[color_cartoon]sMenu",J.i18n.GT._("Cartoon"),"[color_ribbon]sMenu",J.i18n.GT._("Ribbons"),"[color_rockets]Menu",J.i18n.GT._("Rockets"),"[color_strands]Menu",J.i18n.GT._("Strands"),
"[color_labels]Menu",J.i18n.GT._("Labels"),"[color_background]Menu",J.i18n.GT._("Background"),"[color_isosurface]Menu",J.i18n.GT._("Surfaces"),"[color_vectors]Menu",J.i18n.GT._("Vectors"),"[color_axes]Menu",J.i18n.GT._("Axes"),"[color_boundbox]Menu",J.i18n.GT._("Boundbox"),"[color_UNITCELL]Menu",J.i18n.GT._("Unit cell"),"zoomMenu",J.i18n.GT._("Zoom"),"zoom50","50%","zoom100","100%","zoom150","150%","zoom200","200%","zoom400","400%","zoom800","800%","zoomIn",J.i18n.GT._("Zoom In"),"zoomOut",J.i18n.GT._("Zoom Out"),
"spinMenu",J.i18n.GT._("Spin"),"spinOn",J.i18n.GT._("On"),"spinOff",J.i18n.GT._("Off"),"[set_spin_X]Menu",J.i18n.GT._("Set X Rate"),"[set_spin_Y]Menu",J.i18n.GT._("Set Y Rate"),"[set_spin_Z]Menu",J.i18n.GT._("Set Z Rate"),"[set_spin_FPS]Menu",J.i18n.GT._("Set FPS"),"s0","0","s5","5","s10","10","s20","20","s30","30","s40","40","s50","50","FRAMESanimateMenu",J.i18n.GT._("Animation"),"animModeMenu",J.i18n.GT._("Animation Mode"),"onceThrough",J.i18n.GT._("Play Once"),"palindrome",J.i18n.GT._("Palindrome"),
"loop",J.i18n.GT._("Loop"),"play",J.i18n.GT._("Play"),"pause",J.i18n.GT._("Pause"),"resume",J.i18n.GT._("Resume"),"stop",J.i18n.GT._("Stop"),"nextframe",J.i18n.GT._("Next Frame"),"prevframe",J.i18n.GT._("Previous Frame"),"rewind",J.i18n.GT._("Rewind"),"playrev",J.i18n.GT._("Reverse"),"restart",J.i18n.GT._("Restart"),"FRAMESanimFpsMenu",J.i18n.GT._("Set FPS"),"animfps5","5","animfps10","10","animfps20","20","animfps30","30","animfps50","50","measureMenu",J.i18n.GT._("Measurements"),"measureOff",J.i18n.GT._("Double-Click begins and ends all measurements"),
"measureDistance",J.i18n.GT._("Click for distance measurement"),"measureAngle",J.i18n.GT._("Click for angle measurement"),"measureTorsion",J.i18n.GT._("Click for torsion (dihedral) measurement"),"PDBmeasureSequence",J.i18n.GT._("Click two atoms to display a sequence in the console"),"measureDelete",J.i18n.GT._("Delete measurements"),"measureList",J.i18n.GT._("List measurements"),"distanceNanometers",J.i18n.GT._("Distance units nanometers"),"distanceAngstroms",J.i18n.GT._("Distance units Angstroms"),
"distancePicometers",J.i18n.GT._("Distance units picometers"),"pickingMenu",J.i18n.GT._("Set picking"),"pickOff",J.i18n.GT._("Off"),"pickCenter",J.i18n.GT._("Center"),"pickIdent",J.i18n.GT._("Identity"),"pickLabel",J.i18n.GT._("Label"),"pickAtom",J.i18n.GT._("Select atom"),"PDBpickChain",J.i18n.GT._("Select chain"),"pickElement",J.i18n.GT._("Select element"),"modelKitMode",J.i18n.GT._("modelKitMode"),"PDBpickGroup",J.i18n.GT._("Select group"),"pickMolecule",J.i18n.GT._("Select molecule"),"SYMMETRYpickSite",
J.i18n.GT._("Select site"),"SYMMETRYpickSymmetry",J.i18n.GT._("Show symmetry operation"),"pickSpin",J.i18n.GT._("Spin"),"showMenu",J.i18n.GT._("Show"),"showConsole",J.i18n.GT._("Console"),"JSConsole","JavaScript Console","showFile",J.i18n.GT._("File Contents"),"showFileHeader",J.i18n.GT._("File Header"),"showHistory",J.i18n.GT._("History"),"showIsosurface",J.i18n.GT._("Isosurface JVXL data"),"showMeasure",J.i18n.GT._("Measurements"),"showMo",J.i18n.GT._("Molecular orbital JVXL data"),"showModel",
J.i18n.GT._("Model"),"showOrient",J.i18n.GT._("Orientation"),"showSpacegroup",J.i18n.GT._("Space group"),"SYMMETRYshowSymmetry",J.i18n.GT._("Symmetry"),"showState",J.i18n.GT._("Current state"),"fileMenu",J.i18n.GT._("File"),"loadMenu",J.i18n.GT._("Load"),"saveMenu",J.i18n.GT._("Save"),"exportMenu",J.i18n.GT._("Export"),"reload",J.i18n.GT._("Reload"),"SIGNEDloadPdb",J.i18n.GT._("Open from PDB"),"SIGNEDloadFile",J.i18n.GT._("Open local file"),"SIGNEDloadUrl",J.i18n.GT._("Open URL"),"SIGNEDloadFileUnitCell",
J.i18n.GT._("Load full unit cell"),"SIGNEDloadScript",J.i18n.GT._("Open script"),"SIGNEDJAVAcaptureMenuSPECIAL",J.i18n.GT._("Capture"),"SIGNEDJAVAcaptureRock",J.i18n.GT._("Capture rock"),"SIGNEDJAVAcaptureSpin",J.i18n.GT._("Capture spin"),"SIGNEDJAVAcaptureBegin",J.i18n.GT._("Start capturing"),"SIGNEDJAVAcaptureEnd",J.i18n.GT._("End capturing"),"SIGNEDJAVAcaptureOff",J.i18n.GT._("Disable capturing"),"SIGNEDJAVAcaptureOn",J.i18n.GT._("Re-enable capturing"),"SIGNEDJAVAcaptureFpsSPECIAL",J.i18n.GT._("Set capture replay rate"),
"SIGNEDJAVAcaptureLoopingSPECIAL",J.i18n.GT._("Toggle capture looping"),"writeFileTextVARIABLE",J.i18n.GT._("Save a copy of {0}"),"writeState",J.i18n.GT._("Save script with state"),"writeHistory",J.i18n.GT._("Save script with history"),"SIGNEDNOGLwriteJpg",J.i18n.GT.o(J.i18n.GT._("Export {0} image"),"JPG"),"SIGNEDNOGLwritePng",J.i18n.GT.o(J.i18n.GT._("Export {0} image"),"PNG"),"SIGNEDNOGLwritePngJmol",J.i18n.GT.o(J.i18n.GT._("Export {0} image"),"PNG+JMOL"),"SIGNEDNOGLwriteGif",J.i18n.GT.o(J.i18n.GT._("Export {0} image"),
"GIF"),"SIGNEDNOGLwritePovray",J.i18n.GT.o(J.i18n.GT._("Export {0} image"),"POV-Ray"),"SIGNEDwriteJmol",J.i18n.GT._("Save as PNG/JMOL (image+zip)"),"SIGNEDwriteIsosurface",J.i18n.GT._("Save JVXL isosurface"),"SIGNEDNOGLwriteVrml",J.i18n.GT.o(J.i18n.GT._("Export {0} 3D model"),"VRML"),"SIGNEDNOGLwriteX3d",J.i18n.GT.o(J.i18n.GT._("Export {0} 3D model"),"X3D"),"SIGNEDNOGLwriteIdtf",J.i18n.GT.o(J.i18n.GT._("Export {0} 3D model"),"IDTF"),"SIGNEDNOGLwriteMaya",J.i18n.GT.o(J.i18n.GT._("Export {0} 3D model"),
"Maya"),"computationMenu",J.i18n.GT._("Computation"),"minimize",J.i18n.GT._("Optimize structure"),"modelkit",J.i18n.GT._("Model kit"),"UNITCELLshow",J.i18n.GT._("Unit cell"),"extractMOL",J.i18n.GT._("Extract MOL data"),"surfaceMenu",J.i18n.GT._("Surfaces"),"surfDots",J.i18n.GT._("Dot Surface"),"surfVDW",J.i18n.GT._("van der Waals Surface"),"surfMolecular",J.i18n.GT._("Molecular Surface"),"surfSolvent14",J.i18n.GT.o(J.i18n.GT._("Solvent Surface ({0}-Angstrom probe)"),"1.4"),"surfSolventAccessible14",
J.i18n.GT.o(J.i18n.GT._("Solvent-Accessible Surface (VDW + {0} Angstrom)"),"1.4"),"CHARGEsurfMEP",J.i18n.GT._("Molecular Electrostatic Potential (range ALL)"),"CHARGEsurf2MEP",J.i18n.GT._("Molecular Electrostatic Potential (range -0.1 0.1)"),"surfOpaque",J.i18n.GT._("Make Opaque"),"surfTranslucent",J.i18n.GT._("Make Translucent"),"surfOff",J.i18n.GT._("Off"),"FILEUNITMenu",J.i18n.GT._("Symmetry"),"FILEMOLload",J.i18n.GT.o(J.i18n.GT._("Reload {0}"),"(molecular)"),"FILEUNITone",J.i18n.GT.o(J.i18n.GT._("Reload {0}"),
"{1 1 1}"),"FILEUNITnine",J.i18n.GT.o(J.i18n.GT._("Reload {0}"),"{444 666 1}"),"FILEUNITnineRestricted",J.i18n.GT.o(J.i18n.GT._("Reload {0} + Display {1}"),["{444 666 1}","555"]),"FILEUNITninePoly",J.i18n.GT._("Reload + Polyhedra"),"[set_axes]Menu",J.i18n.GT._("Axes"),"[set_boundbox]Menu",J.i18n.GT._("Boundbox"),"[set_UNITCELL]Menu",J.i18n.GT._("Unit cell"),"off#axes",J.i18n.GT._("Hide"),"dotted",J.i18n.GT._("Dotted"),"byPixelMenu",J.i18n.GT._("Pixel Width"),"1p",J.i18n.GT.i(J.i18n.GT._("{0} px"),
1),"3p",J.i18n.GT.i(J.i18n.GT._("{0} px"),3),"5p",J.i18n.GT.i(J.i18n.GT._("{0} px"),5),"10p",J.i18n.GT.i(J.i18n.GT._("{0} px"),10),"byAngstromMenu",J.i18n.GT._("Angstrom Width"),"10a",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"0.10"),"20a",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"0.20"),"25a",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"0.25"),"50a",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"0.50"),"100a",J.i18n.GT.o(J.i18n.GT._("{0} \u00c5"),"1.0"),"showSelectionsCB",J.i18n.GT._("Selection Halos"),"showHydrogensCB",
J.i18n.GT._("Show Hydrogens"),"showMeasurementsCB",J.i18n.GT._("Show Measurements"),"perspectiveDepthCB",J.i18n.GT._("Perspective Depth"),"showBoundBoxCB",J.i18n.GT._("Boundbox"),"showAxesCB",J.i18n.GT._("Axes"),"showUNITCELLCB",J.i18n.GT._("Unit cell"),"colorrasmolCB",J.i18n.GT._("RasMol Colors"),"aboutMenu",J.i18n.GT._("About...")];J.i18n.GT.setDoTranslate(a);return b});n(c$,"getMenuAsText",function(a){return this.getStuctureAsText(a,J.popup.MainPopupResourceBundle.menuContents,J.popup.MainPopupResourceBundle.structureContents)},
"~S");M(c$,"MENU_NAME","popupMenu");c$.menuContents=c$.prototype.menuContents=[["@COLOR","black white red orange yellow green cyan blue indigo violet"],["@AXESCOLOR","gray salmon maroon olive slateblue gold orchid"],["popupMenu","fileMenu modelSetMenu FRAMESbyModelComputedMenu configurationComputedMenu - selectMenuText viewMenu renderMenu colorMenu - surfaceMenu FILEUNITMenu - sceneComputedMenu zoomMenu spinMenu VIBRATIONMenu spectraMenu FRAMESanimateMenu - measureMenu pickingMenu - showConsole JSConsole showMenu computationMenu - languageComputedMenu aboutMenu"],
["fileMenu","loadMenu saveMenu exportMenu SIGNEDJAVAcaptureMenuSPECIAL "],["loadMenu","SIGNEDloadFile SIGNEDloadUrl SIGNEDloadPdb SIGNEDloadScript - reload SIGNEDloadFileUnitCell"],["saveMenu","writeFileTextVARIABLE writeState writeHistory SIGNEDwriteJmol SIGNEDwriteIsosurface "],["exportMenu","SIGNEDNOGLwriteGif SIGNEDNOGLwriteJpg SIGNEDNOGLwritePng SIGNEDNOGLwritePngJmol SIGNEDNOGLwritePovray - SIGNEDNOGLwriteVrml SIGNEDNOGLwriteX3d"],["selectMenuText","hideNotSelectedCB showSelectionsCB - selectAll selectNone invertSelection - elementsComputedMenu SYMMETRYSelectComputedMenu - PDBproteinMenu PDBnucleicMenu PDBheteroMenu PDBcarboMenu PDBnoneOfTheAbove"],
["PDBproteinMenu","PDBaaResiduesComputedMenu - allProtein proteinBackbone proteinSideChains - polar nonpolar - positiveCharge negativeCharge noCharge"],["PDBcarboMenu","PDBcarboResiduesComputedMenu - allCarbo"],["PDBnucleicMenu","PDBnucleicResiduesComputedMenu - allNucleic nucleicBackbone nucleicBases - DNA RNA - atPairs auPairs gcPairs"],["PDBheteroMenu","PDBheteroComputedMenu - allHetero Solvent Water - Ligand exceptWater nonWaterSolvent"],["viewMenu","best front left right top bottom back - axisX axisY axisZ - axisA axisB axisC"],
["renderMenu","perspectiveDepthCB showBoundBoxCB showUNITCELLCB showAxesCB stereoMenu - renderSchemeMenu - atomMenu labelMenu bondMenu hbondMenu ssbondMenu - PDBstructureMenu [set_axes]Menu [set_boundbox]Menu [set_UNITCELL]Menu"],["renderSchemeMenu","renderCpkSpacefill renderBallAndStick renderSticks renderWireframe PDBrenderCartoonsOnly PDBrenderTraceOnly"],["atomMenu","showHydrogensCB - atomNone - atom15 atom20 atom25 atom50 atom75 atom100"],["bondMenu","bondNone bondWireframe - bond100 bond150 bond200 bond250 bond300"],
["hbondMenu","hbondCalc hbondNone hbondWireframe - PDBhbondSidechain PDBhbondBackbone - hbond100 hbond150 hbond200 hbond250 hbond300"],["ssbondMenu","ssbondNone ssbondWireframe - PDBssbondSidechain PDBssbondBackbone - ssbond100 ssbond150 ssbond200 ssbond250 ssbond300"],["PDBstructureMenu","structureNone - backbone cartoon cartoonRockets ribbons rockets strands trace"],["VIBRATIONvectorMenu","vectorOff vectorOn vibScale20 vibScale05 vector3 vector005 vector01 - vectorScale02 vectorScale05 vectorScale1 vectorScale2 vectorScale5"],
["stereoMenu","stereoNone stereoRedCyan stereoRedBlue stereoRedGreen stereoCrossEyed stereoWallEyed"],["labelMenu","labelNone - labelSymbol labelName labelNumber - labelPositionMenu"],["labelPositionMenu","labelCentered labelUpperRight labelLowerRight labelUpperLeft labelLowerLeft"],["colorMenu","colorrasmolCB - [color_atoms]Menu [color_bonds]Menu [color_hbonds]Menu [color_ssbonds]Menu colorPDBStructuresMenu [color_isosurface]Menu - [color_labels]Menu [color_vectors]Menu - [color_axes]Menu [color_boundbox]Menu [color_UNITCELL]Menu [color_background]Menu"],
["[color_atoms]Menu","schemeMenu - @COLOR - opaque translucent"],["[color_bonds]Menu","none - @COLOR - opaque translucent"],["[color_hbonds]Menu",null],["[color_ssbonds]Menu",null],["[color_labels]Menu",null],["[color_vectors]Menu",null],["[color_backbone]Menu","none - schemeMenu - @COLOR - opaque translucent"],["[color_cartoon]sMenu",null],["[color_ribbon]sMenu",null],["[color_rockets]Menu",null],["[color_strands]Menu",null],["[color_trace]Menu",null],["[color_background]Menu","@COLOR"],["[color_isosurface]Menu",
"@COLOR - opaque translucent"],["[color_axes]Menu","@AXESCOLOR"],["[color_boundbox]Menu",null],["[color_UNITCELL]Menu",null],["colorPDBStructuresMenu","[color_backbone]Menu [color_cartoon]sMenu [color_ribbon]sMenu [color_rockets]Menu [color_strands]Menu [color_trace]Menu"],["schemeMenu","cpk - formalcharge partialcharge#CHARGE - altloc#PDB amino#PDB chain#PDB group#PDB molecule monomer#PDB shapely#PDB structure#PDB relativeTemperature#BFACTORS fixedTemperature#BFACTORS property_vxyz#VIBRATION"],["zoomMenu",
"zoom50 zoom100 zoom150 zoom200 zoom400 zoom800 - zoomIn zoomOut"],["spinMenu","spinOn spinOff - [set_spin_X]Menu [set_spin_Y]Menu [set_spin_Z]Menu - [set_spin_FPS]Menu"],["VIBRATIONMenu","vibrationOff vibrationOn vibration20 vibration05 VIBRATIONvectorMenu"],["spectraMenu","hnmrMenu cnmrMenu"],["FRAMESanimateMenu","animModeMenu - play pause resume stop - nextframe prevframe rewind - playrev restart - FRAMESanimFpsMenu"],["FRAMESanimFpsMenu","animfps5 animfps10 animfps20 animfps30 animfps50"],["measureMenu",
"showMeasurementsCB - measureOff measureDistance measureAngle measureTorsion PDBmeasureSequence - measureDelete measureList - distanceNanometers distanceAngstroms distancePicometers"],["pickingMenu","pickOff pickCenter pickIdent pickLabel pickAtom pickMolecule pickElement - pickSpin - modelKitMode - PDBpickChain PDBpickGroup SYMMETRYpickSite"],["computationMenu","minimize modelkit"],["showMenu","showHistory showFile showFileHeader - showOrient showMeasure - showSpacegroup showState SYMMETRYshowSymmetry UNITCELLshow - showIsosurface showMo - extractMOL"],
["SIGNEDJAVAcaptureMenuSPECIAL","SIGNEDJAVAcaptureRock SIGNEDJAVAcaptureSpin - SIGNEDJAVAcaptureBegin SIGNEDJAVAcaptureEnd SIGNEDJAVAcaptureOff SIGNEDJAVAcaptureOn SIGNEDJAVAcaptureFpsSPECIAL SIGNEDJAVAcaptureLoopingSPECIAL"],["[set_spin_X]Menu","s0 s5 s10 s20 s30 s40 s50"],["[set_spin_Y]Menu",null],["[set_spin_Z]Menu",null],["[set_spin_FPS]Menu",null],["animModeMenu","onceThrough palindrome loop"],["surfaceMenu","surfDots surfVDW surfSolventAccessible14 surfSolvent14 surfMolecular CHARGEsurf2MEP CHARGEsurfMEP surfMoComputedMenuText - surfOpaque surfTranslucent surfOff"],
["FILEUNITMenu","SYMMETRYShowComputedMenu SYMMETRYhide FILEMOLload FILEUNITone FILEUNITnine FILEUNITnineRestricted FILEUNITninePoly"],["[set_axes]Menu","off#axes dotted - byPixelMenu byAngstromMenu"],["[set_boundbox]Menu",null],["[set_UNITCELL]Menu",null],["byPixelMenu","1p 3p 5p 10p"],["byAngstromMenu","10a 20a 25a 50a 100a"],["aboutMenu","jmolMenu systemMenu"],["jmolMenu","APPLETid version date - help - mouse translations jmolorg"],["systemMenu","os javaVender javaVersion JAVAprocessors JAVAmemMax JAVAmemTotal"]];
c$.structureContents=c$.prototype.structureContents=[["jmolorg",'show url "http://www.jmol.org"'],["help","help"],["mouse",'show url "http://wiki.jmol.org/index.php/Mouse_Manual"'],["translations",'show url "http://wiki.jmol.org/index.php/Internationalisation"'],["colorrasmolCB",""],["hideNotSelectedCB","set hideNotSelected true | set hideNotSelected false; hide(none)"],["perspectiveDepthCB",""],["showAxesCB","set showAxes true | set showAxes false;set axesMolecular"],["showBoundBoxCB",""],["showHydrogensCB",
""],["showMeasurementsCB",""],["showSelectionsCB",""],["showUNITCELLCB",""],["selectAll","SELECT all"],["selectNone","SELECT none"],["invertSelection","SELECT not selected"],["allProtein","SELECT protein"],["proteinBackbone","SELECT protein and backbone"],["proteinSideChains","SELECT protein and not backbone"],["polar","SELECT protein and polar"],["nonpolar","SELECT protein and not polar"],["positiveCharge","SELECT protein and basic"],["negativeCharge","SELECT protein and acidic"],["noCharge","SELECT protein and not (acidic,basic)"],
["allCarbo","SELECT carbohydrate"],["allNucleic","SELECT nucleic"],["DNA","SELECT dna"],["RNA","SELECT rna"],["nucleicBackbone","SELECT nucleic and backbone"],["nucleicBases","SELECT nucleic and not backbone"],["atPairs","SELECT a,t"],["gcPairs","SELECT g,c"],["auPairs","SELECT a,u"],["A","SELECT a"],["C","SELECT c"],["G","SELECT g"],["T","SELECT t"],["U","SELECT u"],["allHetero","SELECT hetero"],["Solvent","SELECT solvent"],["Water","SELECT water"],["nonWaterSolvent","SELECT solvent and not water"],
["exceptWater","SELECT hetero and not water"],["Ligand","SELECT ligand"],["PDBnoneOfTheAbove","SELECT not(hetero,protein,nucleic,carbohydrate)"],["best","rotate best -1.0"],["front",J.popup.MainPopupResourceBundle.Box("moveto 2.0 front;delay 1")],["left",J.popup.MainPopupResourceBundle.Box("moveto 1.0 front;moveto 2.0 left;delay 1")],["right",J.popup.MainPopupResourceBundle.Box("moveto 1.0 front;moveto 2.0 right;delay 1")],["top",J.popup.MainPopupResourceBundle.Box("moveto 1.0 front;moveto 2.0 top;delay 1")],
["bottom",J.popup.MainPopupResourceBundle.Box("moveto 1.0 front;moveto 2.0 bottom;delay 1")],["back",J.popup.MainPopupResourceBundle.Box("moveto 1.0 front;moveto 2.0 back;delay 1")],["axisA","moveto axis a"],["axisB","moveto axis b"],["axisC","moveto axis c"],["axisX","moveto axis x"],["axisY","moveto axis y"],["axisZ","moveto axis z"],["renderCpkSpacefill","restrict bonds not selected;select not selected;spacefill 100%;color cpk"],["renderBallAndStick","restrict bonds not selected;select not selected;spacefill 23%AUTO;wireframe 0.15;color cpk"],
["renderSticks","restrict bonds not selected;select not selected;wireframe 0.3;color cpk"],["renderWireframe","restrict bonds not selected;select not selected;wireframe on;color cpk"],["PDBrenderCartoonsOnly","restrict bonds not selected;select not selected;cartoons on;color structure"],["PDBrenderTraceOnly","restrict bonds not selected;select not selected;trace on;color structure"],["atomNone","cpk off"],["atom15","cpk 15%"],["atom20","cpk 20%"],["atom25","cpk 25%"],["atom50","cpk 50%"],["atom75",
"cpk 75%"],["atom100","cpk on"],["bondNone","wireframe off"],["bondWireframe","wireframe on"],["bond100","wireframe .1"],["bond150","wireframe .15"],["bond200","wireframe .2"],["bond250","wireframe .25"],["bond300","wireframe .3"],["hbondCalc","hbonds calculate"],["hbondNone","hbonds off"],["hbondWireframe","hbonds on"],["PDBhbondSidechain","set hbonds sidechain"],["PDBhbondBackbone","set hbonds backbone"],["hbond100","hbonds .1"],["hbond150","hbonds .15"],["hbond200","hbonds .2"],["hbond250","hbonds .25"],
["hbond300","hbonds .3"],["ssbondNone","ssbonds off"],["ssbondWireframe","ssbonds on"],["PDBssbondSidechain","set ssbonds sidechain"],["PDBssbondBackbone","set ssbonds backbone"],["ssbond100","ssbonds .1"],["ssbond150","ssbonds .15"],["ssbond200","ssbonds .2"],["ssbond250","ssbonds .25"],["ssbond300","ssbonds .3"],["structureNone","backbone off;cartoons off;ribbons off;rockets off;strands off;trace off;"],["backbone","restrict not selected;select not selected;backbone 0.3"],["cartoon","restrict not selected;select not selected;set cartoonRockets false;cartoons on"],
["cartoonRockets","restrict not selected;select not selected;set cartoonRockets;cartoons on"],["ribbons","restrict not selected;select not selected;ribbons on"],["rockets","restrict not selected;select not selected;rockets on"],["strands","restrict not selected;select not selected;strands on"],["trace","restrict not selected;select not selected;trace 0.3"],["vibrationOff","vibration off"],["vibrationOn","vibration on"],["vibration20","vibrationScale *= 2"],["vibration05","vibrationScale /= 2"],["vectorOff",
"vectors off"],["vectorOn","vectors on"],["vector3","vectors 3"],["vector005","vectors 0.05"],["vector01","vectors 0.1"],["vectorScale02","vector scale 0.2"],["vectorScale05","vector scale 0.5"],["vectorScale1","vector scale 1"],["vectorScale2","vector scale 2"],["vectorScale5","vector scale 5"],["stereoNone","stereo off"],["stereoRedCyan","stereo redcyan 3"],["stereoRedBlue","stereo redblue 3"],["stereoRedGreen","stereo redgreen 3"],["stereoCrossEyed","stereo -5"],["stereoWallEyed","stereo 5"],["labelNone",
"label off"],["labelSymbol","label %e"],["labelName","label %a"],["labelNumber","label %i"],["labelCentered","set labeloffset 0 0"],["labelUpperRight","set labeloffset 4 4"],["labelLowerRight","set labeloffset 4 -4"],["labelUpperLeft","set labeloffset -4 4"],["labelLowerLeft","set labeloffset -4 -4"],["zoom50","zoom 50"],["zoom100","zoom 100"],["zoom150","zoom 150"],["zoom200","zoom 200"],["zoom400","zoom 400"],["zoom800","zoom 800"],["zoomIn","move 0 0 0 40 0 0 0 0 1"],["zoomOut","move 0 0 0 -40 0 0 0 0 1"],
["spinOn","spin on"],["spinOff","spin off"],["s0","0"],["s5","5"],["s10","10"],["s20","20"],["s30","30"],["s40","40"],["s50","50"],["onceThrough","anim mode once#"],["palindrome","anim mode palindrome#"],["loop","anim mode loop#"],["play","anim play#"],["pause","anim pause#"],["resume","anim resume#"],["stop","anim off#"],["nextframe","frame next#"],["prevframe","frame prev#"],["playrev","anim playrev#"],["rewind","anim rewind#"],["restart","anim on#"],["animfps5","anim fps 5#"],["animfps10","anim fps 10#"],
["animfps20","anim fps 20#"],["animfps30","anim fps 30#"],["animfps50","anim fps 50#"],["measureOff","set pickingstyle MEASURE OFF; set picking OFF"],["measureDistance","set pickingstyle MEASURE; set picking MEASURE DISTANCE"],["measureAngle","set pickingstyle MEASURE; set picking MEASURE ANGLE"],["measureTorsion","set pickingstyle MEASURE; set picking MEASURE TORSION"],["PDBmeasureSequence","set pickingstyle MEASURE; set picking MEASURE SEQUENCE"],["measureDelete","measure delete"],["measureList",
"console on;show measurements"],["distanceNanometers","select *; set measure nanometers"],["distanceAngstroms","select *; set measure angstroms"],["distancePicometers","select *; set measure picometers"],["pickOff","set picking off"],["pickCenter","set picking center"],["pickIdent","set picking ident"],["pickLabel","set picking label"],["pickAtom","set picking atom"],["PDBpickChain","set picking chain"],["pickElement","set picking element"],["modelKitMode","set modelKitMode"],["PDBpickGroup","set picking group"],
["pickMolecule","set picking molecule"],["SYMMETRYpickSite","set picking site"],["pickSpin","set picking spin"],["SYMMETRYpickSymmetry","set picking symmetry"],["showConsole","console"],["JSConsole","JSCONSOLE"],["showFile","console on;show file"],["showFileHeader","console on;getProperty FileHeader"],["showHistory","console on;show history"],["showIsosurface","console on;show isosurface"],["showMeasure","console on;show measure"],["showMo","console on;show mo"],["showModel","console on;show model"],
["showOrient","console on;show orientation"],["showSpacegroup","console on;show spacegroup"],["showState","console on;show state"],["reload",'load ""'],["SIGNEDloadPdb","load ?PdbId?"],["SIGNEDloadFile","load ?"],["SIGNEDloadUrl","load http://?"],["SIGNEDloadFileUnitCell","load ? {1 1 1}"],["SIGNEDloadScript","script ?.spt"],["SIGNEDJAVAcaptureRock","animation mode loop;capture '?Jmol.gif' rock y 10"],["SIGNEDJAVAcaptureSpin","animation mode loop;capture '?Jmol.gif' spin y"],["SIGNEDJAVAcaptureBegin",
"capture '?Jmol.gif'"],["SIGNEDJAVAcaptureEnd","capture ''"],["SIGNEDJAVAcaptureOff","capture off"],["SIGNEDJAVAcaptureOn","capture on"],["SIGNEDJAVAcaptureFpsSPECIAL","animation fps @{0+prompt('Capture replay frames per second?', animationFPS)};prompt 'animation FPS ' + animationFPS"],["SIGNEDJAVAcaptureLoopingSPECIAL","animation mode @{(animationMode=='ONCE' ? 'LOOP':'ONCE')};prompt 'animation MODE ' + animationMode"],["writeFileTextVARIABLE",'if (_applet && !_signedApplet) { console;show file } else { write file "?FILE?"}'],
["writeState",'if (_applet && !_signedApplet) { console;show state } else { write state "?FILEROOT?.spt"}'],["writeHistory",'if (_applet && !_signedApplet) { console;show history } else { write history "?FILEROOT?.his"}'],["SIGNEDwriteJmol",'write PNGJ "?FILEROOT?.png"'],["SIGNEDwriteIsosurface",'write isosurface "?FILEROOT?.jvxl"'],["SIGNEDNOGLwriteGif",'write image "?FILEROOT?.gif"'],["SIGNEDNOGLwriteJpg",'write image "?FILEROOT?.jpg"'],["SIGNEDNOGLwritePng",'write image "?FILEROOT?.png"'],["SIGNEDNOGLwritePngJmol",
'write PNGJ "?FILEROOT?.png"'],["SIGNEDNOGLwritePovray",'write POVRAY "?FILEROOT?.pov"'],["SIGNEDNOGLwriteVrml",'write VRML "?FILEROOT?.wrl"'],["SIGNEDNOGLwriteX3d",'write X3D "?FILEROOT?.x3d"'],["SIGNEDNOGLwriteIdtf",'write IDTF "?FILEROOT?.idtf"'],["SIGNEDNOGLwriteMaya",'write MAYA "?FILEROOT?.ma"'],["SYMMETRYshowSymmetry","console on;show symmetry"],["UNITCELLshow","console on;show unitcell"],["extractMOL",'console on;getproperty extractModel "visible" '],["minimize","minimize"],["modelkit","set modelkitmode"],
["surfDots","dots on"],["surfVDW","isosurface delete resolution 0 solvent 0 translucent"],["surfMolecular","isosurface delete resolution 0 molecular translucent"],["surfSolvent14","isosurface delete resolution 0 solvent 1.4 translucent"],["surfSolventAccessible14","isosurface delete resolution 0 sasurface 1.4 translucent"],["CHARGEsurfMEP","isosurface delete resolution 0 vdw color range all map MEP translucent"],["CHARGEsurf2MEP","isosurface delete resolution 0 vdw color range -0.1 0.1 map MEP translucent"],
["surfOpaque","mo opaque;isosurface opaque"],["surfTranslucent","mo translucent;isosurface translucent"],["surfOff","mo delete;isosurface delete;select *;dots off"],["SYMMETRYhide","draw sym_* delete"],["FILEMOLload",'save orientation;load "";restore orientation;center'],["FILEUNITone",'save orientation;load "" {1 1 1} ;restore orientation;center'],["FILEUNITnine",'save orientation;load "" {444 666 1} ;restore orientation;center'],["FILEUNITnineRestricted",'save orientation;load "" {444 666 1} ;restore orientation; unitcell on; display cell=555;center visible;zoom 200'],
["FILEUNITninePoly",'save orientation;load "" {444 666 1} ;restore orientation; unitcell on; display cell=555; polyhedra 4,6 (displayed);center (visible);zoom 200'],["1p","on"],["3p","3"],["5p","5"],["10p","10"],["10a","0.1"],["20a","0.20"],["25a","0.25"],["50a","0.50"],["100a","1.0"]]});y("J.popup");B(["J.popup.GenericSwingPopup","java.util.Properties","JU.Lst"],"J.popup.JmolGenericPopup","java.lang.Boolean java.util.Hashtable JU.PT J.i18n.GT J.popup.MainPopupResourceBundle JU.Elements JV.JC".split(" "),
function(){c$=ba(function(){this.vwr=null;this.updateMode=0;this.frankPopup=this.menuText=null;this.nFrankList=0;this.itemMax=25;this.titleWidthMax=20;this.currentFrankId=this.modelSetRoot=this.modelSetFileName=this.modelSetName=this.nullModelSetName=null;this.configurationSelected="";this.TemperatureOnly=this.ChargesOnly=this.SymmetryOnly=this.Special=this.VibrationOnly=this.FramesOnly=this.SingleModelOnly=this.UnitcellOnly=this.FileMolOnly=this.FileUnitOnly=this.PDBOnly=this.NotPDB=this.modelInfo=
this.modelSetInfo=this.frankList=this.altlocs=null;this.isZapped=this.isVibration=this.isUnitCell=this.isSymmetry=this.isPDB=this.isMultiFrame=this.isMultiConfiguration=this.isLastFrame=this.haveCharges=this.haveBFactors=this.fileHasUnitCell=!1;this.ac=this.modelCount=this.modelIndex=0;this.noZapped=this.hnmrPeaks=this.cnmrPeaks=this.group3Counts=this.group3List=null;aa(this,arguments)},J.popup,"JmolGenericPopup",J.popup.GenericSwingPopup);ea(c$,function(){this.menuText=new java.util.Properties;this.frankList=
Array(10);this.NotPDB=new JU.Lst;this.PDBOnly=new JU.Lst;this.FileUnitOnly=new JU.Lst;this.FileMolOnly=new JU.Lst;this.UnitcellOnly=new JU.Lst;this.SingleModelOnly=new JU.Lst;this.FramesOnly=new JU.Lst;this.VibrationOnly=new JU.Lst;this.Special=new JU.Lst;this.SymmetryOnly=new JU.Lst;this.ChargesOnly=new JU.Lst;this.TemperatureOnly=new JU.Lst;this.noZapped="surfaceMenu measureMenu pickingMenu computationMenu saveMenu exportMenu SIGNEDJAVAcaptureMenuSPECIAL".split(" ")});m(c$,"initialize",function(a,
b,c){this.vwr=a;this.initSwing(c,b,a.getHtml5Applet(),a.isJS,a.getBooleanProperty("_signedApplet"),a.isWebGL)},"JV.Viewer,J.popup.PopupResource,~S");n(c$,"jpiDispose",function(){this.helper.menuClearListeners(this.popupMenu);this.helper.menuClearListeners(this.frankPopup);this.popupMenu=this.frankPopup=this.thisPopup=null});n(c$,"jpiGetMenuAsObject",function(){return this.popupMenu});n(c$,"jpiShow",function(a,b){if(this.vwr.haveDisplay){this.show(a,b,!1);if(0>a&&(this.getViewerData(),this.setFrankMenu(this.currentMenuItemId),
this.thisx=-a-50,1<this.nFrankList)){this.thisy=b-20*this.nFrankList;this.menuShowPopup(this.frankPopup,this.thisx,this.thisy);return}this.appRestorePopupMenu();this.menuShowPopup(this.popupMenu,this.thisx,this.thisy)}},"~N,~N");n(c$,"jpiUpdateComputedMenus",function(){-1!=this.updateMode&&(this.isTainted=!0,this.updateMode=0,this.getViewerData(),this.updateSelectMenu(),this.updateFileMenu(),this.updateElementsComputedMenu(this.vwr.getElementsPresentBitSet(this.modelIndex)),this.updateHeteroComputedMenu(this.vwr.getHeteroList(this.modelIndex)),
this.updateSurfMoComputedMenu(this.modelInfo.get("moData")),this.updateFileTypeDependentMenus(),this.updatePDBComputedMenus(),this.updateMode=1,this.updateConfigurationComputedMenu(),this.updateSYMMETRYComputedMenus(),this.updateFRAMESbyModelComputedMenu(),this.updateModelSetComputedMenu(),this.updateLanguageSubmenu(),this.updateAboutSubmenu())});n(c$,"appCheckItem",function(a,b){0<=a.indexOf("!PDB")?this.NotPDB.addLast(b):0<=a.indexOf("PDB")&&this.PDBOnly.addLast(b);0<=a.indexOf("CHARGE")?this.ChargesOnly.addLast(b):
0<=a.indexOf("BFACTORS")?this.TemperatureOnly.addLast(b):0<=a.indexOf("UNITCELL")?this.UnitcellOnly.addLast(b):0<=a.indexOf("FILEUNIT")?this.FileUnitOnly.addLast(b):0<=a.indexOf("FILEMOL")&&this.FileMolOnly.addLast(b);0<=a.indexOf("!FRAMES")?this.SingleModelOnly.addLast(b):0<=a.indexOf("FRAMES")&&this.FramesOnly.addLast(b);0<=a.indexOf("VIBRATION")?this.VibrationOnly.addLast(b):0<=a.indexOf("SYMMETRY")&&this.SymmetryOnly.addLast(b);0<=a.indexOf("SPECIAL")&&this.Special.addLast(b)},"~S,javajs.api.SC");
n(c$,"appFixLabel",function(a){return a},"~S");n(c$,"appFixScript",function(a,b){var c;if(""===b||a.endsWith("Checkbox"))return b;if(0==b.indexOf("SELECT"))return"select thisModel and ("+b.substring(6)+")";if(0<=(c=a.lastIndexOf("["))){a=a.substring(c+1);if(0<=(c=a.indexOf("]")))a=a.substring(0,c);a=a.$replace("_"," ");0>b.indexOf("[]")&&(b="[] "+b);b=b.$replace("_"," ");return JU.PT.rep(b,"[]",a)}0<=b.indexOf("?FILEROOT?")?b=JU.PT.rep(b,"FILEROOT?",this.modelSetRoot):0<=b.indexOf("?FILE?")?b=JU.PT.rep(b,
"FILE?",this.modelSetFileName):0<=b.indexOf("?PdbId?")&&(b=JU.PT.rep(b,"PdbId?","=xxxx"));return b},"~S,~S");n(c$,"appGetBooleanProperty",function(a){return this.vwr.getBooleanProperty(a)},"~S");n(c$,"appGetMenuAsString",function(a){return(new J.popup.MainPopupResourceBundle(this.strMenuStructure,null)).getMenuAsText(a)},"~S");n(c$,"appIsSpecialCheckBox",function(a,b,c,d){if(this.appGetBooleanProperty(b)==d)return!0;if(!b.endsWith("P!"))return!1;if(0<=b.indexOf("??"))c=this.menuSetCheckBoxOption(a,
b,c);else{if(!d)return!0;c="set picking "+b.substring(0,b.length-2)}this.appRunScript(c);return!0},"javajs.api.SC,~S,~S,~B");n(c$,"appRestorePopupMenu",function(){this.thisPopup=this.popupMenu;if(!(this.vwr.isJS||2>this.nFrankList)){for(var a=this.nFrankList;0<--a;){var b=this.frankList[a];this.helper.menuInsertSubMenu(b[0],b[1],b[2].intValue())}this.nFrankList=1}});n(c$,"appRunScript",function(a){this.vwr.evalStringQuiet(a)},"~S");n(c$,"appUpdateSpecialCheckBoxValue",function(a,b){0<=b.indexOf("#CONFIG")&&
(this.configurationSelected=b,this.updateConfigurationComputedMenu(),this.updateModelSetComputedMenu())},"javajs.api.SC,~S,~B");m(c$,"setFrankMenu",function(a){if(!(null!=this.currentFrankId&&this.currentFrankId===a&&0<this.nFrankList)){null==this.frankPopup&&(this.frankPopup=this.helper.menuCreatePopup("Frank",this.vwr.getHtml5Applet()));this.thisPopup=this.frankPopup;this.menuRemoveAll(this.frankPopup,0);this.menuCreateItem(this.frankPopup,this.getMenuText("mainMenuText"),"MAIN","");this.currentFrankId=
a;this.nFrankList=0;this.frankList[this.nFrankList++]=[null,null,null];if(null!=a)for(var b=a.indexOf(".",2)+1;;){var c=a.indexOf(".",b);if(0>c)break;b=this.htMenus.get(a.substring(b,c));this.frankList[this.nFrankList++]=[b.getParent(),b,Integer.$valueOf(this.vwr.isJS?0:this.menuGetListPosition(b))];this.menuAddSubMenu(this.frankPopup,b);b=c+1}this.thisPopup=this.popupMenu}},"~S");m(c$,"checkBoolean",function(a){return null!=this.modelSetInfo&&this.modelSetInfo.get(a)===Boolean.TRUE},"~S");m(c$,"getViewerData",
function(){this.modelSetName=this.vwr.getModelSetName();this.modelSetFileName=this.vwr.getModelSetFileName();var a=this.modelSetFileName.lastIndexOf(".");if((this.isZapped="zapped".equals(this.modelSetName))||"string".equals(this.modelSetFileName)||"files".equals(this.modelSetFileName)||"string[]".equals(this.modelSetFileName))this.modelSetFileName="";this.modelSetRoot=this.modelSetFileName.substring(0,0>a?this.modelSetFileName.length:a);0==this.modelSetRoot.length&&(this.modelSetRoot="Jmol");this.modelIndex=
this.vwr.am.cmi;this.modelCount=this.vwr.getModelCount();this.ac=this.vwr.getAtomCountInModel(this.modelIndex);this.modelSetInfo=this.vwr.getModelSetAuxiliaryInfo();this.modelInfo=this.vwr.getModelAuxiliaryInfo(this.modelIndex);null==this.modelInfo&&(this.modelInfo=new java.util.Hashtable);this.isPDB=this.checkBoolean("isPDB");this.isMultiFrame=1<this.modelCount;this.isSymmetry=this.checkBoolean("hasSymmetry");this.isUnitCell=this.modelInfo.containsKey("notionalUnitcell");this.fileHasUnitCell=this.isPDB&&
this.isUnitCell||this.checkBoolean("fileHasUnitCell");this.isLastFrame=this.modelIndex==this.modelCount-1;this.altlocs=this.vwr.getAltLocListInModel(this.modelIndex);this.isMultiConfiguration=0<this.altlocs.length;this.isVibration=this.vwr.modelHasVibrationVectors(this.modelIndex);this.haveCharges=this.vwr.havePartialCharges();this.haveBFactors=this.vwr.getBooleanProperty("haveBFactors");this.cnmrPeaks=this.modelInfo.get("jdxAtomSelect_13CNMR");this.hnmrPeaks=this.modelInfo.get("jdxAtomSelect_1HNMR")});
n(c$,"appCheckSpecialMenu",function(a,b,c){"modelSetMenu".equals(a)&&(this.nullModelSetName=c,this.menuEnable(b,!1))},"~S,javajs.api.SC,~S");n(c$,"appUpdateForShow",function(){if(-1!=this.updateMode){this.isTainted=!0;this.getViewerData();this.updateMode=2;this.updateSelectMenu();this.updateSpectraMenu();this.updateFRAMESbyModelComputedMenu();this.updateSceneComputedMenu();this.updateModelSetComputedMenu();this.updateAboutSubmenu();for(var a=this.Special.size();0<=--a;)this.updateSpecialMenuItem(this.Special.get(a))}});
m(c$,"updateFileMenu",function(){var a=this.htMenus.get("fileMenu");if(null!=a){var b=this.getMenuText("writeFileTextVARIABLE"),a=this.htMenus.get("writeFileTextVARIABLE");this.modelSetFileName.equals("zapped")||this.modelSetFileName.equals("")?(this.menuSetLabel(a,""),this.menuEnable(a,!1)):(this.menuSetLabel(a,J.i18n.GT.o(J.i18n.GT._(b),this.modelSetFileName)),this.menuEnable(a,!0))}});m(c$,"getMenuText",function(a){var b=this.menuText.getProperty(a);return null==b?a:b},"~S");m(c$,"updateSelectMenu",
function(){var a=this.htMenus.get("selectMenuText");null!=a&&(this.menuEnable(a,0!=this.ac),this.menuSetLabel(a,this.gti("selectMenuText",this.vwr.getSelectionCount())))});m(c$,"updateElementsComputedMenu",function(a){var b=this.htMenus.get("elementsComputedMenu");if(null!=b&&(this.menuRemoveAll(b,0),this.menuEnable(b,!1),null!=a)){for(var c=a.nextSetBit(0);0<=c;c=a.nextSetBit(c+1)){var d=JU.Elements.elementNameFromNumber(c),e=JU.Elements.elementSymbolFromNumber(c),e=e+" - "+d;this.menuCreateItem(b,
e,"SELECT "+d,null)}for(c=4;c<JU.Elements.altElementMax;++c)e=JU.Elements.elementNumberMax+c,a.get(e)&&(e=JU.Elements.altElementNumberFromIndex(c),d=JU.Elements.elementNameFromNumber(e),e=JU.Elements.elementSymbolFromNumber(e),e=e+" - "+d,this.menuCreateItem(b,e,"SELECT "+d,null));this.menuEnable(b,!0)}},"JU.BS");m(c$,"updateSpectraMenu",function(){var a=this.htMenus.get("hnmrMenu"),b=this.htMenus.get("cnmrMenu");null!=a&&this.menuRemoveAll(a,0);null!=b&&this.menuRemoveAll(b,0);var c=this.htMenus.get("spectraMenu");
if(null!=c){this.menuRemoveAll(c,0);var d=(new Boolean(this.setSpectraMenu(a,this.hnmrPeaks)|this.setSpectraMenu(b,this.cnmrPeaks))).valueOf();d&&(null!=a&&this.menuAddSubMenu(c,a),null!=b&&this.menuAddSubMenu(c,b));this.menuEnable(c,d)}});m(c$,"setSpectraMenu",function(a,b){if(null==a)return!1;this.menuEnable(a,!1);var c=null==b?0:b.size();if(0==c)return!1;for(var d=0;d<c;d++){var e=b.get(d),f=JU.PT.getQuotedAttribute(e,"title"),e=JU.PT.getQuotedAttribute(e,"atoms");null!=e&&this.menuCreateItem(a,
f,"select visible & (@"+JU.PT.rep(e,","," or @")+")","Focus"+d)}this.menuEnable(a,!0);return!0},"javajs.api.SC,JU.Lst");m(c$,"updateHeteroComputedMenu",function(a){var b=this.htMenus.get("PDBheteroComputedMenu");if(null!=b&&(this.menuRemoveAll(b,0),this.menuEnable(b,!1),null!=a)){var c=0,d;for(a=a.entrySet().iterator();a.hasNext()&&((d=a.next())||1);){var e=d.getKey(),f=d.getValue();20<f.length&&(f=f.substring(0,20)+"...");this.menuCreateItem(b,e+" - "+f,"SELECT ["+e+"]",null);c++}this.menuEnable(b,
0<c)}},"java.util.Map");m(c$,"updateSurfMoComputedMenu",function(a){var b=this.htMenus.get("surfMoComputedMenuText");if(null!=b){this.menuRemoveAll(b,0);a=null==a?null:a.get("mos");var c=null==a?0:a.size(),d=this.getMenuText("surfMoComputedMenuText");if(0==c)this.menuSetLabel(b,J.i18n.GT.o(J.i18n.GT._(d),"")),this.menuEnable(b,!1);else{this.menuSetLabel(b,J.i18n.GT.i(J.i18n.GT._(d),c));this.menuEnable(b,!0);var d=b,e=c%this.itemMax;0==e&&(e=this.itemMax);for(var f=c>this.itemMax?0:-2147483648;0<=
--c;){0<=f&&0==f++%e&&(f==e+1&&(e=this.itemMax),f="mo"+f+"Menu",d=this.menuNewSubMenu(Math.max(c+2-e,1)+"..."+(c+1),this.menuGetId(b)+"."+f),this.menuAddSubMenu(b,d),this.htMenus.put(f,d),f=1);var g=a.get(c),g="#"+(c+1)+" "+(g.containsKey("type")?g.get("type")+" ":"")+(g.containsKey("symmetry")?g.get("symmetry")+" ":"")+(g.containsKey("occupancy")?"("+g.get("occupancy").intValue()+") ":"")+(g.containsKey("energy")?g.get("energy"):"");this.menuCreateItem(d,g,"mo "+(c+1),null)}}}},"java.util.Map");
m(c$,"updateFileTypeDependentMenus",function(){for(var a=this.NotPDB.size();0<=--a;)this.menuEnable(this.NotPDB.get(a),!this.isPDB);for(a=this.PDBOnly.size();0<=--a;)this.menuEnable(this.PDBOnly.get(a),this.isPDB);for(a=this.UnitcellOnly.size();0<=--a;)this.menuEnable(this.UnitcellOnly.get(a),this.isUnitCell);for(a=this.FileUnitOnly.size();0<=--a;)this.menuEnable(this.FileUnitOnly.get(a),this.isUnitCell||this.fileHasUnitCell);for(a=this.FileMolOnly.size();0<=--a;)this.menuEnable(this.FileMolOnly.get(a),
this.isUnitCell||this.fileHasUnitCell);for(a=this.SingleModelOnly.size();0<=--a;)this.menuEnable(this.SingleModelOnly.get(a),this.isLastFrame);for(a=this.FramesOnly.size();0<=--a;)this.menuEnable(this.FramesOnly.get(a),this.isMultiFrame);for(a=this.VibrationOnly.size();0<=--a;)this.menuEnable(this.VibrationOnly.get(a),this.isVibration);for(a=this.SymmetryOnly.size();0<=--a;)this.menuEnable(this.SymmetryOnly.get(a),this.isSymmetry&&this.isUnitCell);for(a=this.ChargesOnly.size();0<=--a;)this.menuEnable(this.ChargesOnly.get(a),
this.haveCharges);for(a=this.TemperatureOnly.size();0<=--a;)this.menuEnable(this.TemperatureOnly.get(a),this.haveBFactors);this.updateSignedAppletItems()});m(c$,"updateSceneComputedMenu",function(){var a=this.htMenus.get("sceneComputedMenu");if(null!=a){this.menuRemoveAll(a,0);this.menuEnable(a,!1);var b=this.vwr.getSceneList();if(null!=b){for(var c=0;c<b.length;c++)this.menuCreateItem(a,b[c],"restore scene "+JU.PT.esc(b[c])+" 1.0",null);this.menuEnable(a,!0)}}});m(c$,"updatePDBComputedMenus",function(){var a=
this.htMenus.get("PDBaaResiduesComputedMenu");if(null!=a){this.menuRemoveAll(a,0);this.menuEnable(a,!1);var b=this.htMenus.get("PDBnucleicResiduesComputedMenu");if(null!=b){this.menuRemoveAll(b,0);this.menuEnable(b,!1);var c=this.htMenus.get("PDBcarboResiduesComputedMenu");if(null!=c&&(this.menuRemoveAll(c,0),this.menuEnable(c,!1),null!=this.modelSetInfo)){var d=0>this.modelIndex?0:this.modelIndex+1,e=this.modelSetInfo.get("group3Lists");this.group3List=null==e?null:e[d];this.group3Counts=null==e?
null:this.modelSetInfo.get("group3Counts")[d];if(null!=this.group3List){d=0;for(e=1;24>e;++e)d+=this.updateGroup3List(a,JV.JC.predefinedGroup3Names[e]);d+=this.augmentGroup3List(a,"p>",!0);this.menuEnable(a,0<d);this.menuEnable(this.htMenus.get("PDBproteinMenu"),0<d);d=this.augmentGroup3List(b,"n>",!1);this.menuEnable(b,0<d);this.menuEnable(this.htMenus.get("PDBnucleicMenu"),0<d);d=this.augmentGroup3List(c,"c>",!1);this.menuEnable(c,0<d);this.menuEnable(this.htMenus.get("PDBcarboMenu"),0<d)}}}}});
m(c$,"updateGroup3List",function(a,b){var c=0,d=this.group3Counts[L(this.group3List.indexOf(b)/6)],e=null;0<d&&(e="SELECT "+b,b+=" ("+d+")",c++);e=this.menuCreateItem(a,b,e,this.menuGetId(a)+"."+b);0==d&&this.menuEnable(e,!1);return c},"javajs.api.SC,~S");m(c$,"augmentGroup3List",function(a,b,c){for(var d=138,e=0;;){d=this.group3List.indexOf(b,d);if(0>d)break;0==e++&&c&&this.menuAddSeparator(a);var f=this.group3Counts[L(d/6)],g=this.group3List.substring(d+2,d+5),f=g+" ("+f+")";this.menuCreateItem(a,
f,"SELECT ["+g+"]",this.menuGetId(a)+"."+f);d++}return e},"javajs.api.SC,~S,~B");m(c$,"updateSYMMETRYComputedMenus",function(){this.updateSYMMETRYSelectComputedMenu();this.updateSYMMETRYShowComputedMenu()});m(c$,"updateSYMMETRYShowComputedMenu",function(){var a=this.htMenus.get("SYMMETRYShowComputedMenu");if(null!=a&&(this.menuRemoveAll(a,0),this.menuEnable(a,!1),this.isSymmetry&&!(0>this.modelIndex))){var b=this.vwr.getProperty("DATA_API","spaceGroupInfo",null);if(null!=b){var c=b.get("operations");
if(null!=c){b=b.get("spaceGroupName");this.menuSetLabel(a,null==b?J.i18n.GT._("Space Group"):b);for(var b=a,d=this.itemMax,e=c.length>this.itemMax?0:-2147483648,f=0;f<c.length;f++){0<=e&&0==e++%d&&(e="drawsymop"+e+"Menu",b=this.menuNewSubMenu(f+1+"..."+Math.min(f+this.itemMax,c.length),this.menuGetId(a)+"."+e),this.menuAddSubMenu(a,b),this.htMenus.put(e,b),e=1);var g=c[f][1];0>g.indexOf("x1")&&(g=c[f][0]);this.menuEnable(this.menuCreateItem(b,f+1+" "+c[f][2]+" ("+g+")","draw SYMOP "+(f+1),null),!0)}this.menuEnable(a,
!0)}}}});m(c$,"updateSYMMETRYSelectComputedMenu",function(){var a=this.htMenus.get("SYMMETRYSelectComputedMenu");if(null!=a&&(this.menuRemoveAll(a,0),this.menuEnable(a,!1),this.isSymmetry&&!(0>this.modelIndex))){var b=this.modelInfo.get("symmetryOperations");if(null!=b){for(var c=null!=this.modelInfo.get("unitCellRange"),d=a,e=this.itemMax,f=b.length>this.itemMax?0:-2147483648,g=0;g<b.length;g++)0<=f&&0==f++%e&&(f="symop"+f+"Menu",d=this.menuNewSubMenu(g+1+"..."+Math.min(g+this.itemMax,b.length),
this.menuGetId(a)+"."+f),this.menuAddSubMenu(a,d),this.htMenus.put(f,d),f=1),this.menuEnable(this.menuCreateItem(d,"symop="+(g+1)+" # "+b[g],"SELECT symop="+(g+1),null),c);this.menuEnable(a,!0)}}});m(c$,"updateFRAMESbyModelComputedMenu",function(){var a=this.htMenus.get("FRAMESbyModelComputedMenu");if(null!=a&&(this.menuEnable(a,0<this.modelCount),this.menuSetLabel(a,0>this.modelIndex?this.gti("allModelsText",this.modelCount):this.gto("modelMenuText",this.modelIndex+1+"/"+this.modelCount)),this.menuRemoveAll(a,
0),!(1>this.modelCount))){1<this.modelCount&&this.menuCreateCheckboxItem(a,J.i18n.GT._("All"),"frame 0 ##",null,0>this.modelIndex,!1);for(var b=a,c=this.itemMax,d=this.modelCount>this.itemMax?0:-2147483648,e=0;e<this.modelCount;e++){0<=d&&0==d++%c&&(d="model"+d+"Menu",b=this.menuNewSubMenu(e+1+"..."+Math.min(e+this.itemMax,this.modelCount),this.menuGetId(a)+"."+d),this.menuAddSubMenu(a,b),this.htMenus.put(d,b),d=1);var f=""+this.vwr.getModelNumberDotted(e),g=this.vwr.getModelName(e),h=this.vwr.getModelAuxiliaryInfoValue(e,
"spectrumTypes");null!=h&&g.startsWith(h)&&(h=null);if(!g.equals(f)){var j=g.indexOf(";PATH");0<=j&&(g=g.substring(0,j));if(0==g.indexOf("Model[")&&0<=(j=g.indexOf("]:")))g=g.substring(j+2);g=f+": "+g}60<g.length&&(g=g.substring(0,55)+"...");null!=h&&(g+=" ("+h+")");this.menuCreateCheckboxItem(b,g,"model "+f+" ##",null,this.modelIndex==e,!1)}}});m(c$,"updateConfigurationComputedMenu",function(){var a=this.htMenus.get("configurationComputedMenu");if(null!=a&&(this.menuEnable(a,this.isMultiConfiguration),
this.isMultiConfiguration)){var b=this.altlocs.length;this.menuSetLabel(a,this.gti("configurationMenuText",b));this.menuRemoveAll(a,0);var c="hide none ##CONFIG";this.menuCreateCheckboxItem(a,J.i18n.GT._("All"),c,null,1==this.updateMode&&this.configurationSelected.equals(c),!1);for(var d=0;d<b;d++){var c="configuration "+(d+1)+"; hide thisModel and not selected ##CONFIG",e=""+(d+1)+' -- "'+this.altlocs.charAt(d)+'"';this.menuCreateCheckboxItem(a,e,c,null,1==this.updateMode&&this.configurationSelected.equals(c),
!1)}}});m(c$,"updateModelSetComputedMenu",function(){var a=this.htMenus.get("modelSetMenu");if(null!=a){this.menuRemoveAll(a,0);this.menuSetLabel(a,this.nullModelSetName);this.menuEnable(a,!1);for(var b=this.noZapped.length;0<=--b;)this.menuEnable(this.htMenus.get(this.noZapped[b]),!this.isZapped);if(!(null==this.modelSetName||this.isZapped)){this.isMultiFrame?(this.modelSetName=this.gti("modelSetCollectionText",this.modelCount),this.modelSetName.length>this.titleWidthMax&&(this.modelSetName=this.modelSetName.substring(0,
this.titleWidthMax)+"...")):this.vwr.getBooleanProperty("hideNameInPopup")?this.modelSetName=this.getMenuText("hiddenModelSetText"):this.modelSetName.length>this.titleWidthMax&&(this.modelSetName=this.modelSetName.substring(0,this.titleWidthMax)+"...");this.menuSetLabel(a,this.modelSetName);this.menuEnable(a,!0);this.menuEnable(this.htMenus.get("computationMenu"),100>=this.ac);this.addMenuItem(a,this.gti("atomsText",this.ac));this.addMenuItem(a,this.gti("bondsText",this.vwr.getBondCountInModel(this.modelIndex)));
if(this.isPDB){this.menuAddSeparator(a);this.addMenuItem(a,this.gti("groupsText",this.vwr.getGroupCountInModel(this.modelIndex)));this.addMenuItem(a,this.gti("chainsText",this.vwr.getChainCountInModel(this.modelIndex)));this.addMenuItem(a,this.gti("polymersText",this.vwr.getPolymerCountInModel(this.modelIndex)));var c=this.htMenus.get("BiomoleculesMenu");null==c&&(c=this.menuNewSubMenu(J.i18n.GT._(this.getMenuText("biomoleculesMenuText")),this.menuGetId(a)+".biomolecules"),this.menuAddSubMenu(a,c));
this.menuRemoveAll(c,0);this.menuEnable(c,!1);var d;if(0<=this.modelIndex&&null!=(d=this.vwr.getModelAuxiliaryInfoValue(this.modelIndex,"biomolecules"))){this.menuEnable(c,!0);for(var e=d.size(),b=0;b<e;b++){var f=this.isMultiFrame?"":'save orientation;load "" FILTER "biomolecule '+(b+1)+'";restore orientation;',g=d.get(b).get("atomCount").intValue(),g=this.gto(this.isMultiFrame?"biomoleculeText":"loadBiomoleculeText",[Integer.$valueOf(b+1),Integer.$valueOf(g)]);this.menuCreateItem(c,g,f,null)}}}this.isApplet&&
!this.vwr.getBooleanProperty("hideNameInPopup")&&(this.menuAddSeparator(a),this.menuCreateItem(a,this.gto("viewMenuText",this.modelSetFileName),"show url",null))}}});m(c$,"gti",function(a,b){return J.i18n.GT.i(J.i18n.GT._(this.getMenuText(a)),b)},"~S,~N");m(c$,"gto",function(a,b){return J.i18n.GT.o(J.i18n.GT._(this.getMenuText(a)),b)},"~S,~O");m(c$,"updateAboutSubmenu",function(){this.isApplet&&this.setText("APPLETid",this.vwr.appletName)});m(c$,"updateLanguageSubmenu",function(){var a=this.htMenus.get("languageComputedMenu");
if(null!=a){this.menuRemoveAll(a,0);for(var b=J.i18n.GT.getLanguage(),c=this.menuGetId(a),d=J.i18n.GT.getLanguageList(null),e=0,f=0;e<d.length;e++)if(b.equals(d[e].code)&&(d[e].display=!0),d[e].display){var g=d[e].code,h=d[e].language,j=d[e].nativeLanguage,k=g+" - "+J.i18n.GT._(h);null!=j&&!j.equals(J.i18n.GT._(h))&&(k+=" - "+j);0<f++&&1==f%4&&this.menuAddSeparator(a);this.menuCreateCheckboxItem(a,k,'language = "'+g+'" ##'+h,c+"."+g,b.equals(g),!1)}}});m(c$,"updateSpecialMenuItem",function(a){a.setText(this.getSpecialLabel(a.getName(),
a.getText()))},"javajs.api.SC");m(c$,"getSpecialLabel",function(a,b){var c=b.indexOf(" (");0>c&&(c=b.length);var d=null;0<=a.indexOf("captureLooping")?d=this.vwr.am.animationReplayMode.name().equals("ONCE")?"ONCE":"LOOP":0<=a.indexOf("captureFps")?d=""+this.vwr.getInt(553648132):0<=a.indexOf("captureMenu")&&(d=null==this.vwr.captureParams?J.i18n.GT._("not capturing"):this.vwr.getFilePath(this.vwr.captureParams.get("captureFileName"),!0)+" "+this.vwr.captureParams.get("captureCount"));return null==
d?b:b.substring(0,c)+" ("+d+")"},"~S,~S");M(c$,"UPDATE_NEVER",-1,"UPDATE_ALL",0,"UPDATE_CONFIG",1,"UPDATE_SHOW",2,"MENUITEM_HEIGHT",20)});y("J.awtjs2d");B(["J.popup.JmolGenericPopup"],"J.awtjs2d.JmolJSPopup",["J.i18n.GT","J.popup.JSSwingPopupHelper","$.MainPopupResourceBundle"],function(){c$=N(J.awtjs2d,"JmolJSPopup",J.popup.JmolGenericPopup);ca(c$,function(){fa(this,J.awtjs2d.JmolJSPopup,[]);this.helper=new J.popup.JSSwingPopupHelper(this)});n(c$,"jpiInitialize",function(a,b){var c=J.i18n.GT.setDoTranslate(!0),
d=new J.popup.MainPopupResourceBundle(this.strMenuStructure=b,this.menuText);this.initialize(a,d,d.getMenuName());J.i18n.GT.setDoTranslate(c)},"javajs.api.PlatformViewer,~S");n(c$,"menuShowPopup",function(a,b,c){try{a.show(this.isTainted?this.vwr.getHtml5Applet():null,b,c)}catch(d){if(!da(d,Exception))throw d;}this.isTainted=!1},"javajs.api.SC,~N,~N");n(c$,"menuSetCheckBoxOption",function(){return null},"javajs.api.SC,~S,~S");n(c$,"getImageIcon",function(){return null},"~S");n(c$,"menuFocusCallback",
function(){},"~S,~S,~B")})})(Clazz,Clazz.newLongArray,Clazz.doubleToByte,Clazz.doubleToInt,Clazz.doubleToLong,Clazz.declarePackage,Clazz.instanceOf,Clazz.load,Clazz.instantialize,Clazz.decorateAsClass,Clazz.floatToInt,Clazz.makeConstructor,Clazz.defineEnumConstant,Clazz.exceptionOf,Clazz.newIntArray,Clazz.defineStatics,Clazz.newFloatArray,Clazz.declareType,Clazz.prepareFields,Clazz.superConstructor,Clazz.newByteArray,Clazz.declareInterface,Clazz.p0p,Clazz.pu$h,Clazz.newShortArray,Clazz.innerTypeInstance,
Clazz.isClassDefined,Clazz.prepareCallback,Clazz.newArray,Clazz.castNullAs,Clazz.floatToShort,Clazz.superCall,Clazz.decorateAsType,Clazz.newBooleanArray,Clazz.newCharArray,Clazz.implementOf,Clazz.newDoubleArray,Clazz.overrideConstructor,Clazz.clone,Clazz.doubleToShort,Clazz.getInheritedLevel,Clazz.getParamsType,Clazz.isAF,Clazz.isAI,Clazz.isAS,Clazz.isASS,Clazz.isAP,Clazz.isAFloat,Clazz.isAII,Clazz.isAFF,Clazz.isAFFF,Clazz.tryToSearchAndExecute,Clazz.getStackTrace,Clazz.inheritArgs,Clazz.alert,Clazz.defineMethod,
Clazz.overrideMethod,Clazz.declareAnonymous,Clazz.cloneFinals);