/*
 *  ../SourceForge/trunk/mathjax/extensions/TeX/AMSmath.js
 *  
 *  Copyright (c) 2010 Design Science, Inc.
 *
 *  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.Unpack([
  ['MathJax.','Hub.','Register.StartupHook("TeX Jax Ready",','function(){var ','a=',0,'ElementJax.mml;var e=',0,'InputJax.TeX;var c=','e.Definitions',';var d=e.Stack.Item;var b=','function(','f){','return ','f.join("em ")+"em"};',0,1,'Insert(c,{macros:{mathring:["Accent","2DA"],nobreakspace:"Tilde",negmedspace',':["Spacer",a.LENGTH.','NEGATIVEMEDIUMMATHSPACE],negthickspace',18,'NEGATIVETHICKMATHSPACE],intI',':["Macro","\\\\','mathchoice{\\\\!}{}{}{}\\\\!\\\\!\\\\int"],iiiint',':["MultiIntegral","\\\\int\\\\','intI\\\\intI\\\\intI"],idotsint',24,'cdots\\\\int"],dddot',':["Macro","\\\\mathop','{#1}\\\\limits^{\\\\textstyle \\\\mathord{.}\\\\mathord{.}\\\\mathord','{.}}",1],ddddot',28,29,'{.}\\\\mathord{.}}",1],sideset',28,'{\\\\mathop{\\\\rlap{\\\\phantom{#3}}}\\\\nolimits#1\\\\!\\\\mathop{#3}\\\\nolimits#2}",3],boxed',22,'fbox{$\\\\','displaystyle','{#1}$}",1],tag:"HandleTag",notag:"HandleNoTag",substack',22,'begin{subarray}{c}#1\\\\end{subarray}",1],injlim',28,'{\\\\rm inj\\\\,lim}"],projlim',28,'{\\\\rm proj\\\\,lim}"],varliminf',28,'{\\\\underline','{\\\\rm lim}}"],','varlimsup',28,'{\\\\overline',48,'varinjlim',28,'{\\\\underrightarrow','{\\\\rm lim\\\\Rule{-1pt}{0pt}{1pt}}\\\\Rule{0pt}{0pt}{.45em}}"],','varprojlim',28,'{\\\\underleftarrow',56,'DeclareMathOperator:"','HandleDeclareOp','",operatorname:"','HandleOperatorName','",genfrac:"Genfrac",frac:["Genfrac","","","",""],tfrac',':["Genfrac","","","",','1],dfrac',66,'0],binom',':["Genfrac","(",")","0em','",""],tbinom',70,'",1],dbinom',70,'",0],cfrac:"CFrac",shoveleft',':["HandleShove",a.ALIGN.','LEFT],shoveright',76,'RIGHT],xrightarrow:["xArrow",8594,5,6],xleftarrow:["xArrow",8592,7,3]},environment:{align:["','AMSarray",null,','true,true',',"rlrlrlrlrlrl",b([5/18,2,5/18,2,5/18,2,5/18,2,5/18,2,5/18','])],"align','*":["',80,'false,true',82,'])],','multline',':["','Multline",null,','true],"',89,84,91,'false],split:["',80,'false,false',',"rl",b([5/18])],gather:["',80,81,',"c"],"gather',84,80,86,',"c"],alignat:["','AlignAt",null,',81,'],"alignat',84,107,86,'],alignedat:["',107,98,'],aligned',':["Array",null,null,null',82,']),".5em","D"],gathered',117,',"c",null,".5em","D"],subarray',117,',null,b([0,0,0,0]),"0.1em","S",1],smallmatrix',117,',"c",b([1/3]),".2em","S",1]},delimiter:{"\\\\lvert":["2223",{','texClass:a.TEXCLASS.','OPEN}],"\\\\','rvert":["2223",{',126,'CLOSE}],"\\\\lVert":["2225",{',126,127,'rVert":["2225",{',126,'CLOSE}]}});e.Parse.Augment({HandleTag:',11,'g){var f','=this.trimSpaces(this.GetArgument(','g));if(','f==="*"){f','=this.GetArgument','(g)}else{f="("+f+")"}if(','this.stack.global.','notag','){e.Error(g+" ','not allowed in "+',143,'notag+" environment")}if(',143,'tag','){e.Error("','Multiple "+g)}',143,'tag=a.mtd','.apply(a,this.','InternalMath(f))},HandleNoTag:',11,'f){if(',143,'tag){delete ',143,'tag}},',62,':',11,137,'="";var h',138,139,'h=="*"){f="\\\\limits";h',138,'g))}if(h.charAt(0)=="\\\\"){h=h.substr(1)}var i',141,'(g);i=i','.replace(/\\*/g,"\\\\text{*}").replace(/-/g,"\\\\text{-}");',9,'.macros[h]=["Macro","\\\\mathop{\\\\rm "+i+"}"+f]},',64,':',11,137,'="\\\\nolimits";var h',138,139,'h=="*"){f="\\\\limits";h',138,'g))}h=h',175,'this.string="\\\\mathop{\\\\rm "+h+"}"+f','+" "+this.string.slice(this.i);this.i=0},','HandleShove:',11,'g,f){var h=this.stack.Top();if(h.type!=="',89,'"||h.data','.length',145,'must come at the beginning of the line")}h.data.shove=f},CFrac:',11,'i){var f=this.trimSpaces(','this.GetBrackets(','i)),h',141,'(i),j',141,'(i);var g=a.mfrac(','e.Parse("\\\\strut\\\\textstyle{"+','h+"}",','this.stack.env).mml','(),',207,'j+"}",',209,'());f=({l:a.ALIGN.LEFT,r:a.ALIGN.RIGHT,"":""})[f];if(f==null',151,'Illegal alignment specified in "+i)}if(f){g.numalign=g.denomalign=f}','this.Push(','g)},Genfrac:',11,'g,i,n,k,f){if(i==null){i','=this.GetDelimiterArg(g)}else{','i=','this.convertDelimiter(','i)}if(n==null){n',221,'n=',223,'n)}if(k==null){k',141,'(g)}if(f==null){f',138,'g))}var j','=this.ParseArg(g);var ','m',233,'h=a.mfrac(j,m);if(k!==""){h.linethickness=k}if(i||n){h=a.mfenced(h).With({open:i,close:n})}if(f!==""){var l=(["D","T","S","SS"])[f];if(l==null',151,'Bad math style for "+g)}h=a.mstyle(h);if(l==="D"){h.',38,'=true',';h.scriptlevel=','0}else{h.',38,'=false',241,'f-1}}',217,'h)},Multline:',11,'g,f){',217,'g);',13,'d.',89,'().','With({arraydef:{displaystyle:true,rowspacing:".5em",','width:e.config.MultLineWidth,columnwidth:"100%",','side:e.config.TagSide,minlabelspacing:e.config.TagIndent','}})},AMSarray:',11,'h,g,f,j,i){',217,'h);j=j.replace(/[^clr]/g,"").split("").join(" ");j=j.replace(/l/g,"left").replace(/r/g,"right").replace(/c/g,"center");',13,'d.AMSarray','(h.name,g,f,this.stack).',257,'columnalign',':j,columnspacing:(i||"1em"),rowspacing:"3pt",',259,'}})},AlignAt:',11,'h,g,f){var i',141,'("\\\\begin{"+h.name+"}");if(i.match(/[^0-9]/)){e.Error("Argument to \\\\begin{"+h.name+"} must me a positive integer")}align="";spacing=[];while(i>0){align+="rl";spacing.push("0em 0em");i--}spacing=spacing.join(" ");if(f){',13,'this.AMSarray(h,g,f,align,spacing)}',13,'this.Array(h,null,null,align,spacing,".5em","D")},MultiIntegral:',11,'f,j){var h=this.GetNext();if(h==="\\\\"){var g=this.i;h',141,'(f);this.i=g;if(h==="\\\\limits"){if(f==="\\\\idotsint"){j="\\\\!\\\\!\\\\mathop{\\\\,\\\\,"+j+"}"}else{j="\\\\!\\\\!\\\\!\\\\mathop{\\\\,\\\\,\\\\,"+j+"}"}}}this.string=j',190,'xArrow:',11,'h,k,j,f){var i={width:"+"+(j+f)+"mu",lspace:j+"mu"};var m=',201,'h),n=this.ParseArg(h);var o=a.mo(a.chars(String.fromCharCode(k))).With({stretchy:true,',126,'REL});var g=a.munderover(o);g.SetData(g.over,a.mpadded(n',').With(i).With({voffset',':".15em"}));if(m){m=e.Parse(m,',209,'();g.SetData(g.under,a.mpadded(m',293,':"-.24em"}))}',217,'g)},GetDelimiterArg:',11,'f){var g',138,'f));if(g==""){',13,'null}if(!c.delimiter[g]){e.Error("Missing or unrecognized delimiter for "+f)}',13,223,'g)}});d.',89,'=d.array.Subclass({type:"',89,'",EndEntry:',3,'f=a.mtd',155,'data);if(','this.data.shove','){f.',269,'=',318,'}this.row.push(f);this.data=[]},EndRow:function(){if(this.row',196,'!=1',151,89,' rows must have exactly one column")}','this.table','.push(this.row);','this.row=[]},EndTable:function(){this.SUPER(arguments).EndTable.call(this);','if(',329,196,'){var g=',329,196,'-1,h;if(!',329,'[0','][0].columnalign','){',329,'[0',341,'=a.ALIGN.','LEFT}if(!',329,'[g',341,'){',329,'[g',341,346,'RIGHT}var f=a.mtr;if(','this.global.tag','){',329,'[0]=[',357,'].concat(',329,'[0]);delete ',357,';f=','a.mlabeledtr','}',329,'[0]=f',155,'table[0]);for(h=1,g=',329,196,';h<g;h++){',329,'[h]=a.mtr',155,'table[h])}}}});',266,311,'AMSarray",Init:',11,'i,h,g,f){','this.SUPER(arguments).','Init.apply(this);this.numbered=h;','this.save_notag','=f','.global.notag',';f',389,'=(g?null:i)},EndRow:',3,'f=a.mtr;if(',357,'){this.row=[',357,'].concat(this.row);f=',367,';delete ',357,'}',329,'.push(f',155,'row));',331,'this',389,'=',387,'}});d.start.Augment({oldCheckItem:d.start.prototype.checkItem,checkItem:',11,'g){if(g.type==="stop"){var f=this.mmlData();if(',357,'){var i=[',357,',a.mtd(f)];delete ',357,';var h={',259,',',269,':f.displayAlign};','if(f.displayAlign===a.INDENTALIGN.','LEFT','){h.width="100%";if(f.displayIndent&&!String(f.displayIndent).match(/^0+(\\.0*)?($|[a-z%])/)){h.columnwidth','=','f.displayIndent','+" fit";','h.columnspacing="0";i','=[i[0],a.mtd(),i[1]]}}else{',425,'RIGHT',427,'="fit "+',429,';',431,'[2]=a.mtd()}}}f=a.mtable(',367,'.apply(a,i)).With(h)}',13,'d.mml(f)}',13,385,'checkItem.call(this,g)}});',0,1,'Startup.signal.Post("TeX AMSmath Ready")});',0,'Ajax.loadComplete("[MathJax]/extensions/TeX/AMSmath.js");']
]);

