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