(function(la,ma,na,oa,pa,qa,t,ra,A,ca,da,sa,ta,B,ua,ea,va,M,wa,N,xa,C,ya,fa,za,Aa,Ba,Ca,Da,Ea,h,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,db,eb,n,l){var e=Jmol.__$;if(!e.ui)try{var f=e,P=function(a,b){var c,d,m,k=a.nodeName.toLowerCase();return"area"===k?(c=a.parentNode,d=c.name,!a.href||!d||"map"!==c.nodeName.toLowerCase()?!1:(m=f("img[usemap=#"+d+"]")[0],!!m&&O(m))):(/input|select|textarea|button|object/.test(k)?!a.disabled:"a"===k?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},ga=0,ha=/^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-"+ ++ga)})},removeUniqueId:function(){return this.each(function(){ha.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,m){return f.each(d,function(){b-=parseFloat(f.css(a,"padding"+this))||0;c&&(b-=parseFloat(f.css(a,"border"+this+"Width"))||0);m&&(b-=parseFloat(f.css(a,"margin"+this))||0)}),b}var d="Width"===b?["Left","Right"]:["Top","Bottom"],m=b.toLowerCase(),k={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?k["inner"+b].call(this):this.each(function(){f(this).css(m,c(this,a)+"px")})};f.fn["outer"+b]=function(a,d){return"number"!=typeof a?k["outer"+b].call(this,a):this.each(function(){f(this).css(m,c(this,a,!0,d)+"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 d;a=f.ui[a].prototype;for(d in c)a.plugins[d]=a.plugins[d]||[],a.plugins[d].push([b,c[d]])},call:function(a,
b,c){var d=a.plugins[b];if(d&&a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType)for(b=0;b<d.length;b++)a.options[d[b][0]]&&d[b][1].apply(a.element,c)}},contains: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,d,m,k){return f.ui.isOverAxis(a,c,m)&&f.ui.isOverAxis(b,d,k)}})}}catch(fb){System.out.println("coremenu failed to load jQuery.ui.core -- jQuery version conflict?")}if(!e.ui.widget)try{var g=
e,ia=0,T=Array.prototype.slice,ja=g.cleanData;g.cleanData=function(a){for(var b=0,c;null!=(c=a[b]);b++)try{g(c).triggerHandler("remove")}catch(d){}ja(a)};g.widget=function(a,b,c){var d,m,k,e,f=a.split(".")[0];a=a.split(".")[1];d=f+"-"+a;c||(c=b,b=g.Widget);g.expr[":"][d.toLowerCase()]=function(a){return!!g.data(a,d)};g[f]=g[f]||{};m=g[f][a];k=g[f][a]=function(a,b){if(!this._createWidget)return new k(a,b);arguments.length&&this._createWidget(a,b)};g.extend(k,m,{version:c.version,_proto:g.extend({},
c),_childConstructors:[]});e=new b;e.options=g.widget.extend({},e.options);g.each(c,function(a,d){if(g.isFunction(d)){var m=function(){return b.prototype[a].apply(this,arguments)},e=function(c){return b.prototype[a].apply(this,c)};c[a]=function(){var a=this._super,b=this._superApply,c;return this._super=m,this._superApply=e,c=d.apply(this,arguments),this._super=a,this._superApply=b,c}}});k.prototype=g.widget.extend(e,{widgetEventPrefix:m?e.widgetEventPrefix:a},c,{constructor:k,namespace:f,widgetName:a,
widgetBaseClass:d,widgetFullName:d});m?(g.each(m._childConstructors,function(a,b){var c=b.prototype;g.widget(c.namespace+"."+c.widgetName,k,b._proto)}),delete m._childConstructors):b._childConstructors.push(k);g.widget.bridge(a,k)};g.widget.extend=function(a){for(var b=T.call(arguments,1),c=0,d=b.length,m,e;c<d;c++)for(m in b[c])e=b[c][m],b[c].hasOwnProperty(m)&&void 0!==e&&(g.isPlainObject(e)?a[m]=g.isPlainObject(a[m])?g.widget.extend({},a[m],e):g.widget.extend({},e):a[m]=e);return a};g.widget.bridge=
function(a,b){var c=b.prototype.widgetFullName||a;g.fn[a]=function(d){var e="string"==typeof d,k=T.call(arguments,1),f=this;return d=!e&&k.length?g.widget.extend.apply(null,[d].concat(k)):d,e?this.each(function(){var b,e=g.data(this,c);if(!e)return g.error("cannot call methods on "+a+" prior to initialization; attempted to call method '"+d+"'");if(!g.isFunction(e[d])||"_"===d.charAt(0))return g.error("no such method '"+d+"' for "+a+" widget instance");b=e[d].apply(e,k);if(b!==e&&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(d||{})._init():g.data(this,c,new b(d,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=ia++;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,d,e,k;if(0===arguments.length)return g.widget.extend({},this.options);if("string"==typeof a)if(c={},d=a.split("."),a=d.shift(),d.length){e=c[a]=g.widget.extend({},this.options[a]);for(k=0;k<d.length-1;k++)e[d[k]]=e[d[k]]||{},e=e[d[k]];a=d.pop();if(void 0===b)return void 0===e[a]?null:e[a];e[a]=b}else{if(void 0===b)return void 0===this.options[a]?null:this.options[a];c[a]=b}return this._setOptions(c),this},_setOptions:function(a){for(var b in a)this._setOption(b,a[b]);
return this},_setOption:function(a,b){return this.options[a]=b,"disabled"===a&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!b).attr("aria-disabled",b),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(a,b,c){var d,e=this;"boolean"!=typeof a&&(c=b,b=a,a=!1);c?(b=d=g(b),this.bindings=this.bindings.add(b)):
(c=b,b=this.element,d=this.widget());g.each(c,function(c,f){function h(){if(a||!(!0===e.options.disabled||g(this).hasClass("ui-state-disabled")))return("string"==typeof f?e[f]:f).apply(e,arguments)}"string"!=typeof f&&(h.guid=f.guid=f.guid||h.guid||g.guid++);var l=c.match(/^(\w+)\s*(.*)$/),j=l[1]+e.eventNamespace;(l=l[2])?d.delegate(l,j,h):b.bind(j,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 d,e=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(d in a)d in b||(b[d]=a[d]);return this.element.trigger(b,c),!(g.isFunction(e)&&!1===e.apply(this.element[0],[b].concat(c))||b.isDefaultPrevented())}};g.each({show:"fadeIn",hide:"fadeOut"},function(a,b){g.Widget.prototype["_"+a]=function(c,d,e){"string"==typeof d&&(d={effect:d});var k,f=d?!0===d||"number"==
typeof d?b:d.effect||b:a;d=d||{};"number"==typeof d&&(d={duration:d});k=!g.isEmptyObject(d);d.complete=e;d.delay&&c.delay(d.delay);k&&g.effects&&(g.effects.effect[f]||!1!==g.uiBackCompat&&g.effects[f])?c[a](d):f!==a&&c[f]?c[f](d.duration,d.easing,e):c.queue(function(b){g(this)[a]();e&&e.call(c[0]);b()})}});!1!==g.uiBackCompat&&(g.Widget.prototype._getCreateOptions=function(){return g.metadata&&g.metadata.get(this.element[0])[this.widgetName]})}catch(gb){System.out.println("coremenu failed to load jQuery.ui.widget -- jQuery version conflict?")}if(!e.ui.mouse)try{var E=
!1;e(document).mouseup(function(){E=!1});e.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===e.data(b.target,a.widgetName+".preventClickEvent"))return e.removeData(b.target,a.widgetName+".preventClickEvent"),b.stopImmediatePropagation(),!1});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+
this.widgetName);this._mouseMoveDelegate&&e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(a){if(!E){this._mouseStarted&&this._mouseUp(a);this._mouseDownEvent=a;var b=this,c=1===a.which,d="string"==typeof this.options.cancel&&a.target.nodeName?e(a.target).closest(this.options.cancel).length:!1;if(!c||d||!this._mouseCapture(a))return!0;(this.mouseDelayMet=!this.options.delay)||(this._mouseDelayTimer=
setTimeout(function(){b.mouseDelayMet=!0},this.options.delay));return this._mouseDistanceMet(a)&&this._mouseDelayMet(a)&&(this._mouseStarted=!1!==this._mouseStart(a),!this._mouseStarted)?(a.preventDefault(),!0):(!0===e.data(a.target,this.widgetName+".preventClickEvent")&&e.removeData(a.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(a){return b._mouseMove(a)},this._mouseUpDelegate=function(a){return b._mouseUp(a)},e(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+
this.widgetName,this._mouseUpDelegate),a.preventDefault(),E=!0,!0)}},_mouseMove:function(a){return!e.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 e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+
this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,a.target===this._mouseDownEvent.target&&e.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(hb){System.out.println("coremenu failed to load jQuery.ui.mouse -- jQuery version conflict?")}if(!e.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)]};e.ui=e.ui||{};var F,y=Math.max,r=Math.abs,W=Math.round,X=/left|center|right/,Y=/top|center|bottom/,Z=/[\+\-]\d+%?/,$=/^\w+/,U=/%$/,ka=e.fn.position;e.position={scrollbarWidth:function(){if(void 0!==F)return F;var a,b,c=e("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),d=c.children()[0];return e("body").append(c),a=d.offsetWidth,
c.css("overflow","scroll"),b=d.offsetWidth,a===b&&(b=c[0].clientWidth),c.remove(),F=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?e.position.scrollbarWidth():0,height:c?e.position.scrollbarWidth():0}},getWithinInfo:function(a){a=e(a||window);var b=e.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()}}};e.fn.position=function(a){if(!a||!a.of)return ka.apply(this,arguments);a=e.extend({},a);var b,c,d,f,k,g=e(a.of),h=e.position.getWithinInfo(a.within),l=e.position.getScrollInfo(h),j=g[0],n=(a.collision||"flip").split(" "),D={};return 9===j.nodeType?(c=g.width(),d=g.height(),f={top:0,left:0}):e.isWindow(j)?(c=g.width(),d=g.height(),f={top:g.scrollTop(),
left:g.scrollLeft()}):j.preventDefault?(a.at="left top",c=d=0,f={top:j.pageY,left:j.pageX}):(c=g.outerWidth(),d=g.outerHeight(),f=g.offset()),k=e.extend({},f),e.each(["my","at"],function(){var b=(a[this]||"").split(" "),c,d;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]);d=Z.exec(b[1]);D[this]=[c?c[0]:0,d?d[0]:0];a[this]=[$.exec(b[0])[0],$.exec(b[1])[0]]}),1===n.length&&
(n[1]=n[0]),"right"===a.at[0]?k.left+=c:"center"===a.at[0]&&(k.left+=c/2),"bottom"===a.at[1]?k.top+=d:"center"===a.at[1]&&(k.top+=d/2),b=V(D.at,c,d),k.left+=b[0],k.top+=b[1],this.each(function(){var j,Q,s=e(this),u=s.outerWidth(),v=s.outerHeight(),q=parseInt(e.css(this,"marginLeft"),10)||0,t=parseInt(e.css(this,"marginTop"),10)||0,w=u+q+(parseInt(e.css(this,"marginRight"),10)||0)+l.width,x=v+t+(parseInt(e.css(this,"marginBottom"),10)||0)+l.height,p=e.extend({},k),z=V(D.my,s.outerWidth(),s.outerHeight());
"right"===a.my[0]?p.left-=u:"center"===a.my[0]&&(p.left-=u/2);"bottom"===a.my[1]?p.top-=v:"center"===a.my[1]&&(p.top-=v/2);p.left+=z[0];p.top+=z[1];e.support.offsetFractions||(p.left=W(p.left),p.top=W(p.top));j={marginLeft:q,marginTop:t};e.each(["left","top"],function(f,g){e.ui.position[n[f]]&&e.ui.position[n[f]][g](p,{targetWidth:c,targetHeight:d,elemWidth:u,elemHeight:v,collisionPosition:j,collisionWidth:w,collisionHeight:x,offset:[b[0]+z[0],b[1]+z[1]],my:a.my,at:a.at,within:h,elem:s})});e.fn.bgiframe&&
s.bgiframe();a.using&&(Q=function(b){var e=f.left-p.left,k=e+c-u,h=f.top-p.top,j=h+d-v,l={target:{element:g,left:f.left,top:f.top,width:c,height:d},element:{element:s,left:p.left,top:p.top,width:u,height:v},horizontal:0>k?"left":0<e?"right":"center",vertical:0>j?"top":0<h?"bottom":"middle"};c<u&&r(e+k)<c&&(l.horizontal="center");d<v&&r(h+j)<d&&(l.vertical="middle");y(r(e),r(k))>y(r(h),r(j))?l.important="horizontal":l.important="vertical";a.using.call(this,b,l)});s.offset(e.extend(p,{using:Q}))})};
e.ui.position={fit:{left:function(a,b){var c=b.within,d=c.isWindow?c.scrollLeft:c.offset.left,c=c.width,e=a.left-b.collisionPosition.marginLeft,f=d-e,g=e+b.collisionWidth-c-d,h;b.collisionWidth>c?0<f&&0>=g?(h=a.left+f+b.collisionWidth-c-d,a.left+=f-h):0<g&&0>=f?a.left=d:f>g?a.left=d+c-b.collisionWidth:a.left=d:0<f?a.left+=f:0<g?a.left-=g:a.left=y(a.left-e,a.left)},top:function(a,b){var c=b.within,c=c.isWindow?c.scrollTop:c.offset.top,d=b.within.height,e=a.top-b.collisionPosition.marginTop,f=c-e,g=
e+b.collisionHeight-d-c,h;b.collisionHeight>d?0<f&&0>=g?(h=a.top+f+b.collisionHeight-d-c,a.top+=f-h):0<g&&0>=f?a.top=c:f>g?a.top=c+d-b.collisionHeight:a.top=c:0<f?a.top+=f:0<g?a.top-=g:a.top=y(a.top-e,a.top)}},flip:{left:function(a,b){var c=b.within,d=c.offset.left+c.scrollLeft,e=c.width,f=c.isWindow?c.scrollLeft:c.offset.left,g=a.left-b.collisionPosition.marginLeft,c=g-f,h=g+b.collisionWidth-e-f,g="left"===b.my[0]?-b.elemWidth:"right"===b.my[0]?b.elemWidth:0,j="left"===b.at[0]?b.targetWidth:"right"===
b.at[0]?-b.targetWidth:0,l=-2*b.offset[0];if(0>c){if(d=a.left+g+j+l+b.collisionWidth-e-d,0>d||d<r(c))a.left+=g+j+l}else if(0<h&&(d=a.left-b.collisionPosition.marginLeft+g+j+l-f,0<d||r(d)<h))a.left+=g+j+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,f=a.top-b.collisionPosition.marginTop,g=f-c,f=f+b.collisionHeight-e-c,h="top"===b.my[1]?-b.elemHeight:"bottom"===b.my[1]?b.elemHeight:0,j="top"===b.at[1]?b.targetHeight:"bottom"===b.at[1]?
-b.targetHeight:0,l=-2*b.offset[1],n,q;0>g?(q=a.top+h+j+l+b.collisionHeight-e-d,a.top+h+j+l>g&&(0>q||q<r(g))&&(a.top+=h+j+l)):0<f&&(n=a.top-b.collisionPosition.marginTop+h+j+l-c,a.top+h+j+l>f&&(0<n||r(n)<f)&&(a.top+=h+j+l))}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments);e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments);e.ui.position.fit.top.apply(this,arguments)}}};var q,w,x,G,H,I=document.getElementsByTagName("body")[0],
K=document.createElement("div");q=document.createElement(I?"div":"body");x={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};I&&e.extend(x,{position:"absolute",left:"-1000px",top:"-1000px"});for(H in x)q.style[H]=x[H];q.appendChild(K);w=I||document.documentElement;w.insertBefore(q,w.firstChild);K.style.cssText="position: absolute; left: 10.7432222px;";G=e(K).offset().left;e.support.offsetFractions=10<G&&11>G;q.innerHTML="";w.removeChild(q);if(!1!==e.uiBackCompat){var aa=e.fn.position;
e.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,e.extend(a,{at:c[0]+b[0]+" "+c[1]+b[1],offset:void 0}))}}}catch(ib){System.out.println("coremenu failed to load jQuery.ui.position -- jQuery version conflict?")}if(!e.ui.menu)try{var L=!1;e.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,e.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=e(a.target).closest(".ui-menu-item");!L&&b.not(".ui-state-disabled").length&&(L=!0,this.select(a),b.has(".ui-menu").length?this.expand(a):this.element.is(":focus")||(this.element.trigger("focus",[!0]),
this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(a){var b=e(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(){e.contains(this.element[0],this.document[0].activeElement)||
this.collapseAll(a)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(a){e(a.target).closest(".ui-menu").length||this.collapseAll(a);L=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").andSelf().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show();
this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var a=e(this);a.data("ui-menu-submenu-carat")&&a.remove()});this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(a){function b(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,
"\\$&")}var c,d,f,g,h=!0;switch(a.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(a);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(a);break;case e.ui.keyCode.HOME:this._move("first","first",a);break;case e.ui.keyCode.END:this._move("last","last",a);break;case e.ui.keyCode.UP:this.previous(a);break;case e.ui.keyCode.DOWN:this.next(a);break;case e.ui.keyCode.LEFT:this.collapse(a);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(a);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(a);
break;case e.ui.keyCode.ESCAPE:this.collapse(a);break;default:h=!1,c=this.previousFilter||"",d=String.fromCharCode(a.keyCode),f=!1,clearTimeout(this.filterTimer),d===c?f=!0:d=c+d,g=RegExp("^"+b(d),"i"),c=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(e(this).children("a").text())}),c=f&&-1!==c.index(this.active.next())?this.active.nextAll(".ui-menu-item"):c,c.length||(d=String.fromCharCode(a.keyCode),g=RegExp("^"+b(d),"i"),c=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(e(this).children("a").text())})),
c.length?(this.focus(a,c),1<c.length?(this.previousFilter=d,this.filterTimer=this._delay(function(){delete this.previousFilter},1E3)):delete this.previousFilter):delete this.previousFilter}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=e(this),d=a.prev("a"),f=e("<span>").addClass("ui-menu-icon ui-icon "+b).data("ui-menu-submenu-carat",!0);d.attr("aria-haspopup","true").prepend(f);a.attr("aria-labelledby",d.attr("id"))});a=a.add(this.element);a.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()});a.children(":not(.ui-menu-item)").each(function(){var a=
e(this);/[^\-+\ufffdG\ufffd\ufffdG\ufffd\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&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},focus:function(a,b){var c;this.blur(a,a&&"focus"===a.type);this._scrollIntoView(b);this.active=b.first();c=this.active.children("a").addClass("ui-state-focus");
this.options.role&&this.element.attr("aria-activedescendant",c.attr("id"));this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active");a&&"keydown"===a.type?this._close():this.timer=this._delay(function(){this._close()},this.delay);c=b.children(".ui-menu");c.length&&/^mouse/.test(a.type)&&this._startOpening(c);this.activeMenu=b.parent();this._trigger("focus",a,{item:b})},_scrollIntoView:function(a){var b,c,d,f,g,h;this._hasScroll()&&(b=parseFloat(e.css(this.activeMenu[0],
"borderTopWidth"))||0,c=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,d=a.offset().top-this.activeMenu.offset().top-b-c,f=this.activeMenu.scrollTop(),g=this.activeMenu.height(),h=a.height(),0>d?this.activeMenu.scrollTop(f+d):d+h>g&&this.activeMenu.scrollTop(f+d-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){a.hasClass("ui-state-disabled")||
(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=e.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:
e(a&&a.target).closest(this.element.find(".ui-menu"));c.length||(c=this.element);this._close(c);this.blur(a);this.activeMenu=c},this.delay)},_close:function(a){a||(a=this.active?this.active.parent():this.element);a.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(a){var b=this.active&&this.active.parent().closest(".ui-menu-item",this.element);b&&b.length&&(this._close(),this.focus(a,b))},
expand:function(a){var b=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();b&&b.length&&(this._open(b.parent()),this._delay(function(){this.focus(a,b)}))},next:function(a){this._move("next","first",a)},previous:function(a){this._move("prev","last",a)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(a,b,c){var d;this.active&&
("first"===a||"last"===a?d=this.active["first"===a?"prevAll":"nextAll"](".ui-menu-item").eq(-1):d=this.active[a+"All"](".ui-menu-item").eq(0));if(!d||!d.length||!this.active)d=this.activeMenu.children(".ui-menu-item")[b]();this.focus(c,d)},nextPage:function(a){var b,c,d;this.active?this.isLastItem()||(this._hasScroll()?(c=this.active.offset().top,d=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return b=e(this),0>b.offset().top-c-d}),this.focus(a,b)):this.focus(a,this.activeMenu.children(".ui-menu-item")[this.active?
"last":"first"]())):this.next(a)},previousPage:function(a){var b,c,d;this.active?this.isFirstItem()||(this._hasScroll()?(c=this.active.offset().top,d=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return b=e(this),0<b.offset().top-c+d}),this.focus(a,b)):this.focus(a,this.activeMenu.children(".ui-menu-item").first())):this.next(a)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(a){this.active=this.active||e(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(jb){System.out.println("JSmolMenu failed to load jQuery.ui.menu -- jQuery version conflict?")}var j=Jmol.Swing;if(!j.menuInitialized){j.menuCounter=0;j.menuInitialized=1;j.__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 *{background:grey!important,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)}'};
j.setMenu=function(a){j.__getMenuStyle&&Jmol.$after("head","<style>"+j.__getMenuStyle(a.applet)+"</style>");j.__getStyle=null;a.tainted=!0;a.popupMenu=a;a.id="top";a.id=j.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))};j.showMenu=function(a,b,c){Jmol._showMenuCallback&&Jmol._showMenuCallback(a,b,c);a.tainted&&(a.container.html(a.toHTML()),a.tainted=!1,j.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&&j.hideMenu(a)});a.container.bind("contextmenu",function(){return!1})};j.disposeMenu=function(a){Jmol._persistentMenu||(j.hideMenu(a),j.bindMenuActionCommands(a,!1),delete a.applet._menus[a.name])};j.initMenuItem=
function(a){a.applet=a.popupMenu.applet;a.id=j.getMenuID(a);a.icon&&(a.icon='<img src="'+a.applet._j2sPath+"/"+a.icon+'" style="max-height: 20px;" />')};j.getMenuID=function(a){var b=a.popupMenu;return b.applet._id+"_"+b.name+"_"+a.id+"_"+ ++j.menuCounter};j.hideMenu=function(a){a._visible&&(a.dragBind(!1),a.container.hide(),a._visible=a.isDragging=!1)};var ba=function(a,b){setTimeout(function(){j.hideMenus(a.applet);b()},500)};j.bindMenuActionCommands=function(a,b){for(var c=a.getComponentCount(),
d=0;d<c;d++)j.bindMenuActionCommands(a.getComponent(d),b);Jmol.$documentOff("click mouseup mouseover mousedown touchstart touchend mouseenter mouseleave",a.id);b&&(Jmol.$documentOn("click",a.id,function(){var b=""+a.name,b=0>b.indexOf("Persist")||0<=b.indexOf("!Persist");a.itemListener?(a.selected=2==a.btnType?Jmol.$prop(a.id+"-cb","checked"):!0,b&&ba(a,function(){a.itemListener.itemStateChanged({getSource:function(){return a}})})):a.actionListener&&b&&ba(a,function(){a.actionListener.actionPerformed({getSource:function(){return a},
getActionCommand:function(){return a.actionCommand}})})}),Jmol.$documentOn("mouseup mouseover mousedown touchstart touchend mouseenter mouseleave",a.id,function(b){a.mouseListener&&a.mouseListener.handleEvent&&a.mouseListener.handleEvent({jqevent:b,getID:function(){return b.type},getSource:function(){return a}})}))}}t("J.api");fa(J.api,"GenericMenuInterface");t("JSV.js2d");A(["JSV.popup.JSVGenericPopup"],"JSV.js2d.JsPopup",["JSV.popup.JSVPopupResourceBundle","J.awtjs2d.JSPopupHelper"],function(){c$=
N(JSV.js2d,"JsPopup",JSV.popup.JSVGenericPopup);B(c$,function(){C(this,JSV.js2d.JsPopup,[]);this.helper=new J.awtjs2d.JSPopupHelper(this)});l(c$,"jpiInitialize",function(a,b){var c=new JSV.popup.JSVPopupResourceBundle;this.initialize(a,c,b)},"J.api.PlatformViewer,~S");l(c$,"menuShowPopup",function(a,b,c){try{a.show(this.isTainted?this.vwr.getApplet():null,b,c)}catch(d){if(!ea(d,Exception))throw d;}},"J.api.SC,~N,~N");l(c$,"getImageIcon",function(){return null},"~S");l(c$,"menuFocusCallback",function(){},
"~S,~S,~B")});t("JSV.popup");A(["J.popup.GenericPopup"],"JSV.popup.JSVGenericPopup",["JU.PT","JSV.common.JSVersion","$.JSViewer","JSV.popup.JSVPopupResourceBundle"],function(){c$=da(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;ca(this,arguments)},JSV.popup,"JSVGenericPopup",J.popup.GenericPopup);B(c$,function(){C(this,JSV.popup.JSVGenericPopup,[])});n(c$,"initialize",function(a,
b,c){this.vwr=a;this.initSwing(c,b,a.getApplet(),JSV.common.JSViewer.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,J.api.SC");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$,"getScriptForCallback",function(a,b,c){return c},"J.api.SC,~S,~S");
l(c$,"appGetMenuAsString",function(a){return(new JSV.popup.JSVPopupResourceBundle).getMenuAsText(a)},"~S");l(c$,"appGetBooleanProperty",function(){return!1},"~S");l(c$,"appRunSpecialCheckBox",function(){return!1},"J.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(){},"J.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 d=(new Boolean(this.setSpectraMenu(a,this.hnmrPeaks)|this.setSpectraMenu(b,this.cnmrPeaks))).valueOf();d&&(null!=a&&this.menuAddSubMenu(c,a),null!=b&&this.menuAddSubMenu(c,b));this.menuEnable(c,d)}});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 d=0;d<c;d++){var e=b.get(d),f=JU.PT.getQuotedAttribute(e,"title"),e=JU.PT.getQuotedAttribute(e,"atoms");null!=e&&this.menuCreateItem(a,f,"select visible & (@"+
JU.PT.rep(e,","," or @")+")","Focus"+d)}this.menuEnable(a,!0);return!0},"J.api.SC,JU.Lst");n(c$,"updateAboutSubmenu",function(){var a=this.htMenus.get("aboutComputedMenu");null!=a&&this.menuRemoveAll(a,this.aboutComputedMenuBaseCount)});n(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");n(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$,"getUnknownCheckBoxScriptToRun",function(){return null},"J.api.SC,~S,~S,~B");M(c$,"dumpList",!1,"UPDATE_NEVER",-1,"UPDATE_ALL",0,"UPDATE_CONFIG",1,"UPDATE_SHOW",
2)});t("JSV.popup");A(["J.popup.PopupResource"],"JSV.popup.JSVPopupResourceBundle",null,function(){c$=N(JSV.popup,"JSVPopupResourceBundle",J.popup.PopupResource);l(c$,"getMenuName",function(){return"appMenu"});B(c$,function(){C(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");M(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 Points_Only - 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,["Points_Only","POINTSONLY 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);
