/*
* /MathJax/config/MML_HTMLorMML.js
*
* Copyright (c) 2010-2013 The MathJax Consortium
*
* Part of the MathJax library.
* See http://www.mathjax.org for details.
*
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*/MathJax.Hub.Config({delayJaxRegistration:!0});MathJax.Ajax.Preloading("[MathJax]/jax/input/MathML/config.js","[MathJax]/jax/output/HTML-CSS/config.js","[MathJax]/jax/output/NativeMML/config.js","[MathJax]/config/MMLorHTML.js","[MathJax]/extensions/mml2jax.js","[MathJax]/extensions/MathEvents.js","[MathJax]/extensions/MathZoom.js","[MathJax]/extensions/MathMenu.js","[MathJax]/jax/element/mml/jax.js","[MathJax]/extensions/toMathML.js","[MathJax]/jax/input/MathML/jax.js");MathJax.Hub.Config({"v1.0-compatible":!1});MathJax.InputJax.MathML=MathJax.InputJax({id:"MathML",version:"2.2",directory:MathJax.InputJax.directory+"/MathML",extensionDir:MathJax.InputJax.extensionDir+"/MathML",entityDir:MathJax.InputJax.directory+"/MathML/entities",config:{useMathMLspacing:!1}});MathJax.InputJax.MathML.Register("math/mml");MathJax.InputJax.MathML.loadComplete("config.js");MathJax.OutputJax["HTML-CSS"]=MathJax.OutputJax({id:"HTML-CSS",version:"2.2",directory:MathJax.OutputJax.directory+"/HTML-CSS",extensionDir:MathJax.OutputJax.extensionDir+"/HTML-CSS",autoloadDir:MathJax.OutputJax.directory+"/HTML-CSS/autoload",fontDir:MathJax.OutputJax.directory+"/HTML-CSS/fonts",webfontDir:MathJax.OutputJax.fontDir+"/HTML-CSS",config:{scale:100,minScaleAdjust:50,availableFonts:["STIX","TeX"],preferredFont:"TeX",webFont:"TeX",imageFont:"TeX",undefinedFamily:"STIXGeneral,'Arial Unicode MS',serif",mtextFontInherit:!1,EqnChunk:MathJax.Hub.Browser.isMobile?10:50,EqnChunkFactor:1.5,EqnChunkDelay:100,linebreaks:{automatic:!1,width:"container"},styles:{".MathJax_Display":{"text-align":"center",margin:"1em 0em"},".MathJax .merror":{"background-color":"#FFFF88",color:"#CC0000",border:"1px solid #CC0000",padding:"1px 3px","font-style":"normal","font-size":"90%"},"#MathJax_Tooltip":{"background-color":"InfoBackground",color:"InfoText",border:"1px solid black","box-shadow":"2px 2px 5px #AAAAAA","-webkit-box-shadow":"2px 2px 5px #AAAAAA","-moz-box-shadow":"2px 2px 5px #AAAAAA","-khtml-box-shadow":"2px 2px 5px #AAAAAA",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX\x3d2, OffY\x3d2, Color\x3d'gray', Positive\x3d'true')",padding:"3px 4px","z-index":401}}}});MathJax.Hub.Browser.isMSIE&&9<=document.documentMode&&delete MathJax.OutputJax["HTML-CSS"].config.styles["#MathJax_Tooltip"].filter;MathJax.Hub.config.delayJaxRegistration||MathJax.OutputJax["HTML-CSS"].Register("jax/mml");MathJax.Hub.Register.StartupHook("End Config",[function(a,c){var b=a.Insert({minBrowserVersion:{Firefox:3,Opera:9.52,MSIE:6,Chrome:.3,Safari:2,Konqueror:4},inlineMathDelimiters:["$","$"],displayMathDelimiters:["$$","$$"],multilineDisplay:!0,minBrowserTranslate:function(d){var e=a.getJaxFor(d),c=["[Math]"],g=document.createElement("span",{className:"MathJax_Preview"});"TeX"===e.inputJax&&(e.root.Get("displaystyle")?(c=b.displayMathDelimiters,c=[c[0]+e.originalText+c[1]],b.multilineDisplay&&(c=c[0].split(/\n/))):(c=b.inlineMathDelimiters,c=[c[0]+e.originalText.replace(/^\s+/,"").replace(/\s+$/,"")+c[1]]));for(var e=0,l=c.length;e/i,"").replace(/<\?xml:namespace .*?\/>/i,""),d=d.replace(/ /g,"\x26#xA0;"));MathJax.HTML.setScript(b,d);c.removeChild(a)}else c=MathJax.HTML.Element("span"),c.appendChild(a),MathJax.HTML.setScript(b,c.innerHTML);"none"!==this.config.preview&&this.createPreview(a,b)},ProcessMathFlattened:function(a){var c=a.parentNode,b=document.createElement("script");b.type="math/mml";c.insertBefore(b,a);for(var c="",d,e=a;a&&"/MATH"!==a.nodeName;)d=a,a=a.nextSibling,c+=this.NodeHTML(d),d.parentNode.removeChild(d);a&&"/MATH"===a.nodeName&&a.parentNode.removeChild(a);b.text=c+"\x3c/math\x3e";"none"!==this.config.preview&&this.createPreview(e,b)},NodeHTML:function(a){var c,b,d;if("#text"===a.nodeName)c=this.quoteHTML(a.nodeValue);else if("#comment"===a.nodeName)c="\x3c!--"+a.nodeValue+"--\x3e";else{c="\x3c"+a.nodeName.toLowerCase();b=0;for(d=a.attributes.length;b|\/>)$/)){b=0;for(d=a.childNodes.length;b/g,"\x26gt;").replace(/\"/g,"\x26quot;")},createPreview:function(a,c){var b=this.config.preview;"none"!==b&&("alttext"===b&&(b=a.getAttribute("alttext"),b=null!=b?[this.filterPreview(b)]:null),b&&(b=MathJax.HTML.Element("span",{className:MathJax.Hub.config.preRemoveClass},b),c.parentNode.insertBefore(b,c)))},filterPreview:function(a){return a},InitBrowser:function(){var a=MathJax.HTML.Element("span",{id:"\x3c",className:"mathjax",innerHTML:"\x3cmath\x3e\x3cmi\x3ex\x3c/mi\x3e\x3cmspace /\x3e\x3c/math\x3e"}),c=a.outerHTML||"";this.AttributeBug=""!==c&&!(c.match(/id="<"/)&&c.match(/class="mathjax"/)&&c.match(/<\/math>/));this.MathTagBug=1Math.abs(a)?"0px":a.toFixed(2).replace(/\.?0+$/,"")+"px"},getImages:function(){(new Image).src=q.button.src}},t=p.Touch={last:0,delay:500,start:function(a){var b=(new Date).getTime(),d=b-t.lastb;9>b&&(h.LEFTBUTTON=1)},Safari:function(a){p.safariContextMenuBug=!0},Opera:function(a){p.operaPositionBug=!0},Konqueror:function(a){p.noContextMenuBug=!0}});p.topImg=p.msieAlignBug?c.Element("img",{style:{width:0,height:0,position:"relative"},src:"about:blank"}):c.Element("span",{style:{width:0,height:0,display:"inline-block"}});p.operaPositionBug&&(p.topImg.style.border="1px solid");p.config=q=a.CombineConfig("MathEvents",q);d.Queue(a.Register.StartupHook("End Config",{}),[function(){var a=q.styles[".MathJax_Hover_Frame"];a.border=q.frame.bwidth+"px solid "+q.frame.bcolor+" ! important";a["box-shadow"]=a["-webkit-box-shadow"]=a["-moz-box-shadow"]=a["-khtml-box-shadow"]="0px 0px "+q.frame.hwidth+" "+q.frame.hcolor}],["getImages",r],["Styles",b,q.styles],["Post",a.Startup.signal,"MathEvents Ready"],["loadComplete",b,"[MathJax]/extensions/MathEvents.js"])})(MathJax.Hub,MathJax.HTML,MathJax.Ajax,MathJax.Callback,MathJax.Localization,MathJax.OutputJax,MathJax.InputJax);(function(a,c,b,d,e){var k=a.CombineConfig("MathZoom",{styles:{"#MathJax_Zoom":{position:"absolute","background-color":"#F0F0F0",overflow:"auto",display:"block","z-index":301,padding:".5em",border:"1px solid black",margin:0,"font-weight":"normal","font-style":"normal","text-align":"left","text-indent":0,"text-transform":"none","line-height":"normal","letter-spacing":"normal","word-spacing":"normal","word-wrap":"normal","white-space":"nowrap","float":"none","box-shadow":"5px 5px 15px #AAAAAA","-webkit-box-shadow":"5px 5px 15px #AAAAAA","-moz-box-shadow":"5px 5px 15px #AAAAAA","-khtml-box-shadow":"5px 5px 15px #AAAAAA",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX\x3d2, OffY\x3d2, Color\x3d'gray', Positive\x3d'true')"},"#MathJax_ZoomOverlay":{position:"absolute",left:0,top:0,"z-index":300,display:"inline-block",width:"100%",height:"100%",border:0,padding:0,margin:0,"background-color":"white",opacity:0,filter:"alpha(opacity\x3d0)"},"#MathJax_ZoomFrame":{position:"relative",display:"inline-block",height:0,width:0},"#MathJax_ZoomEventTrap":{position:"absolute",left:0,top:0,"z-index":302,display:"inline-block",border:0,padding:0,margin:0,"background-color":"white",opacity:0,filter:"alpha(opacity\x3d0)"}}}),g,l,p;MathJax.Hub.Register.StartupHook("MathEvents Ready",function(){p=MathJax.Extension.MathEvents.Event;g=MathJax.Extension.MathEvents.Event.False;l=MathJax.Extension.MathEvents.Hover});var m=MathJax.Extension.MathZoom={version:"2.2",settings:a.config.menuSettings,scrollSize:18,HandleEvent:function(a,b,d){return m.settings.CTRL&&!a.ctrlKey||m.settings.ALT&&!a.altKey||m.settings.CMD&&!a.metaKey||m.settings.Shift&&!a.shiftKey||!m[b]?!0:m[b](a,d)},Click:function(a,b){if("Click"===this.settings.zoom)return this.Zoom(a,b)},DblClick:function(a,b){if("Double-Click"===this.settings.zoom)return this.Zoom(a,b)},Hover:function(a,b){return"Hover"===this.settings.zoom?(this.Zoom(a,b),!0):!1},Zoom:function(b,d){this.Remove();l.ClearHoverTimer();p.ClearSelection();var e=MathJax.OutputJax[d.jaxID],m=e.getJaxFromMath(d);m.hover&&l.UnHover(m);var f=Math.floor(.85*document.body.clientWidth),n=Math.floor(.85*Math.max(document.body.clientHeight,document.documentElement.clientHeight)),v=c.Element("span",{id:"MathJax_ZoomFrame"},[["span",{id:"MathJax_ZoomOverlay",onmousedown:this.Remove}],["span",{id:"MathJax_Zoom",onclick:this.Remove,style:{visibility:"hidden",fontSize:this.settings.zscale,"max-width":f+"px","max-height":n+"px"}},[["span",{style:{display:"inline-block","white-space":"nowrap"}}]]]]),u=v.lastChild,z=u.firstChild,w=v.firstChild;d.parentNode.insertBefore(v,d);d.parentNode.insertBefore(d,v);z.addEventListener&&z.addEventListener("mousedown",this.Remove,!0);if(this.msieTrapEventBug){var x=c.Element("span",{id:"MathJax_ZoomEventTrap",onmousedown:this.Remove});v.insertBefore(x,u)}this.msieZIndexBug&&(c.addElement(document.body,"img",{src:"about:blank",id:"MathJax_ZoomTracker",width:0,height:0,style:{width:0,height:0,position:"relative"}}),v.style.position="relative",v.style.zIndex=k.styles["#MathJax_ZoomOverlay"]["z-index"]);e=e.Zoom(m,z,d,f,n);this.msiePositionBug&&(this.msieSizeBug&&(u.style.height=e.zH+"px",u.style.width=e.zW+"px"),u.offsetHeight>n&&(u.style.height=n+"px",u.style.width=e.zW+this.scrollSize+"px"),u.offsetWidth>f&&(u.style.width=f+"px",u.style.height=e.zH+this.scrollSize+"px"));this.operaPositionBug&&(u.style.width=Math.min(f,e.zW)+"px");u.offsetWidth&&u.offsetWidth=b;m.msieInlineBlockAlignBug=7>=b;m.msieTrapEventBug=!window.addEventListener;"BackCompat"===document.compatMode&&(m.scrollSize=52);d&&delete k.styles["#MathJax_Zoom"].filter},Opera:function(a){m.operaPositionBug=!0;m.operaRefreshBug=!0}});m.topImg=m.msieInlineBlockAlignBug?c.Element("img",{style:{width:0,height:0,position:"relative"},src:"about:blank"}):c.Element("span",{style:{width:0,height:0,display:"inline-block"}});if(m.operaPositionBug||m.msieTopBug)m.topImg.style.border="1px solid";MathJax.Callback.Queue(["StartupHook",MathJax.Hub.Register,"Begin Styles",{}],["Styles",b,k.styles],["Post",a.Startup.signal,"MathZoom Ready"],["loadComplete",b,"[MathJax]/extensions/MathZoom.js"])})(MathJax.Hub,MathJax.HTML,MathJax.Ajax,MathJax.OutputJax["HTML-CSS"],MathJax.OutputJax.NativeMML);(function(a,c,b,d,e){var k=MathJax.Callback.Signal("menu");MathJax.Extension.MathMenu={version:"2.2",signal:k};var g=function(a){return MathJax.Localization._.apply(MathJax.Localization,[["MathMenu",a]].concat([].slice.call(arguments,1)))},l=a.Browser.isPC,p=a.Browser.isMSIE,m=8<(document.documentMode||0),q=l?null:"5px",h=a.CombineConfig("MathMenu",{delay:150,closeImg:b.fileURL(e.imageDir+"/CloseX-31.png"),showRenderer:!0,showMathPlayer:!0,showFontMenu:!1,showContext:!1,showDiscoverable:!1,showLocale:!0,showLocaleURL:!1,windowSettings:{status:"no",toolbar:"no",locationbar:"no",menubar:"no",directories:"no",personalbar:"no",resizable:"yes",scrollbars:"yes",width:400,height:300,left:Math.round((screen.width-400)/2),top:Math.round((screen.height-300)/3)},styles:{"#MathJax_About":{position:"fixed",left:"50%",width:"auto","text-align":"center",border:"3px outset",padding:"1em 2em","background-color":"#DDDDDD",color:"black",cursor:"default","font-family":"message-box","font-size":"120%","font-style":"normal","text-indent":0,"text-transform":"none","line-height":"normal","letter-spacing":"normal","word-spacing":"normal","word-wrap":"normal","white-space":"nowrap","float":"none","z-index":201,"border-radius":"15px","-webkit-border-radius":"15px","-moz-border-radius":"15px","-khtml-border-radius":"15px","box-shadow":"0px 10px 20px #808080","-webkit-box-shadow":"0px 10px 20px #808080","-moz-box-shadow":"0px 10px 20px #808080","-khtml-box-shadow":"0px 10px 20px #808080",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX\x3d2, OffY\x3d2, Color\x3d'gray', Positive\x3d'true')"},".MathJax_Menu":{position:"absolute","background-color":"white",color:"black",width:"auto",padding:l?"2px":"5px 0px",border:"1px solid #CCCCCC",margin:0,cursor:"default",font:"menu","text-align":"left","text-indent":0,"text-transform":"none","line-height":"normal","letter-spacing":"normal","word-spacing":"normal","word-wrap":"normal","white-space":"nowrap","float":"none","z-index":201,"border-radius":q,"-webkit-border-radius":q,"-moz-border-radius":q,"-khtml-border-radius":q,"box-shadow":"0px 10px 20px #808080","-webkit-box-shadow":"0px 10px 20px #808080","-moz-box-shadow":"0px 10px 20px #808080","-khtml-box-shadow":"0px 10px 20px #808080",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX\x3d2, OffY\x3d2, Color\x3d'gray', Positive\x3d'true')"},".MathJax_MenuItem":{padding:l?"2px 2em":"1px 2em",background:"transparent"},".MathJax_MenuArrow":{position:"absolute",right:".5em",color:"#666666","font-family":p?"'Arial unicode MS'":null},".MathJax_MenuActive .MathJax_MenuArrow":{color:"white"},".MathJax_MenuCheck":{position:"absolute",left:".7em","font-family":p?"'Arial unicode MS'":null},".MathJax_MenuRadioCheck":{position:"absolute",left:l?"1em":".7em"},".MathJax_MenuLabel":{padding:l?"2px 2em 4px 1.33em":"1px 2em 3px 1.33em","font-style":"italic"},".MathJax_MenuRule":{"border-top":l?"1px solid #CCCCCC":"1px solid #DDDDDD",margin:l?"4px 1px 0px":"4px 3px"},".MathJax_MenuDisabled":{color:"GrayText"},".MathJax_MenuActive":{"background-color":l?"Highlight":"#606872",color:l?"HighlightText":"white"},".MathJax_Menu_Close":{position:"absolute",width:"31px",height:"31px",top:"-15px",left:"-15px"}}}),r,t;a.Register.StartupHook("MathEvents Ready",function(){r=MathJax.Extension.MathEvents.Event.False;t=MathJax.Extension.MathEvents.Hover});var f=MathJax.Menu=MathJax.Object.Subclass({version:"2.2",items:[],posted:!1,title:null,margin:5,Init:function(a){this.items=[].slice.call(arguments,0)},With:function(b){b&&a.Insert(this,b);return this},Post:function(a,b){a||(a=window.event);var d=document.getElementById("MathJax_MenuFrame");d||(d=f.Background(this),delete n.lastItem,delete n.lastMenu,delete f.skipUp,k.Post(["post",f.jax]));var e=c.addElement(d,"div",{onmouseup:f.Mouseup,ondblclick:r,ondragstart:r,onselectstart:r,oncontextmenu:r,menuItem:this,className:"MathJax_Menu"});MathJax.Localization.setCSS(e);for(var g=0,m=this.items.length;gdocument.body.offsetWidth-this.margin&&!f.isMobile&&(p="right",g=Math.max(this.margin,g-q-e.offsetWidth+6));l||(e.style["borderRadiusTop"+p]=0,e.style["WebkitBorderRadiusTop"+p]=0,e.style["MozBorderRadiusTop"+p]=0,e.style["KhtmlBorderRadiusTop"+p]=0)}else g+e.offsetWidth>document.body.offsetWidth-this.margin&&(g=document.body.offsetWidth-e.offsetWidth-this.margin),f.isMobile&&(g=Math.max(5,g-Math.floor(e.offsetWidth/2)),m-=20),f.skipUp=a.isContextMenu;e.style.left=g+"px";e.style.top=m+"px";document.selection&&document.selection.empty&&document.selection.empty();return r(a)},Remove:function(a,b){k.Post(["unpost",f.jax]);var d=document.getElementById("MathJax_MenuFrame");d&&(d.parentNode.removeChild(d),this.msieFixedPositionBug&&detachEvent("onresize",f.Resize));f.jax.hover&&(delete f.jax.hover.nofade,t.UnHover(f.jax));return r(a)},Find:function(a){return this.FindN(1,a,[].slice.call(arguments,1))},FindId:function(a){return this.FindN(0,a,[].slice.call(arguments,1))},FindN:function(a,b,d){for(var e=0,c=this.items.length;e/g,"\x26gt;");var e=g("EqSource","MathJax Equation Source");if(f.isMobile)d.document.open(),d.document.write("\x3chtml\x3e\x3chead\x3e\x3cmeta name\x3d'viewport' content\x3d'width\x3ddevice-width, initial-scale\x3d1.0' /\x3e\x3ctitle\x3e"+e+"\x3c/title\x3e\x3c/head\x3e\x3cbody style\x3d'font-size:85%'\x3e"),d.document.write("\x3cpre\x3e"+a+"\x3c/pre\x3e"),d.document.write("\x3chr\x3e\x3cinput type\x3d'button' value\x3d'"+g("Close","Close")+"' onclick\x3d'window.close()' /\x3e"),d.document.write("\x3c/body\x3e\x3c/html\x3e"),d.document.close();else{d.document.open();d.document.write("\x3chtml\x3e\x3chead\x3e\x3ctitle\x3e"+e+"\x3c/title\x3e\x3c/head\x3e\x3cbody style\x3d'font-size:85%'\x3e");d.document.write("\x3ctable\x3e\x3ctr\x3e\x3ctd\x3e\x3cpre\x3e"+a+"\x3c/pre\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e");d.document.write("\x3c/body\x3e\x3c/html\x3e");d.document.close();var c=d.document.body.firstChild;setTimeout(function(){var a=d.outerHeight-d.innerHeight||30,e=d.outerWidth-d.innerWidth||30,e=Math.max(100,Math.min(Math.floor(.5*screen.width),c.offsetWidth+e+25)),a=Math.max(40,Math.min(Math.floor(.5*screen.height),c.offsetHeight+a+25));d.resizeTo(e,a);b&&null!=b.screenX&&(e=Math.max(0,Math.min(b.screenX-Math.floor(e/2),screen.width-e-20)),a=Math.max(0,Math.min(b.screenY-Math.floor(a/2),screen.height-a-20)),d.moveTo(e,a))},50)}};f.Scale=function(){var b=e["HTML-CSS"],d=e.NativeMML,c=e.SVG,k=(b||d||c||{config:{scale:100}}).config.scale,h=prompt(g("ScaleMath","Scale all mathematics (compared to surrounding text) by"),k+"%");h&&(h.match(/^\s*\d+(\.\d*)?\s*%?\s*$/)?(h=parseFloat(h))?h!==k&&(b&&(b.config.scale=h),d&&(d.config.scale=h),c&&(c.config.scale=h),f.cookie.scale=h,f.saveCookie(),a.Reprocess()):alert(g("NonZeroScale","The scale should not be zero")):alert(g("PercentScale","The scale should be a percentage (e.g., 120%%)")))};f.Zoom=function(){MathJax.Extension.MathZoom||b.Require("[MathJax]/extensions/MathZoom.js")};f.Renderer=function(){var b=a.outputJax["jax/mml"];if(b[0]!==h.settings.renderer){var d=a.Browser,e,k=f.Renderer.Messages,l;switch(h.settings.renderer){case "NativeMML":h.settings.warnedMML||(d.isChrome&&"24."!==d.version.substr(0,3)?e=k.MML.WebKit:d.isSafari&&!d.versionAtLeast("5.0")?e=k.MML.WebKit:d.isMSIE?d.hasMathPlayer||(e=k.MML.MSIE):e=k.MML[d],l="warnedMML");break;case "SVG":h.settings.warnedSVG||!d.isMSIE||m||(e=k.SVG.MSIE)}if(e){e=g(e[0],e[1]);e=e+"\n\n"+g("SwitchAnyway","Switch the renderer anyway?\n\n(Press OK to switch, CANCEL to continue with the current renderer)");f.cookie.renderer=b[0].id;f.saveCookie();if(!confirm(e)){f.cookie.renderer=h.settings.renderer=c.Cookie.Get("menu").renderer;f.saveCookie();return}l&&(f.cookie.warned=h.settings.warned=!0);f.cookie.renderer=h.settings.renderer;f.saveCookie()}a.Queue(["setRenderer",a,h.settings.renderer,"jax/mml"],["Rerender",a])}};f.Renderer.Messages={MML:{WebKit:["WebkitNativeMMLWarning","Your browser doesn't seem to support MathML natively, so switching to MathML output may cause the mathematics on the page to become unreadable."],MSIE:["MSIENativeMMLWarning","Internet Explorer requires the MathPlayer plugin in order to process MathML output."],Opera:["OperaNativeMMLWarning","Opera's support for MathML is limited, so switching to MathML output may cause some expressions to render poorly."],Safari:["SafariNativeMMLWarning","Your browser's native MathML does not implement all the features used by MathJax, so some expressions may not render properly."],Firefox:["FirefoxNativeMMLWarning","Your browser's native MathML does not implement all the features used by MathJax, so some expressions may not render properly."]},SVG:{MSIE:["MSIESVGWarning","SVG is not implemented in Internet Explorer prior to IE9 or when it is emulating IE8 or below. Switching to SVG output will cause the mathematics to not display properly."]}};f.Font=function(){e["HTML-CSS"]&&document.location.reload()};f.Locale=function(){MathJax.Localization.setLocale(h.settings.locale);MathJax.Hub.Queue(["Reprocess",MathJax.Hub])};f.LoadLocale=function(){var a=prompt(g("LoadURL","Load translation data from this URL:"));a&&(a.match(/\.js$/)||alert(g("BadURL","The URL should be for a javascript file that defines MathJax translation data. Javascript file names should end with '.js'")),b.Require(a,function(d){d!=b.STATUS.OK&&alert(g("BadData","Failed to load translation data from %1",a))}))};f.MPEvents=function(a){var b=h.settings.discoverable,d=f.MPEvents.Messages;m?!b&&"Menu Events"===a.name[1]&&h.settings.mpContext&&alert(g.apply(g,d.IE9warning)):h.settings.mpMouse&&!confirm(g.apply(g,d.IE8warning))?(delete f.cookie.mpContext,delete h.settings.mpContext,delete f.cookie.mpMouse,delete h.settings.mpMouse,f.saveCookie()):(h.settings.mpContext=h.settings.mpMouse,f.cookie.mpContext=f.cookie.mpMouse=h.settings.mpMouse,f.saveCookie(),MathJax.Hub.Queue(["Rerender",MathJax.Hub]))};f.MPEvents.Messages={IE8warning:["IE8warning","This will disable the MathJax menu and zoom features, but you can Alt-Click on an expression to obtain the MathJax menu instead.\n\nReally change the MathPlayer settings?"],IE9warning:["IE9warning","The MathJax contextual menu will be disabled, but you can Alt-Click on an expression to obtain the MathJax menu instead."]};a.Browser.Select({MSIE:function(a){var b="BackCompat"===document.compatMode;a=a.versionAtLeast("8.0")&&7document.documentMode,msieFixedPositionBug:b||!a,msieAboutBug:b});m&&(delete h.styles["#MathJax_About"].filter,delete h.styles[".MathJax_Menu"].filter)},Firefox:function(a){f.skipMouseover=a.isMobile&&a.versionAtLeast("6.0");f.skipMousedown=a.isMobile}});f.isMobile=a.Browser.isMobile;f.noContextMenu=a.Browser.noContextMenu;f.CreateLocaleMenu=function(){if(f.menu){var a=f.menu.Find("Language").menu,b=a.items,d=[],e=MathJax.Localization.strings,c;for(c in e)e.hasOwnProperty(c)&&d.push(c);d=d.sort();a.items=[];c=0;for(var k=d.length;cb.charCodeAt(0)?a.VARIANT.ITALIC:a.VARIANT.NORMAL):""},setTeXclass:function(b){this.getPrevClass(b);b=this.data.join("");1e&&(e=(e-55296<<10)+(b.charCodeAt(1)-56320)+65536);for(var c=0,g=this.RANGES.length;c=a)return String.fromCharCode(a);a-=65536;return String.fromCharCode((a>>10)+55296)+String.fromCharCode((a&1023)+56320)}});a.xml=a.mbase.Subclass({type:"xml",Init:function(){this.div=document.createElement("div");return this.SUPER(arguments).Init.apply(this,arguments)},Append:function(){for(var a=0,b=arguments.length;a=e||57344<=e)32>e||126]* xmlns:/)&&(a=a.replace(/^<([a-z]+)(:math)/i,'\x3c$1$2 xmlns:$1\x3d"http://www.w3.org/1998/Math/MathML"'));var b=a.match(/^(