if(!jQuery.ui)try{(function(a,c){function b(b,c){var f,e,g,h=b.nodeName.toLowerCase();return"area"===h?(f=b.parentNode,e=f.name,!b.href||!e||"map"!==f.nodeName.toLowerCase()?!1:(g=a("img[usemap=#"+e+"]")[0],!!g&&d(g))):(/input|select|textarea|button|object/.test(h)?!b.disabled:"a"===h?b.href||c:c)&&d(b)}function d(b){return a.expr.filters.visible(b)&&!a(b).parents().andSelf().filter(function(){return"hidden"===a.css(this,"visibility")}).length}var e=0,f=/^ui-id-\d+$/;a.ui=a.ui||{};if(!a.ui.version){a.extend(a.ui,
{version:"1.9.2",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});a.fn.extend({_focus:a.fn.focus,focus:function(b,c){return"number"==typeof b?this.each(function(){var d=this;setTimeout(function(){a(d).focus();c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;
return a.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?b=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.css(this,"position"))&&/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0):b=this.parents().filter(function(){return/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!b.length?a(document):
b},zIndex:function(b){if(b!==c)return this.css("zIndex",b);if(this.length){b=a(this[0]);for(var d;b.length&&b[0]!==document;){d=b.css("position");if("absolute"===d||"relative"===d||"fixed"===d)if(d=parseInt(b.css("zIndex"),10),!isNaN(d)&&0!==d)return d;b=b.parent()}}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})},removeUniqueId:function(){return this.each(function(){f.test(this.id)&&a(this).removeAttr("id")})}});a.extend(a.expr[":"],{data:a.expr.createPseudo?
a.expr.createPseudo(function(b){return function(c){return!!a.data(c,b)}}):function(b,c,d){return!!a.data(b,d[3])},focusable:function(c){return b(c,!isNaN(a.attr(c,"tabindex")))},tabbable:function(c){var d=a.attr(c,"tabindex"),f=isNaN(d);return(f||0<=d)&&b(c,!f)}});a(function(){var b=document.body,c=b.appendChild(c=document.createElement("div"));c.offsetHeight;a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=100===c.offsetHeight;a.support.selectstart=
"onselectstart"in c;b.removeChild(c).style.display="none"});a("<a>").outerWidth(1).jquery||a.each(["Width","Height"],function(b,d){function f(b,c,d,g){return a.each(e,function(){c-=parseFloat(a.css(b,"padding"+this))||0;d&&(c-=parseFloat(a.css(b,"border"+this+"Width"))||0);g&&(c-=parseFloat(a.css(b,"margin"+this))||0)}),c}var e="Width"===d?["Left","Right"]:["Top","Bottom"],g=d.toLowerCase(),h={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};
a.fn["inner"+d]=function(b){return b===c?h["inner"+d].call(this):this.each(function(){a(this).css(g,f(this,b)+"px")})};a.fn["outer"+d]=function(b,c){return"number"!=typeof b?h["outer"+d].call(this,b):this.each(function(){a(this).css(g,f(this,b,!0,c)+"px")})}});if(a("<a>").data("a-b","a").removeData("a-b").data("a-b")){var g=a.fn.removeData;a.fn.removeData=function(b){return arguments.length?g.call(this,a.camelCase(b)):g.call(this)}}var h=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];
a.ui.ie=h.length?!0:!1;a.ui.ie6=6===parseFloat(h[1],10);a.fn.extend({disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.extend(a.ui,{plugin:{add:function(b,c,d){var f;b=a.ui[b].prototype;for(f in d)b.plugins[f]=b.plugins[f]||[],b.plugins[f].push([c,d[f]])},call:function(a,b,c){var d=a.plugins[b];if(d&&a.element[0].parentNode&&
11!==a.element[0].parentNode.nodeType)for(b=0;b<d.length;b++)a.options[d[b][0]]&&d[b][1].apply(a.element,c)}},contains:a.contains,hasScroll:function(b,c){if("hidden"===a(b).css("overflow"))return!1;var d=c&&"left"===c?"scrollLeft":"scrollTop";return 0<b[d]?!0:(b[d]=1,b[d]=0,!1)},isOverAxis:function(a,b,c){return a>b&&a<b+c},isOver:function(b,c,d,f,e,g){return a.ui.isOverAxis(b,d,e)&&a.ui.isOverAxis(c,f,g)}})}})(jQuery)}catch(e$$16){System.out.println("coremenu failed to load jQuery.ui.core -- jQuery version conflict?")}
if(!jQuery.ui.widget)try{(function(a,c){var b=0,d=Array.prototype.slice,e=a.cleanData;a.cleanData=function(b){for(var c=0,d;null!=(d=b[c]);c++)try{a(d).triggerHandler("remove")}catch(j){}e(b)};a.widget=function(b,c,d){var e,k,l,m,q=b.split(".")[0];b=b.split(".")[1];e=q+"-"+b;d||(d=c,c=a.Widget);a.expr[":"][e.toLowerCase()]=function(b){return!!a.data(b,e)};a[q]=a[q]||{};k=a[q][b];l=a[q][b]=function(a,b){if(!this._createWidget)return new l(a,b);arguments.length&&this._createWidget(a,b)};a.extend(l,
k,{version:d.version,_proto:a.extend({},d),_childConstructors:[]});m=new c;m.options=a.widget.extend({},m.options);a.each(d,function(b,f){if(a.isFunction(f)){var e=function(){return c.prototype[b].apply(this,arguments)},j=function(a){return c.prototype[b].apply(this,a)};d[b]=function(){var a=this._super,b=this._superApply,c;return this._super=e,this._superApply=j,c=f.apply(this,arguments),this._super=a,this._superApply=b,c}}});l.prototype=a.widget.extend(m,{widgetEventPrefix:k?m.widgetEventPrefix:
b},d,{constructor:l,namespace:q,widgetName:b,widgetBaseClass:e,widgetFullName:e});k?(a.each(k._childConstructors,function(b,c){var d=c.prototype;a.widget(d.namespace+"."+d.widgetName,l,c._proto)}),delete k._childConstructors):c._childConstructors.push(l);a.widget.bridge(b,l)};a.widget.extend=function(b){for(var e=d.call(arguments,1),h=0,j=e.length,k,l;h<j;h++)for(k in e[h])l=e[h][k],e[h].hasOwnProperty(k)&&l!==c&&(a.isPlainObject(l)?b[k]=a.isPlainObject(b[k])?a.widget.extend({},b[k],l):a.widget.extend({},
l):b[k]=l);return b};a.widget.bridge=function(b,e){var h=e.prototype.widgetFullName||b;a.fn[b]=function(j){var k="string"==typeof j,l=d.call(arguments,1),m=this;return j=!k&&l.length?a.widget.extend.apply(null,[j].concat(l)):j,k?this.each(function(){var d,e=a.data(this,h);if(!e)return a.error("cannot call methods on "+b+" prior to initialization; attempted to call method '"+j+"'");if(!a.isFunction(e[j])||"_"===j.charAt(0))return a.error("no such method '"+j+"' for "+b+" widget instance");d=e[j].apply(e,
l);if(d!==e&&d!==c)return m=d&&d.jquery?m.pushStack(d.get()):d,!1}):this.each(function(){var b=a.data(this,h);b?b.option(j||{})._init():a.data(this,h,new e(j,this))}),m}};a.Widget=function(){};a.Widget._childConstructors=[];a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(c,d){d=a(d||this.defaultElement||this)[0];this.element=a(d);this.uuid=b++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=
a.widget.extend({},this.options,this._getCreateOptions(),c);this.bindings=a();this.hoverable=a();this.focusable=a();d!==this&&(a.data(d,this.widgetName,this),a.data(d,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target===d&&this.destroy()}}),this.document=a(d.style?d.ownerDocument:d.document||d),this.window=a(this.document[0].defaultView||this.document[0].parentWindow));this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:a.noop,
_getCreateEventData:a.noop,_create:a.noop,_init:a.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(a.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},
_destroy:a.noop,widget:function(){return this.element},option:function(b,d){var e=b,j,k,l;if(0===arguments.length)return a.widget.extend({},this.options);if("string"==typeof b)if(e={},j=b.split("."),b=j.shift(),j.length){k=e[b]=a.widget.extend({},this.options[b]);for(l=0;l<j.length-1;l++)k[j[l]]=k[j[l]]||{},k=k[j[l]];b=j.pop();if(d===c)return k[b]===c?null:k[b];k[b]=d}else{if(d===c)return this.options[b]===c?null:this.options[b];e[b]=d}return this._setOptions(e),this},_setOptions:function(a){for(var b in a)this._setOption(b,
a[b]);return this},_setOption:function(a,b){return this.options[a]=b,"disabled"===a&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!b).attr("aria-disabled",b),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(b,c,d){var e,k=this;"boolean"!=typeof b&&(d=c,c=b,b=!1);d?(c=e=a(c),this.bindings=this.bindings.add(c)):
(d=c,c=this.element,e=this.widget());a.each(d,function(d,h){function q(){if(b||!(!0===k.options.disabled||a(this).hasClass("ui-state-disabled")))return("string"==typeof h?k[h]:h).apply(k,arguments)}"string"!=typeof h&&(q.guid=h.guid=h.guid||q.guid||a.guid++);var p=d.match(/^(\w+)\s*(.*)$/),r=p[1]+k.eventNamespace;(p=p[2])?e.delegate(p,r,q):c.bind(r,q)})},_off:function(a,b){b=(b||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;a.unbind(b).undelegate(b)},_delay:function(a,b){var c=
this;return setTimeout(function(){return("string"==typeof a?c[a]:a).apply(c,arguments)},b||0)},_hoverable:function(b){this.hoverable=this.hoverable.add(b);this._on(b,{mouseenter:function(b){a(b.currentTarget).addClass("ui-state-hover")},mouseleave:function(b){a(b.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(b){this.focusable=this.focusable.add(b);this._on(b,{focusin:function(b){a(b.currentTarget).addClass("ui-state-focus")},focusout:function(b){a(b.currentTarget).removeClass("ui-state-focus")}})},
_trigger:function(b,c,d){var e,k=this.options[b];d=d||{};c=a.Event(c);c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();c.target=this.element[0];if(b=c.originalEvent)for(e in b)e in c||(c[e]=b[e]);return this.element.trigger(c,d),!(a.isFunction(k)&&!1===k.apply(this.element[0],[c].concat(d))||c.isDefaultPrevented())}};a.each({show:"fadeIn",hide:"fadeOut"},function(b,c){a.Widget.prototype["_"+b]=function(d,e,k){"string"==typeof e&&(e={effect:e});var l,m=e?!0===e||"number"==
typeof e?c:e.effect||c:b;e=e||{};"number"==typeof e&&(e={duration:e});l=!a.isEmptyObject(e);e.complete=k;e.delay&&d.delay(e.delay);l&&a.effects&&(a.effects.effect[m]||!1!==a.uiBackCompat&&a.effects[m])?d[b](e):m!==b&&d[m]?d[m](e.duration,e.easing,k):d.queue(function(c){a(this)[b]();k&&k.call(d[0]);c()})}});!1!==a.uiBackCompat&&(a.Widget.prototype._getCreateOptions=function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]})})(jQuery)}catch(e$$26){System.out.println("coremenu failed to load jQuery.ui.widget -- jQuery version conflict?")}
if(!jQuery.ui.mouse)try{(function(a){var c=!1;a(document).mouseup(function(){c=!1});a.widget("ui.mouse",{version:"1.9.2",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)}).bind("click."+this.widgetName,function(c){if(!0===a.data(c.target,b.widgetName+".preventClickEvent"))return a.removeData(c.target,b.widgetName+".preventClickEvent"),c.stopImmediatePropagation(),
!1});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);this._mouseMoveDelegate&&a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(b){if(!c){this._mouseStarted&&this._mouseUp(b);this._mouseDownEvent=b;var d=this,e=1===b.which,f="string"==typeof this.options.cancel&&b.target.nodeName?a(b.target).closest(this.options.cancel).length:!1;if(!e||f||!this._mouseCapture(b))return!0;
(this.mouseDelayMet=!this.options.delay)||(this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=!0},this.options.delay));return this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=!1!==this._mouseStart(b),!this._mouseStarted)?(b.preventDefault(),!0):(!0===a.data(b.target,this.widgetName+".preventClickEvent")&&a.removeData(b.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(a){return d._mouseMove(a)},this._mouseUpDelegate=function(a){return d._mouseUp(a)},
a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),b.preventDefault(),c=!0,!0)}},_mouseMove:function(b){return!a.ui.ie||9<=document.documentMode||b.button?this._mouseStarted?(this._mouseDrag(b),b.preventDefault()):(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,b),this._mouseStarted?this._mouseDrag(b):this._mouseUp(b)),!this._mouseStarted):this._mouseUp(b)},
_mouseUp:function(b){return a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,b.target===this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(b)),!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},
_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(jQuery)}catch(e$$38){System.out.println("coremenu failed to load jQuery.ui.mouse -- jQuery version conflict?")}
if(!jQuery.ui.position)try{(function(a,c){function b(a,b,c){return[parseInt(a[0],10)*(m.test(a[0])?b/100:1),parseInt(a[1],10)*(m.test(a[1])?c/100:1)]}a.ui=a.ui||{};var d,e=Math.max,f=Math.abs,g=Math.round,h=/left|center|right/,j=/top|center|bottom/,k=/[\+\-]\d+%?/,l=/^\w+/,m=/%$/,q=a.fn.position;a.position={scrollbarWidth:function(){if(d!==c)return d;var b,e,f=a("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),g=f.children()[0];
return a("body").append(f),b=g.offsetWidth,f.css("overflow","scroll"),e=g.offsetWidth,b===e&&(e=f[0].clientWidth),f.remove(),d=b-e},getScrollInfo:function(b){var c=b.isWindow?"":b.element.css("overflow-x"),d=b.isWindow?"":b.element.css("overflow-y"),d="scroll"===d||"auto"===d&&b.height<b.element[0].scrollHeight;return{width:"scroll"===c||"auto"===c&&b.width<b.element[0].scrollWidth?a.position.scrollbarWidth():0,height:d?a.position.scrollbarWidth():0}},getWithinInfo:function(b){b=a(b||window);var c=
a.isWindow(b[0]);return{element:b,isWindow:c,offset:b.offset()||{left:0,top:0},scrollLeft:b.scrollLeft(),scrollTop:b.scrollTop(),width:c?b.width():b.outerWidth(),height:c?b.height():b.outerHeight()}}};a.fn.position=function(c){if(!c||!c.of)return q.apply(this,arguments);c=a.extend({},c);var d,u,v,y,s,w=a(c.of),m=a.position.getWithinInfo(c.within),E=a.position.getScrollInfo(m),t=w[0],p=(c.collision||"flip").split(" "),r={};return 9===t.nodeType?(u=w.width(),v=w.height(),y={top:0,left:0}):a.isWindow(t)?
(u=w.width(),v=w.height(),y={top:w.scrollTop(),left:w.scrollLeft()}):t.preventDefault?(c.at="left top",u=v=0,y={top:t.pageY,left:t.pageX}):(u=w.outerWidth(),v=w.outerHeight(),y=w.offset()),s=a.extend({},y),a.each(["my","at"],function(){var a=(c[this]||"").split(" "),b,d;1===a.length&&(a=h.test(a[0])?a.concat(["center"]):j.test(a[0])?["center"].concat(a):["center","center"]);a[0]=h.test(a[0])?a[0]:"center";a[1]=j.test(a[1])?a[1]:"center";b=k.exec(a[0]);d=k.exec(a[1]);r[this]=[b?b[0]:0,d?d[0]:0];c[this]=
[l.exec(a[0])[0],l.exec(a[1])[0]]}),1===p.length&&(p[1]=p[0]),"right"===c.at[0]?s.left+=u:"center"===c.at[0]&&(s.left+=u/2),"bottom"===c.at[1]?s.top+=v:"center"===c.at[1]&&(s.top+=v/2),d=b(r.at,u,v),s.left+=d[0],s.top+=d[1],this.each(function(){var h,j,k=a(this),l=k.outerWidth(),t=k.outerHeight(),q=parseInt(a.css(this,"marginLeft"),10)||0,x=parseInt(a.css(this,"marginTop"),10)||0,z=l+q+(parseInt(a.css(this,"marginRight"),10)||0)+E.width,A=t+x+(parseInt(a.css(this,"marginBottom"),10)||0)+E.height,
n=a.extend({},s),B=b(r.my,k.outerWidth(),k.outerHeight());"right"===c.my[0]?n.left-=l:"center"===c.my[0]&&(n.left-=l/2);"bottom"===c.my[1]?n.top-=t:"center"===c.my[1]&&(n.top-=t/2);n.left+=B[0];n.top+=B[1];a.support.offsetFractions||(n.left=g(n.left),n.top=g(n.top));h={marginLeft:q,marginTop:x};a.each(["left","top"],function(b,e){a.ui.position[p[b]]&&a.ui.position[p[b]][e](n,{targetWidth:u,targetHeight:v,elemWidth:l,elemHeight:t,collisionPosition:h,collisionWidth:z,collisionHeight:A,offset:[d[0]+
B[0],d[1]+B[1]],my:c.my,at:c.at,within:m,elem:k})});a.fn.bgiframe&&k.bgiframe();c.using&&(j=function(a){var b=y.left-n.left,d=b+u-l,g=y.top-n.top,h=g+v-t,j={target:{element:w,left:y.left,top:y.top,width:u,height:v},element:{element:k,left:n.left,top:n.top,width:l,height:t},horizontal:0>d?"left":0<b?"right":"center",vertical:0>h?"top":0<g?"bottom":"middle"};u<l&&f(b+d)<u&&(j.horizontal="center");v<t&&f(g+h)<v&&(j.vertical="middle");e(f(b),f(d))>e(f(g),f(h))?j.important="horizontal":j.important="vertical";
c.using.call(this,a,j)});k.offset(a.extend(n,{using:j}))})};a.ui.position={fit:{left:function(a,b){var c=b.within,d=c.isWindow?c.scrollLeft:c.offset.left,c=c.width,f=a.left-b.collisionPosition.marginLeft,g=d-f,h=f+b.collisionWidth-c-d,j;b.collisionWidth>c?0<g&&0>=h?(j=a.left+g+b.collisionWidth-c-d,a.left+=g-j):0<h&&0>=g?a.left=d:g>h?a.left=d+c-b.collisionWidth:a.left=d:0<g?a.left+=g:0<h?a.left-=h:a.left=e(a.left-f,a.left)},top:function(a,b){var c=b.within,c=c.isWindow?c.scrollTop:c.offset.top,d=b.within.height,
f=a.top-b.collisionPosition.marginTop,g=c-f,h=f+b.collisionHeight-d-c,j;b.collisionHeight>d?0<g&&0>=h?(j=a.top+g+b.collisionHeight-d-c,a.top+=g-j):0<h&&0>=g?a.top=c:g>h?a.top=c+d-b.collisionHeight:a.top=c:0<g?a.top+=g:0<h?a.top-=h:a.top=e(a.top-f,a.top)}},flip:{left:function(a,b){var c=b.within,d=c.offset.left+c.scrollLeft,e=c.width,g=c.isWindow?c.scrollLeft:c.offset.left,h=a.left-b.collisionPosition.marginLeft,c=h-g,j=h+b.collisionWidth-e-g,h="left"===b.my[0]?-b.elemWidth:"right"===b.my[0]?b.elemWidth:
0,k="left"===b.at[0]?b.targetWidth:"right"===b.at[0]?-b.targetWidth:0,l=-2*b.offset[0];if(0>c){if(d=a.left+h+k+l+b.collisionWidth-e-d,0>d||d<f(c))a.left+=h+k+l}else if(0<j&&(d=a.left-b.collisionPosition.marginLeft+h+k+l-g,0<d||f(d)<j))a.left+=h+k+l},top:function(a,b){var c=b.within,d=c.offset.top+c.scrollTop,e=c.height,c=c.isWindow?c.scrollTop:c.offset.top,g=a.top-b.collisionPosition.marginTop,h=g-c,g=g+b.collisionHeight-e-c,j="top"===b.my[1]?-b.elemHeight:"bottom"===b.my[1]?b.elemHeight:0,k="top"===
b.at[1]?b.targetHeight:"bottom"===b.at[1]?-b.targetHeight:0,l=-2*b.offset[1],m,p;0>h?(p=a.top+j+k+l+b.collisionHeight-e-d,a.top+j+k+l>h&&(0>p||p<f(h))&&(a.top+=j+k+l)):0<g&&(m=a.top-b.collisionPosition.marginTop+j+k+l-c,a.top+j+k+l>g&&(0<m||f(m)<g)&&(a.top+=j+k+l))}},flipfit:{left:function(){a.ui.position.flip.left.apply(this,arguments);a.ui.position.fit.left.apply(this,arguments)},top:function(){a.ui.position.flip.top.apply(this,arguments);a.ui.position.fit.top.apply(this,arguments)}}};var p,r,x,
z,A=document.getElementsByTagName("body")[0];x=document.createElement("div");p=document.createElement(A?"div":"body");r={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};A&&a.extend(r,{position:"absolute",left:"-1000px",top:"-1000px"});for(z in r)p.style[z]=r[z];p.appendChild(x);r=A||document.documentElement;r.insertBefore(p,r.firstChild);x.style.cssText="position: absolute; left: 10.7432222px;";x=a(x).offset().left;a.support.offsetFractions=10<x&&11>x;p.innerHTML="";r.removeChild(p);
if(!1!==a.uiBackCompat){var C=jQuery,D=C.fn.position;C.fn.position=function(a){if(!a||!a.offset)return D.call(this,a);var b=a.offset.split(" "),d=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===d.length&&(/left|center|right/.test(d[0])?d[1]="center":(d[1]=d[0],d[0]="center")),D.call(this,C.extend(a,{at:d[0]+b[0]+" "+d[1]+b[1],offset:c}))}}})(jQuery)}catch(e$$48){System.out.println("coremenu failed to load jQuery.ui.position -- jQuery version conflict?")}
if(!jQuery.ui.menu)try{(function(a){var c=!1;a.widget("ui.menu",{version:"1.9.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+
this.eventNamespace,a.proxy(function(a){this.options.disabled&&a.preventDefault()},this));this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true");this._on({"mousedown .ui-menu-item > a":function(a){a.preventDefault()},"click .ui-state-disabled > a":function(a){a.preventDefault()},"click .ui-menu-item:has(a)":function(b){var d=a(b.target).closest(".ui-menu-item");!c&&d.not(".ui-state-disabled").length&&(c=!0,this.select(b),d.has(".ui-menu").length?this.expand(b):
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(b){var c=a(b.currentTarget);c.siblings().children(".ui-state-active").removeClass("ui-state-active");this.focus(b,c)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(a,c){var e=this.active||this.element.children(".ui-menu-item").eq(0);c||this.focus(a,e)},blur:function(b){this._delay(function(){a.contains(this.element[0],
this.document[0].activeElement)||this.collapseAll(b)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(b){a(b.target).closest(".ui-menu").length||this.collapseAll(b);c=!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 b=a(this);b.data("ui-menu-submenu-carat")&&b.remove()});this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(b){function c(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,
"\\$&")}var e,f,g,h,j=!0;switch(b.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(b);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(b);break;case a.ui.keyCode.HOME:this._move("first","first",b);break;case a.ui.keyCode.END:this._move("last","last",b);break;case a.ui.keyCode.UP:this.previous(b);break;case a.ui.keyCode.DOWN:this.next(b);break;case a.ui.keyCode.LEFT:this.collapse(b);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(b);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(b);
break;case a.ui.keyCode.ESCAPE:this.collapse(b);break;default:j=!1,e=this.previousFilter||"",f=String.fromCharCode(b.keyCode),g=!1,clearTimeout(this.filterTimer),f===e?g=!0:f=e+f,h=RegExp("^"+c(f),"i"),e=this.activeMenu.children(".ui-menu-item").filter(function(){return h.test(a(this).children("a").text())}),e=g&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e,e.length||(f=String.fromCharCode(b.keyCode),h=RegExp("^"+c(f),"i"),e=this.activeMenu.children(".ui-menu-item").filter(function(){return h.test(a(this).children("a").text())})),
e.length?(this.focus(b,e),1<e.length?(this.previousFilter=f,this.filterTimer=this._delay(function(){delete this.previousFilter},1E3)):delete this.previousFilter):delete this.previousFilter}j&&b.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 b,c=this.options.icons.submenu;b=this.element.find(this.options.menus);b.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 b=a(this),f=b.prev("a"),g=a("<span>").addClass("ui-menu-icon ui-icon "+c).data("ui-menu-submenu-carat",!0);f.attr("aria-haspopup","true").prepend(g);b.attr("aria-labelledby",f.attr("id"))});b=b.add(this.element);b.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()});b.children(":not(.ui-menu-item)").each(function(){var b=
a(this);/[^\-\u00e2\u20ac\u201d\u00e2\u20ac\u201c\s]/.test(b.text())||b.addClass("ui-widget-content ui-menu-divider")});b.children(".ui-state-disabled").attr("aria-disabled","true");this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},focus:function(a,c){var e;this.blur(a,a&&"focus"===a.type);this._scrollIntoView(c);this.active=c.first();e=this.active.children("a").addClass("ui-state-focus");this.options.role&&
this.element.attr("aria-activedescendant",e.attr("id"));this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active");a&&"keydown"===a.type?this._close():this.timer=this._delay(function(){this._close()},this.delay);e=c.children(".ui-menu");e.length&&/^mouse/.test(a.type)&&this._startOpening(e);this.activeMenu=c.parent();this._trigger("focus",a,{item:c})},_scrollIntoView:function(b){var c,e,f,g,h,j;this._hasScroll()&&(c=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||
0,e=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,f=b.offset().top-this.activeMenu.offset().top-c-e,g=this.activeMenu.scrollTop(),h=this.activeMenu.height(),j=b.height(),0>f?this.activeMenu.scrollTop(g+f):f+j>h&&this.activeMenu.scrollTop(g+f-h+j))},blur:function(a,c){c||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(b){var c=a.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(b.parents(".ui-menu")).hide().attr("aria-hidden","true");b.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(c)},collapseAll:function(b,c){clearTimeout(this.timer);this.timer=this._delay(function(){var e=c?this.element:a(b&&b.target).closest(this.element.find(".ui-menu"));
e.length||(e=this.element);this._close(e);this.blur(b);this.activeMenu=e},this.delay)},_close:function(a){a||(a=this.active?this.active.parent():this.element);a.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(a){var c=this.active&&this.active.parent().closest(".ui-menu-item",this.element);c&&c.length&&(this._close(),this.focus(a,c))},expand:function(a){var c=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();
c&&c.length&&(this._open(c.parent()),this._delay(function(){this.focus(a,c)}))},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,c,e){var f;this.active&&("first"===a||"last"===a?f=this.active["first"===a?"prevAll":"nextAll"](".ui-menu-item").eq(-1):f=this.active[a+
"All"](".ui-menu-item").eq(0));if(!f||!f.length||!this.active)f=this.activeMenu.children(".ui-menu-item")[c]();this.focus(e,f)},nextPage:function(b){var c,e,f;this.active?this.isLastItem()||(this._hasScroll()?(e=this.active.offset().top,f=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return c=a(this),0>c.offset().top-e-f}),this.focus(b,c)):this.focus(b,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())):this.next(b)},previousPage:function(b){var c,
e,f;this.active?this.isFirstItem()||(this._hasScroll()?(e=this.active.offset().top,f=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return c=a(this),0<c.offset().top-e+f}),this.focus(b,c)):this.focus(b,this.activeMenu.children(".ui-menu-item").first())):this.next(b)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(b){this.active=this.active||a(b.target).closest(".ui-menu-item");var c={item:this.active};this.active.has(".ui-menu").length||
this.collapseAll(b,!0);this._trigger("select",b,c)}})})(jQuery)}catch(e$$65){System.out.println("coremenu failed to load jQuery.ui.menu -- jQuery version conflict?")}(function(a){a("<style>\t.jmolPopupMenu { position: absolute;min-width: 200px;background-color: rgb(220, 220, 220); z-order:10000;\t font-family:Arial,sans-serif;font-size:8px;padding:2px;-webkit-box-shadow:1px 1px 5px rgba(50, 50, 50, 0.75);\t -moz-box-shadow:1px 1px 5px rgba(50, 50, 50, 0.75);box-shadow:1px 1px 5px rgba(50, 50, 50, 0.75);}\t.ui-menu .ui-menu-item {font-size:10px}\t.ui-state-disabled{cursor:default!important}\t.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}\t.ui-widget-overlay{position:absolute;top:0;left:0;width:100%;height:100%}\t.ui-menu{list-style:none;padding:2px;margin:0;display:block;outline:none}\t.ui-menu .ui-menu{margin-top:-3px;position:absolute}\t.ui-menu .ui-menu-item{min-width: 200px;width: 200px;cursor:pointer;margin:0;padding:0;zoom:1;width:100%}\t.ui-menu .ui-menu-divider{margin:5px -2px 5px -2px;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}\t.ui-menu .ui-menu-item a{text-decoration:none;display:block;padding:2px .4em;line-height:1.5;zoom:1;font-weight:normal}\t.ui-menu .ui-menu-item a.ui-state-focus,.ui-menu .ui-menu-item a.ui-state-active{font-weight:normal;margin:-1px}\t.ui-menu .ui-state-disabled{font-weight:normal;margin:.4em 0 .2em;line-height:1.5}\t.ui-menu .ui-state-disabled a{cursor:default}.ui-menu-icons{position:relative}\t.ui-menu-icons .ui-menu-item a{position:relative;padding-left:2em}\t.ui-menu .ui-icon{position:absolute;top:.2em;left:.2em}\t.ui-menu .ui-menu-icon{position:static;float:right}\t.ui-widget{font-family:Arial,sans-serif;font-size:1.1em}\t.ui-widget .ui-widget{font-size:1em}\t.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Arial,sans-serif;font-size:1em}\t.ui-widget-content{border:1px solid #a6c9e2;background:#fcfdfd bottom repeat-x;color:#222}\t.ui-widget-content a{color:#222}.ui-widget-header{border:1px solid #4297d7;background:#5c9ccc;color:#fff;font-weight:bold}.ui-widget-header a{color:#fff}\t.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #c5dbec;background:#dfeffc;font-weight:bold;color:#2e6e9e}\t.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#2e6e9e;text-decoration:none}\t.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #79b7e7;background:#d0e5f5;font-weight:bold;color:#1d5987}\t.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited{color:#1d5987;text-decoration:none}\t.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #79b7e7;background:#f5f8f9;font-weight:bold;color:#e17009}\t.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#e17009;text-decoration:none}\t.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fad42e;background:#fbec88;color:#363636}\t.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}\t.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#fef1ec;color:#cd0a0a}\t.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#cd0a0a}\t.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#cd0a0a}\t.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}\t.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}\t.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}\t.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}\t.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px;-khtml-border-top-left-radius:5px;border-top-left-radius:5px}\t.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{-moz-border-radius-topright:5px;-webkit-border-top-right-radius:5px;-khtml-border-top-right-radius:5px;border-top-right-radius:5px}\t.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{-moz-border-radius-bottomleft:5px;-webkit-border-bottom-left-radius:5px;-khtml-border-bottom-left-radius:5px;border-bottom-left-radius:5px}\t.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{-moz-border-radius-bottomright:5px;-webkit-border-bottom-right-radius:5px;-khtml-border-bottom-right-radius:5px;border-bottom-right-radius:5px}\t.ui-widget-overlay{background:#aaa;opacity:.3;filter:Alpha(Opacity=30)}\t.ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa;opacity:.3;filter:Alpha(Opacity=30);-moz-border-radius:8px;-khtml-border-radius:8px;-webkit-border-radius:8px;border-radius:8px}\t</style>").appendTo("head")})(jQuery);
Jmol.Menu={_menuCounter:0};
(function(a,c){a._getID=function(b,c){return b._id+"_"+c+"_"+ ++a._menuCounter};a.PopupMenu=function(b,d){this.applet=b;this.id=a._getID(b,d+"_top");this.name=d;this.items=[];this.tainted=this.enabled=!0;b._popups||(b._popups={});b._popups[d]=this;c("body").after('<ul id="'+this.id+'" class="jmolPopupMenu"></ul>');this.setContainer(c("#"+this.id))};a.PopupMenu.prototype.hide=function(){this.visible&&(this.container.unbind("clickoutjsmol"),this.dragBind(!1),this.container.hide(),this.visible=this.isDragging=
!1)};a.PopupMenu.prototype.menuShowPopup=function(){if(this.tainted){var a=this.html();this.container.html(a);this.tainted=!1;this.bindActionCommands()}this.setPosition();this.container.hide().menu().menu("refresh").show();this.visible=!0;this.timestamp=System.currentTimeMillis();this.container.unbind("clickoutjsmol");this.dragBind(!0);var c=this;this.container.bind("clickoutjsmol",function(){100<System.currentTimeMillis()-c.timestamp&&c.hide()});this.container.bind("contextmenu",function(){return!1})};
Jmol._setDraggable(a.PopupMenu);a.SubMenu=function(b,c){this.applet=b.applet;this.text=c;this.enabled=!0;this.id=a._getID(b.applet,b.name+"m");this.popupMenu=b;this.isMenu=!0;this.items=[]};a.MenuItem=function(b,c,e,f){this.applet=b.applet;this.text=c;this.enabled=!0;this.id=a._getID(b.applet,b.name+(e?"cb":f?"rb":"i"));this.popupMenu=b;this.isCheckBox=e;this.isRadio=f};a.ButtonGroup=function(b){this.id=a._getID(b.applet,b.name+"bg");this.add=function(a){a.htmlName=this.id}};a.setItemProto=function(a){a.setSelected=
function(a){this.selected=a};a.isSelected=function(){return this.selected};a.setName=function(a){this.name=a};a.getName=function(){return this.name};a.addActionListener=function(a){this.actionListener=a};a.addItemListener=function(a){this.itemListener=a};a.addMouseListener=function(a){this.mouseListener=a};a.bindActionCommands=function(){var a=this;c(document).off("click","#"+this.id);c(document).on("click","#"+this.id,function(){a.actionListener?(a.popupMenu.hide(),a.actionListener.checkMenuClick(a,
a.script)):a.itemListener&&(a.selected=a.isCheckBox?c("#"+a.id+"-cb").prop("checked"):!0,a.itemListener.checkBoxStateChanged(a))})};a.setEnabled=function(a){this.enabled=a};a.setIcon=function(a){this.icon=a};a.setText=function(a){this.text=a};a.setActionCommand=function(a){this.script=a};a.getActionCommand=function(){return this.script};a.html=function(){var a='<li id="'+this.id+'" class="'+(this.enabled?"":"ui-state-disabled")+'"><a href="#">';this.isCheckBox?a+='<label><input id="'+this.id+'-cb" type="checkbox" '+
(this.selected?"checked":"")+" />"+this.text+"</label>":this.isRadio?a+='<label><input id="'+this.id+'-rb" type="radio" name="'+this.htmlName+'" '+(this.selected?"checked":"")+" />"+this.text+"</label>":this.text?a+=this.text:this.icon||(a+="<hr>");return a+"</a></li>"}};a.setMenuProto=function(b){a.setItemProto(b);b.add=function(a){this.items.push(a);a.parent=this};b.removeAll=function(a){if(0==a)this.items=[];else{for(var b=[],c=0;c<a;c++){var g=this.items[c];b.push(g);g.parent=this}this.items=
b}};b.setAutoscrolls=function(){};b.getComponents=function(){return this.items};b.getItemCount=function(){return this.items.length};b.html=function(){for(var a=this.text?this.text:this.icon?'<img src="'+this.applet._j2sPath+"/"+this.icon+'" style="max-height: 20px;" />':null,b=a?"<li><a>"+a+'</a><ul id="'+this.id+'" class="'+(this.enabled?"":"ui-state-disabled")+'">':"",c=0;c<this.items.length;c++)this.items[c].html&&(b+=this.items[c].html());a&&(b+="</ul></li>");return b};b.bindActionCommands=function(){for(var a=
0;a<this.items.length;a++)this.items[a].bindActionCommands&&this.items[a].bindActionCommands()}};a.setMenuProto(a.PopupMenu.prototype);a.setMenuProto(a.SubMenu.prototype);a.setItemProto(a.MenuItem.prototype);a.hidePopups=function(a){for(var c in a)a[c].hide()}})(Jmol.Menu,jQuery);Clazz.declarePackage("J.api");Clazz.declareInterface(J.api,"JmolPopupInterface");Clazz.declarePackage("J.popup");Clazz.declareInterface(J.popup,"JmolAbstractMenu");Clazz.declarePackage("J.popup");
Clazz.load(["J.api.JmolPopupInterface","J.popup.JmolAbstractMenu","java.util.Hashtable","$.Properties","J.util.JmolList"],"J.popup.GenericPopup","java.lang.Boolean $.Long java.util.StringTokenizer J.i18n.GT J.popup.MainPopupResourceBundle J.util.Elements $.Logger $.Parser $.SB $.TextFormat J.viewer.JC".split(" "),function(){c$=Clazz.decorateAsClass(function(){this.strMenuStructure=this.currentMenuItemId=this.buttonGroup=this.menuText=this.htCheckbox=this.viewer=null;this.updateMode=0;this.thisPopup=
this.popupMenu=this.frankPopup=this.menuName=null;this.nFrankList=0;this.itemMax=25;this.titleWidthMax=20;this.thisy=this.thisx=0;this.currentFrankId=this.modelSetRoot=this.modelSetFileName=this.modelSetName=this.nullModelSetName=null;this.configurationSelected="";this.TemperatureOnly=this.ChargesOnly=this.AppletOnly=this.SignedOnly=this.SymmetryOnly=this.VibrationOnly=this.FramesOnly=this.SingleModelOnly=this.UnitcellOnly=this.FileMolOnly=this.FileUnitOnly=this.PDBOnly=this.NotPDB=this.htMenus=this.modelInfo=
this.modelSetInfo=this.frankList=this.altlocs=null;this.isZapped=this.isVibration=this.isUnitCell=this.isSymmetry=this.isSigned=this.isPDB=this.isMultiFrame=this.isMultiConfiguration=this.isLastFrame=this.isApplet=this.haveCharges=this.haveBFactors=this.fileHasUnitCell=this.allowSignedFeatures=!1;this.aboutComputedMenuBaseCount=this.atomCount=this.modelCount=this.modelIndex=0;this.hnmrPeaks=this.cnmrPeaks=this.group3Counts=this.group3List=null;Clazz.instantialize(this,arguments)},J.popup,"GenericPopup",
null,[J.api.JmolPopupInterface,J.popup.JmolAbstractMenu]);Clazz.prepareFields(c$,function(){this.htCheckbox=new java.util.Hashtable;this.menuText=new java.util.Properties;this.frankList=Array(10);this.htMenus=new java.util.Hashtable;this.NotPDB=new J.util.JmolList;this.PDBOnly=new J.util.JmolList;this.FileUnitOnly=new J.util.JmolList;this.FileMolOnly=new J.util.JmolList;this.UnitcellOnly=new J.util.JmolList;this.SingleModelOnly=new J.util.JmolList;this.FramesOnly=new J.util.JmolList;this.VibrationOnly=
new J.util.JmolList;this.SymmetryOnly=new J.util.JmolList;this.SignedOnly=new J.util.JmolList;this.AppletOnly=new J.util.JmolList;this.ChargesOnly=new J.util.JmolList;this.TemperatureOnly=new J.util.JmolList});Clazz.makeConstructor(c$,function(){});Clazz.overrideMethod(c$,"jpiDispose",function(){this.menuClearListeners(this.popupMenu);this.menuClearListeners(this.frankPopup);this.popupMenu=this.frankPopup=this.thisPopup=null});Clazz.overrideMethod(c$,"jpiGetMenuAsObject",function(){return this.popupMenu});
Clazz.overrideMethod(c$,"jpiGetMenuAsString",function(a){this.updateForShow();var c=a.indexOf("|");if(0<=c){var b=a.substring(c);a=a.substring(0,c);if(0<=b.indexOf("current"))return a=new J.util.SB,c=this.htMenus.get(this.menuName),this.menuGetAsText(a,0,c,"PopupMenu"),a.toString()}return(new J.popup.MainPopupResourceBundle(this.strMenuStructure,null)).getMenuAsText(a)},"~S");Clazz.overrideMethod(c$,"jpiShow",function(a,c){if(this.viewer.haveDisplay){this.show(a,c,!1);if(0>a&&(this.getViewerData(),
this.setFrankMenu(this.currentMenuItemId),this.thisx=-a-50,1<this.nFrankList)){this.thisy=c-20*this.nFrankList;this.menuShowPopup(this.frankPopup,this.thisx,this.thisy);return}this.restorePopupMenu();this.menuShowPopup(this.popupMenu,this.thisx,this.thisy)}},"~N,~N");Clazz.overrideMethod(c$,"jpiUpdateComputedMenus",function(){-1!=this.updateMode&&(this.updateMode=0,this.getViewerData(),this.updateSelectMenu(),this.updateFileMenu(),this.updateElementsComputedMenu(this.viewer.getElementsPresentBitSet(this.modelIndex)),
this.updateHeteroComputedMenu(this.viewer.getHeteroList(this.modelIndex)),this.updateSurfMoComputedMenu(this.modelInfo.get("moData")),this.updateFileTypeDependentMenus(),this.updatePDBComputedMenus(),this.updateMode=1,this.updateConfigurationComputedMenu(),this.updateSYMMETRYComputedMenus(),this.updateFRAMESbyModelComputedMenu(),this.updateModelSetComputedMenu(),this.updateLanguageSubmenu(),this.updateAboutSubmenu())});$_M(c$,"getEntryIcon",function(a){var c=a[0];if(!c.startsWith("<"))return null;
var b=c.indexOf(">");a[0]=c.substring(b+1);a=c.substring(1,b);return this.getImageIcon(a)},"~A");$_M(c$,"getImageIcon",function(){return null},"~S");$_M(c$,"checkMenuFocus",function(a,c,b){0>a.indexOf("Focus")||(b?this.viewer.script("selectionHalos ON;"+c):this.viewer.script("selectionHalos OFF"))},"~S,~S,~B");$_M(c$,"checkBoxStateChanged",function(a){this.restorePopupMenu();this.menuSetCheckBoxValue(a);a=this.menuGetId(a);null!=a&&(this.currentMenuItemId=a)},"~O");c$.addItemText=$_M(c$,"addItemText",
function(a,c,b,d,e,f,g){a.appendC(c).appendI(b).appendC("\t").append(d);null==e?a.append(".\n"):a.append("\t").append(e).append("\t").append(null==f||0==f.length?"-":f).append("\t").append(g).append("\n")},"J.util.SB,~S,~N,~S,~S,~S,~S");$_M(c$,"fixScript",function(a,c){var b;if(""===c||a.endsWith("Checkbox"))return c;if(0==c.indexOf("SELECT"))return"select thisModel and ("+c.substring(6)+")";if(0<=(b=a.lastIndexOf("["))){a=a.substring(b+1);if(0<=(b=a.indexOf("]")))a=a.substring(0,b);a=a.$replace("_",
" ");0>c.indexOf("[]")&&(c="[] "+c);return J.util.TextFormat.simpleReplace(c,"[]",a)}0<=c.indexOf("?FILEROOT?")?c=J.util.TextFormat.simpleReplace(c,"FILEROOT?",this.modelSetRoot):0<=c.indexOf("?FILE?")?c=J.util.TextFormat.simpleReplace(c,"FILE?",this.modelSetFileName):0<=c.indexOf("?PdbId?")&&(c=J.util.TextFormat.simpleReplace(c,"PdbId?","=xxxx"));return c},"~S,~S");$_M(c$,"initialize",function(a,c,b){this.viewer=a;this.menuName=b;this.thisPopup=this.popupMenu=this.menuCreatePopup(b);this.menuSetListeners();
this.htMenus.put(b,this.popupMenu);this.allowSignedFeatures=!a.isApplet()||a.getBooleanProperty("_signedApplet");this.addMenuItems("",b,this.popupMenu,c);try{this.jpiUpdateComputedMenus()}catch(d){if(!Clazz.exceptionOf(d,NullPointerException))throw d;}},"J.viewer.Viewer,J.popup.PopupResource,~S");$_M(c$,"restorePopupMenu",function(){this.thisPopup=this.popupMenu;if(!(2>this.nFrankList)){for(var a=this.nFrankList;0<--a;){var c=this.frankList[a];c[1].parent=c[0]}this.nFrankList=1}});$_M(c$,"setCheckBoxValue",
function(a,c,b){this.checkForCheckBoxScript(a,c,b);0<=c.indexOf("#CONFIG")&&(this.configurationSelected=c,this.updateConfigurationComputedMenu(),this.updateModelSetComputedMenu())},"~O,~S,~B");c$.checkBoolean=$_M(c$,"checkBoolean",($fz=function(a,c){return null!=a&&a.get(c)===Boolean.TRUE},$fz.isPrivate=!0,$fz),"java.util.Map,~S");$_M(c$,"getViewerData",($fz=function(){this.isApplet=this.viewer.isApplet();this.isSigned=this.viewer.getBooleanProperty("_signedApplet");this.modelSetName=this.viewer.getModelSetName();
this.modelSetFileName=this.viewer.getModelSetFileName();var a=this.modelSetFileName.lastIndexOf(".");if((this.isZapped="zapped".equals(this.modelSetName))||"string".equals(this.modelSetFileName)||"files".equals(this.modelSetFileName)||"string[]".equals(this.modelSetFileName))this.modelSetFileName="";this.modelSetRoot=this.modelSetFileName.substring(0,0>a?this.modelSetFileName.length:a);0==this.modelSetRoot.length&&(this.modelSetRoot="Jmol");this.modelIndex=this.viewer.getDisplayModelIndex();this.modelCount=
this.viewer.getModelCount();this.atomCount=this.viewer.getAtomCountInModel(this.modelIndex);this.modelSetInfo=this.viewer.getModelSetAuxiliaryInfo();this.modelInfo=this.viewer.getModelAuxiliaryInfo(this.modelIndex);null==this.modelInfo&&(this.modelInfo=new java.util.Hashtable);this.isPDB=J.popup.GenericPopup.checkBoolean(this.modelSetInfo,"isPDB");this.isMultiFrame=1<this.modelCount;this.isSymmetry=J.popup.GenericPopup.checkBoolean(this.modelInfo,"hasSymmetry");this.isUnitCell=J.popup.GenericPopup.checkBoolean(this.modelInfo,
"notionalUnitcell");this.fileHasUnitCell=this.isPDB&&this.isUnitCell||J.popup.GenericPopup.checkBoolean(this.modelInfo,"fileHasUnitCell");this.isLastFrame=this.modelIndex==this.modelCount-1;this.altlocs=this.viewer.getAltLocListInModel(this.modelIndex);this.isMultiConfiguration=0<this.altlocs.length;this.isVibration=this.viewer.modelHasVibrationVectors(this.modelIndex);this.haveCharges=this.viewer.havePartialCharges();this.haveBFactors=this.viewer.getBooleanProperty("haveBFactors");this.cnmrPeaks=
this.modelInfo.get("jdxAtomSelect_13CNMR");this.hnmrPeaks=this.modelInfo.get("jdxAtomSelect_1HNMR")},$fz.isPrivate=!0,$fz));$_M(c$,"updateFileTypeDependentMenus",($fz=function(){for(var a=0;a<this.NotPDB.size();a++)this.menuEnable(this.NotPDB.get(a),!this.isPDB);for(a=0;a<this.PDBOnly.size();a++)this.menuEnable(this.PDBOnly.get(a),this.isPDB);for(a=0;a<this.UnitcellOnly.size();a++)this.menuEnable(this.UnitcellOnly.get(a),this.isUnitCell);for(a=0;a<this.FileUnitOnly.size();a++)this.menuEnable(this.FileUnitOnly.get(a),
this.isUnitCell||this.fileHasUnitCell);for(a=0;a<this.FileMolOnly.size();a++)this.menuEnable(this.FileMolOnly.get(a),this.isUnitCell||this.fileHasUnitCell);for(a=0;a<this.SingleModelOnly.size();a++)this.menuEnable(this.SingleModelOnly.get(a),this.isLastFrame);for(a=0;a<this.FramesOnly.size();a++)this.menuEnable(this.FramesOnly.get(a),this.isMultiFrame);for(a=0;a<this.VibrationOnly.size();a++)this.menuEnable(this.VibrationOnly.get(a),this.isVibration);for(a=0;a<this.SymmetryOnly.size();a++)this.menuEnable(this.SymmetryOnly.get(a),
this.isSymmetry&&this.isUnitCell);for(a=0;a<this.SignedOnly.size();a++)this.menuEnable(this.SignedOnly.get(a),this.isSigned||!this.isApplet);for(a=0;a<this.AppletOnly.size();a++)this.menuEnable(this.AppletOnly.get(a),this.isApplet);for(a=0;a<this.ChargesOnly.size();a++)this.menuEnable(this.ChargesOnly.get(a),this.haveCharges);for(a=0;a<this.TemperatureOnly.size();a++)this.menuEnable(this.TemperatureOnly.get(a),this.haveBFactors)},$fz.isPrivate=!0,$fz));$_M(c$,"addMenuItems",($fz=function(a,c,b,d){a=
a+"."+c;var e=d.getStructure(c);if(null==e)this.menuCreateItem(b,"#"+c,"","");else{c=new java.util.StringTokenizer(e);for(var f;0<=e.indexOf("@");){for(e="";c.hasMoreTokens();)e+=" "+((f=c.nextToken()).startsWith("@")?d.getStructure(f):f);e=e.substring(1);c=new java.util.StringTokenizer(e)}for(;c.hasMoreTokens();)if(f=c.nextToken(),this.checkKey(f)){var e=d.getWord(f),g=null,g="",h=!1;if(!e.equals("null")){if(0<=f.indexOf("Menu")){0>f.indexOf("more")&&(this.buttonGroup=null);var j=this.menuNewSubMenu(e,
a+"."+f);this.menuAddSubMenu(b,j);this.htMenus.put(f,j);0>f.indexOf("Computed")&&this.addMenuItems(a,f,j,d);this.checkSpecialMenu(f,j,e);g=j}else if("-".equals(f)){this.menuAddSeparator(b);continue}else if(f.endsWith("Checkbox")||(h=f.endsWith("CB")||f.endsWith("RD"))){g=d.getStructure(f);j=f.substring(0,f.length-(!h?8:2));h=h&&f.endsWith("RD");if(null==g||0==g.length&&!h)g="set "+j+" T/F";g=this.menuCreateCheckboxItem(b,e,j+":"+g,a+"."+f,!1,h);this.rememberCheckbox(j,g);h&&this.menuAddButtonGroup(g)}else g=
d.getStructure(f),null==g&&(g=f),g=this.menuCreateItem(b,e,g,a+"."+f);!this.allowSignedFeatures&&f.startsWith("SIGNED")&&this.menuEnable(g,!1);0<=f.indexOf("VARIABLE")&&this.htMenus.put(f,g);0<=f.indexOf("!PDB")?this.NotPDB.addLast(g):0<=f.indexOf("PDB")&&this.PDBOnly.addLast(g);0<=f.indexOf("URL")?this.AppletOnly.addLast(g):0<=f.indexOf("CHARGE")?this.ChargesOnly.addLast(g):0<=f.indexOf("BFACTORS")?this.TemperatureOnly.addLast(g):0<=f.indexOf("UNITCELL")?this.UnitcellOnly.addLast(g):0<=f.indexOf("FILEUNIT")?
this.FileUnitOnly.addLast(g):0<=f.indexOf("FILEMOL")&&this.FileMolOnly.addLast(g);0<=f.indexOf("!FRAMES")?this.SingleModelOnly.addLast(g):0<=f.indexOf("FRAMES")&&this.FramesOnly.addLast(g);0<=f.indexOf("VIBRATION")?this.VibrationOnly.addLast(g):0<=f.indexOf("SYMMETRY")&&this.SymmetryOnly.addLast(g);f.startsWith("SIGNED")&&this.SignedOnly.addLast(g)}}}},$fz.isPrivate=!0,$fz),"~S,~S,~O,J.popup.PopupResource");$_M(c$,"checkKey",($fz=function(a){return 0>a.indexOf("JAVA")&&!(a.indexOf("NOGL")&&this.viewer.isWebGL)},
$fz.isPrivate=!0,$fz),"~S");$_M(c$,"rememberCheckbox",($fz=function(a,c){this.htCheckbox.put(a+"::"+this.htCheckbox.size(),c)},$fz.isPrivate=!0,$fz),"~S,~O");$_M(c$,"checkForCheckBoxScript",($fz=function(a,c,b){if(0>c.indexOf("##")){var d=c.indexOf(":");if(0>d){J.util.Logger.error("check box "+a+" IS "+c);return}var e=c.substring(0,d);if(this.viewer.getBooleanProperty(e)==b)return;if(e.endsWith("P!"))if(0<=e.indexOf("??"))c=this.menuSetCheckBoxOption(a,e,c);else{if(!b)return;c="set picking "+e.substring(0,
e.length-2)}else{c=c.substring(d+1);if(0<=(d=c.indexOf("|")))c=(b?c.substring(0,d):c.substring(d+1)).trim();c=J.util.TextFormat.simpleReplace(c,"T/F",b?" TRUE":" FALSE")}}this.viewer.evalStringQuiet(c)},$fz.isPrivate=!0,$fz),"~O,~S,~B");Clazz.overrideMethod(c$,"checkMenuClick",function(a,c){this.restorePopupMenu();if(!(null==c||0==c.length))if(c.equals("MAIN"))this.show(this.thisx,this.thisy,!0);else{var b=this.menuGetId(a);null!=b&&(c=this.fixScript(b,c),this.currentMenuItemId=b);this.viewer.evalStringQuiet(c)}},
"~O,~S");$_M(c$,"addMenuItem",($fz=function(a,c){return this.menuCreateItem(a,c,"",null)},$fz.isPrivate=!0,$fz),"~O,~S");$_M(c$,"checkSpecialMenu",($fz=function(a,c,b){"aboutComputedMenu".equals(a)?this.aboutComputedMenuBaseCount=this.menuGetItemCount(c):"modelSetMenu".equals(a)&&(this.nullModelSetName=b,this.menuEnable(c,!1))},$fz.isPrivate=!0,$fz),"~S,~O,~S");$_M(c$,"updateFileMenu",($fz=function(){var a=this.htMenus.get("fileMenu");if(null!=a){var c=this.getMenuText("writeFileTextVARIABLE"),a=
this.htMenus.get("writeFileTextVARIABLE");this.modelSetFileName.equals("zapped")||this.modelSetFileName.equals("")?(this.menuSetLabel(a,J.i18n.GT._("No atoms loaded")),this.menuEnableItem(a,!1)):(this.menuSetLabel(a,J.i18n.GT._(c,this.modelSetFileName)),this.menuEnableItem(a,!0))}},$fz.isPrivate=!0,$fz));$_M(c$,"getMenuText",($fz=function(a){var c=this.menuText.getProperty(a);return null==c?a:c},$fz.isPrivate=!0,$fz),"~S");$_M(c$,"updateSelectMenu",($fz=function(){var a=this.htMenus.get("selectMenuText");
null!=a&&(this.menuEnable(a,0!=this.atomCount),this.menuSetLabel(a,J.i18n.GT._(this.getMenuText("selectMenuText"),this.viewer.getSelectionCount())))},$fz.isPrivate=!0,$fz));$_M(c$,"updateElementsComputedMenu",($fz=function(a){var c=this.htMenus.get("elementsComputedMenu");if(null!=c&&(this.menuRemoveAll(c,0),this.menuEnable(c,!1),null!=a)){for(var b=a.nextSetBit(0);0<=b;b=a.nextSetBit(b+1)){var d=J.util.Elements.elementNameFromNumber(b),e=J.util.Elements.elementSymbolFromNumber(b),e=e+" - "+d;this.menuCreateItem(c,
e,"SELECT "+d,null)}for(b=4;b<J.util.Elements.altElementMax;++b)e=J.util.Elements.elementNumberMax+b,a.get(e)&&(e=J.util.Elements.altElementNumberFromIndex(b),d=J.util.Elements.elementNameFromNumber(e),e=J.util.Elements.elementSymbolFromNumber(e),e=e+" - "+d,this.menuCreateItem(c,e,"SELECT "+d,null));this.menuEnable(c,!0)}},$fz.isPrivate=!0,$fz),"J.util.BS");$_M(c$,"updateSpectraMenu",($fz=function(){var a=this.htMenus.get("hnmrMenu"),c=this.htMenus.get("cnmrMenu");null!=a&&this.menuRemoveAll(a,0);
null!=c&&this.menuRemoveAll(c,0);var b=this.htMenus.get("spectraMenu");if(null!=b){this.menuRemoveAll(b,0);var d=(new Boolean(this.setSpectraMenu(a,this.hnmrPeaks)|this.setSpectraMenu(c,this.cnmrPeaks))).valueOf();d&&(null!=a&&this.menuAddSubMenu(b,a),null!=c&&this.menuAddSubMenu(b,c));this.menuEnable(b,d)}},$fz.isPrivate=!0,$fz));$_M(c$,"setSpectraMenu",($fz=function(a,c){if(null==a)return!1;this.menuEnable(a,!1);var b=null==c?0:c.size();if(0==b)return!1;for(var d=0;d<b;d++){var e=c.get(d),f=J.util.Parser.getQuotedAttribute(e,
"title"),e=J.util.Parser.getQuotedAttribute(e,"atoms");null!=e&&this.menuCreateItem(a,f,"select visible & (@"+J.util.TextFormat.simpleReplace(e,","," or @")+")","Focus"+d)}this.menuEnable(a,!0);return!0},$fz.isPrivate=!0,$fz),"~O,J.util.JmolList");$_M(c$,"updateHeteroComputedMenu",($fz=function(a){var c=this.htMenus.get("PDBheteroComputedMenu");if(null!=c&&(this.menuRemoveAll(c,0),this.menuEnable(c,!1),null!=a)){var b=0,d;for(a=a.entrySet().iterator();a.hasNext()&&((d=a.next())||1);){var e=d.getKey(),
f=d.getValue();20<f.length&&(f=f.substring(0,20)+"...");this.menuCreateItem(c,e+" - "+f,"SELECT ["+e+"]",null);b++}this.menuEnable(c,0<b)}},$fz.isPrivate=!0,$fz),"java.util.Map");$_M(c$,"updateSurfMoComputedMenu",($fz=function(a){var c=this.htMenus.get("surfMoComputedMenuText");if(null!=c){this.menuRemoveAll(c,0);a=null==a?null:a.get("mos");var b=null==a?0:a.size(),d=this.getMenuText("surfMoComputedMenuText");if(0==b)this.menuSetLabel(c,J.i18n.GT._(d,"")),this.menuEnable(c,!1);else{this.menuSetLabel(c,
J.i18n.GT._(d,b));this.menuEnable(c,!0);var d=c,e=b%this.itemMax;0==e&&(e=this.itemMax);for(var f=b>this.itemMax?0:-2147483648;0<=--b;){0<=f&&0==f++%e&&(f==e+1&&(e=this.itemMax),f="mo"+f+"Menu",d=this.menuNewSubMenu(Math.max(b+2-e,1)+"..."+(b+1),this.menuGetId(c)+"."+f),this.menuAddSubMenu(c,d),this.htMenus.put(f,d),f=1);var g=a.get(b),g="#"+(b+1)+" "+(g.containsKey("type")?g.get("type")+" ":"")+(g.containsKey("symmetry")?g.get("symmetry")+" ":"")+(g.containsKey("energy")?g.get("energy"):"");this.menuCreateItem(d,
g,"mo "+(b+1),null)}}}},$fz.isPrivate=!0,$fz),"java.util.Map");$_M(c$,"updatePDBComputedMenus",($fz=function(){var a=this.htMenus.get("PDBaaResiduesComputedMenu");if(null!=a){this.menuRemoveAll(a,0);this.menuEnable(a,!1);var c=this.htMenus.get("PDBnucleicResiduesComputedMenu");if(null!=c){this.menuRemoveAll(c,0);this.menuEnable(c,!1);var b=this.htMenus.get("PDBcarboResiduesComputedMenu");if(null!=b&&(this.menuRemoveAll(b,0),this.menuEnable(b,!1),null!=this.modelSetInfo)){var d=0>this.modelIndex?0:
this.modelIndex+1,e=this.modelSetInfo.get("group3Lists");this.group3List=null==e?null:e[d];this.group3Counts=null==e?null:this.modelSetInfo.get("group3Counts")[d];if(null!=this.group3List){d=0;for(e=1;24>e;++e)d+=this.updateGroup3List(a,J.viewer.JC.predefinedGroup3Names[e]);d+=this.augmentGroup3List(a,"p>",!0);this.menuEnable(a,0<d);this.menuEnable(this.htMenus.get("PDBproteinMenu"),0<d);d=this.augmentGroup3List(c,"n>",!1);this.menuEnable(c,0<d);this.menuEnable(this.htMenus.get("PDBnucleicMenu"),
0<d);d=this.augmentGroup3List(b,"c>",!1);this.menuEnable(b,0<d);this.menuEnable(this.htMenus.get("PDBcarboMenu"),0<d)}}}}},$fz.isPrivate=!0,$fz));$_M(c$,"updateGroup3List",($fz=function(a,c){var b=0,d=this.group3Counts[Clazz.doubleToInt(this.group3List.indexOf(c)/6)],e=null;0<d&&(e="SELECT "+c,c+="  ("+d+")",b++);e=this.menuCreateItem(a,c,e,this.menuGetId(a)+"."+c);0==d&&this.menuEnableItem(e,!1);return b},$fz.isPrivate=!0,$fz),"~O,~S");$_M(c$,"augmentGroup3List",($fz=function(a,c,b){for(var d=138,
e=0;;){d=this.group3List.indexOf(c,d);if(0>d)break;0==e++&&b&&this.menuAddSeparator(a);var f=this.group3Counts[Clazz.doubleToInt(d/6)],g=this.group3List.substring(d+2,d+5),f=g+"  ("+f+")";this.menuCreateItem(a,f,"SELECT ["+g+"]",this.menuGetId(a)+"."+f);d++}return e},$fz.isPrivate=!0,$fz),"~O,~S,~B");$_M(c$,"updateSYMMETRYComputedMenus",($fz=function(){this.updateSYMMETRYSelectComputedMenu();this.updateSYMMETRYShowComputedMenu()},$fz.isPrivate=!0,$fz));$_M(c$,"updateSYMMETRYShowComputedMenu",($fz=
function(){var a=this.htMenus.get("SYMMETRYShowComputedMenu");if(null!=a&&(this.menuRemoveAll(a,0),this.menuEnable(a,!1),this.isSymmetry&&!(0>this.modelIndex))){var c=this.viewer.getProperty("DATA_API","spaceGroupInfo",null);if(null!=c){var b=c.get("operations");if(null!=b){c=c.get("spaceGroupName");this.menuSetLabel(a,null==c?J.i18n.GT._("Space Group"):c);for(var c=a,d=this.itemMax,e=b.length>this.itemMax?0:-2147483648,f=0;f<b.length;f++)0<=e&&0==e++%d&&(e="drawsymop"+e+"Menu",c=this.menuNewSubMenu(f+
1+"..."+Math.min(f+this.itemMax,b.length),this.menuGetId(a)+"."+e),this.menuAddSubMenu(a,c),this.htMenus.put(e,c),e=1),this.menuEnableItem(this.menuCreateItem(c,f+1+" "+b[f][2]+" ("+b[f][0]+")","draw SYMOP "+(f+1),null),!0);this.menuEnable(a,!0)}}}},$fz.isPrivate=!0,$fz));$_M(c$,"updateSYMMETRYSelectComputedMenu",($fz=function(){var a=this.htMenus.get("SYMMETRYSelectComputedMenu");if(null!=a&&(this.menuRemoveAll(a,0),this.menuEnable(a,!1),this.isSymmetry&&!(0>this.modelIndex))){var c=this.modelInfo.get("symmetryOperations");
if(null!=c){for(var b=null!=this.modelInfo.get("unitCellRange"),d=a,e=this.itemMax,f=c.length>this.itemMax?0:-2147483648,g=0;g<c.length;g++)0<=f&&0==f++%e&&(f="symop"+f+"Menu",d=this.menuNewSubMenu(g+1+"..."+Math.min(g+this.itemMax,c.length),this.menuGetId(a)+"."+f),this.menuAddSubMenu(a,d),this.htMenus.put(f,d),f=1),this.menuEnableItem(this.menuCreateItem(d,"symop="+(g+1)+" # "+c[g],"SELECT symop="+(g+1),null),b);this.menuEnable(a,!0)}}},$fz.isPrivate=!0,$fz));$_M(c$,"updateFRAMESbyModelComputedMenu",
($fz=function(){var a=this.htMenus.get("FRAMESbyModelComputedMenu");if(null!=a&&(this.menuEnable(a,0<this.modelCount),this.menuSetLabel(a,0>this.modelIndex?J.i18n.GT._(this.getMenuText("allModelsText"),this.modelCount):this.getModelLabel()),this.menuRemoveAll(a,0),!(1>this.modelCount))){1<this.modelCount&&this.menuCreateCheckboxItem(a,J.i18n.GT._("All"),"frame 0 ##",null,0>this.modelIndex,!1);for(var c=a,b=this.itemMax,d=this.modelCount>this.itemMax?0:-2147483648,e=0;e<this.modelCount;e++){0<=d&&
0==d++%b&&(d="model"+d+"Menu",c=this.menuNewSubMenu(e+1+"..."+Math.min(e+this.itemMax,this.modelCount),this.menuGetId(a)+"."+d),this.menuAddSubMenu(a,c),this.htMenus.put(d,c),d=1);var f=""+this.viewer.getModelNumberDotted(e),g=this.viewer.getModelName(e),h=this.viewer.getModelAuxiliaryInfoValue(e,"spectrumTypes");null!=h&&g.startsWith(h)&&(h=null);if(!g.equals(f)){var j=g.indexOf(";PATH");0<=j&&(g=g.substring(0,j));if(0==g.indexOf("Model[")&&0<=(j=g.indexOf("]:")))g=g.substring(j+2);g=f+": "+g}60<
g.length&&(g=g.substring(0,55)+"...");null!=h&&(g+=" ("+h+")");this.menuCreateCheckboxItem(c,g,"model "+f+" ##",null,this.modelIndex==e,!1)}}},$fz.isPrivate=!0,$fz));$_M(c$,"updateConfigurationComputedMenu",($fz=function(){var a=this.htMenus.get("configurationComputedMenu");if(null!=a&&(this.menuEnable(a,this.isMultiConfiguration),this.isMultiConfiguration)){var c=this.altlocs.length;this.menuSetLabel(a,J.i18n.GT._(this.getMenuText("configurationMenuText"),c));this.menuRemoveAll(a,0);var b="hide none ##CONFIG";
this.menuCreateCheckboxItem(a,J.i18n.GT._("All"),b,null,1==this.updateMode&&this.configurationSelected.equals(b),!1);for(var d=0;d<c;d++){var b="configuration "+(d+1)+"; hide thisModel and not selected ##CONFIG",e=""+(d+1)+' -- "'+this.altlocs.charAt(d)+'"';this.menuCreateCheckboxItem(a,e,b,null,1==this.updateMode&&this.configurationSelected.equals(b),!1)}}},$fz.isPrivate=!0,$fz));$_M(c$,"updateModelSetComputedMenu",($fz=function(){var a=this.htMenus.get("modelSetMenu");if(null!=a&&(this.menuRemoveAll(a,
0),this.menuSetLabel(a,this.nullModelSetName),this.menuEnable(a,!1),this.menuEnable(this.htMenus.get("surfaceMenu"),!this.isZapped),this.menuEnable(this.htMenus.get("measureMenu"),!this.isZapped),this.menuEnable(this.htMenus.get("pickingMenu"),!this.isZapped),this.menuEnable(this.htMenus.get("computationMenu"),!this.isZapped),!(null==this.modelSetName||this.isZapped))){this.isMultiFrame?(this.modelSetName=J.i18n.GT._(this.getMenuText("modelSetCollectionText"),this.modelCount),this.modelSetName.length>
this.titleWidthMax&&(this.modelSetName=this.modelSetName.substring(0,this.titleWidthMax)+"...")):this.viewer.getBooleanProperty("hideNameInPopup")?this.modelSetName=this.getMenuText("hiddenModelSetText"):this.modelSetName.length>this.titleWidthMax&&(this.modelSetName=this.modelSetName.substring(0,this.titleWidthMax)+"...");this.menuSetLabel(a,this.modelSetName);this.menuEnable(a,!0);this.menuEnable(this.htMenus.get("computationMenu"),100>=this.atomCount);this.addMenuItem(a,J.i18n.GT._(this.getMenuText("atomsText"),
this.atomCount));this.addMenuItem(a,J.i18n.GT._(this.getMenuText("bondsText"),this.viewer.getBondCountInModel(this.modelIndex)));if(this.isPDB){this.menuAddSeparator(a);this.addMenuItem(a,J.i18n.GT._(this.getMenuText("groupsText"),this.viewer.getGroupCountInModel(this.modelIndex)));this.addMenuItem(a,J.i18n.GT._(this.getMenuText("chainsText"),this.viewer.getChainCountInModel(this.modelIndex)));this.addMenuItem(a,J.i18n.GT._(this.getMenuText("polymersText"),this.viewer.getPolymerCountInModel(this.modelIndex)));
var c=this.htMenus.get("BiomoleculesMenu");null==c&&(c=this.menuNewSubMenu(J.i18n.GT._(this.getMenuText("biomoleculesMenuText")),this.menuGetId(a)+".biomolecules"),this.menuAddSubMenu(a,c));this.menuRemoveAll(c,0);this.menuEnable(c,!1);var b;if(0<=this.modelIndex&&null!=(b=this.viewer.getModelAuxiliaryInfoValue(this.modelIndex,"biomolecules"))){this.menuEnable(c,!0);for(var d=b.size(),e=0;e<d;e++){var f=this.isMultiFrame?"":'save orientation;load "" FILTER "biomolecule '+(e+1)+'";restore orientation;',
g=b.get(e).get("atomCount").intValue(),g=J.i18n.GT._(this.getMenuText(this.isMultiFrame?"biomoleculeText":"loadBiomoleculeText"),[Integer.$valueOf(e+1),Integer.$valueOf(g)]);this.menuCreateItem(c,g,f,null)}}}this.isApplet&&!this.viewer.getBooleanProperty("hideNameInPopup")&&(this.menuAddSeparator(a),this.menuCreateItem(a,J.i18n.GT._(this.getMenuText("viewMenuText"),this.modelSetFileName),"show url",null))}},$fz.isPrivate=!0,$fz));$_M(c$,"getModelLabel",($fz=function(){return J.i18n.GT._(this.getMenuText("modelMenuText"),
this.modelIndex+1+"/"+this.modelCount)},$fz.isPrivate=!0,$fz));$_M(c$,"updateAboutSubmenu",($fz=function(){var a=this.htMenus.get("aboutComputedMenu");if(null!=a){this.menuRemoveAll(a,this.aboutComputedMenuBaseCount);var c=this.menuNewSubMenu("About molecule","modelSetMenu");this.menuAddSubMenu(a,c);this.htMenus.put("modelSetMenu",c);this.updateModelSetComputedMenu();c=this.menuNewSubMenu("Jmol "+J.viewer.JC.version+(this.isSigned?" (signed)":""),"aboutJmolMenu");this.menuAddSubMenu(a,c);this.htMenus.put("aboutJmolMenu",
c);this.addMenuItem(c,J.viewer.JC.date);this.menuCreateItem(c,"http://www.jmol.org",'show url "http://www.jmol.org"',null);this.menuCreateItem(c,J.i18n.GT._("Mouse Manual"),'show url "http://wiki.jmol.org/index.php/Mouse_Manual"',null);this.menuCreateItem(c,J.i18n.GT._("Translations"),'show url "http://wiki.jmol.org/index.php/Internationalisation"',null);c=this.menuNewSubMenu(J.i18n.GT._("System"),"systemMenu");this.menuAddSubMenu(a,c);this.htMenus.put("systemMenu",c);this.addMenuItem(c,this.viewer.getOperatingSystemName());
this.menuAddSeparator(c);this.addMenuItem(c,J.i18n.GT._("Java version:"));this.addMenuItem(c,this.viewer.getJavaVendor());this.addMenuItem(c,this.viewer.getJavaVersion())}},$fz.isPrivate=!0,$fz));$_M(c$,"updateLanguageSubmenu",($fz=function(){var a=this.htMenus.get("languageComputedMenu");if(null!=a){this.menuRemoveAll(a,0);for(var c=J.i18n.GT.getLanguage(),b=this.menuGetId(a),d=J.i18n.GT.getLanguageList(null),e=0,f=0;e<d.length;e++)if(c.equals(d[e].code)&&(d[e].display=!0),d[e].display){var g=d[e].code,
h=d[e].language,j=d[e].nativeLanguage,k=g+" - "+J.i18n.GT._(h);null!=j&&!j.equals(J.i18n.GT._(h))&&(k+=" - "+j);0<f++&&1==f%4&&this.menuAddSeparator(a);this.menuCreateCheckboxItem(a,k,'language = "'+g+'" ##'+h,b+"."+g,c.equals(g),!1)}}},$fz.isPrivate=!0,$fz));$_M(c$,"convertToMegabytes",($fz=function(a){9223372036854251E3>=a&&(a+=524288);return Clazz.doubleToInt(a/1048576)},$fz.isPrivate=!0,$fz),"~N");$_M(c$,"updateForShow",($fz=function(){-1!=this.updateMode&&(this.getViewerData(),this.updateMode=
2,this.updateSelectMenu(),this.updateSpectraMenu(),this.updateFRAMESbyModelComputedMenu(),this.updateModelSetComputedMenu(),this.updateAboutSubmenu())},$fz.isPrivate=!0,$fz));$_M(c$,"setFrankMenu",($fz=function(a){if(!(null!=this.currentFrankId&&this.currentFrankId===a&&0<this.nFrankList)&&(null==this.frankPopup&&(this.frankPopup=this.menuCreatePopup("Frank")),this.thisPopup=this.frankPopup,this.menuRemoveAll(this.frankPopup,0),null!=a)){this.currentFrankId=a;this.nFrankList=0;this.frankList[this.nFrankList++]=
[null,null,null];this.menuCreateItem(this.frankPopup,this.getMenuText("mainMenuText"),"MAIN","");for(var c=a.indexOf(".",2)+1;;){var b=a.indexOf(".",c);if(0>b)break;c=a.substring(c,b);c=this.htMenus.get(c);this.frankList[this.nFrankList++]=[this.menuGetParent(c),c,Integer.$valueOf(this.menuGetPosition(c))];this.menuAddSubMenu(this.frankPopup,c);c=b+1}this.thisPopup=this.popupMenu}},$fz.isPrivate=!0,$fz),"~S");$_M(c$,"show",($fz=function(a,c,b){this.thisx=a;this.thisy=c;this.updateForShow();var d;
for(a=this.htCheckbox.entrySet().iterator();a.hasNext()&&((d=a.next())||1);){var e=d.getKey();c=d.getValue();e=e.substring(0,e.indexOf(":"));e=this.viewer.getBooleanProperty(e);this.menuSetCheckBoxState(c,e)}b&&this.menuShowPopup(this.popupMenu,this.thisx,this.thisy)},$fz.isPrivate=!0,$fz),"~N,~N,~B");Clazz.defineStatics(c$,"dumpList",!1,"UPDATE_NEVER",-1,"UPDATE_ALL",0,"UPDATE_CONFIG",1,"UPDATE_SHOW",2,"MENUITEM_HEIGHT",20)});Clazz.declarePackage("J.awtjs2d");
Clazz.load(["J.popup.GenericPopup"],"J.awtjs2d.JSPopup",null,function(){c$=Clazz.declareType(J.awtjs2d,"JSPopup",J.popup.GenericPopup);Clazz.makeConstructor(c$,function(){Clazz.superConstructor(this,J.awtjs2d.JSPopup,[])});$_M(c$,"updateButton",function(a,c,b){c=[c];var d=this.getEntryIcon(c);c=c[0];null!=d&&a.setIcon(d);null!=c&&a.setText(c);null!=b&&a.setActionCommand(b);this.thisPopup.tainted=!0},"~O,~S,~S");$_M(c$,"newMenuItem",($fz=function(a,c,b,d,e){this.updateButton(c,b,d);null!=e&&e.startsWith("Focus")&&
(c.addMouseListener(this),e=a.getName()+"."+e);c.setName(null==e?a.getName()+".":e);this.menuAddItem(a,c);return c},$fz.isPrivate=!0,$fz),"~O,~O,~S,~S,~S");Clazz.overrideMethod(c$,"menuAddButtonGroup",function(a){null==this.buttonGroup&&(this.buttonGroup=new Jmol.Menu.ButtonGroup(this.thisPopup));this.buttonGroup.add(a)},"~O");Clazz.overrideMethod(c$,"menuAddItem",function(a,c){a.add(c);this.thisPopup.tainted=!0},"~O,~O");Clazz.overrideMethod(c$,"menuAddSeparator",function(a){a.add(new Jmol.Menu.MenuItem(this.thisPopup,
null,!1,!1));this.thisPopup.tainted=!0},"~O");Clazz.overrideMethod(c$,"menuAddSubMenu",function(a,c){this.menuAddItem(a,c)},"~O,~O");Clazz.overrideMethod(c$,"menuClearListeners",function(){},"~O");Clazz.overrideMethod(c$,"menuCreateCheckboxItem",function(a,c,b,d,e,f){var g=null,g=new Jmol.Menu.MenuItem(this.thisPopup,c,!f,f);g.setSelected(e);g.addItemListener(this);return this.newMenuItem(a,g,c,b,d)},"~O,~S,~S,~S,~B,~B");Clazz.overrideMethod(c$,"menuCreateItem",function(a,c,b,d){var e=null,e=new Jmol.Menu.MenuItem(this.thisPopup,
c);e.addActionListener(this);return this.newMenuItem(a,e,c,b,d)},"~O,~S,~S,~S");Clazz.overrideMethod(c$,"menuCreatePopup",function(a){return new Jmol.Menu.PopupMenu(this.viewer.applet,a)},"~S");Clazz.overrideMethod(c$,"menuEnable",function(a,c){if(a.isItem)this.menuEnableItem(a,c);else{try{a.setEnabled(c)}catch(b){}this.thisPopup.tainted=!0}},"~O,~B");Clazz.overrideMethod(c$,"menuEnableItem",function(a,c){try{a.setEnabled(c)}catch(b){}this.thisPopup.tainted=!0},"~O,~B");Clazz.overrideMethod(c$,"menuGetAsText",
function(a,c,b,d){b=b.getComponents();for(var e=0;e<b.length;e++){var f=b[e],g=null;if(f.isMenu)d=f.getName(),g="enabled:"+f.isEnabled(),this.addItemText(a,"M",c,d,f.getText(),null,g),this.menuGetAsText(a,c+1,f.getPopupMenu(),d);else if(f.isItem){g="enabled:"+f.isEnabled();f.isCheckBox&&(g+=";checked:"+f.getState());var h=this.fixScript(f.getName(),f.getActionCommand());this.addItemText(a,"I",c,f.getName(),f.getText(),h,g)}else this.addItemText(a,"S",c,d,null,null,null)}},"J.util.SB,~N,~O,~S");Clazz.overrideMethod(c$,
"menuGetId",function(a){return a.getName()},"~O");Clazz.overrideMethod(c$,"menuGetItemCount",function(a){return a.getItemCount()},"~O");Clazz.overrideMethod(c$,"menuGetParent",function(a){return a.getParent()},"~O");Clazz.overrideMethod(c$,"menuGetPosition",function(a){var c=menuGetParent(a);if(null!=c)for(var b=c.getItemCount();0<=--b;)if(c.getItem(b)==a)return;b;return-1},"~O");Clazz.overrideMethod(c$,"menuInsertSubMenu",function(){},"~O,~O,~N");Clazz.overrideMethod(c$,"menuNewSubMenu",function(a,
c){var b=new Jmol.Menu.SubMenu(this.thisPopup,a);this.updateButton(b,a,null);b.setName(c);b.setAutoscrolls(!0);return b},"~S,~S");Clazz.overrideMethod(c$,"menuRemoveAll",function(a,c){a.removeAll(c);this.thisPopup.tainted=!0},"~O,~N");Clazz.overrideMethod(c$,"menuSetAutoscrolls",function(a){a.setAutoscrolls(!0);this.thisPopup.tainted=!0},"~O");Clazz.overrideMethod(c$,"menuSetCheckBoxState",function(a,c){a.setSelected(c);this.thisPopup.tainted=!0},"~O,~B");Clazz.overrideMethod(c$,"menuSetCheckBoxOption",
function(){return null},"~O,~S,~S");Clazz.overrideMethod(c$,"menuSetCheckBoxValue",function(a){this.setCheckBoxValue(a,a.getActionCommand(),a.isSelected());this.thisPopup.tainted=!0},"~O");Clazz.overrideMethod(c$,"menuSetLabel",function(a,c){a.setText(c);this.thisPopup.tainted=!0},"~O,~S");Clazz.overrideMethod(c$,"menuSetListeners",function(){});Clazz.overrideMethod(c$,"menuShowPopup",function(a,c,b){a.menuShowPopup(c,b)},"~O,~N,~N")});Clazz.declarePackage("J.awtjs2d");
Clazz.load(["J.awtjs2d.JSPopup"],"J.awtjs2d.JSmolPopup",["J.i18n.GT","J.popup.MainPopupResourceBundle"],function(){c$=Clazz.declareType(J.awtjs2d,"JSmolPopup",J.awtjs2d.JSPopup);Clazz.makeConstructor(c$,function(){Clazz.superConstructor(this,J.awtjs2d.JSmolPopup,[])});Clazz.overrideMethod(c$,"jpiInitialize",function(a,c){var b=J.i18n.GT.setDoTranslate(!0),d=new J.popup.MainPopupResourceBundle(this.strMenuStructure=c,this.menuText);this.initialize(a,d,d.getMenuName());J.i18n.GT.setDoTranslate(b)},
"J.viewer.Viewer,~S")});Clazz.declarePackage("J.popup");
Clazz.load(null,"J.popup.PopupResource",["java.io.BufferedReader","$.StringReader","java.util.Properties","J.i18n.GT"],function(){c$=Clazz.decorateAsClass(function(){this.words=this.structure=null;Clazz.instantialize(this,arguments)},J.popup,"PopupResource");Clazz.makeConstructor(c$,function(a,c){this.structure=new java.util.Properties;this.words=new java.util.Properties;this.buildStructure(a);this.localize(null!=a,c)},"~S,java.util.Properties");$_M(c$,"getMenuAsText",function(){return null},"~S");
$_M(c$,"getStructure",function(a){return this.structure.getProperty(a)},"~S");$_M(c$,"getWord",function(a){var c=this.words.getProperty(a);return null==c?a:c},"~S");$_M(c$,"setStructure",function(a){if(null!=a){a=new java.io.BufferedReader(new java.io.StringReader(a));var c,b;try{for(;null!=(c=a.readLine());)if(!(0==c.length||"#"==c.charAt(0))){b=c.indexOf("=");0>b&&(b=c.length,c+="=");var d=c.substring(0,b).trim(),e=c.substring(b+1).trim(),f=null;if(0<=(b=d.indexOf("|")))f=d.substring(b+1).trim(),
d=d.substring(0,b).trim();0!=d.length&&(0<e.length&&this.structure.setProperty(d,e),null!=f&&0<f.length&&this.words.setProperty(d,J.i18n.GT._(f)))}}catch(g){if(!Clazz.exceptionOf(g,Exception))throw g;}try{a.close()}catch(h){if(!Clazz.exceptionOf(h,Exception))throw h;}}},"~S");$_M(c$,"addItems",function(a){for(var c="",b=0;b<a.length;b++){var d=a[b][1];null==d&&(d=c);c=d;this.structure.setProperty(a[b][0],d)}},"~A");$_M(c$,"localize",($fz=function(a,c){for(var b=this.getWordContents(),d=0;d<b.length;d++){var e=
b[d++],f=this.words.getProperty(e);null==f&&(f=b[d]);this.words.setProperty(e,f);null!=c&&0<=e.indexOf("Text")&&c.setProperty(e,f)}},$fz.isPrivate=!0,$fz),"~B,java.util.Properties")});Clazz.declarePackage("J.popup");
Clazz.load(["J.popup.PopupResource"],"J.popup.MainPopupResourceBundle",["J.i18n.GT","J.util.SB","$.TextFormat"],function(){c$=Clazz.declareType(J.popup,"MainPopupResourceBundle",J.popup.PopupResource);Clazz.overrideMethod(c$,"getMenuName",function(){return"popupMenu"});Clazz.overrideMethod(c$,"buildStructure",function(a){this.addItems(J.popup.MainPopupResourceBundle.menuContents);this.addItems(J.popup.MainPopupResourceBundle.structureContents);this.setStructure(a)},"~S");c$.Box=$_M(c$,"Box",($fz=
function(a){return"if (showBoundBox or showUnitcell) {"+a+"} else {boundbox on;"+a+";boundbox off}"},$fz.isPrivate=!0,$fz),"~S");Clazz.overrideMethod(c$,"getWordContents",function(){var a=J.i18n.GT.setDoTranslate(!0),c=["modelSetMenu",J.i18n.GT._("No atoms loaded"),"configurationComputedMenu",J.i18n.GT._("Configurations"),"elementsComputedMenu",J.i18n.GT._("Element"),"FRAMESbyModelComputedMenu",J.i18n.GT._("Model/Frame"),"languageComputedMenu",J.i18n.GT._("Language"),"PDBaaResiduesComputedMenu",J.i18n.GT._("By Residue Name"),
"PDBnucleicResiduesComputedMenu",J.i18n.GT._("By Residue Name"),"PDBcarboResiduesComputedMenu",J.i18n.GT._("By Residue Name"),"PDBheteroComputedMenu",J.i18n.GT._("By HETATM"),"surfMoComputedMenuText",J.i18n.GT._("Molecular Orbitals ({0})"),"SYMMETRYSelectComputedMenu",J.i18n.GT._("Symmetry"),"SYMMETRYShowComputedMenu",J.i18n.GT._("Space Group"),"SYMMETRYhide",J.i18n.GT._("Hide Symmetry"),"hiddenModelSetText",J.i18n.GT._("Model information"),"selectMenuText",J.i18n.GT._("Select ({0})"),"allModelsText",
J.i18n.GT._("All {0} models"),"configurationMenuText",J.i18n.GT._("Configurations ({0})"),"modelSetCollectionText",J.i18n.GT._("Collection of {0} models"),"atomsText",J.i18n.GT._("atoms: {0}"),"bondsText",J.i18n.GT._("bonds: {0}"),"groupsText",J.i18n.GT._("groups: {0}"),"chainsText",J.i18n.GT._("chains: {0}"),"polymersText",J.i18n.GT._("polymers: {0}"),"modelMenuText",J.i18n.GT._("model {0}"),"viewMenuText",J.i18n.GT._("View {0}"),"mainMenuText",J.i18n.GT._("Main Menu"),"biomoleculesMenuText",J.i18n.GT._("Biomolecules"),
"biomoleculeText",J.i18n.GT._("biomolecule {0} ({1} atoms)"),"loadBiomoleculeText",J.i18n.GT._("load biomolecule {0} ({1} atoms)"),"selectAll",J.i18n.GT._("All"),"selectNone",J.i18n.GT._("None"),"hideNotSelectedCB",J.i18n.GT._("Display Selected Only"),"invertSelection",J.i18n.GT._("Invert Selection"),"viewMenu",J.i18n.GT._("View"),"front",J.i18n.GT._("Front"),"left",J.i18n.GT._("Left"),"right",J.i18n.GT._("Right"),"top",J.util.TextFormat.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"),"PDBproteinMenu",J.i18n.GT._("Protein"),"allProtein",J.i18n.GT._("All"),"proteinBackbone",J.i18n.GT._("Backbone"),"proteinSideChains",J.i18n.GT._("Side Chains"),"polar",J.i18n.GT._("Polar Residues"),"nonpolar",J.i18n.GT._("Nonpolar Residues"),"positiveCharge",J.i18n.GT._("Basic Residues (+)"),"negativeCharge",J.i18n.GT._("Acidic Residues (-)"),"noCharge",J.i18n.GT._("Uncharged Residues"),"PDBnucleicMenu",J.i18n.GT._("Nucleic"),"allNucleic",
J.i18n.GT._("All"),"DNA",J.i18n.GT._("DNA"),"RNA",J.i18n.GT._("RNA"),"nucleicBackbone",J.i18n.GT._("Backbone"),"nucleicBases",J.i18n.GT._("Bases"),"atPairs",J.i18n.GT._("AT pairs"),"gcPairs",J.i18n.GT._("GC pairs"),"auPairs",J.i18n.GT._("AU pairs"),"PDBheteroMenu",J.i18n.GT._("Hetero"),"allHetero",J.i18n.GT._('All PDB "HETATM"'),"Solvent",J.i18n.GT._("All Solvent"),"Water",J.i18n.GT._("All Water"),"nonWaterSolvent",J.i18n.GT._("Nonaqueous Solvent")+" (solvent and not water)","exceptWater",J.i18n.GT._("Nonaqueous HETATM")+
" (hetero and not water)","Ligand",J.i18n.GT._("Ligand"),"allCarbo",J.i18n.GT._("All"),"PDBcarboMenu",J.i18n.GT._("Carbohydrate"),"PDBnoneOfTheAbove",J.i18n.GT._("None of the above"),"renderMenu",J.i18n.GT._("Style"),"renderSchemeMenu",J.i18n.GT._("Scheme"),"renderCpkSpacefill",J.i18n.GT._("CPK Spacefill"),"renderBallAndStick",J.i18n.GT._("Ball and Stick"),"renderSticks",J.i18n.GT._("Sticks"),"renderWireframe",J.i18n.GT._("Wireframe"),"PDBrenderCartoonsOnly",J.i18n.GT._("Cartoon"),"PDBrenderTraceOnly",
J.i18n.GT._("Trace"),"atomMenu",J.i18n.GT._("Atoms"),"atomNone",J.i18n.GT._("Off"),"atom15",J.i18n.GT._("{0}% van der Waals","15"),"atom20",J.i18n.GT._("{0}% van der Waals","20"),"atom25",J.i18n.GT._("{0}% van der Waals","25"),"atom50",J.i18n.GT._("{0}% van der Waals","50"),"atom75",J.i18n.GT._("{0}% van der Waals","75"),"atom100",J.i18n.GT._("{0}% van der Waals","100"),"bondMenu",J.i18n.GT._("Bonds"),"bondNone",J.i18n.GT._("Off"),"bondWireframe",J.i18n.GT._("On"),"bond100",J.i18n.GT._("{0} \u00c5",
"0.10"),"bond150",J.i18n.GT._("{0} \u00c5","0.15"),"bond200",J.i18n.GT._("{0} \u00c5","0.20"),"bond250",J.i18n.GT._("{0} \u00c5","0.25"),"bond300",J.i18n.GT._("{0} \u00c5","0.30"),"hbondMenu",J.i18n.GT._("Hydrogen Bonds"),"hbondNone",J.i18n.GT._("Off"),"hbondCalc",J.i18n.GT._("Calculate"),"hbondWireframe",J.i18n.GT._("On"),"PDBhbondSidechain",J.i18n.GT._("Set H-Bonds Side Chain"),"PDBhbondBackbone",J.i18n.GT._("Set H-Bonds Backbone"),"hbond100",J.i18n.GT._("{0} \u00c5","0.10"),"hbond150",J.i18n.GT._("{0} \u00c5",
"0.15"),"hbond200",J.i18n.GT._("{0} \u00c5","0.20"),"hbond250",J.i18n.GT._("{0} \u00c5","0.25"),"hbond300",J.i18n.GT._("{0} \u00c5","0.30"),"ssbondMenu",J.i18n.GT._("Disulfide Bonds"),"ssbondNone",J.i18n.GT._("Off"),"ssbondWireframe",J.i18n.GT._("On"),"PDBssbondSidechain",J.i18n.GT._("Set SS-Bonds Side Chain"),"PDBssbondBackbone",J.i18n.GT._("Set SS-Bonds Backbone"),"ssbond100",J.i18n.GT._("{0} \u00c5","0.10"),"ssbond150",J.i18n.GT._("{0} \u00c5","0.15"),"ssbond200",J.i18n.GT._("{0} \u00c5","0.20"),
"ssbond250",J.i18n.GT._("{0} \u00c5","0.25"),"ssbond300",J.i18n.GT._("{0} \u00c5","0.30"),"PDBstructureMenu",J.i18n.GT._("Structures"),"structureNone",J.i18n.GT._("Off"),"backbone",J.i18n.GT._("Backbone"),"cartoon",J.i18n.GT._("Cartoon"),"cartoonRockets",J.i18n.GT._("Cartoon Rockets"),"ribbons",J.i18n.GT._("Ribbons"),"rockets",J.i18n.GT._("Rockets"),"strands",J.i18n.GT._("Strands"),"trace",J.i18n.GT._("Trace"),"VIBRATIONMenu",J.i18n.GT._("Vibration"),"vibrationOff",J.i18n.GT._("Off"),"vibrationOn",
J.i18n.GT._("On"),"vibration20","*2","vibration05","/2","VIBRATIONvectorMenu",J.i18n.GT._("Vectors"),"spectraMenu",J.i18n.GT._("Spectra"),"hnmrMenu",J.i18n.GT._("1H-NMR"),"cnmrMenu",J.i18n.GT._("13C-NMR"),"vectorOff",J.i18n.GT._("Off"),"vectorOn",J.i18n.GT._("On"),"vector3",J.i18n.GT._("{0} pixels","3"),"vector005",J.i18n.GT._("{0} \u00c5","0.05"),"vector01",J.i18n.GT._("{0} \u00c5","0.10"),"vectorScale02",J.i18n.GT._("Scale {0}","0.2"),"vectorScale05",J.i18n.GT._("Scale {0}","0.5"),"vectorScale1",
J.i18n.GT._("Scale {0}","1"),"vectorScale2",J.i18n.GT._("Scale {0}","2"),"vectorScale5",J.i18n.GT._("Scale {0}","5"),"stereoMenu",J.i18n.GT._("Stereographic"),"stereoNone",J.i18n.GT._("None"),"stereoRedCyan",J.i18n.GT._("Red+Cyan glasses"),"stereoRedBlue",J.i18n.GT._("Red+Blue glasses"),"stereoRedGreen",J.i18n.GT._("Red+Green glasses"),"stereoCrossEyed",J.i18n.GT._("Cross-eyed viewing"),"stereoWallEyed",J.i18n.GT._("Wall-eyed viewing"),"labelMenu",J.i18n.GT._("Labels"),"labelNone",J.i18n.GT._("None"),
"labelSymbol",J.i18n.GT._("With Element Symbol"),"labelName",J.i18n.GT._("With Atom Name"),"labelNumber",J.i18n.GT._("With Atom Number"),"labelPositionMenu",J.i18n.GT._("Position Label on Atom"),"labelCentered",J.i18n.GT._("Centered"),"labelUpperRight",J.i18n.GT._("Upper Right"),"labelLowerRight",J.i18n.GT._("Lower Right"),"labelUpperLeft",J.i18n.GT._("Upper Left"),"labelLowerLeft",J.i18n.GT._("Lower Left"),"colorMenu",J.i18n.GT._("Color"),"[color_atoms]Menu",J.i18n.GT._("Atoms"),"schemeMenu",J.i18n.GT._("By Scheme"),
"cpk",J.i18n.GT._("Element (CPK)"),"altloc#PDB",J.i18n.GT._("Alternative Location"),"molecule",J.i18n.GT._("Molecule"),"formalcharge",J.i18n.GT._("Formal Charge"),"partialcharge#CHARGE",J.i18n.GT._("Partial Charge"),"relativeTemperature#BFACTORS",J.i18n.GT._("Temperature (Relative)"),"fixedTemperature#BFACTORS",J.i18n.GT._("Temperature (Fixed)"),"amino#PDB",J.i18n.GT._("Amino Acid"),"structure#PDB",J.i18n.GT._("Secondary Structure"),"chain#PDB",J.i18n.GT._("Chain"),"group#PDB",J.i18n.GT._("Group"),
"monomer#PDB",J.i18n.GT._("Monomer"),"shapely#PDB",J.i18n.GT._("Shapely"),"none",J.i18n.GT._("Inherit"),"black",J.i18n.GT._("Black"),"white",J.i18n.GT._("White"),"cyan",J.i18n.GT._("Cyan"),"red",J.i18n.GT._("Red"),"orange",J.i18n.GT._("Orange"),"yellow",J.i18n.GT._("Yellow"),"green",J.i18n.GT._("Green"),"blue",J.i18n.GT._("Blue"),"indigo",J.i18n.GT._("Indigo"),"violet",J.i18n.GT._("Violet"),"salmon",J.i18n.GT._("Salmon"),"olive",J.i18n.GT._("Olive"),"maroon",J.i18n.GT._("Maroon"),"gray",J.i18n.GT._("Gray"),
"slateblue",J.i18n.GT._("Slate Blue"),"gold",J.i18n.GT._("Gold"),"orchid",J.i18n.GT._("Orchid"),"opaque",J.i18n.GT._("Make Opaque"),"translucent",J.i18n.GT._("Make Translucent"),"[color_bonds]Menu",J.i18n.GT._("Bonds"),"[color_hbonds]Menu",J.i18n.GT._("Hydrogen Bonds"),"[color_ssbonds]Menu",J.i18n.GT._("Disulfide Bonds"),"colorPDBStructuresMenu",J.i18n.GT._("Structures"),"[color_backbone]Menu",J.i18n.GT._("Backbone"),"[color_trace]Menu",J.i18n.GT._("Trace"),"[color_cartoon]sMenu",J.i18n.GT._("Cartoon"),
"[color_ribbon]sMenu",J.i18n.GT._("Ribbons"),"[color_rockets]Menu",J.i18n.GT._("Rockets"),"[color_strands]Menu",J.i18n.GT._("Strands"),"[color_labels]Menu",J.i18n.GT._("Labels"),"[color_background]Menu",J.i18n.GT._("Background"),"[color_isosurface]Menu",J.i18n.GT._("Surfaces"),"[color_vectors]Menu",J.i18n.GT._("Vectors"),"[color_axes]Menu",J.i18n.GT._("Axes"),"[color_boundbox]Menu",J.i18n.GT._("Boundbox"),"[color_UNITCELL]Menu",J.i18n.GT._("Unit cell"),"zoomMenu",J.i18n.GT._("Zoom"),"zoom50","50%",
"zoom100","100%","zoom150","150%","zoom200","200%","zoom400","400%","zoom800","800%","zoomIn",J.i18n.GT._("Zoom In"),"zoomOut",J.i18n.GT._("Zoom Out"),"spinMenu",J.i18n.GT._("Spin"),"spinOn",J.i18n.GT._("On"),"spinOff",J.i18n.GT._("Off"),"[set_spin_X]Menu",J.i18n.GT._("Set X Rate"),"[set_spin_Y]Menu",J.i18n.GT._("Set Y Rate"),"[set_spin_Z]Menu",J.i18n.GT._("Set Z Rate"),"[set_spin_FPS]Menu",J.i18n.GT._("Set FPS"),"s0","0","s5","5","s10","10","s20","20","s30","30","s40","40","s50","50","FRAMESanimateMenu",
J.i18n.GT._("Animation"),"animModeMenu",J.i18n.GT._("Animation Mode"),"onceThrough",J.i18n.GT._("Play Once"),"palindrome",J.i18n.GT._("Palindrome"),"loop",J.i18n.GT._("Loop"),"play",J.i18n.GT._("Play"),"pause",J.i18n.GT._("Pause"),"resume",J.i18n.GT._("Resume"),"stop",J.i18n.GT._("Stop"),"nextframe",J.i18n.GT._("Next Frame"),"prevframe",J.i18n.GT._("Previous Frame"),"rewind",J.i18n.GT._("Rewind"),"playrev",J.i18n.GT._("Reverse"),"restart",J.i18n.GT._("Restart"),"FRAMESanimFpsMenu",J.i18n.GT._("Set FPS"),
"animfps5","5","animfps10","10","animfps20","20","animfps30","30","animfps50","50","measureMenu",J.i18n.GT._("Measurements"),"measureOff",J.i18n.GT._("Double-Click begins and ends all measurements"),"measureDistance",J.i18n.GT._("Click for distance measurement"),"measureAngle",J.i18n.GT._("Click for angle measurement"),"measureTorsion",J.i18n.GT._("Click for torsion (dihedral) measurement"),"PDBmeasureSequence",J.i18n.GT._("Click two atoms to display a sequence in the console"),"measureDelete",J.i18n.GT._("Delete measurements"),
"measureList",J.i18n.GT._("List measurements"),"distanceNanometers",J.i18n.GT._("Distance units nanometers"),"distanceAngstroms",J.i18n.GT._("Distance units Angstroms"),"distancePicometers",J.i18n.GT._("Distance units picometers"),"pickingMenu",J.i18n.GT._("Set picking"),"pickOff",J.i18n.GT._("Off"),"pickCenter",J.i18n.GT._("Center"),"pickIdent",J.i18n.GT._("Identity"),"pickLabel",J.i18n.GT._("Label"),"pickAtom",J.i18n.GT._("Select atom"),"PDBpickChain",J.i18n.GT._("Select chain"),"pickElement",J.i18n.GT._("Select element"),
"PDBpickGroup",J.i18n.GT._("Select group"),"pickMolecule",J.i18n.GT._("Select molecule"),"SYMMETRYpickSite",J.i18n.GT._("Select site"),"SYMMETRYpickSymmetry",J.i18n.GT._("Show symmetry operation"),"pickSpin",J.i18n.GT._("Spin"),"showMenu",J.i18n.GT._("Show"),"showConsole",J.i18n.GT._("Console"),"showFile",J.i18n.GT._("File Contents"),"showFileHeader",J.i18n.GT._("File Header"),"showHistory",J.i18n.GT._("History"),"showIsosurface",J.i18n.GT._("Isosurface JVXL data"),"showMeasure",J.i18n.GT._("Measurements"),
"showMo",J.i18n.GT._("Molecular orbital JVXL data"),"showModel",J.i18n.GT._("Model"),"showOrient",J.i18n.GT._("Orientation"),"showSpacegroup",J.i18n.GT._("Space group"),"SYMMETRYshowSymmetry",J.i18n.GT._("Symmetry"),"showState",J.i18n.GT._("Current state"),"fileMenu",J.i18n.GT._("File"),"reload",J.i18n.GT._("Reload"),"SIGNEDloadPdb",J.i18n.GT._("Open from PDB"),"SIGNEDloadFileOrUrl",J.i18n.GT._("Open file or URL"),"SIGNEDloadFileUnitCell",J.i18n.GT._("Load full unit cell"),"SIGNEDloadScript",J.i18n.GT._("Open script"),
"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"),"SIGNEDwriteJpg",J.i18n.GT._("Export {0} image","JPG"),"SIGNEDwritePng",J.i18n.GT._("Export {0} image","PNG"),"SIGNEDwritePngJmol",J.i18n.GT._("Export {0} image","PNG+JMOL"),"SIGNEDwriteGif",J.i18n.GT._("Export {0} image","GIF"),"SIGNEDwritePovray",J.i18n.GT._("Export {0} image","POV-Ray"),"SIGNEDwriteJmol",J.i18n.GT._("Save all as JMOL file (zip)"),
"SIGNEDwriteIsosurface",J.i18n.GT._("Save JVXL isosurface"),"SIGNEDwriteVrml",J.i18n.GT._("Export {0} 3D model","VRML"),"SIGNEDwriteX3d",J.i18n.GT._("Export {0} 3D model","X3D"),"SIGNEDwriteIdtf",J.i18n.GT._("Export {0} 3D model","IDTF"),"SIGNEDwriteMaya",J.i18n.GT._("Export {0} 3D model","Maya"),"computationMenu",J.i18n.GT._("Computation"),"minimize",J.i18n.GT._("Optimize structure"),"modelkit",J.i18n.GT._("Model kit"),"UNITCELLshow",J.i18n.GT._("Unit cell"),"extractMOL",J.i18n.GT._("Extract MOL data"),
"surfaceMenu",J.i18n.GT._("Surfaces"),"surfDots",J.i18n.GT._("Dot Surface"),"surfVDW",J.i18n.GT._("van der Waals Surface"),"surfMolecular",J.i18n.GT._("Molecular Surface"),"surfSolvent14",J.i18n.GT._("Solvent Surface ({0}-Angstrom probe)","1.4"),"surfSolventAccessible14",J.i18n.GT._("Solvent-Accessible Surface (VDW + {0} Angstrom)","1.4"),"CHARGEsurfMEP",J.i18n.GT._("Molecular Electrostatic Potential"),"surfOpaque",J.i18n.GT._("Make Opaque"),"surfTranslucent",J.i18n.GT._("Make Translucent"),"surfOff",
J.i18n.GT._("Off"),"FILEUNITMenu",J.i18n.GT._("Symmetry"),"FILEMOLload",J.i18n.GT._("Reload {0}","(molecular)"),"FILEUNITone",J.i18n.GT._("Reload {0}","{1 1 1}"),"FILEUNITnine",J.i18n.GT._("Reload {0}","{444 666 1}"),"FILEUNITnineRestricted",J.i18n.GT._("Reload {0} + Display {1}",["{444 666 1}","555"]),"FILEUNITninePoly",J.i18n.GT._("Reload + Polyhedra"),"[set_axes]Menu",J.i18n.GT._("Axes"),"[set_boundbox]Menu",J.i18n.GT._("Boundbox"),"[set_UNITCELL]Menu",J.i18n.GT._("Unit cell"),"off#axes",J.i18n.GT._("Hide"),
"dotted",J.i18n.GT._("Dotted"),"byPixelMenu",J.i18n.GT._("Pixel Width"),"1p",J.i18n.GT._("{0} px","1"),"3p",J.i18n.GT._("{0} px","3"),"5p",J.i18n.GT._("{0} px","5"),"10p",J.i18n.GT._("{0} px","10"),"byAngstromMenu",J.i18n.GT._("Angstrom Width"),"10a",J.i18n.GT._("{0} \u00c5","0.10"),"20a",J.i18n.GT._("{0} \u00c5","0.20"),"25a",J.i18n.GT._("{0} \u00c5","0.25"),"50a",J.i18n.GT._("{0} \u00c5","0.50"),"100a",J.i18n.GT._("{0} \u00c5","1.0"),"showSelectionsCB",J.i18n.GT._("Selection Halos"),"showHydrogensCB",
J.i18n.GT._("Show Hydrogens"),"showMeasurementsCB",J.i18n.GT._("Show Measurements"),"perspectiveDepthCB",J.i18n.GT._("Perspective Depth"),"showBoundBoxCB",J.i18n.GT._("Boundbox"),"showAxesCB",J.i18n.GT._("Axes"),"showUNITCELLCB",J.i18n.GT._("Unit cell"),"colorrasmolCB",J.i18n.GT._("RasMol Colors"),"aboutComputedMenu",J.i18n.GT._("About..."),"APPLETjmolUrl","http://www.jmol.org","APPLETmouseManualUrl",J.i18n.GT._("Mouse Manual"),"APPLETtranslationUrl",J.i18n.GT._("Translations")];J.i18n.GT.setDoTranslate(a);
return c});Clazz.overrideMethod(c$,"getMenuAsText",function(a){return"# Jmol.mnu "+a+"\n\n# Part I -- Menu Structure\n# ------------------------\n\n"+this.dumpStructure(J.popup.MainPopupResourceBundle.menuContents)+"\n\n# Part II -- Key Definitions\n# --------------------------\n\n"+this.dumpStructure(J.popup.MainPopupResourceBundle.structureContents)+"\n\n# Part III -- Word Translations\n# -----------------------------\n\n"+this.dumpWords()},"~S");$_M(c$,"dumpWords",($fz=function(){for(var a=this.getWordContents(),
c=new J.util.SB,b=0;b<a.length;b++){var d=a[b++];null==this.structure.getProperty(d)&&c.append(d).append(" | ").append(a[b]).appendC("\n")}return c.toString()},$fz.isPrivate=!0,$fz));$_M(c$,"dumpStructure",($fz=function(a){for(var c="",b=new J.util.SB,d=0;d<a.length;d++){var e=a[d][0],f=this.words.getProperty(e);null!=f&&(e+=" | "+f);b.append(e).append(" = ").append(null==a[d][1]?c:c=a[d][1]).appendC("\n")}return b.toString()},$fz.isPrivate=!0,$fz),"~A");Clazz.defineStatics(c$,"MENU_NAME","popupMenu");
c$.menuContents=c$.prototype.menuContents=[["@COLOR","black white red orange yellow green cyan blue indigo violet"],["@AXESCOLOR","gray salmon maroon olive slateblue gold orchid"],["popupMenu","FRAMESbyModelComputedMenu configurationComputedMenu - selectMenuText viewMenu renderMenu colorMenu - surfaceMenu FILEUNITMenu - zoomMenu spinMenu VIBRATIONMenu spectraMenu FRAMESanimateMenu - measureMenu pickingMenu - showConsole showMenu fileMenu computationMenu - languageComputedMenu aboutComputedMenu"],
["selectMenuText","hideNotSelectedCB showSelectionsCB - selectAll selectNone invertSelection - elementsComputedMenu SYMMETRYSelectComputedMenu - PDBproteinMenu PDBnucleicMenu PDBheteroMenu PDBcarboMenu PDBnoneOfTheAbove"],["PDBproteinMenu","PDBaaResiduesComputedMenu - allProtein proteinBackbone proteinSideChains - polar nonpolar - positiveCharge negativeCharge noCharge"],["PDBcarboMenu","PDBcarboResiduesComputedMenu - allCarbo"],["PDBnucleicMenu","PDBnucleicResiduesComputedMenu - allNucleic nucleicBackbone nucleicBases - DNA RNA - atPairs auPairs gcPairs"],
["PDBheteroMenu","PDBheteroComputedMenu - allHetero Solvent Water - Ligand exceptWater nonWaterSolvent"],["viewMenu","front left right top bottom back"],["renderMenu","perspectiveDepthCB showBoundBoxCB showUNITCELLCB showAxesCB stereoMenu - renderSchemeMenu - atomMenu labelMenu bondMenu hbondMenu ssbondMenu - PDBstructureMenu [set_axes]Menu [set_boundbox]Menu [set_UNITCELL]Menu"],["renderSchemeMenu","renderCpkSpacefill renderBallAndStick renderSticks renderWireframe PDBrenderCartoonsOnly PDBrenderTraceOnly"],
["atomMenu","showHydrogensCB - atomNone - atom15 atom20 atom25 atom50 atom75 atom100"],["bondMenu","bondNone bondWireframe - bond100 bond150 bond200 bond250 bond300"],["hbondMenu","hbondCalc hbondNone hbondWireframe - PDBhbondSidechain PDBhbondBackbone - hbond100 hbond150 hbond200 hbond250 hbond300"],["ssbondMenu","ssbondNone ssbondWireframe - PDBssbondSidechain PDBssbondBackbone - ssbond100 ssbond150 ssbond200 ssbond250 ssbond300"],["PDBstructureMenu","structureNone - backbone cartoon cartoonRockets ribbons rockets strands trace"],
["VIBRATIONvectorMenu","vectorOff vectorOn vibScale20 vibScale05 vector3 vector005 vector01 - vectorScale02 vectorScale05 vectorScale1 vectorScale2 vectorScale5"],["stereoMenu","stereoNone stereoRedCyan stereoRedBlue stereoRedGreen stereoCrossEyed stereoWallEyed"],["labelMenu","labelNone - labelSymbol labelName labelNumber - labelPositionMenu"],["labelPositionMenu","labelCentered labelUpperRight labelLowerRight labelUpperLeft labelLowerLeft"],["colorMenu","colorrasmolCB - [color_atoms]Menu [color_bonds]Menu [color_hbonds]Menu [color_ssbonds]Menu colorPDBStructuresMenu [color_isosurface]Menu - [color_labels]Menu [color_vectors]Menu - [color_axes]Menu [color_boundbox]Menu [color_UNITCELL]Menu [color_background]Menu"],
["[color_atoms]Menu","schemeMenu - @COLOR - opaque translucent"],["[color_bonds]Menu","none - @COLOR - opaque translucent"],["[color_hbonds]Menu",null],["[color_ssbonds]Menu",null],["[color_labels]Menu",null],["[color_vectors]Menu",null],["[color_backbone]Menu","none - schemeMenu - @COLOR - opaque translucent"],["[color_cartoon]sMenu",null],["[color_ribbon]sMenu",null],["[color_rockets]Menu",null],["[color_strands]Menu",null],["[color_trace]Menu",null],["[color_background]Menu","@COLOR"],["[color_isosurface]Menu",
"@COLOR - opaque translucent"],["[color_axes]Menu","@AXESCOLOR"],["[color_boundbox]Menu",null],["[color_UNITCELL]Menu",null],["colorPDBStructuresMenu","[color_backbone]Menu [color_cartoon]sMenu [color_ribbon]sMenu [color_rockets]Menu [color_strands]Menu [color_trace]Menu"],["schemeMenu","cpk - formalcharge partialcharge#CHARGE - altloc#PDB amino#PDB chain#PDB group#PDB molecule monomer#PDB shapely#PDB structure#PDB relativeTemperature#BFACTORS fixedTemperature#BFACTORS"],["zoomMenu","zoom50 zoom100 zoom150 zoom200 zoom400 zoom800 - zoomIn zoomOut"],
["spinMenu","spinOn spinOff - [set_spin_X]Menu [set_spin_Y]Menu [set_spin_Z]Menu - [set_spin_FPS]Menu"],["VIBRATIONMenu","vibrationOff vibrationOn vibration20 vibration05 VIBRATIONvectorMenu"],["spectraMenu","hnmrMenu cnmrMenu"],["FRAMESanimateMenu","animModeMenu - play pause resume stop - nextframe prevframe rewind - playrev restart - FRAMESanimFpsMenu"],["FRAMESanimFpsMenu","animfps5 animfps10 animfps20 animfps30 animfps50"],["measureMenu","showMeasurementsCB - measureOff measureDistance measureAngle measureTorsion PDBmeasureSequence - measureDelete measureList - distanceNanometers distanceAngstroms distancePicometers"],
["pickingMenu","pickOff pickCenter pickIdent pickLabel pickAtom pickMolecule pickElement PDBpickChain PDBpickGroup SYMMETRYpickSite pickSpin"],["computationMenu","minimize modelkit"],["showMenu","showHistory showFile showFileHeader - showOrient showMeasure - showSpacegroup showState SYMMETRYshowSymmetry UNITCELLshow - showIsosurface showMo - extractMOL"],["fileMenu","SIGNEDloadFileOrUrl SIGNEDloadPdb SIGNEDloadScript - reload SIGNEDloadFileUnitCell - writeFileTextVARIABLE writeState writeHistory SIGNEDwriteJmol SIGNEDwriteIsosurface - SIGNEDJAVAwriteGif SIGNEDNOGLwriteJpg SIGNEDNOGLwritePng SIGNEDNOGLwritePngJmol SIGNEDJAVAwritePovray - SIGNEDJAVAwriteVrml SIGNEDJAVAwriteX3d SIGNEDJAVAwriteIdtf SIGNEDJAVAwriteMaya"],
["[set_spin_X]Menu","s0 s5 s10 s20 s30 s40 s50"],["[set_spin_Y]Menu",null],["[set_spin_Z]Menu",null],["[set_spin_FPS]Menu",null],["animModeMenu","onceThrough palindrome loop"],["surfaceMenu","surfDots surfVDW surfSolventAccessible14 surfSolvent14 surfMolecular CHARGEsurfMEP surfMoComputedMenuText - surfOpaque surfTranslucent surfOff"],["FILEUNITMenu","SYMMETRYShowComputedMenu SYMMETRYhide FILEMOLload FILEUNITone FILEUNITnine FILEUNITnineRestricted FILEUNITninePoly"],["[set_axes]Menu","off#axes dotted - byPixelMenu byAngstromMenu"],
["[set_boundbox]Menu",null],["[set_UNITCELL]Menu",null],["byPixelMenu","1p 3p 5p 10p"],["byAngstromMenu","10a 20a 25a 50a 100a"],["aboutComputedMenu","- "]];c$.structureContents=c$.prototype.structureContents=[["colorrasmolCB",""],["hideNotSelectedCB","set hideNotSelected true | set hideNotSelected false; hide(none)"],["perspectiveDepthCB",""],["showAxesCB","set showAxes true | set showAxes false;set axesMolecular"],["showBoundBoxCB",""],["showHydrogensCB",""],["showMeasurementsCB",""],["showSelectionsCB",
""],["showUNITCELLCB",""],["selectAll","SELECT all"],["selectNone","SELECT none"],["invertSelection","SELECT not selected"],["allProtein","SELECT protein"],["proteinBackbone","SELECT protein and backbone"],["proteinSideChains","SELECT protein and not backbone"],["polar","SELECT protein and polar"],["nonpolar","SELECT protein and not polar"],["positiveCharge","SELECT protein and basic"],["negativeCharge","SELECT protein and acidic"],["noCharge","SELECT protein and not (acidic,basic)"],["allCarbo",
"SELECT carbohydrate"],["allNucleic","SELECT nucleic"],["DNA","SELECT dna"],["RNA","SELECT rna"],["nucleicBackbone","SELECT nucleic and backbone"],["nucleicBases","SELECT nucleic and not backbone"],["atPairs","SELECT a,t"],["gcPairs","SELECT g,c"],["auPairs","SELECT a,u"],["A","SELECT a"],["C","SELECT c"],["G","SELECT g"],["T","SELECT t"],["U","SELECT u"],["allHetero","SELECT hetero"],["Solvent","SELECT solvent"],["Water","SELECT water"],["nonWaterSolvent","SELECT solvent and not water"],["exceptWater",
"SELECT hetero and not water"],["Ligand","SELECT ligand"],["PDBnoneOfTheAbove","SELECT not(hetero,protein,nucleic,carbohydrate)"],["front",J.popup.MainPopupResourceBundle.Box("moveto 2.0 front;delay 1")],["left",J.popup.MainPopupResourceBundle.Box("moveto 1.0 front;moveto 2.0 left;delay 1")],["right",J.popup.MainPopupResourceBundle.Box("moveto 1.0 front;moveto 2.0 right;delay 1")],["top",J.popup.MainPopupResourceBundle.Box("moveto 1.0 front;moveto 2.0 top;delay 1")],["bottom",J.popup.MainPopupResourceBundle.Box("moveto 1.0 front;moveto 2.0 bottom;delay 1")],
["back",J.popup.MainPopupResourceBundle.Box("moveto 1.0 front;moveto 2.0 back;delay 1")],["renderCpkSpacefill","restrict bonds not selected;select not selected;spacefill 100%;color cpk"],["renderBallAndStick","restrict bonds not selected;select not selected;spacefill 23%AUTO;wireframe 0.15;color cpk"],["renderSticks","restrict bonds not selected;select not selected;wireframe 0.3;color cpk"],["renderWireframe","restrict bonds not selected;select not selected;wireframe on;color cpk"],["PDBrenderCartoonsOnly",
"restrict bonds not selected;select not selected;cartoons on;color structure"],["PDBrenderTraceOnly","restrict bonds not selected;select not selected;trace on;color structure"],["atomNone","cpk off"],["atom15","cpk 15%"],["atom20","cpk 20%"],["atom25","cpk 25%"],["atom50","cpk 50%"],["atom75","cpk 75%"],["atom100","cpk on"],["bondNone","wireframe off"],["bondWireframe","wireframe on"],["bond100","wireframe .1"],["bond150","wireframe .15"],["bond200","wireframe .2"],["bond250","wireframe .25"],["bond300",
"wireframe .3"],["hbondCalc","hbonds calculate"],["hbondNone","hbonds off"],["hbondWireframe","hbonds on"],["PDBhbondSidechain","set hbonds sidechain"],["PDBhbondBackbone","set hbonds backbone"],["hbond100","hbonds .1"],["hbond150","hbonds .15"],["hbond200","hbonds .2"],["hbond250","hbonds .25"],["hbond300","hbonds .3"],["ssbondNone","ssbonds off"],["ssbondWireframe","ssbonds on"],["PDBssbondSidechain","set ssbonds sidechain"],["PDBssbondBackbone","set ssbonds backbone"],["ssbond100","ssbonds .1"],
["ssbond150","ssbonds .15"],["ssbond200","ssbonds .2"],["ssbond250","ssbonds .25"],["ssbond300","ssbonds .3"],["structureNone","backbone off;cartoons off;ribbons off;rockets off;strands off;trace off;"],["backbone","restrict not selected;select not selected;backbone 0.3"],["cartoon","restrict not selected;select not selected;set cartoonRockets false;cartoons on"],["cartoonRockets","restrict not selected;select not selected;set cartoonRockets;cartoons on"],["ribbons","restrict not selected;select not selected;ribbons on"],
["rockets","restrict not selected;select not selected;rockets on"],["strands","restrict not selected;select not selected;strands on"],["trace","restrict not selected;select not selected;trace 0.3"],["vibrationOff","vibration off"],["vibrationOn","vibration on"],["vibration20","vibrationScale *= 2"],["vibration05","vibrationScale /= 2"],["vectorOff","vectors off"],["vectorOn","vectors on"],["vector3","vectors 3"],["vector005","vectors 0.05"],["vector01","vectors 0.1"],["vectorScale02","vector scale 0.2"],
["vectorScale05","vector scale 0.5"],["vectorScale1","vector scale 1"],["vectorScale2","vector scale 2"],["vectorScale5","vector scale 5"],["stereoNone","stereo off"],["stereoRedCyan","stereo redcyan 3"],["stereoRedBlue","stereo redblue 3"],["stereoRedGreen","stereo redgreen 3"],["stereoCrossEyed","stereo -5"],["stereoWallEyed","stereo 5"],["labelNone","label off"],["labelSymbol","label %e"],["labelName","label %a"],["labelNumber","label %i"],["labelCentered","set labeloffset 0 0"],["labelUpperRight",
"set labeloffset 4 4"],["labelLowerRight","set labeloffset 4 -4"],["labelUpperLeft","set labeloffset -4 4"],["labelLowerLeft","set labeloffset -4 -4"],["zoom50","zoom 50"],["zoom100","zoom 100"],["zoom150","zoom 150"],["zoom200","zoom 200"],["zoom400","zoom 400"],["zoom800","zoom 800"],["zoomIn","move 0 0 0 40 0 0 0 0 1"],["zoomOut","move 0 0 0 -40 0 0 0 0 1"],["spinOn","spin on"],["spinOff","spin off"],["s0","0"],["s5","5"],["s10","10"],["s20","20"],["s30","30"],["s40","40"],["s50","50"],["onceThrough",
"anim mode once#"],["palindrome","anim mode palindrome#"],["loop","anim mode loop#"],["play","anim play#"],["pause","anim pause#"],["resume","anim resume#"],["stop","anim off#"],["nextframe","frame next#"],["prevframe","frame prev#"],["playrev","anim playrev#"],["rewind","anim rewind#"],["restart","anim on#"],["animfps5","anim fps 5#"],["animfps10","anim fps 10#"],["animfps20","anim fps 20#"],["animfps30","anim fps 30#"],["animfps50","anim fps 50#"],["measureOff","set pickingstyle MEASURE OFF; set picking OFF"],
["measureDistance","set pickingstyle MEASURE; set picking MEASURE DISTANCE"],["measureAngle","set pickingstyle MEASURE; set picking MEASURE ANGLE"],["measureTorsion","set pickingstyle MEASURE; set picking MEASURE TORSION"],["PDBmeasureSequence","set pickingstyle MEASURE; set picking MEASURE SEQUENCE"],["measureDelete","measure delete"],["measureList","console on;show measurements"],["distanceNanometers","select *; set measure nanometers"],["distanceAngstroms","select *; set measure angstroms"],["distancePicometers",
"select *; set measure picometers"],["pickOff","set picking off"],["pickCenter","set picking center"],["pickIdent","set picking ident"],["pickLabel","set picking label"],["pickAtom","set picking atom"],["PDBpickChain","set picking chain"],["pickElement","set picking element"],["PDBpickGroup","set picking group"],["pickMolecule","set picking molecule"],["SYMMETRYpickSite","set picking site"],["pickSpin","set picking spin"],["SYMMETRYpickSymmetry","set picking symmetry"],["showConsole","console"],["showFile",
"console on;show file"],["showFileHeader","console on;getProperty FileHeader"],["showHistory","console on;show history"],["showIsosurface","console on;show isosurface"],["showMeasure","console on;show measure"],["showMo","console on;show mo"],["showModel","console on;show model"],["showOrient","console on;show orientation"],["showSpacegroup","console on;show spacegroup"],["showState","console on;show state"],["reload",'load ""'],["SIGNEDloadPdb","load ?PdbId?"],["SIGNEDloadFileOrUrl","load ?"],["SIGNEDloadFileUnitCell",
"load ? {1 1 1}"],["SIGNEDloadScript","script ?.spt"],["writeFileTextVARIABLE",'if (_applet && !_signedApplet) { console;show file } else { write file "?FILE?"}'],["writeState",'if (_applet && !_signedApplet) { console;show state } else { write state "?FILEROOT?.spt"}'],["writeHistory",'if (_applet && !_signedApplet) { console;show history } else { write history "?FILEROOT?.his"}'],["SIGNEDwriteJmol",'write "?FILEROOT?.jmol"'],["SIGNEDwriteIsosurface",'write isosurface "?FILEROOT?.jvxl"'],["SIGNEDJAVAwriteGif",
'write image "?FILEROOT?.gif"'],["SIGNEDNOGLwriteJpg",'write image "?FILEROOT?.jpg"'],["SIGNEDNOGLwritePng",'write image "?FILEROOT?.png"'],["SIGNEDNOGLwritePngJmol",'write PNGJ "?FILEROOT?.png"'],["SIGNEDJAVAwritePovray",'write POVRAY "?FILEROOT?.pov"'],["SIGNEDJAVAwriteVrml",'write VRML "?FILEROOT?.wrl"'],["SIGNEDJAVAwriteX3d",'write X3D "?FILEROOT?.x3d"'],["SIGNEDJAVAwriteIdtf",'write IDTF "?FILEROOT?.idtf"'],["SIGNEDJAVAwriteMaya",'write MAYA "?FILEROOT?.ma"'],["SYMMETRYshowSymmetry","console on;show symmetry"],
["UNITCELLshow","console on;show unitcell"],["extractMOL",'console on;getproperty extractModel "visible" '],["minimize","minimize"],["modelkit","set modelkitmode"],["surfDots","dots on"],["surfVDW","isosurface delete resolution 0 solvent 0 translucent"],["surfMolecular","isosurface delete resolution 0 molecular translucent"],["surfSolvent14","isosurface delete resolution 0 solvent 1.4 translucent"],["surfSolventAccessible14","isosurface delete resolution 0 sasurface 1.4 translucent"],["CHARGEsurfMEP",
"isosurface delete resolution 0 vdw color range all map MEP translucent"],["surfOpaque","mo opaque;isosurface opaque"],["surfTranslucent","mo translucent;isosurface translucent"],["surfOff","mo delete;isosurface delete;select *;dots off"],["SYMMETRYhide","draw sym_* delete"],["FILEMOLload",'save orientation;load "";restore orientation;center'],["FILEUNITone",'save orientation;load "" {1 1 1} ;restore orientation;center'],["FILEUNITnine",'save orientation;load "" {444 666 1} ;restore orientation;center'],
["FILEUNITnineRestricted",'save orientation;load "" {444 666 1} ;restore orientation; unitcell on; display cell=555;center visible;zoom 200'],["FILEUNITninePoly",'save orientation;load "" {444 666 1} ;restore orientation; unitcell on; display cell=555; polyhedra 4,6 (displayed);center (visible);zoom 200'],["1p","on"],["3p","3"],["5p","5"],["10p","10"],["10a","0.1"],["20a","0.20"],["25a","0.25"],["50a","0.50"],["100a","1.0"]]});
