if(!jQuery.ui)try{(function(a,b){function c(c,b){var f,e,g,h=c.nodeName.toLowerCase();return"area"===h?(f=c.parentNode,e=f.name,!c.href||!e||"map"!==f.nodeName.toLowerCase()?!1:(g=a("img[usemap=#"+e+"]")[0],!!g&&d(g))):(/input|select|textarea|button|object/.test(h)?!c.disabled:"a"===h?c.href||b:b)&&d(c)}function d(c){return a.expr.filters.visible(c)&&!a(c).parents().andSelf().filter(function(){return"hidden"===a.css(this,"visibility")}).length}var e=0,f=/^ui-id-\d+$/;a.ui=a.ui||{};if(!a.ui.version){a.extend(a.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}});a.fn.extend({_focus:a.fn.focus,focus:function(c,b){return"number"==typeof c?this.each(function(){var f=this;setTimeout(function(){a(f).focus();b&&b.call(f)},c)}):this._focus.apply(this,arguments)},scrollParent:function(){var c;
return a.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?c=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.css(this,"position"))&&/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0):c=this.parents().filter(function(){return/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!c.length?a(document):
c},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length){c=a(this[0]);for(var f;c.length&&c[0]!==document;){f=c.css("position");if("absolute"===f||"relative"===f||"fixed"===f)if(f=parseInt(c.css("zIndex"),10),!isNaN(f)&&0!==f)return f;c=c.parent()}}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})},removeUniqueId:function(){return this.each(function(){f.test(this.id)&&a(this).removeAttr("id")})}});a.extend(a.expr[":"],{data:a.expr.createPseudo?
a.expr.createPseudo(function(c){return function(b){return!!a.data(b,c)}}):function(c,b,f){return!!a.data(c,f[3])},focusable:function(b){return c(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var f=a.attr(b,"tabindex"),d=isNaN(f);return(d||0<=f)&&c(b,!d)}});a(function(){var c=document.body,b=c.appendChild(b=document.createElement("div"));b.offsetHeight;a.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=100===b.offsetHeight;a.support.selectstart=
"onselectstart"in b;c.removeChild(b).style.display="none"});a("<a>").outerWidth(1).jquery||a.each(["Width","Height"],function(c,f){function d(c,b,f,g){return a.each(e,function(){b-=parseFloat(a.css(c,"padding"+this))||0;f&&(b-=parseFloat(a.css(c,"border"+this+"Width"))||0);g&&(b-=parseFloat(a.css(c,"margin"+this))||0)}),b}var e="Width"===f?["Left","Right"]:["Top","Bottom"],g=f.toLowerCase(),h={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};
a.fn["inner"+f]=function(c){return c===b?h["inner"+f].call(this):this.each(function(){a(this).css(g,d(this,c)+"px")})};a.fn["outer"+f]=function(c,b){return"number"!=typeof c?h["outer"+f].call(this,c):this.each(function(){a(this).css(g,d(this,c,!0,b)+"px")})}});if(a("<a>").data("a-b","a").removeData("a-b").data("a-b")){var g=a.fn.removeData;a.fn.removeData=function(c){return arguments.length?g.call(this,a.camelCase(c)):g.call(this)}}var h=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];
a.ui.ie=h.length?!0:!1;a.ui.ie6=6===parseFloat(h[1],10);a.fn.extend({disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.extend(a.ui,{plugin:{add:function(c,b,f){var d;c=a.ui[c].prototype;for(d in f)c.plugins[d]=c.plugins[d]||[],c.plugins[d].push([b,f[d]])},call:function(a,c,b){var f=a.plugins[c];if(f&&a.element[0].parentNode&&
11!==a.element[0].parentNode.nodeType)for(c=0;c<f.length;c++)a.options[f[c][0]]&&f[c][1].apply(a.element,b)}},contains:a.contains,hasScroll:function(c,b){if("hidden"===a(c).css("overflow"))return!1;var f=b&&"left"===b?"scrollLeft":"scrollTop";return 0<c[f]?!0:(c[f]=1,c[f]=0,!1)},isOverAxis:function(a,c,b){return a>c&&a<c+b},isOver:function(c,b,f,d,e,g){return a.ui.isOverAxis(c,f,e)&&a.ui.isOverAxis(b,d,g)}})}})(jQuery)}catch(e$$16){System.out.println("coremenu failed to load jQuery.ui.core -- jQuery version conflict?")}
if(!jQuery.ui.widget)try{(function(a,b){var c=0,d=Array.prototype.slice,e=a.cleanData;a.cleanData=function(c){for(var b=0,d;null!=(d=c[b]);b++)try{a(d).triggerHandler("remove")}catch(j){}e(c)};a.widget=function(c,b,d){var e,k,l,m,q=c.split(".")[0];c=c.split(".")[1];e=q+"-"+c;d||(d=b,b=a.Widget);a.expr[":"][e.toLowerCase()]=function(c){return!!a.data(c,e)};a[q]=a[q]||{};k=a[q][c];l=a[q][c]=function(a,c){if(!this._createWidget)return new l(a,c);arguments.length&&this._createWidget(a,c)};a.extend(l,
k,{version:d.version,_proto:a.extend({},d),_childConstructors:[]});m=new b;m.options=a.widget.extend({},m.options);a.each(d,function(c,f){if(a.isFunction(f)){var e=function(){return b.prototype[c].apply(this,arguments)},j=function(a){return b.prototype[c].apply(this,a)};d[c]=function(){var a=this._super,c=this._superApply,b;return this._super=e,this._superApply=j,b=f.apply(this,arguments),this._super=a,this._superApply=c,b}}});l.prototype=a.widget.extend(m,{widgetEventPrefix:k?m.widgetEventPrefix:
c},d,{constructor:l,namespace:q,widgetName:c,widgetBaseClass:e,widgetFullName:e});k?(a.each(k._childConstructors,function(c,b){var f=b.prototype;a.widget(f.namespace+"."+f.widgetName,l,b._proto)}),delete k._childConstructors):b._childConstructors.push(l);a.widget.bridge(c,l)};a.widget.extend=function(c){for(var e=d.call(arguments,1),h=0,j=e.length,k,l;h<j;h++)for(k in e[h])l=e[h][k],e[h].hasOwnProperty(k)&&l!==b&&(a.isPlainObject(l)?c[k]=a.isPlainObject(c[k])?a.widget.extend({},c[k],l):a.widget.extend({},
l):c[k]=l);return c};a.widget.bridge=function(c,e){var h=e.prototype.widgetFullName||c;a.fn[c]=function(j){var k="string"==typeof j,l=d.call(arguments,1),m=this;return j=!k&&l.length?a.widget.extend.apply(null,[j].concat(l)):j,k?this.each(function(){var d,e=a.data(this,h);if(!e)return a.error("cannot call methods on "+c+" prior to initialization; attempted to call method '"+j+"'");if(!a.isFunction(e[j])||"_"===j.charAt(0))return a.error("no such method '"+j+"' for "+c+" widget instance");d=e[j].apply(e,
l);if(d!==e&&d!==b)return m=d&&d.jquery?m.pushStack(d.get()):d,!1}):this.each(function(){var c=a.data(this,h);c?c.option(j||{})._init():a.data(this,h,new e(j,this))}),m}};a.Widget=function(){};a.Widget._childConstructors=[];a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(b,d){d=a(d||this.defaultElement||this)[0];this.element=a(d);this.uuid=c++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=
a.widget.extend({},this.options,this._getCreateOptions(),b);this.bindings=a();this.hoverable=a();this.focusable=a();d!==this&&(a.data(d,this.widgetName,this),a.data(d,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target===d&&this.destroy()}}),this.document=a(d.style?d.ownerDocument:d.document||d),this.window=a(this.document[0].defaultView||this.document[0].parentWindow));this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:a.noop,
_getCreateEventData:a.noop,_create:a.noop,_init:a.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(a.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:a.noop,widget:function(){return this.element},option:function(c,d){var e=c,j,k,l;if(0===arguments.length)return a.widget.extend({},this.options);if("string"==typeof c)if(e={},j=c.split("."),c=j.shift(),j.length){k=e[c]=a.widget.extend({},this.options[c]);for(l=0;l<j.length-1;l++)k[j[l]]=k[j[l]]||{},k=k[j[l]];c=j.pop();if(d===b)return k[c]===b?null:k[c];k[c]=d}else{if(d===b)return this.options[c]===b?null:this.options[c];e[c]=d}return this._setOptions(e),this},_setOptions:function(a){for(var c in a)this._setOption(c,
a[c]);return this},_setOption:function(a,c){return this.options[a]=c,"disabled"===a&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!c).attr("aria-disabled",c),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(c,b,d){var e,k=this;"boolean"!=typeof c&&(d=b,b=c,c=!1);d?(b=e=a(b),this.bindings=this.bindings.add(b)):
(d=b,b=this.element,e=this.widget());a.each(d,function(d,h){function q(){if(c||!(!0===k.options.disabled||a(this).hasClass("ui-state-disabled")))return("string"==typeof h?k[h]:h).apply(k,arguments)}"string"!=typeof h&&(q.guid=h.guid=h.guid||q.guid||a.guid++);var p=d.match(/^(\w+)\s*(.*)$/),r=p[1]+k.eventNamespace;(p=p[2])?e.delegate(p,r,q):b.bind(r,q)})},_off:function(a,c){c=(c||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;a.unbind(c).undelegate(c)},_delay:function(a,c){var b=
this;return setTimeout(function(){return("string"==typeof a?b[a]:a).apply(b,arguments)},c||0)},_hoverable:function(c){this.hoverable=this.hoverable.add(c);this._on(c,{mouseenter:function(c){a(c.currentTarget).addClass("ui-state-hover")},mouseleave:function(c){a(c.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(c){this.focusable=this.focusable.add(c);this._on(c,{focusin:function(c){a(c.currentTarget).addClass("ui-state-focus")},focusout:function(c){a(c.currentTarget).removeClass("ui-state-focus")}})},
_trigger:function(c,b,d){var e,k=this.options[c];d=d||{};b=a.Event(b);b.type=(c===this.widgetEventPrefix?c:this.widgetEventPrefix+c).toLowerCase();b.target=this.element[0];if(c=b.originalEvent)for(e in c)e in b||(b[e]=c[e]);return this.element.trigger(b,d),!(a.isFunction(k)&&!1===k.apply(this.element[0],[b].concat(d))||b.isDefaultPrevented())}};a.each({show:"fadeIn",hide:"fadeOut"},function(c,b){a.Widget.prototype["_"+c]=function(d,e,k){"string"==typeof e&&(e={effect:e});var l,m=e?!0===e||"number"==
typeof e?b:e.effect||b:c;e=e||{};"number"==typeof e&&(e={duration:e});l=!a.isEmptyObject(e);e.complete=k;e.delay&&d.delay(e.delay);l&&a.effects&&(a.effects.effect[m]||!1!==a.uiBackCompat&&a.effects[m])?d[c](e):m!==c&&d[m]?d[m](e.duration,e.easing,k):d.queue(function(b){a(this)[c]();k&&k.call(d[0]);b()})}});!1!==a.uiBackCompat&&(a.Widget.prototype._getCreateOptions=function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]})})(jQuery)}catch(e$$26){System.out.println("coremenu failed to load jQuery.ui.widget -- jQuery version conflict?")}
if(!jQuery.ui.mouse)try{(function(a){var b=!1;a(document).mouseup(function(){b=!1});a.widget("ui.mouse",{version:"1.9.2",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var c=this;this.element.bind("mousedown."+this.widgetName,function(a){return c._mouseDown(a)}).bind("click."+this.widgetName,function(b){if(!0===a.data(b.target,c.widgetName+".preventClickEvent"))return a.removeData(b.target,c.widgetName+".preventClickEvent"),b.stopImmediatePropagation(),
!1});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);this._mouseMoveDelegate&&a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(c){if(!b){this._mouseStarted&&this._mouseUp(c);this._mouseDownEvent=c;var d=this,e=1===c.which,f="string"==typeof this.options.cancel&&c.target.nodeName?a(c.target).closest(this.options.cancel).length:!1;if(!e||f||!this._mouseCapture(c))return!0;
(this.mouseDelayMet=!this.options.delay)||(this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=!0},this.options.delay));return this._mouseDistanceMet(c)&&this._mouseDelayMet(c)&&(this._mouseStarted=!1!==this._mouseStart(c),!this._mouseStarted)?(c.preventDefault(),!0):(!0===a.data(c.target,this.widgetName+".preventClickEvent")&&a.removeData(c.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(a){return d._mouseMove(a)},this._mouseUpDelegate=function(a){return d._mouseUp(a)},
a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),c.preventDefault(),b=!0,!0)}},_mouseMove:function(c){return!a.ui.ie||9<=document.documentMode||c.button?this._mouseStarted?(this._mouseDrag(c),c.preventDefault()):(this._mouseDistanceMet(c)&&this._mouseDelayMet(c)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,c),this._mouseStarted?this._mouseDrag(c):this._mouseUp(c)),!this._mouseStarted):this._mouseUp(c)},
_mouseUp:function(c){return a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,c.target===this._mouseDownEvent.target&&a.data(c.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(c)),!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}})})(jQuery)}catch(e$$38){System.out.println("coremenu failed to load jQuery.ui.mouse -- jQuery version conflict?")}
if(!jQuery.ui.position)try{(function(a,b){function c(a,c,b){return[parseInt(a[0],10)*(m.test(a[0])?c/100:1),parseInt(a[1],10)*(m.test(a[1])?b/100:1)]}a.ui=a.ui||{};var d,e=Math.max,f=Math.abs,g=Math.round,h=/left|center|right/,j=/top|center|bottom/,k=/[\+\-]\d+%?/,l=/^\w+/,m=/%$/,q=a.fn.position;a.position={scrollbarWidth:function(){if(d!==b)return d;var c,e,f=a("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),g=f.children()[0];
return a("body").append(f),c=g.offsetWidth,f.css("overflow","scroll"),e=g.offsetWidth,c===e&&(e=f[0].clientWidth),f.remove(),d=c-e},getScrollInfo:function(c){var b=c.isWindow?"":c.element.css("overflow-x"),d=c.isWindow?"":c.element.css("overflow-y"),d="scroll"===d||"auto"===d&&c.height<c.element[0].scrollHeight;return{width:"scroll"===b||"auto"===b&&c.width<c.element[0].scrollWidth?a.position.scrollbarWidth():0,height:d?a.position.scrollbarWidth():0}},getWithinInfo:function(c){c=a(c||window);var b=
a.isWindow(c[0]);return{element:c,isWindow:b,offset:c.offset()||{left:0,top:0},scrollLeft:c.scrollLeft(),scrollTop:c.scrollTop(),width:b?c.width():c.outerWidth(),height:b?c.height():c.outerHeight()}}};a.fn.position=function(b){if(!b||!b.of)return q.apply(this,arguments);b=a.extend({},b);var d,u,v,y,s,w=a(b.of),m=a.position.getWithinInfo(b.within),E=a.position.getScrollInfo(m),t=w[0],p=(b.collision||"flip").split(" "),r={};return 9===t.nodeType?(u=w.width(),v=w.height(),y={top:0,left:0}):a.isWindow(t)?
(u=w.width(),v=w.height(),y={top:w.scrollTop(),left:w.scrollLeft()}):t.preventDefault?(b.at="left top",u=v=0,y={top:t.pageY,left:t.pageX}):(u=w.outerWidth(),v=w.outerHeight(),y=w.offset()),s=a.extend({},y),a.each(["my","at"],function(){var a=(b[this]||"").split(" "),c,d;1===a.length&&(a=h.test(a[0])?a.concat(["center"]):j.test(a[0])?["center"].concat(a):["center","center"]);a[0]=h.test(a[0])?a[0]:"center";a[1]=j.test(a[1])?a[1]:"center";c=k.exec(a[0]);d=k.exec(a[1]);r[this]=[c?c[0]:0,d?d[0]:0];b[this]=
[l.exec(a[0])[0],l.exec(a[1])[0]]}),1===p.length&&(p[1]=p[0]),"right"===b.at[0]?s.left+=u:"center"===b.at[0]&&(s.left+=u/2),"bottom"===b.at[1]?s.top+=v:"center"===b.at[1]&&(s.top+=v/2),d=c(r.at,u,v),s.left+=d[0],s.top+=d[1],this.each(function(){var h,j,k=a(this),l=k.outerWidth(),t=k.outerHeight(),q=parseInt(a.css(this,"marginLeft"),10)||0,x=parseInt(a.css(this,"marginTop"),10)||0,z=l+q+(parseInt(a.css(this,"marginRight"),10)||0)+E.width,A=t+x+(parseInt(a.css(this,"marginBottom"),10)||0)+E.height,
n=a.extend({},s),B=c(r.my,k.outerWidth(),k.outerHeight());"right"===b.my[0]?n.left-=l:"center"===b.my[0]&&(n.left-=l/2);"bottom"===b.my[1]?n.top-=t:"center"===b.my[1]&&(n.top-=t/2);n.left+=B[0];n.top+=B[1];a.support.offsetFractions||(n.left=g(n.left),n.top=g(n.top));h={marginLeft:q,marginTop:x};a.each(["left","top"],function(c,e){a.ui.position[p[c]]&&a.ui.position[p[c]][e](n,{targetWidth:u,targetHeight:v,elemWidth:l,elemHeight:t,collisionPosition:h,collisionWidth:z,collisionHeight:A,offset:[d[0]+
B[0],d[1]+B[1]],my:b.my,at:b.at,within:m,elem:k})});a.fn.bgiframe&&k.bgiframe();b.using&&(j=function(a){var c=y.left-n.left,d=c+u-l,g=y.top-n.top,h=g+v-t,j={target:{element:w,left:y.left,top:y.top,width:u,height:v},element:{element:k,left:n.left,top:n.top,width:l,height:t},horizontal:0>d?"left":0<c?"right":"center",vertical:0>h?"top":0<g?"bottom":"middle"};u<l&&f(c+d)<u&&(j.horizontal="center");v<t&&f(g+h)<v&&(j.vertical="middle");e(f(c),f(d))>e(f(g),f(h))?j.important="horizontal":j.important="vertical";
b.using.call(this,a,j)});k.offset(a.extend(n,{using:j}))})};a.ui.position={fit:{left:function(a,c){var b=c.within,d=b.isWindow?b.scrollLeft:b.offset.left,b=b.width,f=a.left-c.collisionPosition.marginLeft,g=d-f,h=f+c.collisionWidth-b-d,j;c.collisionWidth>b?0<g&&0>=h?(j=a.left+g+c.collisionWidth-b-d,a.left+=g-j):0<h&&0>=g?a.left=d:g>h?a.left=d+b-c.collisionWidth:a.left=d:0<g?a.left+=g:0<h?a.left-=h:a.left=e(a.left-f,a.left)},top:function(a,c){var b=c.within,b=b.isWindow?b.scrollTop:b.offset.top,d=c.within.height,
f=a.top-c.collisionPosition.marginTop,g=b-f,h=f+c.collisionHeight-d-b,j;c.collisionHeight>d?0<g&&0>=h?(j=a.top+g+c.collisionHeight-d-b,a.top+=g-j):0<h&&0>=g?a.top=b:g>h?a.top=b+d-c.collisionHeight:a.top=b:0<g?a.top+=g:0<h?a.top-=h:a.top=e(a.top-f,a.top)}},flip:{left:function(a,c){var b=c.within,d=b.offset.left+b.scrollLeft,e=b.width,g=b.isWindow?b.scrollLeft:b.offset.left,h=a.left-c.collisionPosition.marginLeft,b=h-g,j=h+c.collisionWidth-e-g,h="left"===c.my[0]?-c.elemWidth:"right"===c.my[0]?c.elemWidth:
0,k="left"===c.at[0]?c.targetWidth:"right"===c.at[0]?-c.targetWidth:0,l=-2*c.offset[0];if(0>b){if(d=a.left+h+k+l+c.collisionWidth-e-d,0>d||d<f(b))a.left+=h+k+l}else if(0<j&&(d=a.left-c.collisionPosition.marginLeft+h+k+l-g,0<d||f(d)<j))a.left+=h+k+l},top:function(a,c){var b=c.within,d=b.offset.top+b.scrollTop,e=b.height,b=b.isWindow?b.scrollTop:b.offset.top,g=a.top-c.collisionPosition.marginTop,h=g-b,g=g+c.collisionHeight-e-b,j="top"===c.my[1]?-c.elemHeight:"bottom"===c.my[1]?c.elemHeight:0,k="top"===
c.at[1]?c.targetHeight:"bottom"===c.at[1]?-c.targetHeight:0,l=-2*c.offset[1],m,p;0>h?(p=a.top+j+k+l+c.collisionHeight-e-d,a.top+j+k+l>h&&(0>p||p<f(h))&&(a.top+=j+k+l)):0<g&&(m=a.top-c.collisionPosition.marginTop+j+k+l-b,a.top+j+k+l>g&&(0<m||f(m)<g)&&(a.top+=j+k+l))}},flipfit:{left:function(){a.ui.position.flip.left.apply(this,arguments);a.ui.position.fit.left.apply(this,arguments)},top:function(){a.ui.position.flip.top.apply(this,arguments);a.ui.position.fit.top.apply(this,arguments)}}};var p,r,x,
z,A=document.getElementsByTagName("body")[0];x=document.createElement("div");p=document.createElement(A?"div":"body");r={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};A&&a.extend(r,{position:"absolute",left:"-1000px",top:"-1000px"});for(z in r)p.style[z]=r[z];p.appendChild(x);r=A||document.documentElement;r.insertBefore(p,r.firstChild);x.style.cssText="position: absolute; left: 10.7432222px;";x=a(x).offset().left;a.support.offsetFractions=10<x&&11>x;p.innerHTML="";r.removeChild(p);
if(!1!==a.uiBackCompat){var C=jQuery,D=C.fn.position;C.fn.position=function(a){if(!a||!a.offset)return D.call(this,a);var c=a.offset.split(" "),d=a.at.split(" ");return 1===c.length&&(c[1]=c[0]),/^\d/.test(c[0])&&(c[0]="+"+c[0]),/^\d/.test(c[1])&&(c[1]="+"+c[1]),1===d.length&&(/left|center|right/.test(d[0])?d[1]="center":(d[1]=d[0],d[0]="center")),D.call(this,C.extend(a,{at:d[0]+c[0]+" "+d[1]+c[1],offset:b}))}}})(jQuery)}catch(e$$48){System.out.println("coremenu failed to load jQuery.ui.position -- jQuery version conflict?")}
if(!jQuery.ui.menu)try{(function(a){var b=!1;a.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,a.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(c){var d=a(c.target).closest(".ui-menu-item");!b&&d.not(".ui-state-disabled").length&&(b=!0,this.select(c),d.has(".ui-menu").length?this.expand(c):
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(c){var b=a(c.currentTarget);b.siblings().children(".ui-state-active").removeClass("ui-state-active");this.focus(c,b)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(a,b){var e=this.active||this.element.children(".ui-menu-item").eq(0);b||this.focus(a,e)},blur:function(c){this._delay(function(){a.contains(this.element[0],
this.document[0].activeElement)||this.collapseAll(c)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(c){a(c.target).closest(".ui-menu").length||this.collapseAll(c);b=!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 c=a(this);c.data("ui-menu-submenu-carat")&&c.remove()});this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(c){function b(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,
"\\$&")}var e,f,g,h,j=!0;switch(c.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(c);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(c);break;case a.ui.keyCode.HOME:this._move("first","first",c);break;case a.ui.keyCode.END:this._move("last","last",c);break;case a.ui.keyCode.UP:this.previous(c);break;case a.ui.keyCode.DOWN:this.next(c);break;case a.ui.keyCode.LEFT:this.collapse(c);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(c);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(c);
break;case a.ui.keyCode.ESCAPE:this.collapse(c);break;default:j=!1,e=this.previousFilter||"",f=String.fromCharCode(c.keyCode),g=!1,clearTimeout(this.filterTimer),f===e?g=!0:f=e+f,h=RegExp("^"+b(f),"i"),e=this.activeMenu.children(".ui-menu-item").filter(function(){return h.test(a(this).children("a").text())}),e=g&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e,e.length||(f=String.fromCharCode(c.keyCode),h=RegExp("^"+b(f),"i"),e=this.activeMenu.children(".ui-menu-item").filter(function(){return h.test(a(this).children("a").text())})),
e.length?(this.focus(c,e),1<e.length?(this.previousFilter=f,this.filterTimer=this._delay(function(){delete this.previousFilter},1E3)):delete this.previousFilter):delete this.previousFilter}j&&c.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 c,b=this.options.icons.submenu;c=this.element.find(this.options.menus);c.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 c=a(this),f=c.prev("a"),g=a("<span>").addClass("ui-menu-icon ui-icon "+b).data("ui-menu-submenu-carat",!0);f.attr("aria-haspopup","true").prepend(g);c.attr("aria-labelledby",f.attr("id"))});c=c.add(this.element);c.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()});c.children(":not(.ui-menu-item)").each(function(){var c=
a(this);/[^\-\u00e2\u20ac\u201d\u00e2\u20ac\u201c\s]/.test(c.text())||c.addClass("ui-widget-content ui-menu-divider")});c.children(".ui-state-disabled").attr("aria-disabled","true");this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},focus:function(a,b){var e;this.blur(a,a&&"focus"===a.type);this._scrollIntoView(b);this.active=b.first();e=this.active.children("a").addClass("ui-state-focus");this.options.role&&
this.element.attr("aria-activedescendant",e.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);e=b.children(".ui-menu");e.length&&/^mouse/.test(a.type)&&this._startOpening(e);this.activeMenu=b.parent();this._trigger("focus",a,{item:b})},_scrollIntoView:function(c){var b,e,f,g,h,j;this._hasScroll()&&(b=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||
0,e=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,f=c.offset().top-this.activeMenu.offset().top-b-e,g=this.activeMenu.scrollTop(),h=this.activeMenu.height(),j=c.height(),0>f?this.activeMenu.scrollTop(g+f):f+j>h&&this.activeMenu.scrollTop(g+f-h+j))},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(c){var b=a.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(c.parents(".ui-menu")).hide().attr("aria-hidden","true");c.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(b)},collapseAll:function(c,b){clearTimeout(this.timer);this.timer=this._delay(function(){var e=b?this.element:a(c&&c.target).closest(this.element.find(".ui-menu"));
e.length||(e=this.element);this._close(e);this.blur(c);this.activeMenu=e},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,e){var f;this.active&&("first"===a||"last"===a?f=this.active["first"===a?"prevAll":"nextAll"](".ui-menu-item").eq(-1):f=this.active[a+
"All"](".ui-menu-item").eq(0));if(!f||!f.length||!this.active)f=this.activeMenu.children(".ui-menu-item")[b]();this.focus(e,f)},nextPage:function(c){var b,e,f;this.active?this.isLastItem()||(this._hasScroll()?(e=this.active.offset().top,f=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return b=a(this),0>b.offset().top-e-f}),this.focus(c,b)):this.focus(c,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())):this.next(c)},previousPage:function(c){var b,
e,f;this.active?this.isFirstItem()||(this._hasScroll()?(e=this.active.offset().top,f=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return b=a(this),0<b.offset().top-e+f}),this.focus(c,b)):this.focus(c,this.activeMenu.children(".ui-menu-item").first())):this.next(c)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(c){this.active=this.active||a(c.target).closest(".ui-menu-item");var b={item:this.active};this.active.has(".ui-menu").length||
this.collapseAll(c,!0);this._trigger("select",c,b)}})})(jQuery)}catch(e$$65){System.out.println("coremenu failed to load jQuery.ui.menu -- jQuery version conflict?")}(function(){Jmol.$after("head",'<style>  .jmolPopupMenu{font-family:Arial,sans-serif;font-size:11px;position:absolute;z-index:10000}  .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}  .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:">"}  .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)}\t</style>')})(jQuery);
Jmol.Menu={_menuCounter:0};
(function(a){a._getID=function(b,c){return b._id+"_"+c+"_"+ ++a._menuCounter};a.PopupMenu=function(b,c){this.applet=b;this.id=a._getID(b,c+"_top");this.name=c;this.items=[];this.tainted=this.enabled=!0;this.applet=b;b._popups||(b._popups={});b._popups[c]=this;Jmol.$after("body",'<ul id="'+this.id+'" class="jmolPopupMenu"></ul>');this.setContainer(Jmol.$("#"+this.id))};a.PopupMenu.prototype.dispose=function(){this.hide();delete this.applet._popups[this.name]};a.PopupMenu.prototype.hide=function(){this.visible&&
(this.container.unbind("clickoutjsmol"),this.dragBind(!1),this.container.hide(),this.visible=this.isDragging=!1)};a.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 c=this;this.container.bind("clickoutjsmol",function(){100<
System.currentTimeMillis()-c.timestamp&&c.hide()});this.container.bind("contextmenu",function(){return!1})};Jmol._setDraggable(a.PopupMenu);a.SubMenu=function(b,c){this.applet=b.applet;this.text=c;this.enabled=!0;this.id=a._getID(b.applet,b.name+"m");this.popupMenu=b;this.isMenu=!0;this.items=[]};a.MenuItem=function(b,c,d,e){this.applet=b.applet;this.text=c;this.enabled=!0;this.id=a._getID(b.applet,b.name+(d?"cb":e?"rb":"i"));this.popupMenu=b;this.isCheckBox=d;this.isRadio=e};a.ButtonGroup=function(b){this.id=
a._getID(b.applet,b.name+"bg");this.add=function(a){a.htmlName=this.id}};a.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>"}};a.setMenuProto=function(b){a.setItemProto(b);b.add=function(a){this.items.push(a);a.parent=this};
b.removeAll=function(a){if(0==a)this.items=[];else{for(var b=[],e=0;e<a;e++){var f=this.items[e];b.push(f);f.parent=this}this.items=b}};b.setAutoscrolls=function(){};b.getComponents=function(){return this.items};b.getItemCount=function(){return this.items.length};b.html=function(){for(var a=this.text?this.text:this.icon?'<img src="'+this.applet._j2sPath+"/"+this.icon+'" style="max-height: 20px;" />':null,b=a?"<li><a>"+a+'</a><ul id="'+this.id+'" class="'+(this.enabled?"":"ui-state-disabled")+'">':
"",e=0;e<this.items.length;e++)this.items[e].html&&(b+=this.items[e].html());a&&(b+="</ul></li>");return b};b.bindActionCommands=function(){for(var a=0;a<this.items.length;a++)this.items[a].bindActionCommands&&this.items[a].bindActionCommands()}};a.setMenuProto(a.PopupMenu.prototype);a.setMenuProto(a.SubMenu.prototype);a.setItemProto(a.MenuItem.prototype);a.hidePopups=function(a){for(var c in a)a[c].hide()}})(Jmol.Menu,jQuery);Clazz.declarePackage("J.api");Clazz.declareInterface(J.api,"JmolPopupInterface");
Clazz.declarePackage("J.popup");Clazz.declareInterface(J.popup,"JmolAbstractMenu");Clazz.declarePackage("J.popup");
Clazz.load(["J.api.JmolPopupInterface","J.popup.JmolAbstractMenu","java.util.Hashtable","$.Properties","JU.List"],"J.popup.GenericPopup","java.lang.Boolean $.Long java.util.StringTokenizer JU.SB J.i18n.GT J.popup.MainPopupResourceBundle J.util.Elements $.Escape $.Logger $.Parser $.Txt J.viewer.JC".split(" "),function(){c$=Clazz.decorateAsClass(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;Clazz.instantialize(this,arguments)},J.popup,
"GenericPopup",null,[J.api.JmolPopupInterface,J.popup.JmolAbstractMenu]);Clazz.prepareFields(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});Clazz.makeConstructor(c$,function(){});Clazz.overrideMethod(c$,"jpiDispose",function(){this.menuClearListeners(this.popupMenu);this.menuClearListeners(this.frankPopup);this.popupMenu=this.frankPopup=this.thisPopup=null});Clazz.overrideMethod(c$,"jpiGetMenuAsObject",function(){return this.popupMenu});Clazz.overrideMethod(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");Clazz.overrideMethod(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");Clazz.overrideMethod(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())});$_M(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");$_M(c$,"getImageIcon",function(){return null},"~S");$_M(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");$_M(c$,"checkBoxStateChanged",function(a){this.restorePopupMenu();this.menuSetCheckBoxValue(a);a=this.menuGetId(a);null!=a&&(this.currentMenuItemId=a)},"~O");c$.addItemText=$_M(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");$_M(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 J.util.Txt.simpleReplace(b,"[]",a)}0<=b.indexOf("?FILEROOT?")?
b=J.util.Txt.simpleReplace(b,"FILEROOT?",this.modelSetRoot):0<=b.indexOf("?FILE?")?b=J.util.Txt.simpleReplace(b,"FILE?",this.modelSetFileName):0<=b.indexOf("?PdbId?")&&(b=J.util.Txt.simpleReplace(b,"PdbId?","=xxxx"));return b},"~S,~S");$_M(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(!Clazz.exceptionOf(d,NullPointerException))throw d;}},"J.viewer.Viewer,J.popup.PopupResource,~S");$_M(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}});$_M(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=$_M(c$,"checkBoolean",($fz=function(a,b){return null!=a&&a.get(b)===Boolean.TRUE},$fz.isPrivate=!0,$fz),"java.util.Map,~S");$_M(c$,"getViewerData",($fz=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")},$fz.isPrivate=!0,
$fz));$_M(c$,"updateFileTypeDependentMenus",($fz=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)},$fz.isPrivate=!0,$fz));$_M(c$,"addMenuItems",($fz=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)}}}},$fz.isPrivate=!0,$fz),"~S,~S,~O,J.popup.PopupResource");$_M(c$,"checkKey",($fz=function(a){return 0>
a.indexOf("JAVA")&&!(a.indexOf("NOGL")&&this.viewer.isWebGL)},$fz.isPrivate=!0,$fz),"~S");$_M(c$,"rememberCheckbox",($fz=function(a,b){this.htCheckbox.put(a+"::"+this.htCheckbox.size(),b)},$fz.isPrivate=!0,$fz),"~S,~O");$_M(c$,"checkForCheckBoxScript",($fz=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=J.util.Txt.simpleReplace(b,"T/F",c?" TRUE":" FALSE")}}this.viewer.evalStringQuiet(b)},$fz.isPrivate=!0,$fz),"~O,~S,~B");Clazz.overrideMethod(c$,"checkMenuClick",function(a,b){this.checkMenuClickGP(a,b)},"~O,~S");$_M(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");$_M(c$,"addMenuItem",($fz=function(a,b){return this.menuCreateItem(a,b,"",null)},$fz.isPrivate=!0,$fz),"~O,~S");$_M(c$,"checkSpecialMenu",($fz=function(a,b,c){"aboutComputedMenu".equals(a)?this.aboutComputedMenuBaseCount=this.menuGetItemCount(b):"modelSetMenu".equals(a)&&(this.nullModelSetName=c,this.menuEnable(b,!1))},$fz.isPrivate=!0,$fz),"~S,~O,~S");$_M(c$,
"updateFileMenu",($fz=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._(b,this.modelSetFileName)),this.menuEnableItem(a,!0))}},$fz.isPrivate=!0,$fz));$_M(c$,"getMenuText",($fz=function(a){var b=this.menuText.getProperty(a);
return null==b?a:b},$fz.isPrivate=!0,$fz),"~S");$_M(c$,"updateSelectMenu",($fz=function(){var a=this.htMenus.get("selectMenuText");null!=a&&(this.menuEnable(a,0!=this.atomCount),this.menuSetLabel(a,J.i18n.GT._(this.getMenuText("selectMenuText"),this.viewer.getSelectionCount())))},$fz.isPrivate=!0,$fz));$_M(c$,"updateElementsComputedMenu",($fz=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)}},$fz.isPrivate=!0,$fz),"JU.BS");
$_M(c$,"updateSpectraMenu",($fz=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)}},$fz.isPrivate=!0,$fz));$_M(c$,"setSpectraMenu",($fz=
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=J.util.Parser.getQuotedAttribute(e,"title"),e=J.util.Parser.getQuotedAttribute(e,"atoms");null!=e&&this.menuCreateItem(a,f,"select visible & (@"+J.util.Txt.simpleReplace(e,","," or @")+")","Focus"+d)}this.menuEnable(a,!0);return!0},$fz.isPrivate=!0,$fz),"~O,JU.List");$_M(c$,"updateHeteroComputedMenu",($fz=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)}},$fz.isPrivate=!0,$fz),"java.util.Map");$_M(c$,"updateSurfMoComputedMenu",($fz=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._(d,"")),this.menuEnable(b,!1);else{this.menuSetLabel(b,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)}}}},$fz.isPrivate=!0,$fz),"java.util.Map");$_M(c$,"updateSceneComputedMenu",($fz=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)}}},$fz.isPrivate=!0,$fz));$_M(c$,"updatePDBComputedMenus",($fz=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)}}}}},$fz.isPrivate=!0,$fz));$_M(c$,"updateGroup3List",($fz=function(a,b){var c=0,d=this.group3Counts[Clazz.doubleToInt(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},$fz.isPrivate=!0,$fz),"~O,~S");$_M(c$,"augmentGroup3List",($fz=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[Clazz.doubleToInt(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},$fz.isPrivate=!0,$fz),"~O,~S,~B");$_M(c$,"updateSYMMETRYComputedMenus",($fz=function(){this.updateSYMMETRYSelectComputedMenu();this.updateSYMMETRYShowComputedMenu()},$fz.isPrivate=!0,$fz));$_M(c$,"updateSYMMETRYShowComputedMenu",($fz=
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)}}}},$fz.isPrivate=!0,$fz));$_M(c$,"updateSYMMETRYSelectComputedMenu",($fz=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)}}},$fz.isPrivate=!0,$fz));$_M(c$,"updateFRAMESbyModelComputedMenu",($fz=function(){var a=this.htMenus.get("FRAMESbyModelComputedMenu");if(null!=a&&(this.menuEnable(a,0<this.modelCount),this.menuSetLabel(a,0>this.modelIndex?J.i18n.GT._(this.getMenuText("allModelsText"),this.modelCount):this.getModelLabel()),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)}}},$fz.isPrivate=!0,$fz));$_M(c$,"updateConfigurationComputedMenu",($fz=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,J.i18n.GT._(this.getMenuText("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)}}},$fz.isPrivate=!0,$fz));$_M(c$,"updateModelSetComputedMenu",($fz=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=J.i18n.GT._(this.getMenuText("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,
J.i18n.GT._(this.getMenuText("atomsText"),this.atomCount));this.addMenuItem(a,J.i18n.GT._(this.getMenuText("bondsText"),this.viewer.getBondCountInModel(this.modelIndex)));if(this.isPDB){this.menuAddSeparator(a);this.addMenuItem(a,J.i18n.GT._(this.getMenuText("groupsText"),this.viewer.getGroupCountInModel(this.modelIndex)));this.addMenuItem(a,J.i18n.GT._(this.getMenuText("chainsText"),this.viewer.getChainCountInModel(this.modelIndex)));this.addMenuItem(a,J.i18n.GT._(this.getMenuText("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=J.i18n.GT._(this.getMenuText(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,J.i18n.GT._(this.getMenuText("viewMenuText"),this.modelSetFileName),"show url",null))}},$fz.isPrivate=!0,$fz));$_M(c$,"getModelLabel",($fz=function(){return J.i18n.GT._(this.getMenuText("modelMenuText"),
this.modelIndex+1+"/"+this.modelCount)},$fz.isPrivate=!0,$fz));$_M(c$,"updateAboutSubmenu",($fz=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.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())}},$fz.isPrivate=!0,$fz));$_M(c$,"updateLanguageSubmenu",($fz=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)}}},$fz.isPrivate=!0,$fz));$_M(c$,"convertToMegabytes",($fz=function(a){9223372036854251E3>=a&&(a+=524288);return Clazz.doubleToInt(a/1048576)},$fz.isPrivate=!0,$fz),"~N");$_M(c$,"updateForShow",($fz=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))}},$fz.isPrivate=!0,$fz));$_M(c$,"setFrankMenu",($fz=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}},
$fz.isPrivate=!0,$fz),"~S");$_M(c$,"show",($fz=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)},$fz.isPrivate=!0,$fz),"~N,~N,~B");$_M(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");Clazz.defineStatics(c$,"dumpList",!1,"UPDATE_NEVER",
-1,"UPDATE_ALL",0,"UPDATE_CONFIG",1,"UPDATE_SHOW",2,"MENUITEM_HEIGHT",20)});Clazz.declarePackage("J.awtjs2d");
Clazz.load(["J.popup.GenericPopup"],"J.awtjs2d.JSPopup",null,function(){c$=Clazz.declareType(J.awtjs2d,"JSPopup",J.popup.GenericPopup);Clazz.makeConstructor(c$,function(){Clazz.superConstructor(this,J.awtjs2d.JSPopup,[])});$_M(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");$_M(c$,"newMenuItem",($fz=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},$fz.isPrivate=!0,$fz),"~O,~O,~S,~S,~S");Clazz.overrideMethod(c$,"menuAddButtonGroup",function(a){null==this.buttonGroup&&(this.buttonGroup=new Jmol.Menu.ButtonGroup(this.thisPopup));this.buttonGroup.add(a)},"~O");Clazz.overrideMethod(c$,"menuAddItem",function(a,b){a.add(b);this.thisPopup.tainted=!0},"~O,~O");Clazz.overrideMethod(c$,"menuAddSeparator",function(a){a.add(new Jmol.Menu.MenuItem(this.thisPopup,
null,!1,!1));this.thisPopup.tainted=!0},"~O");Clazz.overrideMethod(c$,"menuAddSubMenu",function(a,b){this.menuAddItem(a,b)},"~O,~O");Clazz.overrideMethod(c$,"menuClearListeners",function(a){a.dispose()},"~O");Clazz.overrideMethod(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");Clazz.overrideMethod(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");Clazz.overrideMethod(c$,"menuCreatePopup",function(a){return new Jmol.Menu.PopupMenu(this.viewer.applet,a)},"~S");Clazz.overrideMethod(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");Clazz.overrideMethod(c$,"menuEnableItem",function(a,b){try{a.setEnabled(b)}catch(c){}this.thisPopup.tainted=
!0},"~O,~B");Clazz.overrideMethod(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");Clazz.overrideMethod(c$,"menuGetId",function(a){return a.getName()},"~O");Clazz.overrideMethod(c$,"menuGetItemCount",function(a){return a.getItemCount()},"~O");Clazz.overrideMethod(c$,"menuGetParent",function(a){return a.getParent()},"~O");Clazz.overrideMethod(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");Clazz.overrideMethod(c$,"menuInsertSubMenu",function(){},
"~O,~O,~N");Clazz.overrideMethod(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");Clazz.overrideMethod(c$,"menuRemoveAll",function(a,b){a.removeAll(b);this.thisPopup.tainted=!0},"~O,~N");Clazz.overrideMethod(c$,"menuSetAutoscrolls",function(a){a.setAutoscrolls(!0);this.thisPopup.tainted=!0},"~O");Clazz.overrideMethod(c$,"menuSetCheckBoxState",function(a,b){a.setSelected(b);this.thisPopup.tainted=
!0},"~O,~B");Clazz.overrideMethod(c$,"menuSetCheckBoxOption",function(){return null},"~O,~S,~S");Clazz.overrideMethod(c$,"menuSetCheckBoxValue",function(a){this.setCheckBoxValue(a,a.getActionCommand(),a.isSelected());this.thisPopup&&(this.thisPopup.tainted=!0)},"~O");Clazz.overrideMethod(c$,"menuSetLabel",function(a,b){a.setText(b);this.thisPopup.tainted=!0},"~O,~S");Clazz.overrideMethod(c$,"menuSetListeners",function(){});Clazz.overrideMethod(c$,"menuShowPopup",function(a,b,c){a.menuShowPopup(b,
c)},"~O,~N,~N");Clazz.overrideMethod(c$,"updateSpecialMenuItem",function(a){a.setText(this.getSpecialLabel(a.getName(),a.getText()))},"~O")});Clazz.declarePackage("J.awtjs2d");
Clazz.load(["J.awtjs2d.JSPopup"],"J.awtjs2d.JSmolPopup",["J.i18n.GT","J.popup.MainPopupResourceBundle"],function(){c$=Clazz.declareType(J.awtjs2d,"JSmolPopup",J.awtjs2d.JSPopup);Clazz.makeConstructor(c$,function(){Clazz.superConstructor(this,J.awtjs2d.JSmolPopup,[])});Clazz.overrideMethod(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)},
"J.api.PlatformViewer,~S")});Clazz.declarePackage("J.popup");
Clazz.load(null,"J.popup.PopupResource",["java.io.BufferedReader","$.StringReader","java.util.Properties","J.i18n.GT"],function(){c$=Clazz.decorateAsClass(function(){this.words=this.structure=null;Clazz.instantialize(this,arguments)},J.popup,"PopupResource");Clazz.makeConstructor(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");$_M(c$,"getMenuAsText",function(){return null},"~S");
$_M(c$,"getStructure",function(a){return this.structure.getProperty(a)},"~S");$_M(c$,"getWord",function(a){var b=this.words.getProperty(a);return null==b?a:b},"~S");$_M(c$,"setStructure",function(a){if(null!=a){a=new java.io.BufferedReader(new java.io.StringReader(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(!Clazz.exceptionOf(g,Exception))throw g;}try{a.close()}catch(h){if(!Clazz.exceptionOf(h,Exception))throw h;}}},"~S");$_M(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");$_M(c$,"localize",($fz=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)}},$fz.isPrivate=!0,$fz),"~B,java.util.Properties")});Clazz.declarePackage("J.popup");
Clazz.load(["J.popup.PopupResource"],"J.popup.MainPopupResourceBundle",["JU.SB","J.i18n.GT","J.util.Txt"],function(){c$=Clazz.declareType(J.popup,"MainPopupResourceBundle",J.popup.PopupResource);Clazz.overrideMethod(c$,"getMenuName",function(){return"popupMenu"});Clazz.overrideMethod(c$,"buildStructure",function(a){this.addItems(J.popup.MainPopupResourceBundle.menuContents);this.addItems(J.popup.MainPopupResourceBundle.structureContents);this.setStructure(a)},"~S");c$.Box=$_M(c$,"Box",($fz=function(a){return"if (showBoundBox or showUnitcell) {"+
a+"} else {boundbox on;"+a+";boundbox off}"},$fz.isPrivate=!0,$fz),"~S");Clazz.overrideMethod(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",J.util.Txt.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._("{0}% van der Waals","15"),"atom20",J.i18n.GT._("{0}% van der Waals","20"),"atom25",J.i18n.GT._("{0}% van der Waals","25"),"atom50",J.i18n.GT._("{0}% van der Waals","50"),"atom75",J.i18n.GT._("{0}% van der Waals","75"),"atom100",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._("{0} \u00c5","0.10"),"bond150",J.i18n.GT._("{0} \u00c5","0.15"),"bond200",J.i18n.GT._("{0} \u00c5","0.20"),"bond250",J.i18n.GT._("{0} \u00c5","0.25"),"bond300",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._("{0} \u00c5",
"0.10"),"hbond150",J.i18n.GT._("{0} \u00c5","0.15"),"hbond200",J.i18n.GT._("{0} \u00c5","0.20"),"hbond250",J.i18n.GT._("{0} \u00c5","0.25"),"hbond300",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._("{0} \u00c5","0.10"),"ssbond150",J.i18n.GT._("{0} \u00c5","0.15"),
"ssbond200",J.i18n.GT._("{0} \u00c5","0.20"),"ssbond250",J.i18n.GT._("{0} \u00c5","0.25"),"ssbond300",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._("{0} pixels","3"),"vector005",J.i18n.GT._("{0} \u00c5","0.05"),"vector01",J.i18n.GT._("{0} \u00c5","0.10"),"vectorScale02",J.i18n.GT._("Scale {0}","0.2"),"vectorScale05",J.i18n.GT._("Scale {0}",
"0.5"),"vectorScale1",J.i18n.GT._("Scale {0}","1"),"vectorScale2",J.i18n.GT._("Scale {0}","2"),"vectorScale5",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._("Export {0} image","JPG"),"SIGNEDNOGLwritePng",J.i18n.GT._("Export {0} image","PNG"),"SIGNEDNOGLwritePngJmol",J.i18n.GT._("Export {0} image","PNG+JMOL"),"SIGNEDJAVAwriteGif",J.i18n.GT._("Export {0} image",
"GIF"),"SIGNEDJAVAwritePovray",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._("Export {0} 3D model","VRML"),"SIGNEDJAVAwriteX3d",J.i18n.GT._("Export {0} 3D model","X3D"),"SIGNEDJAVAwriteIdtf",J.i18n.GT._("Export {0} 3D model","IDTF"),"SIGNEDJAVAwriteMaya",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._("Solvent Surface ({0}-Angstrom probe)","1.4"),"surfSolventAccessible14",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._("Reload {0}","(molecular)"),"FILEUNITone",J.i18n.GT._("Reload {0}","{1 1 1}"),"FILEUNITnine",J.i18n.GT._("Reload {0}","{444 666 1}"),"FILEUNITnineRestricted",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._("{0} px","1"),"3p",J.i18n.GT._("{0} px","3"),"5p",J.i18n.GT._("{0} px","5"),"10p",J.i18n.GT._("{0} px","10"),"byAngstromMenu",J.i18n.GT._("Angstrom Width"),"10a",J.i18n.GT._("{0} \u00c5",
"0.10"),"20a",J.i18n.GT._("{0} \u00c5","0.20"),"25a",J.i18n.GT._("{0} \u00c5","0.25"),"50a",J.i18n.GT._("{0} \u00c5","0.50"),"100a",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});Clazz.overrideMethod(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");$_M(c$,"dumpWords",($fz=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()},$fz.isPrivate=!0,$fz));$_M(c$,"dumpStructure",($fz=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()},$fz.isPrivate=!0,$fz),"~A");Clazz.defineStatics(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"]]});
