(function(x,$,aa,ba,ca,fa,g,ga,k,n,m,ha,ia,l,ja,ka,la,ma,r,na,q,oa,v,pa,qa,ra,sa,O,ta,ua,F,va,wa,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,d,h){g("J.api");v(J.api,"SC");g("JS");k(["JS.LayoutManager"],"JS.BorderLayout",null,function(){r(JS,"BorderLayout",JS.LayoutManager)});g("JS");k(null,"JS.Component",["JU.CU"],function(){var b=m(function(){this._visible=!1;this.enabled=!0;this.name=this.text=null;this.height=this.width=0;this.bgcolor=this.mouseListener=this.parent=this.id=
null;this.minHeight=this.minWidth=30;this.renderHeight=this.renderWidth=0;n(this,arguments)},JS,"Component",null);l(b,function(a){this.id=JS.Component.newID(a);null!=a&&SwingController.register(this,a)},"~S");d(b,"setParent",function(a){this.parent=a},"~O");b.newID=d(b,"newID",function(a){return a+(""+Math.random()).substring(3,10)},"~S");d(b,"setBackground",function(a){this.bgcolor=a},"javajs.api.GenericColor");d(b,"setText",function(a){this.text=a;SwingController.setText(this)},"~S");d(b,"setName",
function(a){this.name=a},"~S");d(b,"getName",function(){return this.name});d(b,"getParent",function(){return this.parent});d(b,"setPreferredSize",function(a){this.width=a.width;this.height=a.height},"JS.Dimension");d(b,"addMouseListener",function(a){this.mouseListener=a},"~O");d(b,"getText",function(){return this.text});d(b,"isEnabled",function(){return this.enabled});d(b,"setEnabled",function(a){this.enabled=a;SwingController.setEnabled(this)},"~B");d(b,"isVisible",function(){return this._visible});
d(b,"setVisible",function(a){this._visible=a;SwingController.setVisible(this)},"~B");d(b,"getHeight",function(){return this.height});d(b,"getWidth",function(){return this.width});d(b,"setMinimumSize",function(a){this.minWidth=a.width;this.minHeight=a.height},"JS.Dimension");d(b,"getSubcomponentWidth",function(){return this.width});d(b,"getSubcomponentHeight",function(){return this.height});d(b,"getCSSstyle",function(a,b){var d=0<this.renderWidth?this.renderWidth:this.getSubcomponentWidth(),g=0<this.renderHeight?
this.renderHeight:this.getSubcomponentHeight();return(0<d?"width:"+d+"px;":0<a?"width:"+a+"%;":"")+(0<g?"height:"+g+"px;":0<b?"height:"+b+"%;":"")+(null==this.bgcolor?"":"background-color:"+JU.CU.toCSSString(this.bgcolor)+";")},"~N,~N");d(b,"repaint",function(){})});g("JS");k(["JS.Component"],"JS.Container",["JU.Lst"],function(){var b=m(function(){this.cList=this.list=null;n(this,arguments)},JS,"Container",JS.Component);d(b,"getComponent",function(a){return this.list.get(a)},"~N");d(b,"getComponentCount",
function(){return null==this.list?0:this.list.size()});d(b,"getComponents",function(){if(null==this.cList){if(null==this.list)return[];this.cList=this.list.toArray()}return this.cList});d(b,"add",function(a){return this.addComponent(a)},"JS.Component");d(b,"addComponent",function(a){null==this.list&&(this.list=new JU.Lst);this.list.addLast(a);this.cList=null;a.parent=this;return a},"JS.Component");d(b,"insertComponent",function(a,b){if(null==this.list)return this.addComponent(a);this.list.add(b,a);
this.cList=null;a.parent=this;return a},"JS.Component,~N");d(b,"remove",function(a){this.cList=this.list.removeItemAt(a).parent=null},"~N");d(b,"removeAll",function(){if(null!=this.list){for(var a=this.list.size();0<=--a;)this.list.get(a).parent=null;this.list.clear()}this.cList=null});d(b,"getSubcomponentWidth",function(){return null!=this.list&&1==this.list.size()?this.list.get(0).getSubcomponentWidth():0});d(b,"getSubcomponentHeight",function(){return null!=this.list&&1==this.list.size()?this.list.get(0).getSubcomponentHeight():
0})});g("JS");r(JS,"LayoutManager",null);g("JS");k(["J.api.SC","JS.JComponent"],"JS.AbstractButton",null,function(){var b=m(function(){this.htmlName=this.applet=this.itemListener=null;this.selected=!1;this.icon=this.popupMenu=null;n(this,arguments)},JS,"AbstractButton",JS.JComponent,J.api.SC);l(b,function(a){q(this,JS.AbstractButton,[a]);this.enabled=!0},"~S");h(b,"setSelected",function(a){this.selected=a;SwingController.setSelected(this)},"~B");h(b,"isSelected",function(){return this.selected});
h(b,"addItemListener",function(a){this.itemListener=a},"~O");h(b,"getIcon",function(){return this.icon});h(b,"setIcon",function(a){this.icon=a},"~O");h(b,"init",function(a,b,d,g){this.text=a;this.icon=b;this.actionCommand=d;this.popupMenu=g;SwingController.initMenuItem(this)},"~S,~O,~S,J.api.SC");d(b,"getTopPopupMenu",function(){return this.popupMenu});d(b,"add",function(a){this.addComponent(a)},"J.api.SC");h(b,"insert",function(a,b){this.insertComponent(a,b)},"J.api.SC,~N");h(b,"getPopupMenu",function(){return null});
d(b,"getMenuHTML",function(){var a=null!=this.icon?this.icon:null!=this.text?this.text:null,b=null==a?"":"<li><a>"+a+"</a>"+this.htmlMenuOpener("ul"),d=this.getComponentCount();if(0<d)for(var g=0;g<d;g++)b+=this.getComponent(g).toHTML();null!=a&&(b+="</ul></li>");return b});d(b,"htmlMenuOpener",function(a){return"<"+a+' id="'+this.id+'"'+(this.enabled?"":this.getHtmlDisabled())+">"},"~S");d(b,"getHtmlDisabled",function(){return' disabled="disabled"'})});g("JS");v(JS,"AbstractTableModel",JS.TableColumn);
g("JS");k(null,"JS.ButtonGroup",["JS.Component"],function(){var b=m(function(){this.id=null;this.count=0;n(this,arguments)},JS,"ButtonGroup",null);l(b,function(){this.id=JS.Component.newID("bg")});d(b,"add",function(a){this.count++;a.htmlName=this.id},"J.api.SC");d(b,"getButtonCount",function(){return this.count})});g("JS");x=m(function(){this.component=null;this.textAlign=this.rowspan=this.colspan=0;this.c=null;n(this,arguments)},JS,"Cell",null);l(x,function(b,a){this.component=b;this.colspan=a.gridwidth;
this.rowspan=a.gridheight;this.c=a},"JS.JComponent,JS.GridBagConstraints");d(x,"toHTML",function(b){var a=this.c.getStyle(!1);return"<td id='"+b+"' "+(2>this.colspan?"":"colspan='"+this.colspan+"' ")+a+"><span "+this.c.getStyle(!0)+">"+this.component.toHTML()+"</span></td>"},"~S");g("JS");v(JS,"ColumnSelectionModel");g("JS");v(JS,"Document");g("JS");k(["JS.LayoutManager"],"JS.FlowLayout",null,function(){r(JS,"FlowLayout",JS.LayoutManager)});g("JS");k(null,"JS.Grid",["JU.AU","$.SB","JS.Cell"],function(){var b=
m(function(){this.ncols=this.nrows=0;this.renderer=this.grid=null;n(this,arguments)},JS,"Grid",null);l(b,function(){this.grid=O(0,0,null)},"~N,~N");d(b,"add",function(a,b){if(b.gridx>=this.ncols){this.ncols=b.gridx+1;for(var d=0;d<this.nrows;d++)this.grid[d]=JU.AU.ensureLength(this.grid[d],2*this.ncols)}if(b.gridy>=this.nrows){for(var g=Array(2*b.gridy+1),d=0;d<this.nrows;d++)g[d]=this.grid[d];for(d=g.length;--d>=this.nrows;)g[d]=Array(2*this.ncols+1);this.grid=g;this.nrows=b.gridy+1}this.grid[b.gridy][b.gridx]=
new JS.Cell(a,b)},"JS.JComponent,JS.GridBagConstraints");d(b,"toHTML",function(a){var b=new JU.SB;a+="_grid";b.append("\n<table id='"+a+"' class='Grid' style='width:100%;height:100%'><tr><td style='height:20%;width:20%'></td></tr>");for(var d=0;d<this.nrows;d++){var g=a+"_"+d;b.append("\n<tr id='"+g+"'><td></td>");for(var h=0;h<this.ncols;h++)null!=this.grid[d][h]&&b.append(this.grid[d][h].toHTML(g+"_"+h));b.append("</tr>")}b.append("\n<tr><td style='height:20%;width:20%'></td></tr></table>\n");return b.toString()},
"~S")});g("JS");k(null,"JS.GridBagConstraints",["JS.Insets"],function(){var b=m(function(){this.fill=this.anchor=this.weighty=this.weightx=this.gridheight=this.gridwidth=this.gridy=this.gridx=0;this.insets=null;this.ipady=this.ipadx=0;n(this,arguments)},JS,"GridBagConstraints",null);l(b,function(a,b,d,g,h,k,l,q,n,f,m){this.gridx=a;this.gridy=b;this.gridwidth=d;this.gridheight=g;this.weightx=h;this.weighty=k;this.anchor=l;this.fill=q;null==n&&(n=new JS.Insets(0,0,0,0));this.insets=n;this.ipadx=f;this.ipady=
m},"~N,~N,~N,~N,~N,~N,~N,~N,JS.Insets,~N,~N");d(b,"getStyle",function(a){return"style='"+(a?"margin:"+this.insets.top+"px "+(this.ipady+this.insets.right)+"px "+this.insets.bottom+"px "+(this.ipadx+this.insets.left)+"px;":"text-align:"+(13==this.anchor?"right":17==this.anchor?"left":"center"))+"'"},"~B")});g("JS");k(["JS.LayoutManager"],"JS.GridBagLayout",null,function(){r(JS,"GridBagLayout",JS.LayoutManager)});g("JS");x=m(function(){this.right=this.bottom=this.left=this.top=0;n(this,arguments)},
JS,"Insets",null);l(x,function(b,a,e,d){this.top=b;this.left=a;this.bottom=e;this.right=d},"~N,~N,~N,~N");g("JS");k(["JS.AbstractButton"],"JS.JButton",["JU.SB"],function(){var b=r(JS,"JButton",JS.AbstractButton);l(b,function(){q(this,JS.JButton,["btnJB"])});h(b,"toHTML",function(){var a=new JU.SB;a.append("<input type=button id='"+this.id+"' class='JButton' style='"+this.getCSSstyle(80,0)+"' onclick='SwingController.click(this)' value='"+this.text+"'/>");return a.toString()})});g("JS");k(["JS.AbstractButton"],
"JS.JCheckBox",null,function(){var b=r(JS,"JCheckBox",JS.AbstractButton);l(b,function(){q(this,JS.JCheckBox,["chkJCB"])});h(b,"toHTML",function(){return"<label><input type=checkbox id='"+this.id+"' class='JCheckBox' style='"+this.getCSSstyle(0,0)+"' "+(this.selected?"checked='checked' ":"")+"onclick='SwingController.click(this)'>"+this.text+"</label>"})});g("JS");k(["JS.JMenuItem"],"JS.JCheckBoxMenuItem",null,function(){var b=r(JS,"JCheckBoxMenuItem",JS.JMenuItem);l(b,function(){q(this,JS.JCheckBoxMenuItem,
["chk",2])})});g("JS");k(["JS.AbstractButton"],"JS.JComboBox",["JU.SB"],function(){var b=m(function(){this.info=null;this.selectedIndex=0;n(this,arguments)},JS,"JComboBox",JS.AbstractButton);l(b,function(a){q(this,JS.JComboBox,["cmbJCB"]);this.info=a},"~A");d(b,"setSelectedIndex",function(a){this.selectedIndex=a;SwingController.setSelectedIndex(this)},"~N");d(b,"getSelectedIndex",function(){return this.selectedIndex});d(b,"getSelectedItem",function(){return 0>this.selectedIndex?null:this.info[this.selectedIndex]});
h(b,"toHTML",function(){var a=new JU.SB;a.append("\n<select id='"+this.id+"' class='JComboBox' onchange='SwingController.click(this)'>\n");for(var b=0;b<this.info.length;b++)a.append("\n<option class='JComboBox_option'"+(b==this.selectedIndex?"selected":"")+">"+this.info[b]+"</option>");a.append("\n</select>\n");return a.toString()})});g("JS");k(["JS.Container"],"JS.JComponent",null,function(){var b=m(function(){this.autoScrolls=!1;this.actionListener=this.actionCommand=null;n(this,arguments)},JS,
"JComponent",JS.Container);d(b,"setAutoscrolls",function(a){this.autoScrolls=a},"~B");d(b,"addActionListener",function(a){this.actionListener=a},"~O");d(b,"getActionCommand",function(){return this.actionCommand});d(b,"setActionCommand",function(a){this.actionCommand=a},"~S")});g("JS");k(["JS.JComponent"],"JS.JComponentImp",null,function(){var b=r(JS,"JComponentImp",JS.JComponent);h(b,"toHTML",function(){return null})});g("JS");k(["JS.JComponent"],"JS.JContentPane",["JU.SB"],function(){var b=r(JS,
"JContentPane",JS.JComponent);l(b,function(){q(this,JS.JContentPane,["JCP"])});d(b,"toHTML",function(){var a=new JU.SB;a.append("\n<div id='"+this.id+"' class='JContentPane' style='"+this.getCSSstyle(100,100)+"'>\n");if(null!=this.list)for(var b=0;b<this.list.size();b++)a.append(this.list.get(b).toHTML());a.append("\n</div>\n");return a.toString()})});g("JS");k(["JS.Container"],"JS.JDialog",["JU.SB","JS.Color","$.JContentPane"],function(){var b=m(function(){this.defaultWidth=600;this.defaultHeight=
300;this.html=this.title=this.contentPane=null;this.zIndex=9E3;this.loc=null;n(this,arguments)},JS,"JDialog",JS.Container);l(b,function(){q(this,JS.JDialog,["JD"]);this.add(this.contentPane=new JS.JContentPane);this.setBackground(JS.Color.get3(210,210,240));this.contentPane.setBackground(JS.Color.get3(230,230,230))});d(b,"setZIndex",function(a){this.zIndex=a},"~N");d(b,"setLocation",function(a){this.loc=a},"~A");d(b,"getContentPane",function(){return this.contentPane});d(b,"setTitle",function(a){this.title=
a},"~S");d(b,"pack",function(){this.html=null});d(b,"validate",function(){this.html=null});d(b,"setVisible",function(a){a&&null==this.html&&this.setDialog();F(this,JS.JDialog,"setVisible",[a]);a&&this.toFront()},"~B");d(b,"dispose",function(){SwingController.dispose(this)});h(b,"repaint",function(){this.setDialog()});d(b,"setDialog",function(){this.html=this.toHTML();SwingController.setDialog(this)});h(b,"toHTML",function(){this.renderWidth=Math.max(this.width,this.getSubcomponentWidth());0==this.renderWidth&&
(this.renderWidth=this.defaultWidth);this.renderHeight=Math.max(this.height,this.contentPane.getSubcomponentHeight());0==this.renderHeight&&(this.renderHeight=this.defaultHeight);var a=this.renderHeight-25,b=new JU.SB;b.append("\n<div id='"+this.id+"' class='JDialog' style='"+this.getCSSstyle(0,0)+"z-index:"+this.zIndex+";position:relative;top:0px;left:0px;reize:both;'>\n");b.append("\n<div id='"+this.id+"_title' class='JDialogTitle' style='width:100%;height:25px;padding:5px 5px 5px 5px;height:25px'><span style='text-align:center;'>"+
this.title+"</span><span style='position:absolute;text-align:right;right:1px;'><input type=button id='"+this.id+"_closer' onclick='SwingController.windowClosing(this)' value='x' /></span></div>\n");b.append("\n<div id='"+this.id+"_body' class='JDialogBody' style='width:100%;height:"+a+"px;position: relative;left:0px;top:0px'>\n");b.append(this.contentPane.toHTML());b.append("\n</div></div>\n");return b.toString()});d(b,"toFront",function(){SwingController.setFront(this)})});g("JS");k(["JS.JComponent"],
"JS.JEditorPane",["JU.SB"],function(){var b=r(JS,"JEditorPane",JS.JComponent);l(b,function(){q(this,JS.JEditorPane,["txtJEP"]);this.text=""});h(b,"toHTML",function(){var a=new JU.SB;a.append("<textarea type=text id='"+this.id+"' class='JEditorPane' style='"+this.getCSSstyle(98,98)+"'>"+this.text+"</textarea>");return a.toString()})});g("JS");k(["JS.JComponent"],"JS.JLabel",["JU.SB"],function(){var b=r(JS,"JLabel",JS.JComponent);l(b,function(a){q(this,JS.JLabel,["lblJL"]);this.text=a},"~S");h(b,"toHTML",
function(){var a=new JU.SB;a.append("<span id='"+this.id+"' class='JLabel' style='"+this.getCSSstyle(0,0)+"'>");a.append(this.text);a.append("</span>");return a.toString()})});g("JS");k(["JS.JMenuItem"],"JS.JMenu",null,function(){var b=r(JS,"JMenu",JS.JMenuItem);l(b,function(){q(this,JS.JMenu,["mnu",4])});d(b,"getItemCount",function(){return this.getComponentCount()});d(b,"getItem",function(c){return this.getComponent(c)},"~N");h(b,"getPopupMenu",function(){return this});h(b,"toHTML",function(){return this.getMenuHTML()});
var a=Jmol.__$;if(!a.ui)try{var e=a,g=function(c,a){var b,j,d,u=c.nodeName.toLowerCase();return"area"===u?(b=c.parentNode,j=b.name,!c.href||!j||"map"!==b.nodeName.toLowerCase()?!1:(d=e("img[usemap=#"+j+"]")[0],!!d&&k(d))):(/input|select|textarea|button|object/.test(u)?!c.disabled:"a"===u?c.href||a:a)&&k(c)},k=function(c){return e.expr.filters.visible(c)&&!e(c).parents().andSelf().filter(function(){return"hidden"===e.css(this,"visibility")}).length},n=0,m=/^ui-id-\d+$/;e.ui=e.ui||{};if(!e.ui.version){e.extend(e.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}});e.fn.extend({_focus:e.fn.focus,focus:function(c,a){return"number"==typeof c?this.each(function(){var b=this;setTimeout(function(){e(b).focus();a&&a.call(b)},c)}):this._focus.apply(this,arguments)},scrollParent:function(){var c;
return e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?c=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0):c=this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!c.length?e(document):
c},zIndex:function(c){if(void 0!==c)return this.css("zIndex",c);if(this.length){c=e(this[0]);for(var a;c.length&&c[0]!==document;){a=c.css("position");if("absolute"===a||"relative"===a||"fixed"===a)if(a=parseInt(c.css("zIndex"),10),!isNaN(a)&&0!==a)return a;c=c.parent()}}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})},removeUniqueId:function(){return this.each(function(){m.test(this.id)&&e(this).removeAttr("id")})}});e.extend(e.expr[":"],{data:e.expr.createPseudo?
e.expr.createPseudo(function(c){return function(a){return!!e.data(a,c)}}):function(c,a,b){return!!e.data(c,b[3])},focusable:function(c){return g(c,!isNaN(e.attr(c,"tabindex")))},tabbable:function(c){var a=e.attr(c,"tabindex"),b=isNaN(a);return(b||0<=a)&&g(c,!b)}});e(function(){var c=document.body,a=c.appendChild(a=document.createElement("div"));a.offsetHeight;e.extend(a.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});e.support.minHeight=100===a.offsetHeight;e.support.selectstart=
"onselectstart"in a;c.removeChild(a).style.display="none"});e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],function(c,a){function b(c,a,w,A){return e.each(j,function(){a-=parseFloat(e.css(c,"padding"+this))||0;w&&(a-=parseFloat(e.css(c,"border"+this+"Width"))||0);A&&(a-=parseFloat(e.css(c,"margin"+this))||0)}),a}var j="Width"===a?["Left","Right"]:["Top","Bottom"],d=a.toLowerCase(),u={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};
e.fn["inner"+a]=function(c){return void 0===c?u["inner"+a].call(this):this.each(function(){e(this).css(d,b(this,c)+"px")})};e.fn["outer"+a]=function(c,j){return"number"!=typeof c?u["outer"+a].call(this,c):this.each(function(){e(this).css(d,b(this,c,!0,j)+"px")})}});if(e("<a>").data("a-b","a").removeData("a-b").data("a-b")){var v=e.fn.removeData;e.fn.removeData=function(c){return arguments.length?v.call(this,e.camelCase(c)):v.call(this)}}var x=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||
[];e.ui.ie=x.length?!0:!1;e.ui.ie6=6===parseFloat(x[1],10);e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(c){c.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});e.extend(e.ui,{plugin:{add:function(c,a,b){var j;c=e.ui[c].prototype;for(j in b)c.plugins[j]=c.plugins[j]||[],c.plugins[j].push([a,b[j]])},call:function(c,a,b){var j=c.plugins[a];if(j&&c.element[0].parentNode&&
11!==c.element[0].parentNode.nodeType)for(a=0;a<j.length;a++)c.options[j[a][0]]&&j[a][1].apply(c.element,b)}},contains:e.contains,hasScroll:function(c,a){if("hidden"===e(c).css("overflow"))return!1;var b=a&&"left"===a?"scrollLeft":"scrollTop";return 0<c[b]?!0:(c[b]=1,c[b]=0,!1)},isOverAxis:function(c,a,b){return c>a&&c<a+b},isOver:function(c,a,b,j,d,u){return e.ui.isOverAxis(c,b,d)&&e.ui.isOverAxis(a,j,u)}})}}catch(O){System.out.println("coremenu failed to load jQuery.ui.core -- jQuery version conflict?")}if(!a.ui.widget)try{var f=
a,F=0,Q=Array.prototype.slice,da=f.cleanData;f.cleanData=function(c){for(var a=0,b;null!=(b=c[a]);a++)try{f(b).triggerHandler("remove")}catch(j){}da(c)};f.widget=function(c,a,b){var j,d,e,s,g=c.split(".")[0];c=c.split(".")[1];j=g+"-"+c;b||(b=a,a=f.Widget);f.expr[":"][j.toLowerCase()]=function(c){return!!f.data(c,j)};f[g]=f[g]||{};d=f[g][c];e=f[g][c]=function(c,a){if(!this._createWidget)return new e(c,a);arguments.length&&this._createWidget(c,a)};f.extend(e,d,{version:b.version,_proto:f.extend({},
b),_childConstructors:[]});s=new a;s.options=f.widget.extend({},s.options);f.each(b,function(c,j){if(f.isFunction(j)){var d=function(){return a.prototype[c].apply(this,arguments)},e=function(b){return a.prototype[c].apply(this,b)};b[c]=function(){var c=this._super,a=this._superApply,b;return this._super=d,this._superApply=e,b=j.apply(this,arguments),this._super=c,this._superApply=a,b}}});e.prototype=f.widget.extend(s,{widgetEventPrefix:d?s.widgetEventPrefix:c},b,{constructor:e,namespace:g,widgetName:c,
widgetBaseClass:j,widgetFullName:j});d?(f.each(d._childConstructors,function(c,a){var b=a.prototype;f.widget(b.namespace+"."+b.widgetName,e,a._proto)}),delete d._childConstructors):a._childConstructors.push(e);f.widget.bridge(c,e)};f.widget.extend=function(c){for(var a=Q.call(arguments,1),b=0,j=a.length,d,e;b<j;b++)for(d in a[b])e=a[b][d],a[b].hasOwnProperty(d)&&void 0!==e&&(f.isPlainObject(e)?c[d]=f.isPlainObject(c[d])?f.widget.extend({},c[d],e):f.widget.extend({},e):c[d]=e);return c};f.widget.bridge=
function(c,a){var b=a.prototype.widgetFullName||c;f.fn[c]=function(j){var d="string"==typeof j,e=Q.call(arguments,1),g=this;return j=!d&&e.length?f.widget.extend.apply(null,[j].concat(e)):j,d?this.each(function(){var a,w=f.data(this,b);if(!w)return f.error("cannot call methods on "+c+" prior to initialization; attempted to call method '"+j+"'");if(!f.isFunction(w[j])||"_"===j.charAt(0))return f.error("no such method '"+j+"' for "+c+" widget instance");a=w[j].apply(w,e);if(a!==w&&void 0!==a)return g=
a&&a.jquery?g.pushStack(a.get()):a,!1}):this.each(function(){var c=f.data(this,b);c?c.option(j||{})._init():f.data(this,b,new a(j,this))}),g}};f.Widget=function(){};f.Widget._childConstructors=[];f.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(c,a){a=f(a||this.defaultElement||this)[0];this.element=f(a);this.uuid=F++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=f.widget.extend({},this.options,
this._getCreateOptions(),c);this.bindings=f();this.hoverable=f();this.focusable=f();a!==this&&(f.data(a,this.widgetName,this),f.data(a,this.widgetFullName,this),this._on(!0,this.element,{remove:function(c){c.target===a&&this.destroy()}}),this.document=f(a.style?a.ownerDocument:a.document||a),this.window=f(this.document[0].defaultView||this.document[0].parentWindow));this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:f.noop,_getCreateEventData:f.noop,
_create:f.noop,_init:f.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(f.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:f.noop,widget:function(){return this.element},
option:function(c,a){var b=c,j,d,e;if(0===arguments.length)return f.widget.extend({},this.options);if("string"==typeof c)if(b={},j=c.split("."),c=j.shift(),j.length){d=b[c]=f.widget.extend({},this.options[c]);for(e=0;e<j.length-1;e++)d[j[e]]=d[j[e]]||{},d=d[j[e]];c=j.pop();if(void 0===a)return void 0===d[c]?null:d[c];d[c]=a}else{if(void 0===a)return void 0===this.options[c]?null:this.options[c];b[c]=a}return this._setOptions(b),this},_setOptions:function(c){for(var a in c)this._setOption(a,c[a]);
return this},_setOption:function(c,a){return this.options[c]=a,"disabled"===c&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!a).attr("aria-disabled",a),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(c,a,b){var j,d=this;"boolean"!=typeof c&&(b=a,a=c,c=!1);b?(a=j=f(a),this.bindings=this.bindings.add(a)):
(b=a,a=this.element,j=this.widget());f.each(b,function(b,A){function e(){if(c||!(!0===d.options.disabled||f(this).hasClass("ui-state-disabled")))return("string"==typeof A?d[A]:A).apply(d,arguments)}"string"!=typeof A&&(e.guid=A.guid=A.guid||e.guid||f.guid++);var g=b.match(/^(\w+)\s*(.*)$/),h=g[1]+d.eventNamespace;(g=g[2])?j.delegate(g,h,e):a.bind(h,e)})},_off:function(c,a){a=(a||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;c.unbind(a).undelegate(a)},_delay:function(c,a){var b=
this;return setTimeout(function(){return("string"==typeof c?b[c]:c).apply(b,arguments)},a||0)},_hoverable:function(c){this.hoverable=this.hoverable.add(c);this._on(c,{mouseenter:function(c){f(c.currentTarget).addClass("ui-state-hover")},mouseleave:function(c){f(c.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(c){this.focusable=this.focusable.add(c);this._on(c,{focusin:function(c){f(c.currentTarget).addClass("ui-state-focus")},focusout:function(c){f(c.currentTarget).removeClass("ui-state-focus")}})},
_trigger:function(c,a,b){var j,d=this.options[c];b=b||{};a=f.Event(a);a.type=(c===this.widgetEventPrefix?c:this.widgetEventPrefix+c).toLowerCase();a.target=this.element[0];if(c=a.originalEvent)for(j in c)j in a||(a[j]=c[j]);return this.element.trigger(a,b),!(f.isFunction(d)&&!1===d.apply(this.element[0],[a].concat(b))||a.isDefaultPrevented())}};f.each({show:"fadeIn",hide:"fadeOut"},function(c,a){f.Widget.prototype["_"+c]=function(b,d,e){"string"==typeof d&&(d={effect:d});var g,s=d?!0===d||"number"==
typeof d?a:d.effect||a:c;d=d||{};"number"==typeof d&&(d={duration:d});g=!f.isEmptyObject(d);d.complete=e;d.delay&&b.delay(d.delay);g&&f.effects&&(f.effects.effect[s]||!1!==f.uiBackCompat&&f.effects[s])?b[c](d):s!==c&&b[s]?b[s](d.duration,d.easing,e):b.queue(function(a){f(this)[c]();e&&e.call(b[0]);a()})}});!1!==f.uiBackCompat&&(f.Widget.prototype._getCreateOptions=function(){return f.metadata&&f.metadata.get(this.element[0])[this.widgetName]})}catch($){System.out.println("coremenu failed to load jQuery.ui.widget -- jQuery version conflict?")}if(!a.ui.mouse)try{var G=
!1;a(document).mouseup(function(){G=!1});a.widget("ui.mouse",{version:"1.9.2",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var c=this;this.element.bind("mousedown."+this.widgetName,function(a){return c._mouseDown(a)}).bind("click."+this.widgetName,function(b){if(!0===a.data(b.target,c.widgetName+".preventClickEvent"))return a.removeData(b.target,c.widgetName+".preventClickEvent"),b.stopImmediatePropagation(),!1});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+
this.widgetName);this._mouseMoveDelegate&&a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(c){if(!G){this._mouseStarted&&this._mouseUp(c);this._mouseDownEvent=c;var b=this,d=1===c.which,e="string"==typeof this.options.cancel&&c.target.nodeName?a(c.target).closest(this.options.cancel).length:!1;if(!d||e||!this._mouseCapture(c))return!0;(this.mouseDelayMet=!this.options.delay)||(this._mouseDelayTimer=
setTimeout(function(){b.mouseDelayMet=!0},this.options.delay));return this._mouseDistanceMet(c)&&this._mouseDelayMet(c)&&(this._mouseStarted=!1!==this._mouseStart(c),!this._mouseStarted)?(c.preventDefault(),!0):(!0===a.data(c.target,this.widgetName+".preventClickEvent")&&a.removeData(c.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(c){return b._mouseMove(c)},this._mouseUpDelegate=function(c){return b._mouseUp(c)},a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+
this.widgetName,this._mouseUpDelegate),c.preventDefault(),G=!0,!0)}},_mouseMove:function(c){return!a.ui.ie||9<=document.documentMode||c.button?this._mouseStarted?(this._mouseDrag(c),c.preventDefault()):(this._mouseDistanceMet(c)&&this._mouseDelayMet(c)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,c),this._mouseStarted?this._mouseDrag(c):this._mouseUp(c)),!this._mouseStarted):this._mouseUp(c)},_mouseUp:function(c){return a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+
this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,c.target===this._mouseDownEvent.target&&a.data(c.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(c)),!1},_mouseDistanceMet:function(c){return Math.max(Math.abs(this._mouseDownEvent.pageX-c.pageX),Math.abs(this._mouseDownEvent.pageY-c.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}catch(aa){System.out.println("coremenu failed to load jQuery.ui.mouse -- jQuery version conflict?")}if(!a.ui.position)try{var S=
function(c,a,b){return[parseInt(c[0],10)*(R.test(c[0])?a/100:1),parseInt(c[1],10)*(R.test(c[1])?b/100:1)]};a.ui=a.ui||{};var H,D=Math.max,y=Math.abs,T=Math.round,U=/left|center|right/,V=/top|center|bottom/,W=/[\+\-]\d+%?/,X=/^\w+/,R=/%$/,ea=a.fn.position;a.position={scrollbarWidth:function(){if(void 0!==H)return H;var c,b,d=a("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),e=d.children()[0];return a("body").append(d),c=e.offsetWidth,
d.css("overflow","scroll"),b=e.offsetWidth,c===b&&(b=d[0].clientWidth),d.remove(),H=c-b},getScrollInfo:function(c){var b=c.isWindow?"":c.element.css("overflow-x"),d=c.isWindow?"":c.element.css("overflow-y"),d="scroll"===d||"auto"===d&&c.height<c.element[0].scrollHeight;return{width:"scroll"===b||"auto"===b&&c.width<c.element[0].scrollWidth?a.position.scrollbarWidth():0,height:d?a.position.scrollbarWidth():0}},getWithinInfo:function(c){c=a(c||window);var b=a.isWindow(c[0]);return{element:c,isWindow:b,
offset:c.offset()||{left:0,top:0},scrollLeft:c.scrollLeft(),scrollTop:c.scrollTop(),width:b?c.width():c.outerWidth(),height:b?c.height():c.outerHeight()}}};a.fn.position=function(c){if(!c||!c.of)return ea.apply(this,arguments);c=a.extend({},c);var b,d,e,g,f,s=a(c.of),h=a.position.getWithinInfo(c.within),k=a.position.getScrollInfo(h),l=s[0],n=(c.collision||"flip").split(" "),p={};return 9===l.nodeType?(d=s.width(),e=s.height(),g={top:0,left:0}):a.isWindow(l)?(d=s.width(),e=s.height(),g={top:s.scrollTop(),
left:s.scrollLeft()}):l.preventDefault?(c.at="left top",d=e=0,g={top:l.pageY,left:l.pageX}):(d=s.outerWidth(),e=s.outerHeight(),g=s.offset()),f=a.extend({},g),a.each(["my","at"],function(){var a=(c[this]||"").split(" "),b,d;1===a.length&&(a=U.test(a[0])?a.concat(["center"]):V.test(a[0])?["center"].concat(a):["center","center"]);a[0]=U.test(a[0])?a[0]:"center";a[1]=V.test(a[1])?a[1]:"center";b=W.exec(a[0]);d=W.exec(a[1]);p[this]=[b?b[0]:0,d?d[0]:0];c[this]=[X.exec(a[0])[0],X.exec(a[1])[0]]}),1===n.length&&
(n[1]=n[0]),"right"===c.at[0]?f.left+=d:"center"===c.at[0]&&(f.left+=d/2),"bottom"===c.at[1]?f.top+=e:"center"===c.at[1]&&(f.top+=e/2),b=S(p.at,d,e),f.left+=b[0],f.top+=b[1],this.each(function(){var l,q,m=a(this),r=m.outerWidth(),C=m.outerHeight(),v=parseInt(a.css(this,"marginLeft"),10)||0,P=parseInt(a.css(this,"marginTop"),10)||0,x=r+v+(parseInt(a.css(this,"marginRight"),10)||0)+k.width,B=C+P+(parseInt(a.css(this,"marginBottom"),10)||0)+k.height,t=a.extend({},f),z=S(p.my,m.outerWidth(),m.outerHeight());
"right"===c.my[0]?t.left-=r:"center"===c.my[0]&&(t.left-=r/2);"bottom"===c.my[1]?t.top-=C:"center"===c.my[1]&&(t.top-=C/2);t.left+=z[0];t.top+=z[1];a.support.offsetFractions||(t.left=T(t.left),t.top=T(t.top));l={marginLeft:v,marginTop:P};a.each(["left","top"],function(f,g){a.ui.position[n[f]]&&a.ui.position[n[f]][g](t,{targetWidth:d,targetHeight:e,elemWidth:r,elemHeight:C,collisionPosition:l,collisionWidth:x,collisionHeight:B,offset:[b[0]+z[0],b[1]+z[1]],my:c.my,at:c.at,within:h,elem:m})});a.fn.bgiframe&&
m.bgiframe();c.using&&(q=function(a){var b=g.left-t.left,w=b+d-r,f=g.top-t.top,h=f+e-C,u={target:{element:s,left:g.left,top:g.top,width:d,height:e},element:{element:m,left:t.left,top:t.top,width:r,height:C},horizontal:0>w?"left":0<b?"right":"center",vertical:0>h?"top":0<f?"bottom":"middle"};d<r&&y(b+w)<d&&(u.horizontal="center");e<C&&y(f+h)<e&&(u.vertical="middle");D(y(b),y(w))>D(y(f),y(h))?u.important="horizontal":u.important="vertical";c.using.call(this,a,u)});m.offset(a.extend(t,{using:q}))})};
a.ui.position={fit:{left:function(c,a){var b=a.within,d=b.isWindow?b.scrollLeft:b.offset.left,b=b.width,e=c.left-a.collisionPosition.marginLeft,f=d-e,g=e+a.collisionWidth-b-d,h;a.collisionWidth>b?0<f&&0>=g?(h=c.left+f+a.collisionWidth-b-d,c.left+=f-h):0<g&&0>=f?c.left=d:f>g?c.left=d+b-a.collisionWidth:c.left=d:0<f?c.left+=f:0<g?c.left-=g:c.left=D(c.left-e,c.left)},top:function(c,a){var b=a.within,b=b.isWindow?b.scrollTop:b.offset.top,d=a.within.height,e=c.top-a.collisionPosition.marginTop,f=b-e,g=
e+a.collisionHeight-d-b,h;a.collisionHeight>d?0<f&&0>=g?(h=c.top+f+a.collisionHeight-d-b,c.top+=f-h):0<g&&0>=f?c.top=b:f>g?c.top=b+d-a.collisionHeight:c.top=b:0<f?c.top+=f:0<g?c.top-=g:c.top=D(c.top-e,c.top)}},flip:{left:function(c,a){var b=a.within,d=b.offset.left+b.scrollLeft,e=b.width,f=b.isWindow?b.scrollLeft:b.offset.left,g=c.left-a.collisionPosition.marginLeft,b=g-f,h=g+a.collisionWidth-e-f,g="left"===a.my[0]?-a.elemWidth:"right"===a.my[0]?a.elemWidth:0,k="left"===a.at[0]?a.targetWidth:"right"===
a.at[0]?-a.targetWidth:0,l=-2*a.offset[0];if(0>b){if(d=c.left+g+k+l+a.collisionWidth-e-d,0>d||d<y(b))c.left+=g+k+l}else if(0<h&&(d=c.left-a.collisionPosition.marginLeft+g+k+l-f,0<d||y(d)<h))c.left+=g+k+l},top:function(c,a){var b=a.within,d=b.offset.top+b.scrollTop,e=b.height,b=b.isWindow?b.scrollTop:b.offset.top,f=c.top-a.collisionPosition.marginTop,g=f-b,f=f+a.collisionHeight-e-b,h="top"===a.my[1]?-a.elemHeight:"bottom"===a.my[1]?a.elemHeight:0,k="top"===a.at[1]?a.targetHeight:"bottom"===a.at[1]?
-a.targetHeight:0,l=-2*a.offset[1],m,n;0>g?(n=c.top+h+k+l+a.collisionHeight-e-d,c.top+h+k+l>g&&(0>n||n<y(g))&&(c.top+=h+k+l)):0<f&&(m=c.top-a.collisionPosition.marginTop+h+k+l-b,c.top+h+k+l>f&&(0<m||y(m)<f)&&(c.top+=h+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 B,z,E,I,K,L=document.getElementsByTagName("body")[0],
M=document.createElement("div");B=document.createElement(L?"div":"body");E={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};L&&a.extend(E,{position:"absolute",left:"-1000px",top:"-1000px"});for(K in E)B.style[K]=E[K];B.appendChild(M);z=L||document.documentElement;z.insertBefore(B,z.firstChild);M.style.cssText="position: absolute; left: 10.7432222px;";I=a(M).offset().left;a.support.offsetFractions=10<I&&11>I;B.innerHTML="";z.removeChild(B);if(!1!==a.uiBackCompat){var Y=a.fn.position;
a.fn.position=function(c){if(!c||!c.offset)return Y.call(this,c);var b=c.offset.split(" "),d=c.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")),Y.call(this,a.extend(c,{at:d[0]+b[0]+" "+d[1]+b[1],offset:void 0}))}}}catch(ba){System.out.println("coremenu failed to load jQuery.ui.position -- jQuery version conflict?")}if(!a.ui.menu)try{var N=!1;a.widget("ui.menu",
{version:"1.9.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,a.proxy(function(a){this.options.disabled&&
a.preventDefault()},this));this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true");this._on({"mousedown .ui-menu-item > a":function(a){a.preventDefault()},"click .ui-state-disabled > a":function(a){a.preventDefault()},"click .ui-menu-item:has(a)":function(c){var b=a(c.target).closest(".ui-menu-item");!N&&b.not(".ui-state-disabled").length&&(N=!0,this.select(c),b.has(".ui-menu").length?this.expand(c):this.element.is(":focus")||(this.element.trigger("focus",[!0]),
this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(c){var b=a(c.currentTarget);b.siblings().children(".ui-state-active").removeClass("ui-state-active");this.focus(c,b)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(a,b){var d=this.active||this.element.children(".ui-menu-item").eq(0);b||this.focus(a,d)},blur:function(c){this._delay(function(){a.contains(this.element[0],this.document[0].activeElement)||
this.collapseAll(c)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(c){a(c.target).closest(".ui-menu").length||this.collapseAll(c);N=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").andSelf().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show();
this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var c=a(this);c.data("ui-menu-submenu-carat")&&c.remove()});this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(c){function b(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,
"\\$&")}var d,e,f,g,h=!0;switch(c.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(c);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(c);break;case a.ui.keyCode.HOME:this._move("first","first",c);break;case a.ui.keyCode.END:this._move("last","last",c);break;case a.ui.keyCode.UP:this.previous(c);break;case a.ui.keyCode.DOWN:this.next(c);break;case a.ui.keyCode.LEFT:this.collapse(c);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(c);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(c);
break;case a.ui.keyCode.ESCAPE:this.collapse(c);break;default:h=!1,d=this.previousFilter||"",e=String.fromCharCode(c.keyCode),f=!1,clearTimeout(this.filterTimer),e===d?f=!0:e=d+e,g=RegExp("^"+b(e),"i"),d=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(a(this).children("a").text())}),d=f&&-1!==d.index(this.active.next())?this.active.nextAll(".ui-menu-item"):d,d.length||(e=String.fromCharCode(c.keyCode),g=RegExp("^"+b(e),"i"),d=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(a(this).children("a").text())})),
d.length?(this.focus(c,d),1<d.length?(this.previousFilter=e,this.filterTimer=this._delay(function(){delete this.previousFilter},1E3)):delete this.previousFilter):delete this.previousFilter}h&&c.preventDefault()},_activate:function(a){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(a):this.select(a))},refresh:function(){var c,b=this.options.icons.submenu;c=this.element.find(this.options.menus);c.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,
"aria-hidden":"true","aria-expanded":"false"}).each(function(){var c=a(this),d=c.prev("a"),e=a("<span>").addClass("ui-menu-icon ui-icon "+b).data("ui-menu-submenu-carat",!0);d.attr("aria-haspopup","true").prepend(e);c.attr("aria-labelledby",d.attr("id"))});c=c.add(this.element);c.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()});c.children(":not(.ui-menu-item)").each(function(){var c=
a(this);/[^\-+\ufffdG\ufffd\ufffdG\ufffd\ufffd+\ufffdG\ufffd\ufffdG\ufffd\ufffd\s]/.test(c.text())||c.addClass("ui-widget-content ui-menu-divider")});c.children(".ui-state-disabled").attr("aria-disabled","true");this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},focus:function(a,b){var d;this.blur(a,a&&"focus"===a.type);this._scrollIntoView(b);this.active=b.first();d=this.active.children("a").addClass("ui-state-focus");
this.options.role&&this.element.attr("aria-activedescendant",d.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);d=b.children(".ui-menu");d.length&&/^mouse/.test(a.type)&&this._startOpening(d);this.activeMenu=b.parent();this._trigger("focus",a,{item:b})},_scrollIntoView:function(c){var b,d,e,f,g,h;this._hasScroll()&&(b=parseFloat(a.css(this.activeMenu[0],
"borderTopWidth"))||0,d=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,e=c.offset().top-this.activeMenu.offset().top-b-d,f=this.activeMenu.scrollTop(),g=this.activeMenu.height(),h=c.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){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(c){var b=a.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(c.parents(".ui-menu")).hide().attr("aria-hidden","true");c.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(b)},collapseAll:function(c,b){clearTimeout(this.timer);this.timer=this._delay(function(){var d=b?this.element:
a(c&&c.target).closest(this.element.find(".ui-menu"));d.length||(d=this.element);this._close(d);this.blur(c);this.activeMenu=d},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,d){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(d,e)},nextPage:function(c){var b,d,e;this.active?this.isLastItem()||(this._hasScroll()?(d=this.active.offset().top,e=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return b=a(this),0>b.offset().top-d-e}),this.focus(c,b)):this.focus(c,this.activeMenu.children(".ui-menu-item")[this.active?
"last":"first"]())):this.next(c)},previousPage:function(c){var b,d,e;this.active?this.isFirstItem()||(this._hasScroll()?(d=this.active.offset().top,e=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return b=a(this),0<b.offset().top-d+e}),this.focus(c,b)):this.focus(c,this.activeMenu.children(".ui-menu-item").first())):this.next(c)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(c){this.active=this.active||a(c.target).closest(".ui-menu-item");
var b={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(c,!0);this._trigger("select",c,b)}})}catch(ca){System.out.println("JSmolMenu failed to load jQuery.ui.menu -- jQuery version conflict?")}var p=Jmol.Swing;if(!p.menuInitialized){p.menuCounter=0;p.menuInitialized=1;p.__getMenuStyle=function(a){return".jmolPopupMenu{font-family:Arial,sans-serif;font-size:11px;position:absolute;z-index:"+Jmol._getZ(a,"menu")+'}.jmolPopupMenu,.jmolPopupMenu .ui-corner-all{border-radius:5px}.jmolPopupMenu,.jmolPopupMenu .ui-widget-content{border:1px solid #a6c9e2;background-color:#fcfdfd;color:#222}.jmolPopupMenu a{color:#222;font-size:10px;}.jmolPopupMenu input[type="checkbox"]{vertical-align:middle;}.jmolPopupMenu,.jmolPopupMenu .ui-menu{list-style:none;padding:2px;margin:0;display:block;outline:none;box-shadow:1px 1px 5px rgba(50,50,50,0.75)}.jmolPopupMenu .ui-menu{margin-top:-3px;position:absolute}.jmolPopupMenu .ui-menu-item{cursor:pointer;margin:0 2ex 0 0;padding:0;width:100%}.jmolPopupMenu .ui-menu-divider{margin:3px 1px;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.jmolPopupMenu .ui-menu-item a{text-decoration:none;display:block;padding:0.05em 0.4em;white-space:nowrap;border:1px solid transparent}.jmolPopupMenu .ui-menu-icons{position:relative}.jmolPopupMenu .ui-menu-icons .ui-menu-item a{position:relative;padding-left:2em}.jmolPopupMenu .ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat;position:absolute;top:.2em;left:.2em}.jmolPopupMenu .ui-menu-icon{position:static;float:right}.jmolPopupMenu .ui-icon-carat-1-e{min-width:2ex;text-align:right;background-image:none;background-position:0 0}.jmolPopupMenu .ui-icon-carat-1-e:after{content:"\\25B8"}.jmolPopupMenu .ui-state-default{border:1px solid #c5dbec;background:#dfeffc;color:#2e6e9e}.jmolPopupMenu .ui-state-default a{color:#2e6e9e;text-decoration:none}.jmolPopupMenu .ui-state-hover,.jmolPopupMenu .ui-state-focus{border:1px solid #79b7e7;background:#d0e5f5;color:#1d5987}.jmolPopupMenu .ui-state-hover a{color:#1d5987;text-decoration:none}.jmolPopupMenu .ui-state-active{border:1px solid #79b7e7;background:#f5f8f9;color:#e17009}.jmolPopupMenu .ui-state-active a{color:#e17009;text-decoration:none}.jmolPopupMenu .ui-state-highlight{border:1px solid #fad42e;background:#fbec88;color:#363636}.jmolPopupMenu .ui-state-highlight a{color:#363636}.jmolPopupMenu .ui-state-disabled *{background:grey!important,color:#d6d6d6!important;font-weight:normal;cursor:default}.jmolPopupMenu .ui-state-disabled a:hover{background-color:transparent!important;border-color:transparent!important}.jmolPopupMenu .ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}'};
p.setMenu=function(a){p.__getMenuStyle&&Jmol.$after("head","<style>"+p.__getMenuStyle(a.applet)+"</style>");p.__getStyle=null;a.tainted=!0;a.popupMenu=a;a.id="top";a.id=p.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))};p.showMenu=function(a,b,d){Jmol._showMenuCallback&&Jmol._showMenuCallback(a,b,d);a.tainted&&(a.container.html(a.toHTML()),a.tainted=!1,p.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&&p.hideMenu(a)});a.container.bind("contextmenu",function(){return!1})};p.disposeMenu=function(a){Jmol._persistentMenu||(p.hideMenu(a),p.bindMenuActionCommands(a,!1),delete a.applet._menus[a.name])};p.initMenuItem=
function(a){a.applet=a.popupMenu.applet;a.id=p.getMenuID(a);a.icon&&(a.icon='<img src="'+a.applet._j2sPath+"/"+a.icon+'" style="max-height: 20px;" />')};p.getMenuID=function(a){var b=a.popupMenu;return b.applet._id+"_"+b.name+"_"+a.id+"_"+ ++p.menuCounter};p.hideMenu=function(a){a._visible&&(a.dragBind(!1),a.container.hide(),a._visible=a.isDragging=!1)};var Z=function(a,b){setTimeout(function(){p.hideMenus(a.applet);b()},500)};p.bindMenuActionCommands=function(a,b){for(var d=a.getComponentCount(),
e=0;e<d;e++)p.bindMenuActionCommands(a.getComponent(e),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&&Z(a,function(){a.itemListener.itemStateChanged({getSource:function(){return a}})})):a.actionListener&&b&&Z(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}})}))}}});g("JS");k(["JS.AbstractButton"],"JS.JMenuItem",null,function(){var b=m(function(){this.btnType=0;n(this,arguments)},JS,"JMenuItem",JS.AbstractButton);l(b,function(a){q(this,JS.JMenuItem,
["btn"]);this.setText(a);this.btnType=null==a?0:1},"~S");l(b,function(a,b){q(this,JS.JMenuItem,[a]);this.btnType=b},"~S,~N");h(b,"toHTML",function(){return this.htmlMenuOpener("li")+(null==this.text?"":"<a>"+this.htmlLabel()+"</a>")+"</li>"});h(b,"getHtmlDisabled",function(){return' class="ui-state-disabled"'});d(b,"htmlLabel",function(){return 1==this.btnType?this.text:'<label><input id="'+this.id+"-"+(3==this.btnType?"r":"c")+'b" type="'+(3==this.btnType?'radio" name="'+this.htmlName:"checkbox")+
'" '+(this.selected?"checked":"")+" />"+this.text+"</label>"})});g("JS");k(["JS.JComponent"],"JS.JPanel",["JU.SB","JS.Grid","$.GridBagConstraints"],function(){var b=m(function(){this.grid=null;this.nElements=0;this.last=null;n(this,arguments)},JS,"JPanel",JS.JComponent);l(b,function(){q(this,JS.JPanel,["JP"]);this.grid=new JS.Grid(10,10)},"JS.LayoutManager");d(b,"add",function(a,b){this.last=1==++this.nElements?a:null;"string"==typeof b&&(b=b.equals("North")?new JS.GridBagConstraints(0,0,3,1,0,0,
10,0,null,0,0):b.equals("South")?new JS.GridBagConstraints(0,2,3,1,0,0,10,0,null,0,0):b.equals("East")?new JS.GridBagConstraints(2,1,1,1,0,0,13,0,null,0,0):b.equals("West")?new JS.GridBagConstraints(0,1,1,1,0,0,17,0,null,0,0):new JS.GridBagConstraints(1,1,1,1,0,0,10,0,null,0,0));this.grid.add(a,b)},"JS.JComponent,~O");h(b,"toHTML",function(){null!=this.last&&(this.grid=new JS.Grid(1,1),this.grid.add(this.last,new JS.GridBagConstraints(0,0,1,1,0,0,10,0,null,0,0)),this.last=null);var a=new JU.SB;a.append("\n<div id='"+
this.id+"' class='JPanel' style='"+this.getCSSstyle(100,100)+"'>\n");a.append("\n<span id='"+this.id+"_minimizer' style='width:"+this.minWidth+"px;height:"+this.minHeight+"px;'>");a.append(this.grid.toHTML(this.id));a.append("</span>");a.append("\n</div>\n");return a.toString()})});g("JS");k(["JS.AbstractButton"],"JS.JPopupMenu",null,function(){var b=m(function(){this.tainted=!0;n(this,arguments)},JS,"JPopupMenu",JS.AbstractButton);l(b,function(a){q(this,JS.JPopupMenu,["mnu"]);this.name=a},"~S");
d(b,"setInvoker",function(a){this.applet=a;SwingController.setMenu(this)},"~O");d(b,"show",function(a,b,d){null!=a&&(this.tainted=!0);SwingController.showMenu(this,b,d)},"JS.Component,~N,~N");d(b,"disposeMenu",function(){SwingController.disposeMenu(this)});h(b,"toHTML",function(){return this.getMenuHTML()});SwingController.setDraggable(JS.JPopupMenu)});g("JS");k(["JS.JMenuItem"],"JS.JRadioButtonMenuItem",null,function(){var b=m(function(){this.isRadio=!0;n(this,arguments)},JS,"JRadioButtonMenuItem",
JS.JMenuItem);l(b,function(){q(this,JS.JRadioButtonMenuItem,["rad",3])})});g("JS");k(["JS.JComponent"],"JS.JScrollPane",["JU.SB"],function(){var b=r(JS,"JScrollPane",JS.JComponent);l(b,function(a){q(this,JS.JScrollPane,["JScP"]);this.add(a)},"JS.JComponent");d(b,"toHTML",function(){var a=new JU.SB;a.append("\n<div id='"+this.id+"' class='JScrollPane' style='"+this.getCSSstyle(98,98)+"overflow:auto'>\n");if(null!=this.list){var b=this.list.get(0);a.append(b.toHTML())}a.append("\n</div>\n");return a.toString()});
h(b,"setMinimumSize",function(){},"JS.Dimension")});g("JS");k(["JS.JComponent"],"JS.JSplitPane",["JU.SB","JS.JComponentImp"],function(){var b=m(function(){this.isH=!0;this.split=1;this.left=this.right=null;n(this,arguments)},JS,"JSplitPane",JS.JComponent);l(b,function(a){q(this,JS.JSplitPane,["JSpP"]);this.split=a;this.isH=1==a},"~N");d(b,"setRightComponent",function(a){this.right=new JS.JComponentImp(null);this.right.add(a)},"JS.JComponent");d(b,"setLeftComponent",function(a){this.left=new JS.JComponentImp(null);
this.left.add(a)},"JS.JComponent");d(b,"getSubcomponentWidth",function(){var a=this.width;if(0==a){var b=this.left.getSubcomponentWidth(),d=this.right.getSubcomponentWidth();0<b&&0<d&&(a=this.isH?b+d:Math.max(b,d))}return a});d(b,"getSubcomponentHeight",function(){var a=this.height;if(0==a){var b=this.left.getSubcomponentHeight(),d=this.right.getSubcomponentHeight();0<b&&0<d&&(a=this.isH?Math.max(b,d):b+d)}return a});d(b,"toHTML",function(){if(null==this.left||null==this.right)return"";var a=1==this.split;
0==this.width&&(this.width=this.getSubcomponentWidth());0==this.height&&(this.height=this.getSubcomponentHeight());var b=new JU.SB;b.append("<div id='"+this.id+"' class='JSplitPane' style='"+this.getCSSstyle(100,100)+"'>");a?b.append("<div id='"+this.id+"_left' style='width:50%;height:100%;position:absolute;top:0%;left:0%'>"):b.append("<div id='"+this.id+"_top' style='width:100%;height:50%;position:absolute;top:0%;left:0%'>");b.append(this.left.getComponents()[0].toHTML());a?b.append("</div><div id='"+
this.id+"_right' style='width:50%;height:100%;position:absolute;top:0%;left:50%'>"):b.append("</div><div id='"+this.id+"_bottom' style='width:100%;height:50%;position:absolute;top:50%;left:0%'>");b.append(this.right.getComponents()[0].toHTML());b.append("</div></div>\n");return b.toString()})});g("JS");k(["JS.ColumnSelectionModel","$.JComponent","$.ListSelectionModel"],"JS.JTable",["JU.BS","$.SB"],function(){var b=m(function(){this.bsSelectedRows=this.bsSelectedCells=this.tableModel=null;this.cellSelectionEnabled=
this.rowSelectionAllowed=!1;this.selectionListener=null;n(this,arguments)},JS,"JTable",JS.JComponent,[JS.ListSelectionModel,JS.ColumnSelectionModel]);l(b,function(a){q(this,JS.JTable,["JT"]);this.tableModel=a;this.bsSelectedCells=new JU.BS;this.bsSelectedRows=new JU.BS},"JS.AbstractTableModel");h(b,"getSelectionModel",function(){return this});d(b,"getColumnModel",function(){return this});d(b,"setPreferredScrollableViewportSize",function(a){this.width=a.width;this.height=a.height},"JS.Dimension");
d(b,"clearSelection",function(){this.bsSelectedCells.clearAll();this.bsSelectedRows.clearAll()});d(b,"setRowSelectionAllowed",function(a){this.rowSelectionAllowed=a},"~B");d(b,"setRowSelectionInterval",function(a,b){this.bsSelectedRows.clearAll();this.bsSelectedRows.setBits(a,b);this.bsSelectedCells.clearAll()},"~N,~N");d(b,"setCellSelectionEnabled",function(a){this.cellSelectionEnabled=a},"~B");h(b,"addListSelectionListener",function(a){this.selectionListener=a},"~O");h(b,"getColumn",function(a){return this.tableModel.getColumn(a)},
"~N");h(b,"toHTML",function(){var a=new JU.SB;a.append("\n<table id='"+this.id+"_table' class='JTable' >");this.tableModel.toHTML(a,this.id,this.bsSelectedRows);a.append("\n</table>\n");return a.toString()})});g("JS");k(["JS.JComponent"],"JS.JTextField",["JU.SB"],function(){var b=r(JS,"JTextField",JS.JComponent);l(b,function(a){q(this,JS.JTextField,["txtJT"]);this.text=a},"~S");h(b,"toHTML",function(){var a=new JU.SB;a.append("<input type=text id='"+this.id+"' class='JTextField' style='"+this.getCSSstyle(0,
0)+"' value='"+this.text+"' onkeyup\t=SwingController.click(this,event)\t>");return a.toString()})});g("JS");k(["JS.Document","$.JComponent"],"JS.JTextPane",["JU.SB"],function(){var b=r(JS,"JTextPane",JS.JComponent,JS.Document);l(b,function(){q(this,JS.JTextPane,["txtJTP"]);this.text=""});d(b,"getDocument",function(){return this});h(b,"insertString",function(a,b){a=Math.min(a,this.text.length);this.text=this.text.substring(0,a)+b+this.text.substring(a)},"~N,~S,~O");h(b,"toHTML",function(){var a=new JU.SB;
a.append("<textarea type=text id='"+this.id+"' class='JTextPane' style='"+this.getCSSstyle(98,98)+"'>"+this.text+"</textarea>");return a.toString()})});g("JS");v(JS,"ListSelectionModel");g("JS");r(JS,"SwingConstants",null);g("JS");v(JS,"TableCellRenderer");g("JS");v(JS,"TableColumn")})(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.newFloatArray,Clazz.declareType,Clazz.prepareFields,Clazz.superConstructor,Clazz.newByteArray,Clazz.declareInterface,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);
