(function(ja,ka,la,ma,na,oa,s,pa,w,ba,ca,qa,ra,A,sa,da,ta,L,ua,M,va,B,wa,N,xa,ya,za,Aa,Ba,Ca,h,Da,Ea,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,n,l){var d=Jmol.__$;if(!d.ui)try{var f=d,P=function(a,b){var c,e,d,j=a.nodeName.toLowerCase();return"area"===j?(c=a.parentNode,e=c.name,!a.href||!e||"map"!==c.nodeName.toLowerCase()?!1:(d=f("img[usemap=#"+e+"]")[0],!!d&&O(d))):(/input|select|textarea|button|object/.test(j)?!a.disabled:"a"===j?a.href||b:b)&&O(a)},O=function(a){return f.expr.filters.visible(a)&&
!f(a).parents().andSelf().filter(function(){return"hidden"===f.css(this,"visibility")}).length},ea=0,fa=/^ui-id-\d+$/;f.ui=f.ui||{};if(!f.ui.version){f.extend(f.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}});f.fn.extend({_focus:f.fn.focus,focus:function(a,b){return"number"==
typeof a?this.each(function(){var c=this;setTimeout(function(){f(c).focus();b&&b.call(c)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;return f.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?a=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(f.css(this,"position"))&&/(auto|scroll)/.test(f.css(this,"overflow")+f.css(this,"overflow-y")+f.css(this,"overflow-x"))}).eq(0):a=this.parents().filter(function(){return/(auto|scroll)/.test(f.css(this,
"overflow")+f.css(this,"overflow-y")+f.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!a.length?f(document):a},zIndex:function(a){if(void 0!==a)return this.css("zIndex",a);if(this.length){a=f(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");if("absolute"===b||"relative"===b||"fixed"===b)if(b=parseInt(a.css("zIndex"),10),!isNaN(b)&&0!==b)return b;a=a.parent()}}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++ea)})},removeUniqueId:function(){return this.each(function(){fa.test(this.id)&&
f(this).removeAttr("id")})}});f.extend(f.expr[":"],{data:f.expr.createPseudo?f.expr.createPseudo(function(a){return function(b){return!!f.data(b,a)}}):function(a,b,c){return!!f.data(a,c[3])},focusable:function(a){return P(a,!isNaN(f.attr(a,"tabindex")))},tabbable:function(a){var b=f.attr(a,"tabindex"),c=isNaN(b);return(c||0<=b)&&P(a,!c)}});f(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));b.offsetHeight;f.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});
f.support.minHeight=100===b.offsetHeight;f.support.selectstart="onselectstart"in b;a.removeChild(b).style.display="none"});f("<a>").outerWidth(1).jquery||f.each(["Width","Height"],function(a,b){function c(a,b,c,d){return f.each(e,function(){b-=parseFloat(f.css(a,"padding"+this))||0;c&&(b-=parseFloat(f.css(a,"border"+this+"Width"))||0);d&&(b-=parseFloat(f.css(a,"margin"+this))||0)}),b}var e="Width"===b?["Left","Right"]:["Top","Bottom"],d=b.toLowerCase(),j={innerWidth:f.fn.innerWidth,innerHeight:f.fn.innerHeight,
outerWidth:f.fn.outerWidth,outerHeight:f.fn.outerHeight};f.fn["inner"+b]=function(a){return void 0===a?j["inner"+b].call(this):this.each(function(){f(this).css(d,c(this,a)+"px")})};f.fn["outer"+b]=function(a,e){return"number"!=typeof a?j["outer"+b].call(this,a):this.each(function(){f(this).css(d,c(this,a,!0,e)+"px")})}});if(f("<a>").data("a-b","a").removeData("a-b").data("a-b")){var R=f.fn.removeData;f.fn.removeData=function(a){return arguments.length?R.call(this,f.camelCase(a)):R.call(this)}}var S=
/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];f.ui.ie=S.length?!0:!1;f.ui.ie6=6===parseFloat(S[1],10);f.fn.extend({disableSelection:function(){return this.bind((f.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});f.extend(f.ui,{plugin:{add:function(a,b,c){var e;a=f.ui[a].prototype;for(e in c)a.plugins[e]=a.plugins[e]||[],a.plugins[e].push([b,c[e]])},call:function(a,
b,c){var e=a.plugins[b];if(e&&a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType)for(b=0;b<e.length;b++)a.options[e[b][0]]&&e[b][1].apply(a.element,c)}},contains:f.contains,hasScroll:function(a,b){if("hidden"===f(a).css("overflow"))return!1;var c=b&&"left"===b?"scrollLeft":"scrollTop";return 0<a[c]?!0:(a[c]=1,a[c]=0,!1)},isOverAxis:function(a,b,c){return a>b&&a<b+c},isOver:function(a,b,c,e,d,j){return f.ui.isOverAxis(a,c,d)&&f.ui.isOverAxis(b,e,j)}})}}catch(db){System.out.println("coremenu failed to load jQuery.ui.core -- jQuery version conflict?")}if(!d.ui.widget)try{var g=
d,ga=0,T=Array.prototype.slice,ha=g.cleanData;g.cleanData=function(a){for(var b=0,c;null!=(c=a[b]);b++)try{g(c).triggerHandler("remove")}catch(e){}ha(a)};g.widget=function(a,b,c){var e,d,j,y,f=a.split(".")[0];a=a.split(".")[1];e=f+"-"+a;c||(c=b,b=g.Widget);g.expr[":"][e.toLowerCase()]=function(a){return!!g.data(a,e)};g[f]=g[f]||{};d=g[f][a];j=g[f][a]=function(a,b){if(!this._createWidget)return new j(a,b);arguments.length&&this._createWidget(a,b)};g.extend(j,d,{version:c.version,_proto:g.extend({},
c),_childConstructors:[]});y=new b;y.options=g.widget.extend({},y.options);g.each(c,function(a,e){if(g.isFunction(e)){var d=function(){return b.prototype[a].apply(this,arguments)},j=function(c){return b.prototype[a].apply(this,c)};c[a]=function(){var a=this._super,b=this._superApply,c;return this._super=d,this._superApply=j,c=e.apply(this,arguments),this._super=a,this._superApply=b,c}}});j.prototype=g.widget.extend(y,{widgetEventPrefix:d?y.widgetEventPrefix:a},c,{constructor:j,namespace:f,widgetName:a,
widgetBaseClass:e,widgetFullName:e});d?(g.each(d._childConstructors,function(a,b){var c=b.prototype;g.widget(c.namespace+"."+c.widgetName,j,b._proto)}),delete d._childConstructors):b._childConstructors.push(j);g.widget.bridge(a,j)};g.widget.extend=function(a){for(var b=T.call(arguments,1),c=0,e=b.length,d,j;c<e;c++)for(d in b[c])j=b[c][d],b[c].hasOwnProperty(d)&&void 0!==j&&(g.isPlainObject(j)?a[d]=g.isPlainObject(a[d])?g.widget.extend({},a[d],j):g.widget.extend({},j):a[d]=j);return a};g.widget.bridge=
function(a,b){var c=b.prototype.widgetFullName||a;g.fn[a]=function(e){var d="string"==typeof e,j=T.call(arguments,1),f=this;return e=!d&&j.length?g.widget.extend.apply(null,[e].concat(j)):e,d?this.each(function(){var b,d=g.data(this,c);if(!d)return g.error("cannot call methods on "+a+" prior to initialization; attempted to call method '"+e+"'");if(!g.isFunction(d[e])||"_"===e.charAt(0))return g.error("no such method '"+e+"' for "+a+" widget instance");b=d[e].apply(d,j);if(b!==d&&void 0!==b)return f=
b&&b.jquery?f.pushStack(b.get()):b,!1}):this.each(function(){var a=g.data(this,c);a?a.option(e||{})._init():g.data(this,c,new b(e,this))}),f}};g.Widget=function(){};g.Widget._childConstructors=[];g.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(a,b){b=g(b||this.defaultElement||this)[0];this.element=g(b);this.uuid=ga++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=g.widget.extend({},this.options,
this._getCreateOptions(),a);this.bindings=g();this.hoverable=g();this.focusable=g();b!==this&&(g.data(b,this.widgetName,this),g.data(b,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target===b&&this.destroy()}}),this.document=g(b.style?b.ownerDocument:b.document||b),this.window=g(this.document[0].defaultView||this.document[0].parentWindow));this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:g.noop,_getCreateEventData:g.noop,
_create:g.noop,_init:g.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(g.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:g.noop,widget:function(){return this.element},
option:function(a,b){var c=a,e,d,j;if(0===arguments.length)return g.widget.extend({},this.options);if("string"==typeof a)if(c={},e=a.split("."),a=e.shift(),e.length){d=c[a]=g.widget.extend({},this.options[a]);for(j=0;j<e.length-1;j++)d[e[j]]=d[e[j]]||{},d=d[e[j]];a=e.pop();if(void 0===b)return void 0===d[a]?null:d[a];d[a]=b}else{if(void 0===b)return void 0===this.options[a]?null:this.options[a];c[a]=b}return this._setOptions(c),this},_setOptions:function(a){for(var b in a)this._setOption(b,a[b]);
return this},_setOption:function(a,b){return this.options[a]=b,"disabled"===a&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!b).attr("aria-disabled",b),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(a,b,c){var e,d=this;"boolean"!=typeof a&&(c=b,b=a,a=!1);c?(b=e=g(b),this.bindings=this.bindings.add(b)):
(c=b,b=this.element,e=this.widget());g.each(c,function(c,f){function h(){if(a||!(!0===d.options.disabled||g(this).hasClass("ui-state-disabled")))return("string"==typeof f?d[f]:f).apply(d,arguments)}"string"!=typeof f&&(h.guid=f.guid=f.guid||h.guid||g.guid++);var l=c.match(/^(\w+)\s*(.*)$/),k=l[1]+d.eventNamespace;(l=l[2])?e.delegate(l,k,h):b.bind(k,h)})},_off:function(a,b){b=(b||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;a.unbind(b).undelegate(b)},_delay:function(a,b){var c=
this;return setTimeout(function(){return("string"==typeof a?c[a]:a).apply(c,arguments)},b||0)},_hoverable:function(a){this.hoverable=this.hoverable.add(a);this._on(a,{mouseenter:function(a){g(a.currentTarget).addClass("ui-state-hover")},mouseleave:function(a){g(a.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(a){this.focusable=this.focusable.add(a);this._on(a,{focusin:function(a){g(a.currentTarget).addClass("ui-state-focus")},focusout:function(a){g(a.currentTarget).removeClass("ui-state-focus")}})},
_trigger:function(a,b,c){var e,d=this.options[a];c=c||{};b=g.Event(b);b.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();b.target=this.element[0];if(a=b.originalEvent)for(e in a)e in b||(b[e]=a[e]);return this.element.trigger(b,c),!(g.isFunction(d)&&!1===d.apply(this.element[0],[b].concat(c))||b.isDefaultPrevented())}};g.each({show:"fadeIn",hide:"fadeOut"},function(a,b){g.Widget.prototype["_"+a]=function(c,e,d){"string"==typeof e&&(e={effect:e});var j,f=e?!0===e||"number"==
typeof e?b:e.effect||b:a;e=e||{};"number"==typeof e&&(e={duration:e});j=!g.isEmptyObject(e);e.complete=d;e.delay&&c.delay(e.delay);j&&g.effects&&(g.effects.effect[f]||!1!==g.uiBackCompat&&g.effects[f])?c[a](e):f!==a&&c[f]?c[f](e.duration,e.easing,d):c.queue(function(b){g(this)[a]();d&&d.call(c[0]);b()})}});!1!==g.uiBackCompat&&(g.Widget.prototype._getCreateOptions=function(){return g.metadata&&g.metadata.get(this.element[0])[this.widgetName]})}catch(eb){System.out.println("coremenu failed to load jQuery.ui.widget -- jQuery version conflict?")}if(!d.ui.mouse)try{var D=
!1;d(document).mouseup(function(){D=!1});d.widget("ui.mouse",{version:"1.9.2",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(b){return a._mouseDown(b)}).bind("click."+this.widgetName,function(b){if(!0===d.data(b.target,a.widgetName+".preventClickEvent"))return d.removeData(b.target,a.widgetName+".preventClickEvent"),b.stopImmediatePropagation(),!1});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+
this.widgetName);this._mouseMoveDelegate&&d(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(a){if(!D){this._mouseStarted&&this._mouseUp(a);this._mouseDownEvent=a;var b=this,c=1===a.which,e="string"==typeof this.options.cancel&&a.target.nodeName?d(a.target).closest(this.options.cancel).length:!1;if(!c||e||!this._mouseCapture(a))return!0;(this.mouseDelayMet=!this.options.delay)||(this._mouseDelayTimer=
setTimeout(function(){b.mouseDelayMet=!0},this.options.delay));return this._mouseDistanceMet(a)&&this._mouseDelayMet(a)&&(this._mouseStarted=!1!==this._mouseStart(a),!this._mouseStarted)?(a.preventDefault(),!0):(!0===d.data(a.target,this.widgetName+".preventClickEvent")&&d.removeData(a.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(a){return b._mouseMove(a)},this._mouseUpDelegate=function(a){return b._mouseUp(a)},d(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+
this.widgetName,this._mouseUpDelegate),a.preventDefault(),D=!0,!0)}},_mouseMove:function(a){return!d.ui.ie||9<=document.documentMode||a.button?this._mouseStarted?(this._mouseDrag(a),a.preventDefault()):(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,a),this._mouseStarted?this._mouseDrag(a):this._mouseUp(a)),!this._mouseStarted):this._mouseUp(a)},_mouseUp:function(a){return d(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+
this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,a.target===this._mouseDownEvent.target&&d.data(a.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(a)),!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}catch(fb){System.out.println("coremenu failed to load jQuery.ui.mouse -- jQuery version conflict?")}if(!d.ui.position)try{var V=
function(a,b,c){return[parseInt(a[0],10)*(U.test(a[0])?b/100:1),parseInt(a[1],10)*(U.test(a[1])?c/100:1)]};d.ui=d.ui||{};var E,z=Math.max,q=Math.abs,W=Math.round,X=/left|center|right/,Y=/top|center|bottom/,Z=/[\+\-]\d+%?/,$=/^\w+/,U=/%$/,ia=d.fn.position;d.position={scrollbarWidth:function(){if(void 0!==E)return E;var a,b,c=d("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),e=c.children()[0];return d("body").append(c),a=e.offsetWidth,
c.css("overflow","scroll"),b=e.offsetWidth,a===b&&(b=c[0].clientWidth),c.remove(),E=a-b},getScrollInfo:function(a){var b=a.isWindow?"":a.element.css("overflow-x"),c=a.isWindow?"":a.element.css("overflow-y"),c="scroll"===c||"auto"===c&&a.height<a.element[0].scrollHeight;return{width:"scroll"===b||"auto"===b&&a.width<a.element[0].scrollWidth?d.position.scrollbarWidth():0,height:c?d.position.scrollbarWidth():0}},getWithinInfo:function(a){a=d(a||window);var b=d.isWindow(a[0]);return{element:a,isWindow:b,
offset:a.offset()||{left:0,top:0},scrollLeft:a.scrollLeft(),scrollTop:a.scrollTop(),width:b?a.width():a.outerWidth(),height:b?a.height():a.outerHeight()}}};d.fn.position=function(a){if(!a||!a.of)return ia.apply(this,arguments);a=d.extend({},a);var b,c,e,f,j,g=d(a.of),h=d.position.getWithinInfo(a.within),l=d.position.getScrollInfo(h),k=g[0],n=(a.collision||"flip").split(" "),C={};return 9===k.nodeType?(c=g.width(),e=g.height(),f={top:0,left:0}):d.isWindow(k)?(c=g.width(),e=g.height(),f={top:g.scrollTop(),
left:g.scrollLeft()}):k.preventDefault?(a.at="left top",c=e=0,f={top:k.pageY,left:k.pageX}):(c=g.outerWidth(),e=g.outerHeight(),f=g.offset()),j=d.extend({},f),d.each(["my","at"],function(){var b=(a[this]||"").split(" "),c,e;1===b.length&&(b=X.test(b[0])?b.concat(["center"]):Y.test(b[0])?["center"].concat(b):["center","center"]);b[0]=X.test(b[0])?b[0]:"center";b[1]=Y.test(b[1])?b[1]:"center";c=Z.exec(b[0]);e=Z.exec(b[1]);C[this]=[c?c[0]:0,e?e[0]:0];a[this]=[$.exec(b[0])[0],$.exec(b[1])[0]]}),1===n.length&&
(n[1]=n[0]),"right"===a.at[0]?j.left+=c:"center"===a.at[0]&&(j.left+=c/2),"bottom"===a.at[1]?j.top+=e:"center"===a.at[1]&&(j.top+=e/2),b=V(C.at,c,e),j.left+=b[0],j.top+=b[1],this.each(function(){var k,Q,t=d(this),u=t.outerWidth(),v=t.outerHeight(),p=parseInt(d.css(this,"marginLeft"),10)||0,s=parseInt(d.css(this,"marginTop"),10)||0,w=u+p+(parseInt(d.css(this,"marginRight"),10)||0)+l.width,x=v+s+(parseInt(d.css(this,"marginBottom"),10)||0)+l.height,m=d.extend({},j),r=V(C.my,t.outerWidth(),t.outerHeight());
"right"===a.my[0]?m.left-=u:"center"===a.my[0]&&(m.left-=u/2);"bottom"===a.my[1]?m.top-=v:"center"===a.my[1]&&(m.top-=v/2);m.left+=r[0];m.top+=r[1];d.support.offsetFractions||(m.left=W(m.left),m.top=W(m.top));k={marginLeft:p,marginTop:s};d.each(["left","top"],function(f,j){d.ui.position[n[f]]&&d.ui.position[n[f]][j](m,{targetWidth:c,targetHeight:e,elemWidth:u,elemHeight:v,collisionPosition:k,collisionWidth:w,collisionHeight:x,offset:[b[0]+r[0],b[1]+r[1]],my:a.my,at:a.at,within:h,elem:t})});d.fn.bgiframe&&
t.bgiframe();a.using&&(Q=function(b){var d=f.left-m.left,j=d+c-u,h=f.top-m.top,l=h+e-v,k={target:{element:g,left:f.left,top:f.top,width:c,height:e},element:{element:t,left:m.left,top:m.top,width:u,height:v},horizontal:0>j?"left":0<d?"right":"center",vertical:0>l?"top":0<h?"bottom":"middle"};c<u&&q(d+j)<c&&(k.horizontal="center");e<v&&q(h+l)<e&&(k.vertical="middle");z(q(d),q(j))>z(q(h),q(l))?k.important="horizontal":k.important="vertical";a.using.call(this,b,k)});t.offset(d.extend(m,{using:Q}))})};
d.ui.position={fit:{left:function(a,b){var c=b.within,e=c.isWindow?c.scrollLeft:c.offset.left,c=c.width,d=a.left-b.collisionPosition.marginLeft,f=e-d,g=d+b.collisionWidth-c-e,h;b.collisionWidth>c?0<f&&0>=g?(h=a.left+f+b.collisionWidth-c-e,a.left+=f-h):0<g&&0>=f?a.left=e:f>g?a.left=e+c-b.collisionWidth:a.left=e:0<f?a.left+=f:0<g?a.left-=g:a.left=z(a.left-d,a.left)},top:function(a,b){var c=b.within,c=c.isWindow?c.scrollTop:c.offset.top,e=b.within.height,d=a.top-b.collisionPosition.marginTop,f=c-d,g=
d+b.collisionHeight-e-c,h;b.collisionHeight>e?0<f&&0>=g?(h=a.top+f+b.collisionHeight-e-c,a.top+=f-h):0<g&&0>=f?a.top=c:f>g?a.top=c+e-b.collisionHeight:a.top=c:0<f?a.top+=f:0<g?a.top-=g:a.top=z(a.top-d,a.top)}},flip:{left:function(a,b){var c=b.within,e=c.offset.left+c.scrollLeft,d=c.width,f=c.isWindow?c.scrollLeft:c.offset.left,g=a.left-b.collisionPosition.marginLeft,c=g-f,h=g+b.collisionWidth-d-f,g="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(e=a.left+g+k+l+b.collisionWidth-d-e,0>e||e<q(c))a.left+=g+k+l}else if(0<h&&(e=a.left-b.collisionPosition.marginLeft+g+k+l-f,0<e||q(e)<h))a.left+=g+k+l},top:function(a,b){var c=b.within,e=c.offset.top+c.scrollTop,d=c.height,c=c.isWindow?c.scrollTop:c.offset.top,f=a.top-b.collisionPosition.marginTop,g=f-c,f=f+b.collisionHeight-d-c,h="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],n,p;0>g?(p=a.top+h+k+l+b.collisionHeight-d-e,a.top+h+k+l>g&&(0>p||p<q(g))&&(a.top+=h+k+l)):0<f&&(n=a.top-b.collisionPosition.marginTop+h+k+l-c,a.top+h+k+l>f&&(0<n||q(n)<f)&&(a.top+=h+k+l))}},flipfit:{left:function(){d.ui.position.flip.left.apply(this,arguments);d.ui.position.fit.left.apply(this,arguments)},top:function(){d.ui.position.flip.top.apply(this,arguments);d.ui.position.fit.top.apply(this,arguments)}}};var p,x,r,F,G,H=document.getElementsByTagName("body")[0],
I=document.createElement("div");p=document.createElement(H?"div":"body");r={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};H&&d.extend(r,{position:"absolute",left:"-1000px",top:"-1000px"});for(G in r)p.style[G]=r[G];p.appendChild(I);x=H||document.documentElement;x.insertBefore(p,x.firstChild);I.style.cssText="position: absolute; left: 10.7432222px;";F=d(I).offset().left;d.support.offsetFractions=10<F&&11>F;p.innerHTML="";x.removeChild(p);if(!1!==d.uiBackCompat){var aa=d.fn.position;
d.fn.position=function(a){if(!a||!a.offset)return aa.call(this,a);var b=a.offset.split(" "),c=a.at.split(" ");return 1===b.length&&(b[1]=b[0]),/^\d/.test(b[0])&&(b[0]="+"+b[0]),/^\d/.test(b[1])&&(b[1]="+"+b[1]),1===c.length&&(/left|center|right/.test(c[0])?c[1]="center":(c[1]=c[0],c[0]="center")),aa.call(this,d.extend(a,{at:c[0]+b[0]+" "+c[1]+b[1],offset:void 0}))}}}catch(gb){System.out.println("coremenu failed to load jQuery.ui.position -- jQuery version conflict?")}if(!d.ui.menu)try{var K=!1;d.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,d.proxy(function(a){this.options.disabled&&
a.preventDefault()},this));this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true");this._on({"mousedown .ui-menu-item > a":function(a){a.preventDefault()},"click .ui-state-disabled > a":function(a){a.preventDefault()},"click .ui-menu-item:has(a)":function(a){var b=d(a.target).closest(".ui-menu-item");!K&&b.not(".ui-state-disabled").length&&(K=!0,this.select(a),b.has(".ui-menu").length?this.expand(a):this.element.is(":focus")||(this.element.trigger("focus",[!0]),
this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(a){var b=d(a.currentTarget);b.siblings().children(".ui-state-active").removeClass("ui-state-active");this.focus(a,b)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(a,b){var c=this.active||this.element.children(".ui-menu-item").eq(0);b||this.focus(a,c)},blur:function(a){this._delay(function(){d.contains(this.element[0],this.document[0].activeElement)||
this.collapseAll(a)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(a){d(a.target).closest(".ui-menu").length||this.collapseAll(a);K=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").andSelf().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show();
this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var a=d(this);a.data("ui-menu-submenu-carat")&&a.remove()});this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(a){function b(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,
"\\$&")}var c,e,f,g,h=!0;switch(a.keyCode){case d.ui.keyCode.PAGE_UP:this.previousPage(a);break;case d.ui.keyCode.PAGE_DOWN:this.nextPage(a);break;case d.ui.keyCode.HOME:this._move("first","first",a);break;case d.ui.keyCode.END:this._move("last","last",a);break;case d.ui.keyCode.UP:this.previous(a);break;case d.ui.keyCode.DOWN:this.next(a);break;case d.ui.keyCode.LEFT:this.collapse(a);break;case d.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(a);break;case d.ui.keyCode.ENTER:case d.ui.keyCode.SPACE:this._activate(a);
break;case d.ui.keyCode.ESCAPE:this.collapse(a);break;default:h=!1,c=this.previousFilter||"",e=String.fromCharCode(a.keyCode),f=!1,clearTimeout(this.filterTimer),e===c?f=!0:e=c+e,g=RegExp("^"+b(e),"i"),c=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(d(this).children("a").text())}),c=f&&-1!==c.index(this.active.next())?this.active.nextAll(".ui-menu-item"):c,c.length||(e=String.fromCharCode(a.keyCode),g=RegExp("^"+b(e),"i"),c=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(d(this).children("a").text())})),
c.length?(this.focus(a,c),1<c.length?(this.previousFilter=e,this.filterTimer=this._delay(function(){delete this.previousFilter},1E3)):delete this.previousFilter):delete this.previousFilter}h&&a.preventDefault()},_activate:function(a){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(a):this.select(a))},refresh:function(){var a,b=this.options.icons.submenu;a=this.element.find(this.options.menus);a.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,
"aria-hidden":"true","aria-expanded":"false"}).each(function(){var a=d(this),e=a.prev("a"),f=d("<span>").addClass("ui-menu-icon ui-icon "+b).data("ui-menu-submenu-carat",!0);e.attr("aria-haspopup","true").prepend(f);a.attr("aria-labelledby",e.attr("id"))});a=a.add(this.element);a.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()});a.children(":not(.ui-menu-item)").each(function(){var a=
d(this);/[^\-+\ufffdG\ufffd\ufffdG\ufffd?+\ufffdG\ufffd\ufffdG\ufffd\ufffd\s]/.test(a.text())||a.addClass("ui-widget-content ui-menu-divider")});a.children(".ui-state-disabled").attr("aria-disabled","true");this.active&&!d.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},focus:function(a,b){var c;this.blur(a,a&&"focus"===a.type);this._scrollIntoView(b);this.active=b.first();c=this.active.children("a").addClass("ui-state-focus");
this.options.role&&this.element.attr("aria-activedescendant",c.attr("id"));this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active");a&&"keydown"===a.type?this._close():this.timer=this._delay(function(){this._close()},this.delay);c=b.children(".ui-menu");c.length&&/^mouse/.test(a.type)&&this._startOpening(c);this.activeMenu=b.parent();this._trigger("focus",a,{item:b})},_scrollIntoView:function(a){var b,c,e,f,g,h;this._hasScroll()&&(b=parseFloat(d.css(this.activeMenu[0],
"borderTopWidth"))||0,c=parseFloat(d.css(this.activeMenu[0],"paddingTop"))||0,e=a.offset().top-this.activeMenu.offset().top-b-c,f=this.activeMenu.scrollTop(),g=this.activeMenu.height(),h=a.height(),0>e?this.activeMenu.scrollTop(f+e):e+h>g&&this.activeMenu.scrollTop(f+e-g+h))},blur:function(a,b){b||clearTimeout(this.timer);this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",a,{item:this.active}))},_startOpening:function(a){clearTimeout(this.timer);
"true"===a.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close();this._open(a)},this.delay))},_open:function(a){var b=d.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(a.parents(".ui-menu")).hide().attr("aria-hidden","true");a.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(b)},collapseAll:function(a,b){clearTimeout(this.timer);this.timer=this._delay(function(){var c=b?this.element:d(a&&a.target).closest(this.element.find(".ui-menu"));
c.length||(c=this.element);this._close(c);this.blur(a);this.activeMenu=c},this.delay)},_close:function(a){a||(a=this.active?this.active.parent():this.element);a.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(a){var b=this.active&&this.active.parent().closest(".ui-menu-item",this.element);b&&b.length&&(this._close(),this.focus(a,b))},expand:function(a){var b=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();
b&&b.length&&(this._open(b.parent()),this._delay(function(){this.focus(a,b)}))},next:function(a){this._move("next","first",a)},previous:function(a){this._move("prev","last",a)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(a,b,c){var e;this.active&&("first"===a||"last"===a?e=this.active["first"===a?"prevAll":"nextAll"](".ui-menu-item").eq(-1):e=this.active[a+
"All"](".ui-menu-item").eq(0));if(!e||!e.length||!this.active)e=this.activeMenu.children(".ui-menu-item")[b]();this.focus(c,e)},nextPage:function(a){var b,c,e;this.active?this.isLastItem()||(this._hasScroll()?(c=this.active.offset().top,e=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return b=d(this),0>b.offset().top-c-e}),this.focus(a,b)):this.focus(a,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())):this.next(a)},previousPage:function(a){var b,
c,e;this.active?this.isFirstItem()||(this._hasScroll()?(c=this.active.offset().top,e=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return b=d(this),0<b.offset().top-c+e}),this.focus(a,b)):this.focus(a,this.activeMenu.children(".ui-menu-item").first())):this.next(a)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(a){this.active=this.active||d(a.target).closest(".ui-menu-item");var b={item:this.active};this.active.has(".ui-menu").length||
this.collapseAll(a,!0);this._trigger("select",a,b)}})}catch(hb){System.out.println("JSmolMenu failed to load jQuery.ui.menu -- jQuery version conflict?")}var k=Jmol.Swing;k.menuInitialized||(k.menuCounter=0,k.menuInitialized=1,k.__getMenuStyle=function(a){return"\t.jmolPopupMenu{font-family:Arial,sans-serif;font-size:11px;position:absolute;z-index:"+Jmol._getZ(a,"menu")+'}\t.jmolPopupMenu,.jmolPopupMenu .ui-corner-all{border-radius:5px}\t.jmolPopupMenu,.jmolPopupMenu .ui-widget-content{border:1px solid #a6c9e2;background-color:#fcfdfd;color:#222}\t.jmolPopupMenu a{color:#222;font-size:10px;}\t.jmolPopupMenu input[type="checkbox"]{vertical-align:middle;}\t.jmolPopupMenu,.jmolPopupMenu .ui-menu{list-style:none;padding:2px;margin:0;display:block;outline:none;box-shadow:1px 1px 5px rgba(50,50,50,0.75)}\t.jmolPopupMenu .ui-menu{margin-top:-3px;position:absolute}\t.jmolPopupMenu .ui-menu-item{cursor:pointer;margin:0 2ex 0 0;padding:0;width:100%}\t.jmolPopupMenu .ui-menu-divider{margin:3px 1px;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}\t.jmolPopupMenu .ui-menu-item a{text-decoration:none;display:block;padding:0.05em 0.4em;white-space:nowrap;border:1px solid transparent}\t.jmolPopupMenu .ui-menu-icons{position:relative}\t.jmolPopupMenu .ui-menu-icons .ui-menu-item a{position:relative;padding-left:2em}\t.jmolPopupMenu .ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat;position:absolute;top:.2em;left:.2em}\t.jmolPopupMenu .ui-menu-icon{position:static;float:right}\t.jmolPopupMenu .ui-icon-carat-1-e{min-width:2ex;text-align:right;background-image:none;background-position:0 0}\t.jmolPopupMenu .ui-icon-carat-1-e:after{content:"\\25B8"}\t.jmolPopupMenu .ui-state-default{border:1px solid #c5dbec;background:#dfeffc;color:#2e6e9e}\t.jmolPopupMenu .ui-state-default a{color:#2e6e9e;text-decoration:none}\t.jmolPopupMenu .ui-state-hover,.jmolPopupMenu .ui-state-focus{border:1px solid #79b7e7;background:#d0e5f5;color:#1d5987}\t.jmolPopupMenu .ui-state-hover a{color:#1d5987;text-decoration:none}\t.jmolPopupMenu .ui-state-active{border:1px solid #79b7e7;background:#f5f8f9;color:#e17009}\t.jmolPopupMenu .ui-state-active a{color:#e17009;text-decoration:none}\t.jmolPopupMenu .ui-state-highlight{border:1px solid #fad42e;background:#fbec88;color:#363636}\t.jmolPopupMenu .ui-state-highlight a{color:#363636}\t.jmolPopupMenu .ui-state-disabled *{color:#d6d6d6!important;font-weight:normal;cursor:default}\t.jmolPopupMenu .ui-state-disabled a:hover{background-color:transparent!important;border-color:transparent!important}\t.jmolPopupMenu .ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}'},
k.setMenu=function(a){k.__getMenuStyle&&Jmol.$after("head","<style>"+k.__getMenuStyle(a.applet)+"</style>");k.__getStyle=null;a.tainted=!0;a.popupMenu=a;a.id="top";a.id=k.getMenuID(a);a.applet._menus||(a.applet._menus={});a.applet._menus[a.name]=a;Jmol.$after("body",'<ul id="'+a.id+'" class="jmolPopupMenu"></ul>');a.setContainer(Jmol.$("#"+a.id))},k.showMenu=function(a,b,c){Jmol._showMenuCallback&&Jmol._showMenuCallback(a,b,c);a.tainted&&(a.container.html(a.toHTML()),a.tainted=!1,k.bindMenuActionCommands(a,
!0));a.setPosition();a.container.hide().menu().menu("refresh").show();a._visible=!0;a.timestamp=System.currentTimeMillis();a.dragBind(!0);a.container.unbind("clickoutjsmol");Jmol._persistentMenu||a.container.bind("clickoutjsmol mousemoveoutjsmol",function(){1E3<System.currentTimeMillis()-a.timestamp&&k.hideMenu(a)});a.container.bind("contextmenu",function(){return!1})},k.disposeMenu=function(a){Jmol._persistentMenu||(k.hideMenu(a),k.bindMenuActionCommands(a,!1),delete a.applet._menus[a.name])},k.initMenuItem=
function(a){a.applet=a.popupMenu.applet;a.id=k.getMenuID(a);a.icon&&(a.icon='<img src="'+a.applet._j2sPath+"/"+a.icon+'" style="max-height: 20px;" />')},k.getMenuID=function(a){var b=a.popupMenu;return b.applet._id+"_"+b.name+"_"+a.id+"_"+ ++k.menuCounter},k.hideMenu=function(a){a._visible&&(a.dragBind(!1),a.container.hide(),a._visible=a.isDragging=!1)},k.bindMenuActionCommands=function(a,b){for(var c=a.getComponentCount(),e=0;e<c;e++)k.bindMenuActionCommands(a.getComponent(e),b);Jmol.$documentOff("click",
a.id);b&&Jmol.$documentOn("click",a.id,function(){a.itemListener?(a.selected=a.btnType==javajs.swing.JMenuItem.TYPE_CHECKBOX?Jmol.$prop(a.id+"-cb","checked"):!0,k.hideMenus(a.applet),a.itemListener.itemStateChanged({getSource:function(){return a}})):a.actionListener&&(k.hideMenus(a.applet),a.actionListener.actionPerformed({getSource:function(){return a},getActionCommand:function(){return a.actionCommand}}))})});s("javajs.api");N(javajs.api,"GenericMenuInterface");s("JSV.api");w(["javajs.api.GenericMenuInterface"],
"JSV.api.JSVPopupMenu",null,function(){N(JSV.api,"JSVPopupMenu",javajs.api.GenericMenuInterface)});s("JSV.js2d");w(["JSV.popup.JSVGenericPopup"],"JSV.js2d.JsPopup",["JSV.popup.JSVPopupResourceBundle","J.popup.JSSwingPopupHelper"],function(){c$=M(JSV.js2d,"JsPopup",JSV.popup.JSVGenericPopup);A(c$,function(){B(this,JSV.js2d.JsPopup,[]);this.helper=new J.popup.JSSwingPopupHelper(this)});l(c$,"jpiInitialize",function(a,b){var c=new JSV.popup.JSVPopupResourceBundle;this.initialize(a,c,b)},"javajs.api.PlatformViewer,~S");
l(c$,"menuShowPopup",function(a,b,c){try{a.show(this.isTainted?this.vwr.getApplet():null,b,c)}catch(e){if(!da(e,Exception))throw e;}},"javajs.api.SC,~N,~N");l(c$,"getImageIcon",function(){return null},"~S");l(c$,"menuFocusCallback",function(){},"~S,~S,~B")});s("JSV.popup");w(["JSV.api.JSVPopupMenu","J.popup.GenericSwingPopup"],"JSV.popup.JSVGenericPopup",["JU.PT","JSV.common.JSVersion","JSV.popup.JSVPopupResourceBundle"],function(){c$=ca(function(){this.vwr=null;this.updateMode=0;this.hnmrPeaks=this.cnmrPeaks=
null;this.aboutComputedMenuBaseCount=0;this.zoomEnabled=this.allowMenu=!1;this.thisJsvp=this.pd=null;ba(this,arguments)},JSV.popup,"JSVGenericPopup",J.popup.GenericSwingPopup,JSV.api.JSVPopupMenu);A(c$,function(){B(this,JSV.popup.JSVGenericPopup,[])});n(c$,"initialize",function(a,b,c){this.vwr=a;this.initSwing(c,b,a.getApplet(),a.isJS,a.isSigned,!1)},"JSV.common.JSViewer,J.popup.PopupResource,~S");l(c$,"jpiDispose",function(){this.helper.menuClearListeners(this.popupMenu);this.popupMenu=this.thisPopup=
null});l(c$,"jpiGetMenuAsObject",function(){return this.popupMenu});l(c$,"jpiShow",function(a,b){this.show(a,b,!1);this.appRestorePopupMenu();this.menuShowPopup(this.popupMenu,this.thisx,this.thisy)},"~N,~N");l(c$,"jpiUpdateComputedMenus",function(){-1!=this.updateMode&&(this.updateMode=0,this.getViewerData(),this.updateFileMenu(),this.updateFileTypeDependentMenus(),this.updateMode=1,this.updateAboutSubmenu())});l(c$,"appCheckItem",function(){},"~S,javajs.api.SC");l(c$,"appCheckSpecialMenu",function(){},
"~S,javajs.api.SC,~S");l(c$,"appFixLabel",function(a){a.startsWith("_")?a=a.substring(a.indexOf("_",2)+1):a.equals("VERSION")&&(a=JSV.common.JSVersion.VERSION);a=JU.PT.rep(a,"JAVA","");a=JU.PT.rep(a,"CB","");a=JU.PT.rep(a,"Menu","");return a=JU.PT.rep(a,"_"," ")},"~S");l(c$,"appFixScript",function(a,b){return b},"~S,~S");l(c$,"appGetMenuAsString",function(a){return(new JSV.popup.JSVPopupResourceBundle).getMenuAsText(a)},"~S");l(c$,"appGetBooleanProperty",function(){return!1},"~S");l(c$,"appIsSpecialCheckBox",
function(){return!1},"javajs.api.SC,~S,~S,~B");l(c$,"appRestorePopupMenu",function(){this.thisPopup=this.popupMenu});l(c$,"appRunScript",function(a){this.vwr.runScript(a)},"~S");l(c$,"appUpdateForShow",function(){this.thisJsvp=this.vwr.selectedPanel;this.setEnables(this.thisJsvp);-1!=this.updateMode&&(this.getViewerData(),this.updateMode=2,this.updateSpectraMenu(),this.updateAboutSubmenu())});l(c$,"appUpdateSpecialCheckBoxValue",function(){},"javajs.api.SC,~S,~B");n(c$,"getViewerData",function(){});
n(c$,"updateFileTypeDependentMenus",function(){});n(c$,"updateFileMenu",function(){this.htMenus.get("fileMenu")});n(c$,"updateSpectraMenu",function(){var a=this.htMenus.get("hnmrMenu"),b=this.htMenus.get("cnmrMenu");null!=a&&this.menuRemoveAll(a,0);null!=b&&this.menuRemoveAll(b,0);var c=this.htMenus.get("spectraMenu");if(null!=c){this.menuRemoveAll(c,0);var e=(new Boolean(this.setSpectraMenu(a,this.hnmrPeaks)|this.setSpectraMenu(b,this.cnmrPeaks))).valueOf();e&&(null!=a&&this.menuAddSubMenu(c,a),
null!=b&&this.menuAddSubMenu(c,b));this.menuEnable(c,e)}});n(c$,"setSpectraMenu",function(a,b){if(null==a)return!1;this.menuEnable(a,!1);var c=null==b?0:b.size();if(0==c)return!1;for(var e=0;e<c;e++){var d=b.get(e),f=JU.PT.getQuotedAttribute(d,"title"),d=JU.PT.getQuotedAttribute(d,"atoms");null!=d&&this.menuCreateItem(a,f,"select visible & (@"+JU.PT.rep(d,","," or @")+")","Focus"+e)}this.menuEnable(a,!0);return!0},"javajs.api.SC,JU.Lst");n(c$,"updateAboutSubmenu",function(){var a=this.htMenus.get("aboutComputedMenu");
null!=a&&this.menuRemoveAll(a,this.aboutComputedMenuBaseCount)});l(c$,"getSelected",function(){return!1},"~S");l(c$,"setCompoundMenu",function(){},"JU.Lst,~B");l(c$,"setEnabled",function(a,b){this.allowMenu=a;this.zoomEnabled=b;this.enableMenus()},"~B,~B");n(c$,"enableMenus",function(){this.setItemEnabled("_SIGNED_FileMenu",this.allowMenu);this.setItemEnabled("ViewMenu",null!=this.pd&&this.allowMenu);this.setItemEnabled("Open_File...",this.allowMenu);this.setItemEnabled("Open_Simulation...",this.allowMenu);
this.setItemEnabled("Open_URL...",this.allowMenu);this.setItemEnabled("Save_AsMenu",null!=this.pd&&this.allowMenu);this.setItemEnabled("Export_AsMenu",null!=this.pd&&this.allowMenu);this.setItemEnabled("Append_File...",null!=this.pd&&this.allowMenu);this.setItemEnabled("Append_Simulation...",null!=this.pd&&this.allowMenu);this.setItemEnabled("Append_URL...",null!=this.pd&&this.allowMenu);this.setItemEnabled("Views...",null!=this.pd&&this.allowMenu);this.setItemEnabled("Script",this.allowMenu);this.setItemEnabled("Print...",
null!=this.pd&&this.allowMenu);this.setItemEnabled("ZoomMenu",null!=this.pd&&this.zoomEnabled)});n(c$,"setEnables",function(a){this.pd=null==a?null:a.getPanelData();a=null==this.pd?null:this.pd.getSpectrum();var b=null!=this.pd&&this.pd.isShowAllStacked(),c=null!=this.pd&&this.pd.haveSelectedSpectrum();this.setItemEnabled("Integration",null!=this.pd&&this.pd.getSpectrum().canIntegrate());this.setItemEnabled("Measurements",!0);this.setItemEnabled("Peaks",null!=this.pd&&this.pd.getSpectrum().is1D());
this.setItemEnabled("Predicted_Solution_Colour_(fitted)",c&&a.canShowSolutionColor());this.setItemEnabled("Predicted_Solution_Colour_(interpolated)",c&&a.canShowSolutionColor());this.setItemEnabled("Toggle_Trans/Abs",c&&a.canConvertTransAbs());this.setItemEnabled("Show_Overlay_Key",b&&1==this.pd.getNumberOfGraphSets());this.setItemEnabled("Overlay_Offset...",b);this.setItemEnabled("JDXMenu",null!=this.pd&&a.canSaveAsJDX());this.setItemEnabled("Export_AsMenu",null!=this.pd);this.enableMenus()},"JSV.api.JSVPanel");
n(c$,"setItemEnabled",function(a,b){this.menuEnable(this.htMenus.get(a),b)},"~S,~B");l(c$,"setSelected",function(a,b){var c=this.htMenus.get(a);null==c||c.isSelected()==b||(this.menuEnable(c,!1),c.setSelected(b),this.menuEnable(c,!0))},"~S,~B");l(c$,"menuSetCheckBoxOption",function(){return null},"javajs.api.SC,~S,~S");L(c$,"dumpList",!1,"UPDATE_NEVER",-1,"UPDATE_ALL",0,"UPDATE_CONFIG",1,"UPDATE_SHOW",2)});s("JSV.popup");w(["J.popup.PopupResource"],"JSV.popup.JSVPopupResourceBundle",null,function(){c$=
M(JSV.popup,"JSVPopupResourceBundle",J.popup.PopupResource);l(c$,"getMenuName",function(){return"appMenu"});A(c$,function(){B(this,JSV.popup.JSVPopupResourceBundle,[null,null])});l(c$,"buildStructure",function(a){this.addItems(JSV.popup.JSVPopupResourceBundle.menuContents);this.addItems(JSV.popup.JSVPopupResourceBundle.structureContents);null!=a&&this.setStructure(a,null)},"~S");l(c$,"getWordContents",function(){return h(-1,[])});l(c$,"getMenuAsText",function(a){return this.getStuctureAsText(a,JSV.popup.JSVPopupResourceBundle.menuContents,
JSV.popup.JSVPopupResourceBundle.structureContents)},"~S");L(c$,"menuContents",h(-1,[h(-1,["appMenu","_SIGNED_FileMenu Spectra... ShowMenu OptionsMenu ZoomMenu - Integration Peaks Measurements - Script... Properties"]),h(-1,["appletMenu","_SIGNED_FileMenu Spectra... - OptionsMenu ZoomMenu - Integration Peaks Measurements - Script... - Print... - AboutMenu"]),h(-1,["_SIGNED_FileMenu","Open_File... Open_Simulation... Open_URL... - Add_File... Add_Simulation... Add_URL... - Save_AsMenu Export_AsMenu - Close_Views Close_Simulations Close_All"]),
h(-1,["Save_AsMenu","Original... JDXMenu CML XML(AnIML)"]),h(-1,["JDXMenu","XY DIF DIFDUP FIX PAC SQZ"]),h(-1,["Export_AsMenu","PDF - JAVAJPG PNG"]),h(-1,["ShowMenu","Show_Header Show_Source Show_Overlay_Key"]),h(-1,["OptionsMenu","Toggle_Grid Toggle_X_Axis Toggle_Y_Axis Toggle_Coordinates Toggle_Trans/Abs Reverse_Plot - Predicted_Solution_Colour Fill_Solution_Colour_(all)  Fill_Solution_Colour_(none)"]),h(-1,["ZoomMenu","Next_Zoom Previous_Zoom Reset_Zoom - Set_X_Scale... Reset_X_Scale"]),h(-1,["AboutMenu",
"VERSION"])]),"structureContents",h(-1,[h(-1,["Open_File...","load ?"]),h(-1,["Open_URL...","load http://?"]),h(-1,["Open_Simulation...","load $?"]),h(-1,["Add_File...","load append ?"]),h(-1,["Add_URL...","load append http://?"]),h(-1,["Add_Simulation...",'load append $?; view "1HNMR"']),h(-1,["Close_All","close all"]),h(-1,["Close_Views","close views"]),h(-1,["Close Simulations","close simulations"]),h(-1,["Show_Header","showProperties"]),h(-1,["Show_Source","showSource"]),h(-1,["Show_Overlay_Key...",
"showKey"]),h(-1,["Next_Zoom","zoom next;showMenu"]),h(-1,["Previous_Zoom","zoom prev;showMenu"]),h(-1,["Reset_Zoom","zoom clear"]),h(-1,["Reset_X_Scale","zoom out"]),h(-1,["Set_X_Scale...","zoom"]),h(-1,["Spectra...","view"]),h(-1,["Overlay_Offset...","stackOffsetY"]),h(-1,["Script...","script INLINE"]),h(-1,["Properties","showProperties"]),h(-1,["Toggle_X_Axis","XSCALEON toggle;showMenu"]),h(-1,["Toggle_Y_Axis","YSCALEON toggle;showMenu"]),h(-1,["Toggle_Grid","GRIDON toggle;showMenu"]),h(-1,["Toggle_Coordinates",
"COORDINATESON toggle;showMenu"]),h(-1,["Reverse_Plot","REVERSEPLOT toggle;showMenu"]),h(-1,["Measurements","SHOWMEASUREMENTS"]),h(-1,["Peaks","SHOWPEAKLIST"]),h(-1,["Integration","SHOWINTEGRATION"]),h(-1,["Toggle_Trans/Abs","IRMODE TOGGLE"]),h(-1,["Predicted_Solution_Colour","GETSOLUTIONCOLOR"]),h(-1,["Fill_Solution_Colour_(all)","GETSOLUTIONCOLOR fillall"]),h(-1,["Fill_Solution_Colour_(none)","GETSOLUTIONCOLOR fillallnone"]),h(-1,["Print...","print"]),h(-1,["Original...","write SOURCE"]),h(-1,["CML",
"write CML"]),h(-1,["XML(AnIML)","write XML"]),h(-1,["XY","write XY"]),h(-1,["DIF","write DIF"]),h(-1,["DIFDUP","write DIFDUP"]),h(-1,["FIX","write FIX"]),h(-1,["PAC","write PAC"]),h(-1,["SQZ","write SQZ"]),h(-1,["JPG","write JPG"]),h(-1,["SVG","write SVG"]),h(-1,["PNG","write PNG"]),h(-1,["PDF","write PDF"])]))})})(Clazz,Clazz.getClassName,Clazz.newLongArray,Clazz.doubleToByte,Clazz.doubleToInt,Clazz.doubleToLong,Clazz.declarePackage,Clazz.instanceOf,Clazz.load,Clazz.instantialize,Clazz.decorateAsClass,
Clazz.floatToInt,Clazz.floatToLong,Clazz.makeConstructor,Clazz.defineEnumConstant,Clazz.exceptionOf,Clazz.newIntArray,Clazz.defineStatics,Clazz.newFloatArray,Clazz.declareType,Clazz.prepareFields,Clazz.superConstructor,Clazz.newByteArray,Clazz.declareInterface,Clazz.p0p,Clazz.pu$h,Clazz.newShortArray,Clazz.innerTypeInstance,Clazz.isClassDefined,Clazz.prepareCallback,Clazz.newArray,Clazz.castNullAs,Clazz.floatToShort,Clazz.superCall,Clazz.decorateAsType,Clazz.newBooleanArray,Clazz.newCharArray,Clazz.implementOf,
Clazz.newDoubleArray,Clazz.overrideConstructor,Clazz.clone,Clazz.doubleToShort,Clazz.getInheritedLevel,Clazz.getParamsType,Clazz.isAF,Clazz.isAB,Clazz.isAI,Clazz.isAS,Clazz.isASS,Clazz.isAP,Clazz.isAFloat,Clazz.isAII,Clazz.isAFF,Clazz.isAFFF,Clazz.tryToSearchAndExecute,Clazz.getStackTrace,Clazz.inheritArgs,Clazz.alert,Clazz.defineMethod,Clazz.overrideMethod,Clazz.declareAnonymous,Clazz.cloneFinals);
