(function(ma,na,oa,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa,Ga,Ha,k,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,l,Ra,Sa,Ta,Ua,D,u,Va,y,P,Q,Wa,A,Xa,E,Ya,R,Za,F,fa,S,$a,ga){if(!jQuery.ui)try{var j=jQuery,U=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=j("img[usemap=#"+d+"]")[0],!!e&&T(e))):(/input|select|textarea|button|object/.test(f)?!a.disabled:"a"===f?a.href||b:b)&&T(a)},T=function(a){return j.expr.filters.visible(a)&&
!j(a).parents().andSelf().filter(function(){return"hidden"===j.css(this,"visibility")}).length},ha=0,ia=/^ui-id-\d+$/;j.ui=j.ui||{};if(!j.ui.version){j.extend(j.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}});j.fn.extend({_focus:j.fn.focus,focus:function(a,b){return"number"==
typeof a?this.each(function(){var c=this;setTimeout(function(){j(c).focus();b&&b.call(c)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;return j.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?a=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(j.css(this,"position"))&&/(auto|scroll)/.test(j.css(this,"overflow")+j.css(this,"overflow-y")+j.css(this,"overflow-x"))}).eq(0):a=this.parents().filter(function(){return/(auto|scroll)/.test(j.css(this,
"overflow")+j.css(this,"overflow-y")+j.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!a.length?j(document):a},zIndex:function(a){if(void 0!==a)return this.css("zIndex",a);if(this.length){a=j(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-"+ ++ha)})},removeUniqueId:function(){return this.each(function(){ia.test(this.id)&&
j(this).removeAttr("id")})}});j.extend(j.expr[":"],{data:j.expr.createPseudo?j.expr.createPseudo(function(a){return function(b){return!!j.data(b,a)}}):function(a,b,c){return!!j.data(a,c[3])},focusable:function(a){return U(a,!isNaN(j.attr(a,"tabindex")))},tabbable:function(a){var b=j.attr(a,"tabindex"),c=isNaN(b);return(c||0<=b)&&U(a,!c)}});j(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));b.offsetHeight;j.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});
j.support.minHeight=100===b.offsetHeight;j.support.selectstart="onselectstart"in b;a.removeChild(b).style.display="none"});j("<a>").outerWidth(1).jquery||j.each(["Width","Height"],function(a,b){function c(a,b,c,e){return j.each(d,function(){b-=parseFloat(j.css(a,"padding"+this))||0;c&&(b-=parseFloat(j.css(a,"border"+this+"Width"))||0);e&&(b-=parseFloat(j.css(a,"margin"+this))||0)}),b}var d="Width"===b?["Left","Right"]:["Top","Bottom"],e=b.toLowerCase(),f={innerWidth:j.fn.innerWidth,innerHeight:j.fn.innerHeight,
outerWidth:j.fn.outerWidth,outerHeight:j.fn.outerHeight};j.fn["inner"+b]=function(a){return void 0===a?f["inner"+b].call(this):this.each(function(){j(this).css(e,c(this,a)+"px")})};j.fn["outer"+b]=function(a,d){return"number"!=typeof a?f["outer"+b].call(this,a):this.each(function(){j(this).css(e,c(this,a,!0,d)+"px")})}});if(j("<a>").data("a-b","a").removeData("a-b").data("a-b")){var V=j.fn.removeData;j.fn.removeData=function(a){return arguments.length?V.call(this,j.camelCase(a)):V.call(this)}}var W=
/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];j.ui.ie=W.length?!0:!1;j.ui.ie6=6===parseFloat(W[1],10);j.fn.extend({disableSelection:function(){return this.bind((j.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});j.extend(j.ui,{plugin:{add:function(a,b,c){var d;a=j.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:j.contains,hasScroll:function(a,b){if("hidden"===j(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 j.ui.isOverAxis(a,c,e)&&j.ui.isOverAxis(b,d,f)}})}}catch(ab){System.out.println("coremenu failed to load jQuery.ui.core -- jQuery version conflict?")}if(!jQuery.ui.widget)try{var h=
jQuery,ja=0,X=Array.prototype.slice,ka=h.cleanData;h.cleanData=function(a){for(var b=0,c;null!=(c=a[b]);b++)try{h(c).triggerHandler("remove")}catch(d){}ka(a)};h.widget=function(a,b,c){var d,e,f,g,s=a.split(".")[0];a=a.split(".")[1];d=s+"-"+a;c||(c=b,b=h.Widget);h.expr[":"][d.toLowerCase()]=function(a){return!!h.data(a,d)};h[s]=h[s]||{};e=h[s][a];f=h[s][a]=function(a,b){if(!this._createWidget)return new f(a,b);arguments.length&&this._createWidget(a,b)};h.extend(f,e,{version:c.version,_proto:h.extend({},
c),_childConstructors:[]});g=new b;g.options=h.widget.extend({},g.options);h.each(c,function(a,d){if(h.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=h.widget.extend(g,{widgetEventPrefix:e?g.widgetEventPrefix:a},c,{constructor:f,namespace:s,widgetName:a,
widgetBaseClass:d,widgetFullName:d});e?(h.each(e._childConstructors,function(a,b){var c=b.prototype;h.widget(c.namespace+"."+c.widgetName,f,b._proto)}),delete e._childConstructors):b._childConstructors.push(f);h.widget.bridge(a,f)};h.widget.extend=function(a){for(var b=X.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&&(h.isPlainObject(f)?a[e]=h.isPlainObject(a[e])?h.widget.extend({},a[e],f):h.widget.extend({},f):a[e]=f);return a};h.widget.bridge=
function(a,b){var c=b.prototype.widgetFullName||a;h.fn[a]=function(d){var e="string"==typeof d,f=X.call(arguments,1),g=this;return d=!e&&f.length?h.widget.extend.apply(null,[d].concat(f)):d,e?this.each(function(){var b,e=h.data(this,c);if(!e)return h.error("cannot call methods on "+a+" prior to initialization; attempted to call method '"+d+"'");if(!h.isFunction(e[d])||"_"===d.charAt(0))return h.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=h.data(this,c);a?a.option(d||{})._init():h.data(this,c,new b(d,this))}),g}};h.Widget=function(){};h.Widget._childConstructors=[];h.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(a,b){b=h(b||this.defaultElement||this)[0];this.element=h(b);this.uuid=ja++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=h.widget.extend({},this.options,
this._getCreateOptions(),a);this.bindings=h();this.hoverable=h();this.focusable=h();b!==this&&(h.data(b,this.widgetName,this),h.data(b,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target===b&&this.destroy()}}),this.document=h(b.style?b.ownerDocument:b.document||b),this.window=h(this.document[0].defaultView||this.document[0].parentWindow));this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:h.noop,_getCreateEventData:h.noop,
_create:h.noop,_init:h.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(h.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:h.noop,widget:function(){return this.element},
option:function(a,b){var c=a,d,e,f;if(0===arguments.length)return h.widget.extend({},this.options);if("string"==typeof a)if(c={},d=a.split("."),a=d.shift(),d.length){e=c[a]=h.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=h(b),this.bindings=this.bindings.add(b)):
(c=b,b=this.element,d=this.widget());h.each(c,function(c,g){function j(){if(a||!(!0===e.options.disabled||h(this).hasClass("ui-state-disabled")))return("string"==typeof g?e[g]:g).apply(e,arguments)}"string"!=typeof g&&(j.guid=g.guid=g.guid||j.guid||h.guid++);var k=c.match(/^(\w+)\s*(.*)$/),m=k[1]+e.eventNamespace;(k=k[2])?d.delegate(k,m,j):b.bind(m,j)})},_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){h(a.currentTarget).addClass("ui-state-hover")},mouseleave:function(a){h(a.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(a){this.focusable=this.focusable.add(a);this._on(a,{focusin:function(a){h(a.currentTarget).addClass("ui-state-focus")},focusout:function(a){h(a.currentTarget).removeClass("ui-state-focus")}})},
_trigger:function(a,b,c){var d,e=this.options[a];c=c||{};b=h.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),!(h.isFunction(e)&&!1===e.apply(this.element[0],[b].concat(c))||b.isDefaultPrevented())}};h.each({show:"fadeIn",hide:"fadeOut"},function(a,b){h.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=!h.isEmptyObject(d);d.complete=e;d.delay&&c.delay(d.delay);f&&h.effects&&(h.effects.effect[g]||!1!==h.uiBackCompat&&h.effects[g])?c[a](d):g!==a&&c[g]?c[g](d.duration,d.easing,e):c.queue(function(b){h(this)[a]();e&&e.call(c[0]);b()})}});!1!==h.uiBackCompat&&(h.Widget.prototype._getCreateOptions=function(){return h.metadata&&h.metadata.get(this.element[0])[this.widgetName]})}catch(bb){System.out.println("coremenu failed to load jQuery.ui.widget -- jQuery version conflict?")}if(!jQuery.ui.mouse)try{var r=
jQuery,G=!1;r(document).mouseup(function(){G=!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(!G){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(),G=!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(cb){System.out.println("coremenu failed to load jQuery.ui.mouse -- jQuery version conflict?")}if(!jQuery.ui.position)try{var m=
jQuery,Z=function(a,b,c){return[parseInt(a[0],10)*(Y.test(a[0])?b/100:1),parseInt(a[1],10)*(Y.test(a[1])?c/100:1)]};m.ui=m.ui||{};var H,B=Math.max,t=Math.abs,$=Math.round,aa=/left|center|right/,ba=/top|center|bottom/,ca=/[\+\-]\d+%?/,da=/^\w+/,Y=/%$/,la=m.fn.position;m.position={scrollbarWidth:function(){if(void 0!==H)return H;var a,b,c=m("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),d=c.children()[0];return m("body").append(c),
a=d.offsetWidth,c.css("overflow","scroll"),b=d.offsetWidth,a===b&&(b=c[0].clientWidth),c.remove(),H=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?m.position.scrollbarWidth():0,height:c?m.position.scrollbarWidth():0}},getWithinInfo:function(a){a=m(a||window);var b=m.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()}}};m.fn.position=function(a){if(!a||!a.of)return la.apply(this,arguments);a=m.extend({},a);var b,c,d,e,f,g=m(a.of),h=m.position.getWithinInfo(a.within),j=m.position.getScrollInfo(h),k=g[0],l=(a.collision||"flip").split(" "),n={};return 9===k.nodeType?(c=g.width(),d=g.height(),e={top:0,left:0}):m.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=m.extend({},e),m.each(["my","at"],function(){var b=(a[this]||"").split(" "),c,d;1===b.length&&(b=aa.test(b[0])?b.concat(["center"]):ba.test(b[0])?["center"].concat(b):["center","center"]);b[0]=aa.test(b[0])?b[0]:"center";b[1]=ba.test(b[1])?b[1]:"center";c=ca.exec(b[0]);d=ca.exec(b[1]);n[this]=[c?c[0]:0,d?d[0]:0];a[this]=[da.exec(b[0])[0],
da.exec(b[1])[0]]}),1===l.length&&(l[1]=l[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=Z(n.at,c,d),f.left+=b[0],f.top+=b[1],this.each(function(){var k,p,x=m(this),r=x.outerWidth(),z=x.outerHeight(),u=parseInt(m.css(this,"marginLeft"),10)||0,v=parseInt(m.css(this,"marginTop"),10)||0,y=r+u+(parseInt(m.css(this,"marginRight"),10)||0)+j.width,A=z+v+(parseInt(m.css(this,"marginBottom"),10)||0)+j.height,q=m.extend({},f),
w=Z(n.my,x.outerWidth(),x.outerHeight());"right"===a.my[0]?q.left-=r:"center"===a.my[0]&&(q.left-=r/2);"bottom"===a.my[1]?q.top-=z:"center"===a.my[1]&&(q.top-=z/2);q.left+=w[0];q.top+=w[1];m.support.offsetFractions||(q.left=$(q.left),q.top=$(q.top));k={marginLeft:u,marginTop:v};m.each(["left","top"],function(e,f){m.ui.position[l[e]]&&m.ui.position[l[e]][f](q,{targetWidth:c,targetHeight:d,elemWidth:r,elemHeight:z,collisionPosition:k,collisionWidth:y,collisionHeight:A,offset:[b[0]+w[0],b[1]+w[1]],my:a.my,
at:a.at,within:h,elem:x})});m.fn.bgiframe&&x.bgiframe();a.using&&(p=function(b){var f=e.left-q.left,h=f+c-r,j=e.top-q.top,k=j+d-z,s={target:{element:g,left:e.left,top:e.top,width:c,height:d},element:{element:x,left:q.left,top:q.top,width:r,height:z},horizontal:0>h?"left":0<f?"right":"center",vertical:0>k?"top":0<j?"bottom":"middle"};c<r&&t(f+h)<c&&(s.horizontal="center");d<z&&t(j+k)<d&&(s.vertical="middle");B(t(f),t(h))>B(t(j),t(k))?s.important="horizontal":s.important="vertical";a.using.call(this,
b,s)});x.offset(m.extend(q,{using:p}))})};m.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=B(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=B(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<t(c))a.left+=g+j+k}else if(0<h&&(d=a.left-b.collisionPosition.marginLeft+g+j+k-f,0<d||t(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<t(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||t(l)<f)&&(a.top+=h+j+k))}},flipfit:{left:function(){m.ui.position.flip.left.apply(this,arguments);m.ui.position.fit.left.apply(this,arguments)},top:function(){m.ui.position.flip.top.apply(this,arguments);m.ui.position.fit.top.apply(this,arguments)}}};var v,w,C,
I,K,L=document.getElementsByTagName("body")[0],M=document.createElement("div");v=document.createElement(L?"div":"body");C={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};L&&m.extend(C,{position:"absolute",left:"-1000px",top:"-1000px"});for(K in C)v.style[K]=C[K];v.appendChild(M);w=L||document.documentElement;w.insertBefore(v,w.firstChild);M.style.cssText="position: absolute; left: 10.7432222px;";I=m(M).offset().left;m.support.offsetFractions=10<I&&11>I;v.innerHTML="";w.removeChild(v);
if(!1!==m.uiBackCompat){var N=jQuery,ea=N.fn.position;N.fn.position=function(a){if(!a||!a.offset)return ea.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")),ea.call(this,N.extend(a,{at:c[0]+b[0]+" "+c[1]+b[1],offset:void 0}))}}}catch(db){System.out.println("coremenu failed to load jQuery.ui.position -- jQuery version conflict?")}if(!jQuery.ui.menu)try{var n=
jQuery,O=!1;n.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,n.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=n(a.target).closest(".ui-menu-item");!O&&b.not(".ui-state-disabled").length&&(O=!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=n(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(){n.contains(this.element[0],this.document[0].activeElement)||
this.collapseAll(a)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(a){n(a.target).closest(".ui-menu").length||this.collapseAll(a);O=!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=n(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 n.ui.keyCode.PAGE_UP:this.previousPage(a);break;case n.ui.keyCode.PAGE_DOWN:this.nextPage(a);break;case n.ui.keyCode.HOME:this._move("first","first",a);break;case n.ui.keyCode.END:this._move("last","last",a);break;case n.ui.keyCode.UP:this.previous(a);break;case n.ui.keyCode.DOWN:this.next(a);break;case n.ui.keyCode.LEFT:this.collapse(a);break;case n.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(a);break;case n.ui.keyCode.ENTER:case n.ui.keyCode.SPACE:this._activate(a);
break;case n.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(n(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(n(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=n(this),d=a.prev("a"),e=n("<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=
n(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&&!n.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(n.css(this.activeMenu[0],"borderTopWidth"))||
0,c=parseFloat(n.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=n.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:n(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=n(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=n(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||n(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(eb){System.out.println("JSmolMenu failed to load jQuery.ui.menu -- jQuery version conflict?")}Jmol.Menu={_menuCounter:0};var p=Jmol.Menu;p._getID=function(a,b){return a._id+"_"+b+"_"+ ++p._menuCounter};p._style="  .jmolPopupMenu{font-family:Arial,sans-serif;font-size:11px;position:absolute;z-index:"+Jmol._z.menu+'}  .jmolPopupMenu,.jmolPopupMenu .ui-corner-all{border-radius:5px}  .jmolPopupMenu,.jmolPopupMenu .ui-widget-content{border:1px solid #a6c9e2;background-color:#fcfdfd;color:#222}  .jmolPopupMenu a{color:#222;font-size:10px;}  .jmolPopupMenu input[type="checkbox"]{vertical-align:middle;}  .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)}  .jmolPopupMenu .ui-menu{margin-top:-3px;position:absolute}  .jmolPopupMenu .ui-menu-item{cursor:pointer;margin:0 2ex 0 0;padding:0;width:100%}  .jmolPopupMenu .ui-menu-divider{margin:3px 1px;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}  .jmolPopupMenu .ui-menu-item a{text-decoration:none;display:block;padding:0.05em 0.4em;white-space:nowrap;border:1px solid transparent}  .jmolPopupMenu .ui-menu-icons{position:relative}  .jmolPopupMenu .ui-menu-icons .ui-menu-item a{position:relative;padding-left:2em}  .jmolPopupMenu .ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat;position:absolute;top:.2em;left:.2em}  .jmolPopupMenu .ui-menu-icon{position:static;float:right}  .jmolPopupMenu .ui-icon-carat-1-e{min-width:2ex;text-align:right;background-image:none;background-position:0 0}  .jmolPopupMenu .ui-icon-carat-1-e:after{content:"\\25B8"}  .jmolPopupMenu .ui-state-default{border:1px solid #c5dbec;background:#dfeffc;color:#2e6e9e}  .jmolPopupMenu .ui-state-default a{color:#2e6e9e;text-decoration:none}  .jmolPopupMenu .ui-state-hover,.jmolPopupMenu .ui-state-focus{border:1px solid #79b7e7;background:#d0e5f5;color:#1d5987}  .jmolPopupMenu .ui-state-hover a{color:#1d5987;text-decoration:none}  .jmolPopupMenu .ui-state-active{border:1px solid #79b7e7;background:#f5f8f9;color:#e17009}  .jmolPopupMenu .ui-state-active a{color:#e17009;text-decoration:none}  .jmolPopupMenu .ui-state-highlight{border:1px solid #fad42e;background:#fbec88;color:#363636}  .jmolPopupMenu .ui-state-highlight a{color:#363636}  .jmolPopupMenu .ui-state-disabled *{color:#d6d6d6!important;font-weight:normal;cursor:default}  .jmolPopupMenu .ui-state-disabled a:hover{background-color:transparent!important;border-color:transparent!important}  .jmolPopupMenu .ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}';
p.PopupMenu=function(a,b){p._style&&Jmol.$after("head","<style>"+p._style+"</style>");p._style=null;this.applet=a;this.id=p._getID(a,b+"_top");this.name=b;this.items=[];this.tainted=this.enabled=!0;this.applet=a;a._popups||(a._popups={});a._popups[b]=this;Jmol.$after("body",'<ul id="'+this.id+'" class="jmolPopupMenu"></ul>');this.setContainer(Jmol.$("#"+this.id))};p.PopupMenu.prototype.dispose=function(){this.hide();delete this.applet._popups[this.name]};p.PopupMenu.prototype.hide=function(){this.visible&&
(this.container.unbind("clickoutjsmol"),this.dragBind(!1),this.container.hide(),this.visible=this.isDragging=!1)};p.PopupMenu.prototype.menuShowPopup=function(){if(this.tainted){var a=this.html();this.container.html(a);this.tainted=!1;this.bindActionCommands()}this.setPosition();this.container.hide().menu().menu("refresh").show();this.visible=!0;this.timestamp=System.currentTimeMillis();this.container.unbind("clickoutjsmol");this.dragBind(!0);var b=this;this.container.bind("clickoutjsmol",function(){100<
System.currentTimeMillis()-b.timestamp&&b.hide()});this.container.bind("contextmenu",function(){return!1})};Jmol._setDraggable(p.PopupMenu);p.SubMenu=function(a,b){this.applet=a.applet;this.text=b;this.enabled=!0;this.id=p._getID(a.applet,a.name+"m");this.popupMenu=a;this.isMenu=!0;this.items=[]};p.MenuItem=function(a,b,c,d){this.applet=a.applet;this.text=b;this.enabled=!0;this.id=p._getID(a.applet,a.name+(c?"cb":d?"rb":"i"));this.popupMenu=a;this.isCheckBox=c;this.isRadio=d};p.ButtonGroup=function(a){this.id=
p._getID(a.applet,a.name+"bg");this.add=function(a){a.htmlName=this.id}};p.setItemProto=function(a){a.setSelected=function(a){this.selected=a};a.isSelected=function(){return this.selected};a.setName=function(a){this.name=a};a.getName=function(){return this.name};a.addActionListener=function(a){this.actionListener=a};a.addItemListener=function(a){this.itemListener=a};a.addMouseListener=function(a){this.mouseListener=a};a.bindActionCommands=function(){var a=this;Jmol.$documentOff("click",this.id);Jmol.$documentOn("click",
this.id,function(){a.actionListener?(a.popupMenu.hide(),a.actionListener.checkMenuClick(a,a.script)):a.itemListener&&(a.selected=a.isCheckBox?Jmol.$prop(a.id+"-cb","checked"):!0,a.itemListener.checkBoxStateChanged(a))})};a.setEnabled=function(a){this.enabled=a};a.setIcon=function(a){this.icon=a};a.setText=function(a){this.text=a};a.setActionCommand=function(a){this.script=a};a.getActionCommand=function(){return this.script};a.html=function(){var a='<li id="ID" class="'+(this.enabled?"":"ui-state-disabled")+
'">';this.text&&(a+="<a>");this.isCheckBox?a+='<input id="ID-cb" type="checkbox" '+(this.selected?"checked":"")+' /><label for="ID-cb">TeXt</label>':this.isRadio?a+='<input id="ID-rb" type="radio" name="'+this.htmlName+'" '+(this.selected?"checked":"")+' /><label for="ID-rb">TeXt</label>':this.text&&(a+="TeXt");a=a.replace(/ID/g,this.id);this.text&&(a=a.replace(/TeXt/,this.text)+"</a>");return a+"</li>"}};p.setMenuProto=function(a){p.setItemProto(a);a.add=function(a){this.items.push(a);a.parent=this};
a.removeAll=function(a){if(0==a)this.items=[];else{for(var c=[],d=0;d<a;d++){var e=this.items[d];c.push(e);e.parent=this}this.items=c}};a.setAutoscrolls=function(){};a.getComponents=function(){return this.items};a.getItemCount=function(){return this.items.length};a.html=function(){for(var a=this.text?this.text:this.icon?'<img src="'+this.applet._j2sPath+"/"+this.icon+'" style="max-height: 20px;" />':null,c=a?"<li><a>"+a+'</a><ul id="'+this.id+'" class="'+(this.enabled?"":"ui-state-disabled")+'">':
"",d=0;d<this.items.length;d++)this.items[d].html&&(c+=this.items[d].html());a&&(c+="</ul></li>");return c};a.bindActionCommands=function(){for(var a=0;a<this.items.length;a++)this.items[a].bindActionCommands&&this.items[a].bindActionCommands()}};p.setMenuProto(p.PopupMenu.prototype);p.setMenuProto(p.SubMenu.prototype);p.setItemProto(p.MenuItem.prototype);p.hidePopups=function(a){for(var b in a)a[b].hide()};u("J.popup");ga(J.popup,"JmolAbstractMenu");u("J.popup");y(["javajs.api.GenericMenuInterface",
"J.popup.JmolAbstractMenu","java.util.Hashtable","$.Properties","JU.List"],"J.popup.GenericPopup","java.lang.Boolean java.util.StringTokenizer JU.PT $.SB J.i18n.GT J.popup.MainPopupResourceBundle J.util.Elements $.Escape $.Logger J.viewer.JC".split(" "),function(){c$=Q(function(){this.strMenuStructure=this.currentMenuItemId=this.buttonGroup=this.menuText=this.htCheckbox=this.viewer=null;this.updateMode=0;this.thisPopup=this.popupMenu=this.frankPopup=this.menuName=null;this.nFrankList=0;this.itemMax=
25;this.titleWidthMax=20;this.thisy=this.thisx=0;this.currentFrankId=this.modelSetRoot=this.modelSetFileName=this.modelSetName=this.nullModelSetName=null;this.configurationSelected="";this.Special=this.TemperatureOnly=this.ChargesOnly=this.AppletOnly=this.SignedOnly=this.SymmetryOnly=this.VibrationOnly=this.FramesOnly=this.SingleModelOnly=this.UnitcellOnly=this.FileMolOnly=this.FileUnitOnly=this.PDBOnly=this.NotPDB=this.htMenus=this.modelInfo=this.modelSetInfo=this.frankList=this.altlocs=null;this.isZapped=
this.isVibration=this.isUnitCell=this.isSymmetry=this.isSigned=this.isPDB=this.isMultiFrame=this.isMultiConfiguration=this.isLastFrame=this.isApplet=this.haveCharges=this.haveBFactors=this.fileHasUnitCell=this.isJS=this.allowSignedFeatures=!1;this.aboutComputedMenuBaseCount=this.atomCount=this.modelCount=this.modelIndex=0;this.hnmrPeaks=this.cnmrPeaks=this.group3Counts=this.group3List=null;P(this,arguments)},J.popup,"GenericPopup",null,[javajs.api.GenericMenuInterface,J.popup.JmolAbstractMenu]);fa(c$,
function(){this.htCheckbox=new java.util.Hashtable;this.menuText=new java.util.Properties;this.frankList=Array(10);this.htMenus=new java.util.Hashtable;this.NotPDB=new JU.List;this.PDBOnly=new JU.List;this.FileUnitOnly=new JU.List;this.FileMolOnly=new JU.List;this.UnitcellOnly=new JU.List;this.SingleModelOnly=new JU.List;this.FramesOnly=new JU.List;this.VibrationOnly=new JU.List;this.SymmetryOnly=new JU.List;this.SignedOnly=new JU.List;this.AppletOnly=new JU.List;this.ChargesOnly=new JU.List;this.TemperatureOnly=
new JU.List;this.Special=new JU.List});A(c$,function(){});l(c$,"jpiDispose",function(){this.menuClearListeners(this.popupMenu);this.menuClearListeners(this.frankPopup);this.popupMenu=this.frankPopup=this.thisPopup=null});l(c$,"jpiGetMenuAsObject",function(){return this.popupMenu});l(c$,"jpiGetMenuAsString",function(a){this.updateForShow();var b=a.indexOf("|");if(0<=b){var c=a.substring(b);a=a.substring(0,b);if(0<=c.indexOf("current"))return a=new JU.SB,b=this.htMenus.get(this.menuName),this.menuGetAsText(a,
0,b,"PopupMenu"),a.toString()}return(new J.popup.MainPopupResourceBundle(this.strMenuStructure,null)).getMenuAsText(a)},"~S");l(c$,"jpiShow",function(a,b){if(this.viewer.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.restorePopupMenu();this.menuShowPopup(this.popupMenu,this.thisx,this.thisy)}},"~N,~N");l(c$,
"jpiUpdateComputedMenus",function(){-1!=this.updateMode&&(this.updateMode=0,this.getViewerData(),this.updateSelectMenu(),this.updateFileMenu(),this.updateElementsComputedMenu(this.viewer.getElementsPresentBitSet(this.modelIndex)),this.updateHeteroComputedMenu(this.viewer.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())});k(c$,"getEntryIcon",function(a){var b=a[0];if(!b.startsWith("<"))return null;var c=b.indexOf(">");a[0]=b.substring(c+1);a=b.substring(1,c);return this.getImageIcon(a)},"~A");k(c$,"getImageIcon",function(){return null},"~S");k(c$,"checkMenuFocus",function(a,b,c){0>a.indexOf("Focus")||(c?this.viewer.script("selectionHalos ON;"+b):this.viewer.script("selectionHalos OFF"))},
"~S,~S,~B");k(c$,"checkBoxStateChanged",function(a){this.restorePopupMenu();this.menuSetCheckBoxValue(a);a=this.menuGetId(a);null!=a&&(this.currentMenuItemId=a)},"~O");c$.addItemText=k(c$,"addItemText",function(a,b,c,d,e,f,g){a.appendC(b).appendI(c).appendC("\t").append(d);null==e?a.append(".\n"):a.append("\t").append(e).append("\t").append(null==f||0==f.length?"-":f).append("\t").append(g).append("\n")},"JU.SB,~S,~N,~S,~S,~S,~S");k(c$,"fixScript",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);return JU.PT.simpleReplace(b,"[]",a)}0<=b.indexOf("?FILEROOT?")?b=JU.PT.simpleReplace(b,"FILEROOT?",this.modelSetRoot):0<=b.indexOf("?FILE?")?b=JU.PT.simpleReplace(b,"FILE?",this.modelSetFileName):0<=b.indexOf("?PdbId?")&&(b=JU.PT.simpleReplace(b,"PdbId?","=xxxx"));return b},"~S,~S");
k(c$,"initialize",function(a,b,c){this.viewer=a;this.menuName=c;this.thisPopup=this.popupMenu=this.menuCreatePopup(c);this.menuSetListeners();this.htMenus.put(c,this.popupMenu);this.isJS=a.isJS;this.allowSignedFeatures=!a.isApplet()||a.getBooleanProperty("_signedApplet");this.addMenuItems("",c,this.popupMenu,b);try{this.jpiUpdateComputedMenus()}catch(d){if(!E(d,NullPointerException))throw d;}},"J.viewer.Viewer,J.popup.PopupResource,~S");k(c$,"restorePopupMenu",function(){this.thisPopup=this.popupMenu;
if(!(2>this.nFrankList)){for(var a=this.nFrankList;0<--a;){var b=this.frankList[a];b[1].parent=b[0]}this.nFrankList=1}});k(c$,"setCheckBoxValue",function(a,b,c){this.checkForCheckBoxScript(a,b,c);0<=b.indexOf("#CONFIG")&&(this.configurationSelected=b,this.updateConfigurationComputedMenu(),this.updateModelSetComputedMenu())},"~O,~S,~B");c$.checkBoolean=k(c$,"checkBoolean",function(a,b){return null!=a&&a.get(b)===Boolean.TRUE},"java.util.Map,~S");k(c$,"getViewerData",function(){this.isApplet=this.viewer.isApplet();
this.isSigned=this.viewer.getBooleanProperty("_signedApplet");this.modelSetName=this.viewer.getModelSetName();this.modelSetFileName=this.viewer.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.viewer.getDisplayModelIndex();this.modelCount=this.viewer.getModelCount();this.atomCount=this.viewer.getAtomCountInModel(this.modelIndex);this.modelSetInfo=this.viewer.getModelSetAuxiliaryInfo();this.modelInfo=this.viewer.getModelAuxiliaryInfo(this.modelIndex);null==this.modelInfo&&(this.modelInfo=new java.util.Hashtable);this.isPDB=J.popup.GenericPopup.checkBoolean(this.modelSetInfo,"isPDB");this.isMultiFrame=1<this.modelCount;
this.isSymmetry=J.popup.GenericPopup.checkBoolean(this.modelInfo,"hasSymmetry");this.isUnitCell=this.modelInfo.containsKey("notionalUnitcell");this.fileHasUnitCell=this.isPDB&&this.isUnitCell||J.popup.GenericPopup.checkBoolean(this.modelInfo,"fileHasUnitCell");this.isLastFrame=this.modelIndex==this.modelCount-1;this.altlocs=this.viewer.getAltLocListInModel(this.modelIndex);this.isMultiConfiguration=0<this.altlocs.length;this.isVibration=this.viewer.modelHasVibrationVectors(this.modelIndex);this.haveCharges=
this.viewer.havePartialCharges();this.haveBFactors=this.viewer.getBooleanProperty("haveBFactors");this.cnmrPeaks=this.modelInfo.get("jdxAtomSelect_13CNMR");this.hnmrPeaks=this.modelInfo.get("jdxAtomSelect_1HNMR")});k(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.SignedOnly.size();0<=--a;)this.menuEnable(this.SignedOnly.get(a),this.isSigned||!this.isApplet);for(a=this.AppletOnly.size();0<=--a;)this.menuEnable(this.AppletOnly.get(a),this.isApplet);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)});k(c$,"addMenuItems",function(a,b,c,d){a=a+"."+b;var e=d.getStructure(b);J.util.Logger.debugging&&J.util.Logger.debug(a+" --- "+e);if(null==e)this.menuCreateItem(c,"#"+b,"","");else{b=new java.util.StringTokenizer(e);for(var f;0<=e.indexOf("@");){for(e="";b.hasMoreTokens();)e+=" "+((f=b.nextToken()).startsWith("@")?d.getStructure(f):f);e=e.substring(1);b=new java.util.StringTokenizer(e)}for(;b.hasMoreTokens();)if(f=b.nextToken(),this.checkKey(f)){var e=d.getWord(f),g=null,g="",
h=!1;if(!e.equals("null")){if(0<=f.indexOf("Menu")){0>f.indexOf("more")&&(this.buttonGroup=null);var j=this.menuNewSubMenu(e,a+"."+f);this.menuAddSubMenu(c,j);this.htMenus.put(f,j);0>f.indexOf("Computed")&&this.addMenuItems(a,f,j,d);this.checkSpecialMenu(f,j,e);g=j}else if("-".equals(f)){this.menuAddSeparator(c);continue}else if(f.endsWith("Checkbox")||(h=f.endsWith("CB")||f.endsWith("RD"))){g=d.getStructure(f);j=f.substring(0,f.length-(!h?8:2));h=h&&f.endsWith("RD");if(null==g||0==g.length&&!h)g=
"set "+j+" T/F";g=this.menuCreateCheckboxItem(c,e,j+":"+g,a+"."+f,!1,h);this.rememberCheckbox(j,g);h&&this.menuAddButtonGroup(g)}else{g=d.getStructure(f);null==g&&(g=f);if(!this.isJS&&f.startsWith("JS"))continue;g=this.menuCreateItem(c,e,g,a+"."+f)}!this.allowSignedFeatures&&f.startsWith("SIGNED")&&this.menuEnable(g,!1);0<=f.indexOf("VARIABLE")&&this.htMenus.put(f,g);0<=f.indexOf("!PDB")?this.NotPDB.addLast(g):0<=f.indexOf("PDB")&&this.PDBOnly.addLast(g);0<=f.indexOf("URL")?this.AppletOnly.addLast(g):
0<=f.indexOf("CHARGE")?this.ChargesOnly.addLast(g):0<=f.indexOf("BFACTORS")?this.TemperatureOnly.addLast(g):0<=f.indexOf("UNITCELL")?this.UnitcellOnly.addLast(g):0<=f.indexOf("FILEUNIT")?this.FileUnitOnly.addLast(g):0<=f.indexOf("FILEMOL")&&this.FileMolOnly.addLast(g);0<=f.indexOf("!FRAMES")?this.SingleModelOnly.addLast(g):0<=f.indexOf("FRAMES")&&this.FramesOnly.addLast(g);0<=f.indexOf("VIBRATION")?this.VibrationOnly.addLast(g):0<=f.indexOf("SYMMETRY")&&this.SymmetryOnly.addLast(g);f.startsWith("SIGNED")&&
this.SignedOnly.addLast(g);0<=f.indexOf("SPECIAL")&&this.Special.addLast(g)}}}},"~S,~S,~O,J.popup.PopupResource");k(c$,"checkKey",function(a){return 0>a.indexOf("JAVA")&&!(a.indexOf("NOGL")&&this.viewer.isWebGL)},"~S");k(c$,"rememberCheckbox",function(a,b){this.htCheckbox.put(a+"::"+this.htCheckbox.size(),b)},"~S,~O");k(c$,"checkForCheckBoxScript",function(a,b,c){if(0>b.indexOf("##")){var d=b.indexOf(":");if(0>d){J.util.Logger.error("check box "+a+" IS "+b);return}var e=b.substring(0,d);if(this.viewer.getBooleanProperty(e)==
c)return;if(e.endsWith("P!"))if(0<=e.indexOf("??"))b=this.menuSetCheckBoxOption(a,e,b);else{if(!c)return;b="set picking "+e.substring(0,e.length-2)}else{b=b.substring(d+1);if(0<=(d=b.indexOf("|")))b=(c?b.substring(0,d):b.substring(d+1)).trim();b=JU.PT.simpleReplace(b,"T/F",c?" TRUE":" FALSE")}}this.viewer.evalStringQuiet(b)},"~O,~S,~B");l(c$,"checkMenuClick",function(a,b){this.checkMenuClickGP(a,b)},"~O,~S");k(c$,"checkMenuClickGP",function(a,b){this.restorePopupMenu();if(!(null==b||0==b.length))if(b.equals("MAIN"))this.show(this.thisx,
this.thisy,!0);else{var c=this.menuGetId(a);null!=c&&(b=this.fixScript(c,b),this.currentMenuItemId=c);this.viewer.evalStringQuiet(b)}},"~O,~S");k(c$,"addMenuItem",function(a,b){return this.menuCreateItem(a,b,"",null)},"~O,~S");k(c$,"checkSpecialMenu",function(a,b,c){"aboutComputedMenu".equals(a)?this.aboutComputedMenuBaseCount=this.menuGetItemCount(b):"modelSetMenu".equals(a)&&(this.nullModelSetName=c,this.menuEnable(b,!1))},"~S,~O,~S");k(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,J.i18n.GT._("No atoms loaded")),this.menuEnableItem(a,!1)):(this.menuSetLabel(a,J.i18n.GT.o(J.i18n.GT._(b),this.modelSetFileName)),this.menuEnableItem(a,!0))}});k(c$,"getMenuText",function(a){var b=this.menuText.getProperty(a);return null==b?a:b},"~S");k(c$,"updateSelectMenu",function(){var a=this.htMenus.get("selectMenuText");
null!=a&&(this.menuEnable(a,0!=this.atomCount),this.menuSetLabel(a,this.gti("selectMenuText",this.viewer.getSelectionCount())))});k(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=J.util.Elements.elementNameFromNumber(c),e=J.util.Elements.elementSymbolFromNumber(c),e=e+" - "+d;this.menuCreateItem(b,e,"SELECT "+d,null)}for(c=4;c<J.util.Elements.altElementMax;++c)e=
J.util.Elements.elementNumberMax+c,a.get(e)&&(e=J.util.Elements.altElementNumberFromIndex(c),d=J.util.Elements.elementNameFromNumber(e),e=J.util.Elements.elementSymbolFromNumber(e),e=e+" - "+d,this.menuCreateItem(b,e,"SELECT "+d,null));this.menuEnable(b,!0)}},"JU.BS");k(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)}});k(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.simpleReplace(e,
","," or @")+")","Focus"+d)}this.menuEnable(a,!0);return!0},"~O,JU.List");k(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");k(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("energy")?g.get("energy"):"");this.menuCreateItem(d,g,"mo "+(c+1),null)}}}},"java.util.Map");k(c$,"updateSceneComputedMenu",function(){var a=this.htMenus.get("sceneComputedMenu");if(null!=a){this.menuRemoveAll(a,0);this.menuEnable(a,
!1);var b=this.viewer.getSceneList();if(null!=b){for(var c=0;c<b.length;c++)this.menuCreateItem(a,b[c],"restore scene "+J.util.Escape.eS(b[c])+" 1.0",null);this.menuEnable(a,!0)}}});k(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,J.viewer.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)}}}}});k(c$,"updateGroup3List",function(a,b){var c=0,d=this.group3Counts[D(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.menuEnableItem(e,!1);return c},"~O,~S");k(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[D(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},"~O,~S,~B");k(c$,"updateSYMMETRYComputedMenus",function(){this.updateSYMMETRYSelectComputedMenu();this.updateSYMMETRYShowComputedMenu()});k(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.viewer.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.menuEnableItem(this.menuCreateItem(b,f+1+" "+c[f][2]+" ("+g+")","draw SYMOP "+(f+1),null),!0)}this.menuEnable(a,!0)}}}});k(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.menuEnableItem(this.menuCreateItem(d,"symop="+(g+1)+" # "+b[g],"SELECT symop="+(g+1),null),c);this.menuEnable(a,!0)}}});k(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.viewer.getModelNumberDotted(e),g=this.viewer.getModelName(e),h=this.viewer.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)}}});k(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)}}});k(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),this.menuEnable(this.htMenus.get("surfaceMenu"),!this.isZapped),this.menuEnable(this.htMenus.get("measureMenu"),
!this.isZapped),this.menuEnable(this.htMenus.get("pickingMenu"),!this.isZapped),this.menuEnable(this.htMenus.get("computationMenu"),!this.isZapped),!(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.viewer.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.atomCount);this.addMenuItem(a,this.gti("atomsText",this.atomCount));this.addMenuItem(a,this.gti("bondsText",this.viewer.getBondCountInModel(this.modelIndex)));if(this.isPDB){this.menuAddSeparator(a);this.addMenuItem(a,this.gti("groupsText",this.viewer.getGroupCountInModel(this.modelIndex)));
this.addMenuItem(a,this.gti("chainsText",this.viewer.getChainCountInModel(this.modelIndex)));this.addMenuItem(a,this.gti("polymersText",this.viewer.getPolymerCountInModel(this.modelIndex)));var b=this.htMenus.get("BiomoleculesMenu");null==b&&(b=this.menuNewSubMenu(J.i18n.GT._(this.getMenuText("biomoleculesMenuText")),this.menuGetId(a)+".biomolecules"),this.menuAddSubMenu(a,b));this.menuRemoveAll(b,0);this.menuEnable(b,!1);var c;if(0<=this.modelIndex&&null!=(c=this.viewer.getModelAuxiliaryInfoValue(this.modelIndex,
"biomolecules"))){this.menuEnable(b,!0);for(var d=c.size(),e=0;e<d;e++){var f=this.isMultiFrame?"":'save orientation;load "" FILTER "biomolecule '+(e+1)+'";restore orientation;',g=c.get(e).get("atomCount").intValue(),g=this.gto(this.isMultiFrame?"biomoleculeText":"loadBiomoleculeText",[Integer.$valueOf(e+1),Integer.$valueOf(g)]);this.menuCreateItem(b,g,f,null)}}}this.isApplet&&!this.viewer.getBooleanProperty("hideNameInPopup")&&(this.menuAddSeparator(a),this.menuCreateItem(a,this.gto("viewMenuText",
this.modelSetFileName),"show url",null))}});k(c$,"gti",function(a,b){return J.i18n.GT.i(J.i18n.GT._(this.getMenuText(a)),b)},"~S,~N");k(c$,"gto",function(a,b){return J.i18n.GT.o(J.i18n.GT._(this.getMenuText(a)),b)},"~S,~O");k(c$,"updateAboutSubmenu",function(){var a=this.htMenus.get("aboutComputedMenu");if(null!=a){this.menuRemoveAll(a,this.aboutComputedMenuBaseCount);var b=this.menuNewSubMenu("About molecule","modelSetMenu");this.menuAddSubMenu(a,b);this.htMenus.put("modelSetMenu",b);this.updateModelSetComputedMenu();
b=this.menuNewSubMenu("Jmol "+J.viewer.JC.version+(this.viewer.isWebGL?" (WebGL)":this.viewer.isJS?" (HTML5)":this.isSigned?" (signed)":""),"aboutJmolMenu");this.menuAddSubMenu(a,b);this.htMenus.put("aboutJmolMenu",b);this.addMenuItem(b,J.viewer.JC.date);this.menuCreateItem(b,"http://www.jmol.org",'show url "http://www.jmol.org"',null);this.menuCreateItem(b,J.i18n.GT._("Mouse Manual"),'show url "http://wiki.jmol.org/index.php/Mouse_Manual"',null);this.menuCreateItem(b,J.i18n.GT._("Translations"),
'show url "http://wiki.jmol.org/index.php/Internationalisation"',null);b=this.menuNewSubMenu(J.i18n.GT._("System"),"systemMenu");this.menuAddSubMenu(a,b);this.htMenus.put("systemMenu",b);this.addMenuItem(b,this.viewer.getOperatingSystemName());this.menuAddSeparator(b);this.addMenuItem(b,J.i18n.GT._("Java version:"));this.addMenuItem(b,this.viewer.getJavaVendor());this.addMenuItem(b,this.viewer.getJavaVersion())}});k(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)}}});k(c$,"convertToMegabytes",function(a){9223372036854251E3>=
a&&(a+=524288);return D(a/1048576)},"~N");k(c$,"updateForShow",function(){if(-1!=this.updateMode){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))}});k(c$,"setFrankMenu",function(a){if(!(null!=this.currentFrankId&&this.currentFrankId===a&&0<this.nFrankList)&&
(null==this.frankPopup&&(this.frankPopup=this.menuCreatePopup("Frank")),this.thisPopup=this.frankPopup,this.menuRemoveAll(this.frankPopup,0),null!=a)){this.currentFrankId=a;this.nFrankList=0;this.frankList[this.nFrankList++]=[null,null,null];this.menuCreateItem(this.frankPopup,this.getMenuText("mainMenuText"),"MAIN","");for(var b=a.indexOf(".",2)+1;;){var c=a.indexOf(".",b);if(0>c)break;b=a.substring(b,c);b=this.htMenus.get(b);this.frankList[this.nFrankList++]=[this.menuGetParent(b),b,Integer.$valueOf(this.menuGetPosition(b))];
this.menuAddSubMenu(this.frankPopup,b);b=c+1}this.thisPopup=this.popupMenu}},"~S");k(c$,"show",function(a,b,c){this.thisx=a;this.thisy=b;this.updateForShow();var d;for(a=this.htCheckbox.entrySet().iterator();a.hasNext()&&((d=a.next())||1);){var e=d.getKey();b=d.getValue();e=e.substring(0,e.indexOf(":"));e=this.viewer.getBooleanProperty(e);this.menuSetCheckBoxState(b,e)}c&&this.menuShowPopup(this.popupMenu,this.thisx,this.thisy)},"~N,~N,~B");k(c$,"getSpecialLabel",function(a,b){var c=b.indexOf(" (");
0>c&&(c=b.length);var d=null;0<=a.indexOf("captureLooping")?d=this.viewer.getAnimationReplayMode().name().equals("ONCE")?"ONCE":"LOOP":0<=a.indexOf("captureFps")?d=""+this.viewer.getInt(553648132):0<=a.indexOf("captureMenu")&&(d=null==this.viewer.captureParams?J.i18n.GT._("not capturing"):this.viewer.getFilePath(this.viewer.captureParams.get("captureFileName"),!0)+" "+this.viewer.captureParams.get("captureCount"));return null==d?b:b.substring(0,c)+" ("+d+")"},"~S,~S");R(c$,"UPDATE_NEVER",-1,"UPDATE_ALL",
0,"UPDATE_CONFIG",1,"UPDATE_SHOW",2,"MENUITEM_HEIGHT",20)});u("J.awtjs2d");y(["J.popup.GenericPopup"],"J.awtjs2d.JSPopup",null,function(){c$=F(J.awtjs2d,"JSPopup",J.popup.GenericPopup);A(c$,function(){S(this,J.awtjs2d.JSPopup,[])});k(c$,"updateButton",function(a,b,c){b=[b];var d=this.getEntryIcon(b);b=b[0];null!=d&&a.setIcon(d);null!=b&&a.setText(b);null!=c&&a.setActionCommand(c);this.thisPopup.tainted=!0},"~O,~S,~S");k(c$,"newMenuItem",function(a,b,c,d,e){this.updateButton(b,c,d);null!=e&&e.startsWith("Focus")&&
(b.addMouseListener(this),e=a.getName()+"."+e);b.setName(null==e?a.getName()+".":e);this.menuAddItem(a,b);return b},"~O,~O,~S,~S,~S");l(c$,"menuAddButtonGroup",function(a){null==this.buttonGroup&&(this.buttonGroup=new Jmol.Menu.ButtonGroup(this.thisPopup));this.buttonGroup.add(a)},"~O");l(c$,"menuAddItem",function(a,b){a.add(b);this.thisPopup.tainted=!0},"~O,~O");l(c$,"menuAddSeparator",function(a){a.add(new Jmol.Menu.MenuItem(this.thisPopup,null,!1,!1));this.thisPopup.tainted=!0},"~O");l(c$,"menuAddSubMenu",
function(a,b){this.menuAddItem(a,b)},"~O,~O");l(c$,"menuClearListeners",function(a){a&&a.dispose()},"~O");l(c$,"menuCreateCheckboxItem",function(a,b,c,d,e,f){var g=null,g=new Jmol.Menu.MenuItem(this.thisPopup,b,!f,f);g.setSelected(e);g.addItemListener(this);return this.newMenuItem(a,g,b,c,d)},"~O,~S,~S,~S,~B,~B");l(c$,"menuCreateItem",function(a,b,c,d){var e=null,e=new Jmol.Menu.MenuItem(this.thisPopup,b);e.addActionListener(this);return this.newMenuItem(a,e,b,c,d)},"~O,~S,~S,~S");l(c$,"menuCreatePopup",
function(a){return new Jmol.Menu.PopupMenu(this.viewer.applet,a)},"~S");l(c$,"menuEnable",function(a,b){if(a.isItem)this.menuEnableItem(a,b);else{try{a.setEnabled(b)}catch(c){}this.thisPopup.tainted=!0}},"~O,~B");l(c$,"menuEnableItem",function(a,b){try{a.setEnabled(b)}catch(c){}this.thisPopup.tainted=!0},"~O,~B");l(c$,"menuGetAsText",function(a,b,c,d){c=c.getComponents();for(var e=0;e<c.length;e++){var f=c[e],g=null;if(f.isMenu)d=f.getName(),g="enabled:"+f.isEnabled(),this.addItemText(a,"M",b,d,f.getText(),
null,g),this.menuGetAsText(a,b+1,f.getPopupMenu(),d);else if(f.isItem){g="enabled:"+f.isEnabled();f.isCheckBox&&(g+=";checked:"+f.getState());var h=this.fixScript(f.getName(),f.getActionCommand());this.addItemText(a,"I",b,f.getName(),f.getText(),h,g)}else this.addItemText(a,"S",b,d,null,null,null)}},"JU.SB,~N,~O,~S");l(c$,"menuGetId",function(a){return a.getName()},"~O");l(c$,"menuGetItemCount",function(a){return a.getItemCount()},"~O");l(c$,"menuGetParent",function(a){return a.getParent()},"~O");
l(c$,"menuGetPosition",function(a){var b=menuGetParent(a);if(null!=b)for(var c=b.getItemCount();0<=--c;)if(b.getItem(c)==a)return c;return-1},"~O");l(c$,"menuInsertSubMenu",function(){},"~O,~O,~N");l(c$,"menuNewSubMenu",function(a,b){var c=new Jmol.Menu.SubMenu(this.thisPopup,a);this.updateButton(c,a,null);c.setName(b);c.setAutoscrolls(!0);return c},"~S,~S");l(c$,"menuRemoveAll",function(a,b){a.removeAll(b);this.thisPopup.tainted=!0},"~O,~N");l(c$,"menuSetAutoscrolls",function(a){a.setAutoscrolls(!0);
this.thisPopup.tainted=!0},"~O");l(c$,"menuSetCheckBoxState",function(a,b){a.setSelected(b);this.thisPopup.tainted=!0},"~O,~B");l(c$,"menuSetCheckBoxOption",function(){return null},"~O,~S,~S");l(c$,"menuSetCheckBoxValue",function(a){this.setCheckBoxValue(a,a.getActionCommand(),a.isSelected());this.thisPopup&&(this.thisPopup.tainted=!0)},"~O");l(c$,"menuSetLabel",function(a,b){a.setText(b);this.thisPopup.tainted=!0},"~O,~S");l(c$,"menuSetListeners",function(){});l(c$,"menuShowPopup",function(a,b,c){a.menuShowPopup(b,
c)},"~O,~N,~N");l(c$,"updateSpecialMenuItem",function(a){a.setText(this.getSpecialLabel(a.getName(),a.getText()))},"~O")});u("J.awtjs2d");y(["J.awtjs2d.JSPopup"],"J.awtjs2d.JSmolPopup",["J.i18n.GT","J.popup.MainPopupResourceBundle"],function(){c$=F(J.awtjs2d,"JSmolPopup",J.awtjs2d.JSPopup);A(c$,function(){S(this,J.awtjs2d.JSmolPopup,[])});l(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")});u("J.popup");y(null,"J.popup.PopupResource",["java.util.Properties","J.i18n.GT","J.io.JmolBinary"],function(){c$=Q(function(){this.words=this.structure=null;P(this,arguments)},J.popup,"PopupResource");A(c$,function(a,b){this.structure=new java.util.Properties;this.words=new java.util.Properties;this.buildStructure(a);this.localize(null!=a,b)},"~S,java.util.Properties");k(c$,"getMenuAsText",function(){return null},"~S");
k(c$,"getStructure",function(a){return this.structure.getProperty(a)},"~S");k(c$,"getWord",function(a){var b=this.words.getProperty(a);return null==b?a:b},"~S");k(c$,"setStructure",function(a){if(null!=a){a=J.io.JmolBinary.getBR(a);var b,c;try{for(;null!=(b=a.readLine());)if(!(0==b.length||"#"==b.charAt(0))){c=b.indexOf("=");0>c&&(c=b.length,b+="=");var d=b.substring(0,c).trim(),e=b.substring(c+1).trim(),f=null;if(0<=(c=d.indexOf("|")))f=d.substring(c+1).trim(),d=d.substring(0,c).trim();0!=d.length&&
(0<e.length&&this.structure.setProperty(d,e),null!=f&&0<f.length&&this.words.setProperty(d,J.i18n.GT._(f)))}}catch(g){if(!E(g,Exception))throw g;}try{a.close()}catch(h){if(!E(h,Exception))throw h;}}},"~S");k(c$,"addItems",function(a){for(var b="",c=0;c<a.length;c++){var d=a[c][1];null==d&&(d=b);b=d;this.structure.setProperty(a[c][0],d)}},"~A");k(c$,"localize",function(a,b){for(var c=this.getWordContents(),d=0;d<c.length;d++){var e=c[d++],f=this.words.getProperty(e);null==f&&(f=c[d]);this.words.setProperty(e,
f);null!=b&&0<=e.indexOf("Text")&&b.setProperty(e,f)}},"~B,java.util.Properties")});u("J.popup");y(["J.popup.PopupResource"],"J.popup.MainPopupResourceBundle",["JU.PT","$.SB","J.i18n.GT"],function(){c$=F(J.popup,"MainPopupResourceBundle",J.popup.PopupResource);l(c$,"getMenuName",function(){return"popupMenu"});l(c$,"buildStructure",function(a){this.addItems(J.popup.MainPopupResourceBundle.menuContents);this.addItems(J.popup.MainPopupResourceBundle.structureContents);this.setStructure(a)},"~S");c$.Box=
k(c$,"Box",function(a){return"if (showBoundBox or showUnitcell) {"+a+"} else {boundbox on;"+a+";boundbox off}"},"~S");l(c$,"getWordContents",function(){var a=J.i18n.GT.setDoTranslate(!0),b=["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"),"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"),
"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"),"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"),"reload",J.i18n.GT._("Reload"),"SIGNEDloadPdb",J.i18n.GT._("Open from PDB"),"SIGNEDloadFileOrUrl",J.i18n.GT._("Open file or 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"),"SIGNEDJAVAwriteGif",J.i18n.GT.o(J.i18n.GT._("Export {0} image"),"GIF"),"SIGNEDJAVAwritePovray",J.i18n.GT.o(J.i18n.GT._("Export {0} image"),"POV-Ray"),"SIGNEDwriteJmol",J.i18n.GT._("Save all as JMOL file (zip)"),"SIGNEDwriteIsosurface",
J.i18n.GT._("Save JVXL isosurface"),"SIGNEDJAVAwriteVrml",J.i18n.GT.o(J.i18n.GT._("Export {0} 3D model"),"VRML"),"SIGNEDJAVAwriteX3d",J.i18n.GT.o(J.i18n.GT._("Export {0} 3D model"),"X3D"),"SIGNEDJAVAwriteIdtf",J.i18n.GT.o(J.i18n.GT._("Export {0} 3D model"),"IDTF"),"SIGNEDJAVAwriteMaya",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"),"aboutComputedMenu",J.i18n.GT._("About..."),"APPLETjmolUrl","http://www.jmol.org","APPLETmouseManualUrl",J.i18n.GT._("Mouse Manual"),"APPLETtranslationUrl",J.i18n.GT._("Translations")];J.i18n.GT.setDoTranslate(a);return b});l(c$,"getMenuAsText",function(a){return"# Jmol.mnu "+a+"\n\n# Part I -- Menu Structure\n# ------------------------\n\n"+this.dumpStructure(J.popup.MainPopupResourceBundle.menuContents)+
"\n\n# Part II -- Key Definitions\n# --------------------------\n\n"+this.dumpStructure(J.popup.MainPopupResourceBundle.structureContents)+"\n\n# Part III -- Word Translations\n# -----------------------------\n\n"+this.dumpWords()},"~S");k(c$,"dumpWords",function(){for(var a=this.getWordContents(),b=new JU.SB,c=0;c<a.length;c++){var d=a[c++];null==this.structure.getProperty(d)&&b.append(d).append(" | ").append(a[c]).appendC("\n")}return b.toString()});k(c$,"dumpStructure",function(a){for(var b="",
c=new JU.SB,d=0;d<a.length;d++){var e=a[d][0],f=this.words.getProperty(e);null!=f&&(e+=" | "+f);c.append(e).append(" = ").append(null==a[d][1]?b:b=a[d][1]).appendC("\n")}return c.toString()},"~A");R(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","FRAMESbyModelComputedMenu configurationComputedMenu - selectMenuText viewMenu renderMenu colorMenu - surfaceMenu FILEUNITMenu - sceneComputedMenu zoomMenu spinMenu VIBRATIONMenu spectraMenu FRAMESanimateMenu - measureMenu pickingMenu - showConsole JSConsole showMenu fileMenu computationMenu - languageComputedMenu aboutComputedMenu"],
["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"],["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"],["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 PDBpickChain PDBpickGroup SYMMETRYpickSite pickSpin"],["computationMenu","minimize modelkit"],["showMenu","showHistory showFile showFileHeader - showOrient showMeasure - showSpacegroup showState SYMMETRYshowSymmetry UNITCELLshow - showIsosurface showMo - extractMOL"],["fileMenu","SIGNEDloadFileOrUrl SIGNEDloadPdb SIGNEDloadScript - reload SIGNEDloadFileUnitCell - writeFileTextVARIABLE writeState writeHistory SIGNEDwriteJmol SIGNEDwriteIsosurface - SIGNEDJAVAcaptureMenuSPECIAL - SIGNEDJAVAwriteGif SIGNEDNOGLwriteJpg SIGNEDNOGLwritePng SIGNEDNOGLwritePngJmol SIGNEDJAVAwritePovray - SIGNEDJAVAwriteVrml SIGNEDJAVAwriteX3d SIGNEDJAVAwriteIdtf SIGNEDJAVAwriteMaya"],
["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"],["aboutComputedMenu","- "]];c$.structureContents=c$.prototype.structureContents=[["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")],["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"],["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?"],["SIGNEDloadFileOrUrl","load ?"],["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 "?FILEROOT?.jmol"'],["SIGNEDwriteIsosurface",'write isosurface "?FILEROOT?.jvxl"'],["SIGNEDJAVAwriteGif",'write image "?FILEROOT?.gif"'],["SIGNEDNOGLwriteJpg",'write image "?FILEROOT?.jpg"'],["SIGNEDNOGLwritePng",'write image "?FILEROOT?.png"'],["SIGNEDNOGLwritePngJmol",'write PNGJ "?FILEROOT?.png"'],["SIGNEDJAVAwritePovray",'write POVRAY "?FILEROOT?.pov"'],["SIGNEDJAVAwriteVrml",
'write VRML "?FILEROOT?.wrl"'],["SIGNEDJAVAwriteX3d",'write X3D "?FILEROOT?.x3d"'],["SIGNEDJAVAwriteIdtf",'write IDTF "?FILEROOT?.idtf"'],["SIGNEDJAVAwriteMaya",'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"]]})})(Clazz,Clazz.newArray,Clazz.newBooleanArray,Clazz.newByteArray,Clazz.newCharArray,Clazz.newDoubleArray,Clazz.newFloatArray,Clazz.newIntArray,Clazz.newLongArray,Clazz.newShortArray,Clazz.prepareCallback,Clazz.decorateAsClass,Clazz.isClassDefined,Clazz.defineEnumConstant,Clazz.cloneFinals,Clazz.inheritArgs,Clazz.pu$h,Clazz.declareInterface,Clazz.declarePackage,Clazz.makeConstructor,
Clazz.overrideConstructor,Clazz.load,Clazz.defineMethod,Clazz.innerTypeInstance,Clazz.instanceOf,Clazz.p0p,Clazz.makeFunction,Clazz.superConstructor,Clazz.defineStatics,Clazz.registerSerializableFields,Clazz.declareType,Clazz.superCall,Clazz.overrideMethod,Clazz.declareAnonymous,Clazz.checkPrivateMethod,Clazz.prepareFields,Clazz.instantialize,Clazz.doubleToInt,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.supportsNativeObject,
Clazz.extendedObjectMethods,Clazz.callingStackTraces,Clazz.clone,Clazz.doubleToShort,Clazz.innerFunctions,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);
