window.addEventListener('load', function () {if(document.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','math').length > 0) 
var tree = document.documentElement.cloneNode('true'),
formulae = tree.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','math');
for (var i = 0, formula; formula = formulae[i]; i++)
	{removeComments(formula);}
var elements = tree.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','mtable');
for (var i = 0, element; element = elements[i]; i++)
	{dressMatrix(element);}
var elements = tree.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','mfenced');
for (var i = 0, element; element = elements[i]; i++)
	{addSeparators(element);
	setFenceSize(element);}
var elements = tree.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','mi');
for (var i = 0, element; element = elements[i]; i++)
	{var token = element.firstChild.nodeValue.replace(/\s/g,'');
	if(token.length > 1)
		{element.setAttribute('normal','true')}
	}//for (var i = 0,..)
var elements = tree.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','mo');
for (var i = 0, element; element = elements[i]; i++)
	{setOperatorSize(element);}
var elements = tree.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','msub');
for (var i = 0, element; element = elements[i]; i++)
	{if(locateMatrix(element.firstChild))
		{prepareMatrix(element.firstChild);}
	}//for(var i=0;...))
var elements = tree.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','msup');
for (var i = 0, element; element = elements[i]; i++)
	{if(locateMatrix(element.firstChild))
		{prepareMatrix(element.firstChild);}
	}//for(var i=0;...))
var elements = tree.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','msubsup');
for (var i = 0, element; element = elements[i]; i++)
	{stackIndices(element);}
var elements = tree.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','mover');
for (var i = 0, element; element = elements[i]; i++)
	{renderOverscripts(element);}
var elements = tree.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','munder');
for (var i = 0, element; element = elements[i]; i++)
	{sniffUnderBraces(element.childNodes[1])}
var elements = tree.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','munderover');
for (var i = elements.length; i != 0; i--)
	{renderUnderscripts(elements[i-1]);}
var elements = tree.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','mmultiscripts');
for (var i = elements.length; i != 0; i--)
	{pickUpIndices(elements[i-1], document.createDocumentFragment(), document.createDocumentFragment(), document.createDocumentFragment(), document.createDocumentFragment());}
var elements = tree.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','mroot');
for (var i = elements.length; i != 0; i--)
	{renderRadical(elements[i-1]);}
var elements = tree.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','msqrt');
for (var i = elements.length; i != 0; i--)
	{renderRadical(elements[i-1]);}
function removeComments(element)
	{for (var i = element.childNodes.length; i != 0; i--)
		{var child = element.childNodes[i-1];
		if(child.nodeName.search(/(mi|mn|mo|ms|mtext|cn|ci)$/) == -1)
			{removeComments(child);}
		if(child.nodeName == 'mrow' && child.childNodes.length == 1)
			{element.replaceChild(child.firstChild,child);}
		if(child.nodeType != 1)
			{element.removeChild(child);}
		}//for(var = i ...)
	}//function removeComments(element)
function stackIndices(element)
	{if(locateMatrix(element.firstChild))
			{prepareMatrix(element.firstChild);}
		else
			{var indices = document.createElement('indices'),
			mrow = document.createElement('mrow');
			mrow.appendChild(element.childNodes[2].cloneNode('true'));
			indices.appendChild(mrow);
			var mrow = document.createElement('mrow');
			mrow.appendChild(element.childNodes[1].cloneNode('true'));
			indices.appendChild(mrow);
			element.replaceChild(indices, element.childNodes[1]);
			element.removeChild(element.childNodes[2]);}
	}//function stackIndices(element)
function renderOverscripts(element)
	{sniffAccents(element.childNodes[1]);
	element.insertBefore(element.childNodes[1].cloneNode('true'),element.firstChild);
	element.removeChild(element.childNodes[2]);
	}//function renderOverscripts(element)
function sniffAccents(element)
	{if(element.nodeName == 'mo' && element.firstChild.nodeValue.replace(/[\s]*(\u23b4|\u23dc|\u23de|\u00af|\u02c6|\u02c7|\u02dc|\u02d8|\u02c9|\u02d9|\u00a8|\u007e|\^|~)[\s]*/g,'') == '')
		{element.setAttribute('content',element.firstChild.nodeValue.replace(/[\s]+/g,'').replace(/\^/g,'\u02c6').replace(/\u23dc|\u23de/g,'\u23b4').replace(/~/g,'\u02dc').replace(/\u02d8/g,'\u02c7').replace(/\u02d8/g,'\u02c7').replace(/\u02d9\u02d9/g,'\u00a8').replace(/\u00af/g,'\u02c9'));
		element.firstChild.nodeValue = '';}
	}//function sniffAccents(element)
function sniffUnderBraces(element)
	{if(element.nodeName == 'mo' && element.firstChild.nodeValue.replace(/[\s]*(_|\u23b5|\u23dd|\u23df)[\s]*/g,'') == '')
		{element.setAttribute('content',element.firstChild.nodeValue.replace(/[\s]+/g,'').replace(/\u23dd|\u23df/g,'\u23b5'));
		element.firstChild.nodeValue = '';}
	}//function sniffUnderBraces(element)
function renderRadical(element)
	{var radical = document.createElement('radical'),
	radix = document.createElement('radix'),
	radicand = document.createElement('radicand');
	if(element.nodeName == 'mroot')
		{radix.appendChild(element.childNodes[1].cloneNode('true'));
		radicand.appendChild(element.childNodes[0].cloneNode('true'));}
	else
		{radicand.appendChild(element.cloneNode('true'));}
	radical.appendChild(radix);
	radical.appendChild(radicand);
	element.parentNode.replaceChild(radical,element);
	}//function renderRadical(element)
function renderUnderscripts(element)
	{var over = document.createElementNS('http://www.w3.org/1998/Math/MathML','mover');
	var under = document.createElementNS('http://www.w3.org/1998/Math/MathML','munder');
	over.appendChild(element.childNodes[2].cloneNode('true'));
	over.appendChild(element.childNodes[0].cloneNode('true'));
	under.appendChild(over);
	under.appendChild(element.childNodes[1].cloneNode('true'));
	sniffAccents(element.childNodes[2]);
	sniffUnderBraces(element.childNodes[1]);
	element.parentNode.replaceChild(under,element);
	}//function renderUnderscripts(element)
function pickUpIndices(element, sup, sub, sur, inf)
	{var base = element.childNodes[0];
		while(base.nextSibling)
			{var mscript = base.nextSibling;
			if(mscript.nodeName == 'mprescripts')
				{while(mscript.nextSibling)
					{var prescript = mscript.nextSibling;
					if(prescript.nodeName != 'none')
						{inf.appendChild(prescript.cloneNode('true'))} 
					if(prescript.nextSibling.nodeName != 'none')
						{sur.appendChild(prescript.nextSibling.cloneNode('true'))}
					element.removeChild(prescript.nextSibling);
					element.removeChild(prescript);			
					}//while(mscript.nextSibling)
					element.removeChild(mscript);			
				}//if(mscript.nodeName == 'mprescripts')
			else
				{if(mscript.nodeName != 'none')
					{sub.appendChild(mscript.cloneNode('true'))} 
				if(mscript.nextSibling.nodeName != 'none')
					{sup.appendChild(mscript.nextSibling.cloneNode('true'))}
				element.removeChild(mscript.nextSibling);
				element.removeChild(mscript);}
			}//while(base.nextSibling)
		if(locateMatrix(base))
			{arrangeMatrix(base, sup, sub, sur, inf);}
		else
			{arrangeIndices(base, sup, sub, sur, inf);}
	}//function pickUpIndices(element)
function arrangeIndices(base, sup, sub, sur, inf)
	{var shell = document.createElement('mrow');
	var dressedBase = base.cloneNode('true');//dressBase(base, sur.childNodes.length + inf.childNodes.length, sup.childNodes.length + sub.childNodes.length);
	if(sur.childNodes.length != 0)
		{if(inf.childNodes.length != 0)
			{var prescripts = document.createElement('prescripts'),
			mrow = document.createElement('mrow');
			mrow.appendChild(sur);
			prescripts.appendChild(mrow);
			var mrow = document.createElement('mrow');
			mrow.appendChild(inf);
			prescripts.appendChild(mrow);
			shell.appendChild(prescripts);}
		else
			{var msup = document.createElement('sup');
			msup.appendChild(sur);
			shell.appendChild(msup);}
			}//if(inf.childNodes.length != 0)
	else//if(sur.childNodes.length != 0)
		{var msub = document.createElement('sub');
		msub.appendChild(inf);
		shell.appendChild(msub);}
	shell.appendChild(dressedBase);
	if(sup.childNodes.length != 0)
		{if(sub.childNodes.length != 0)
			{var indices = document.createElement('indices'),
			mrow = document.createElement('mrow');
			mrow.appendChild(sup);
			indices.appendChild(mrow);
			var mrow = document.createElement('mrow');
			mrow.appendChild(sub);
			indices.appendChild(mrow);
			shell.appendChild(indices);}
		else
			{var msup = document.createElement('sup');
			msup.appendChild(sup);
			shell.appendChild(msup);}
			}//if(sub.childNodes.length != 0)
	else//if(sup.childNodes.length != 0)
		{var msub = document.createElement('sub');
		msub.appendChild(sub);
		shell.appendChild(msub);}
	base.parentNode.parentNode.replaceChild(shell, base.parentNode);
	}//function arrangeIndices()
function dressMatrix(element)
	{if(element.parentNode.nodeName=='mfenced' && !element.previousSibling && !element.nextSibling)
			{if(element.parentNode.hasAttribute('open'))
				{element.setAttribute('left',element.parentNode.getAttribute('open'));}
			else
				{element.setAttribute('left','(');}
			if(element.parentNode.hasAttribute('close'))
				{element.setAttribute('right',element.parentNode.getAttribute('close'));}
			else
				{element.setAttribute('right',')');}
			element.parentNode.parentNode.replaceChild(element.cloneNode('true'),element.parentNode);}
		else
			{if(element.previousSibling && element.previousSibling.nodeName == 'mo' && element.previousSibling.firstChild.nodeValue.match(/^[\s]*[(\{\[\|][\s]*$/))
				{element.setAttribute('left',element.previousSibling.firstChild.nodeValue.replace(/[\s]+/g,''));
				element.parentNode.removeChild(element.previousSibling);}
			if(element.nextSibling && element.nextSibling.nodeName == 'mo' && element.nextSibling.firstChild.nodeValue.match(/^[\s]*[)\}\]\|][\s]*$/))
				{element.setAttribute('right',element.nextSibling.firstChild.nodeValue.replace(/[\s]+/g,''));
				element.parentNode.removeChild(element.nextSibling);}
			}
	}//function dressMatrix(element)
function locateMatrix(base)
	{if(base.nodeType != 1 || base.nodeName == 'mfenced')
		{return false;}
	if(base.nodeName.search(/matrix|vector|mtable|piecewise/) != -1)
		{return true;}
	if(base.nodeType == 1 && base.childNodes.length == 1)
		{return locateMatrix(base.firstChild);}
	else
		{return false;}
	}//function locateMatrix(base)
function prepareMatrix(base)
	{var sub = document.createDocumentFragment(),
	sup = document.createDocumentFragment();
	if(base.parentNode.nodeName.search(/msub/) != -1)
		{sub.appendChild(base.nextSibling.cloneNode('true'));}
	else
		{sup.appendChild(base.nextSibling.cloneNode('true'));}
	if(base.parentNode.nodeName == 'msubsup')
		{sup.appendChild(base.nextSibling.nextSibling.cloneNode('true'));
		base.parentNode.removeChild(base.nextSibling);}
	base.parentNode.removeChild(base.nextSibling);
	arrangeMatrix(base, sup, sub, document.createDocumentFragment(), document.createDocumentFragment())}
function arrangeMatrix(base, sup, sub, sur, inf)
	{var table = document.createElementNS('http://www.w3.org/1999/xhtml','table');
	table.setAttribute('class','matrixshell');
	var tr = document.createElementNS('http://www.w3.org/1999/xhtml','tr');
	if(sur.childNodes.length !=0)
		{var cellSur = document.createElementNS('http://www.w3.org/1999/xhtml','td');
		cellSur.appendChild(sur);
		cellSur.setAttribute('class','cellSur');
		if(sup.childNodes.length != 0 && sub.childNodes.length != 0 && inf.childNodes.length == 0)
			{cellSur.setAttribute('rowspan','2');}
		tr.appendChild(cellSur);
		}//if(sur.childNodes.length !=0)
	else//if(sur.childNodes.length !=0)
		{if(inf.childNodes.length !=0)
			{var cellInf = document.createElementNS('http://www.w3.org/1999/xhtml','td');
			cellInf.setAttribute('class','cellInf');
			cellInf.appendChild(inf);
			if(sup.childNodes.length != 0 && sub.childNodes.length != 0)
				{cellInf.setAttribute('rowspan','2');}
			tr.appendChild(cellInf);
			}//if(inf.childNodes.length !=0)
		}//else if(sur.childNodes.length !=0)
	var cellBase = document.createElementNS('http://www.w3.org/1999/xhtml','td');
	cellBase.appendChild(base.cloneNode('true'));
	if(inf.childNodes.length != 0 || (sup.childNodes.length != 0 && sub.childNodes.length != 0))
		{cellBase.setAttribute('rowspan','2');}
	tr.appendChild(cellBase);
	if(sup.childNodes.length !=0)
		{var cellSup = document.createElementNS('http://www.w3.org/1999/xhtml','td');
		cellSup.setAttribute('class','cellSup');
		cellSup.appendChild(sup);
		if(inf.childNodes.length != 0 && sub.childNodes.length == 0)
			{cellSup.setAttribute('rowspan','2');}
		tr.appendChild(cellSup);
		}//if(sup.childNodes.length !=0)
	else//if(sup.childNodes.length !=0)
		{if(sub.childNodes.length !=0)
			{var cellSub = document.createElementNS('http://www.w3.org/1999/xhtml','td');
			cellSub.setAttribute('class','cellSub');
			cellSub.appendChild(sub);
			if(inf.childNodes.length != 0)
				{cellSub.setAttribute('rowspan','2');}
			tr.appendChild(cellSub);
			}//if(sub.childNodes.length !=0)
		}//else if(sup.childNodes.length !=0)
	table.appendChild(tr);
	if(inf.childNodes.length != 0 || sub.childNodes.length != 0)
		{var subtr = document.createElementNS('http://www.w3.org/1999/xhtml','tr');
		if(inf.childNodes.length !=0)
			{var cellInf = document.createElementNS('http://www.w3.org/1999/xhtml','td');
			cellInf.setAttribute('class','cellInf');
			cellInf.appendChild(inf);
			subtr.appendChild(cellInf);}
		if(sub.childNodes.length !=0)
			{var cellSub = document.createElementNS('http://www.w3.org/1999/xhtml','td');
			cellSub.setAttribute('class','cellSub');
			cellSub.appendChild(sub);
			subtr.appendChild(cellSub);}
		table.appendChild(subtr);
		}//if(sur.childNodes.length + ...)
	base.parentNode.replaceChild(table,base);
	}//function arrangeMatrix()
function addSeparators(element)
	{var firstone="yes", charnum = 0;
	if (element.childNodes.length > 1)
		{var children = element.childNodes;
		for (var k = 0, child; child = children[k]; k++)
			{if (child.nodeType==1) 
				{if (firstone=="no") 
					{var separator=document.createElementNS('http://www.w3.org/1998/Math/MathML','mtext');
					if (element.hasAttribute('separators'))
						{var attribute=element.getAttribute('separators'), character;
						if(attribute.length < charnum)
							{character=document.createTextNode(attribute.substring(attribute.length-1));}
						else
							{character=document.createTextNode(attribute.charAt(charnum-1));}
						}//if (element.hasAttribute('separators'))
					else
						{character=document.createTextNode(',');}
						separator.appendChild(character);
						element.insertBefore(separator,child);
						k = k + 1;}
				else {firstone="no"}
				charnum = charnum + 1;
				}//if (child.nodeType==1) 
			}//for (var k = 0, child; child = children[k]; k++)
		 }//if (element.childNodes.length > 1)
	}//function addSeparators(element)
function setFenceSize(element)
	{if(element.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','mfrac').length + element.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','munder').length + element.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','mover').length + element.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','munderover').length  + element.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','mtable').length  + element.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','matrix').length + element.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','vector').length + element.getElementsByTagNameNS('http://www.w3.org/1998/Math/MathML','piecewise').length != 0)
		{element.setAttribute('size','medium');}
	}//function setFenceSize(element)
function setOperatorSize(element)
	{if(element.firstChild.nodeValue.search(/[\s]*[\u220f\u2210\u2211\u222b\u222c\u222d\u222e\u222f\u2230\u2231\u2232\u2233\u22c0\u22c1\u22c2\u22c3\u2a00\u2a01\u2a02\u2a03\u2a04\u2a05\u2a06\u2a0a\u2a0b\u2a0c][\s]*/) != -1)
		{element.setAttribute('size','medium');}
	}//function setOperatorSize(element)
	enclose('mfrac');
	enclose('munder');
	enclose('mover');
	enclose('matrix');
	enclose('mtable');
	enclose('piecewise');
	enclose('vector');
	enclose('radical');
	enclose('prescripts');
	enclose('indices');
//	enclose('menclose');
function enclose(elementName)
	{var elements = tree.getElementsByTagName(elementName);
		for (var i = 0, element; element = elements[i]; i++)
			{var parent = element.parentNode;
			workaround = document.createElement('workaround');
			workaround.appendChild(document.createTextNode(' '));
			if(parent.nodeName.match(/mfrac|msub|msup|munder|mover|matrixrow|vector|piece/))
				{var shell = document.createElementNS('http://www.w3.org/1998/Math/MathML','mrow')}
			else
				{var shell = document.createDocumentFragment();}
			shell.appendChild(element.cloneNode('true'));
			shell.appendChild(workaround);
			parent.replaceChild(shell, element);
			}//for(var i = 0 ...)
	}//function enclose(elementName)
var style = document.createElementNS('http://www.w3.org/1999/xhtml','style');
var stylesheet = document.createTextNode('math{line-height:1.5em;white-space:nowrap;text-indent:0;}math[mode="display"],math[display="block"]{display:block;text-align:center;page-break-inside:avoid}mfrac{display:inline-table;border-collapse:collapse;white-space:nowrap;text-align:center;line-height:1em;margin:0 2px;vertical-align:0.9em;}mfrac > *{line-height:1.5em;}mfrac > *:first-child{display:inline-table;vertical-align:text-bottom;}mfrac[linethickness="0"] >  * + * {border-top:none;}mfrac[linethickness="2"] >  * + * ,mfrac[linethickness="medium"] >  * + * {border-top:solid medium;}mfrac[linethickness="3"] >  * + * ,mfrac[linethickness="thick"] >  * + * {border-top:solid thick;}mfrac > * + *{display:table-row;border-top:solid thin;}math[mode="display"] mfrac, math[display="block"] mfrac{font-size:1em;}mfrac mtable, mfrac matrix, mfrac vector, mfrac piecewise{margin-bottom:2px;margin-top:2px;}msub mfrac > *, msup mfrac > *, msubsup mfrac > *, indices mfrac > *, prescripts mfrac > *, munder mfrac > *, mover mfrac > *, td[class="cellSup"] mfrac > *, td[class="cellSub"] mfrac > *,td[class="cellSur"] mfrac > *, td[class="cellInf"] mfrac > *{font-size:0.8em;}msub > * + *, msup > * + *{font-size:0.7em;line-height:1em;vertical-align:-0.8ex;}msup > * + *{vertical-align:1.4ex;}indices, prescripts{display:inline-table;white-space:nowrap;font-size:0.7em;border-collapse:collapse;line-height:1.1em;vertical-align:1em;}indices > mrow, prescripts > mrow{display:inline-table;vertical-align:text-bottom;text-align:left;}prescripts > mrow{text-align:right;}indices > mrow + mrow, prescripts > mrow + mrow{display:table-row;}mover, munder{display:inline-table;text-align:center;}mover{display:inline-block;}mover > *, munder > *{white-space:nowrap;display:block;}munder > *{white-space:nowrap;display:table-row;}mo[content="\u23b4"], mo[content="\u23b5"], mo[content="_"]{display:block;content:"";height:3px;border-style:solid;border-width:1px 1px 0 1px;}mo[content="\u23b5"]{border-style:solid;border-width:0 1px 1px 1px;}mo[content="_"]{height:0;border-width:1px 0 0 0;}mo[content]+*{line-height:1.1em;}mo[content="\u02c9"],mo[content="\u02dc"],mo[content="\u02c6"],mo[content="\u02c7"],mo[content="\u02d9"],mo[content="\u00a8"]{display:block;min-width:0.3ex;margin:0 0.2ex -0.4ex 0.2ex;}mo[content="\u02c9"]:before, mo[content="\u02dc"]:before, mo[content="\u02c6"]:before, mo[content="\u02c7"]:before, mo[content="\u02d9"]:before, mo[content="\u00a8"]:before{display:block;content:"";}mo[content="\u02c9"]:before{border-bottom:solid 1px;}mo[content="\u02c6"]:before{border-style:solid;border-width:1px 1px 0 1px;height:1px;}mo[content="\u02c7"]:before{border-style:solid;border-width:0 1px 1px 1px;height:1px;}mo[content="\u02d9"]:before{border-top:solid 1px;margin:0 auto;width:1px;}mo[content="\u00a8"]:before{border-left:solid 1px;border-right:solid 1px;margin:0 auto;width:2px;height:1px;}mo[content="\u02dc"]:before{border-right:solid 1px;border-bottom:solid 1px;height:1px;}mo[content="\u02dc"]:after{display:block;content:"";border-left:solid 1px;height:1px;}munder > * + *, mover > *:first-child{font-size:0.7em;line-height:1.2em;}radical {display:inline-table;border-collapse:collapse;margin:1px;}radicand, radix {display:table-cell;}radicand{border-top:solid 1px;border-left:groove 2px;padding:2px 5px 0 3px;}radix{vertical-align:bottom;text-align:right;font-size:0.7em;line-height:1em;}radix:after{display:block;content:"";width:1em;border-style:groove;border-width:2px 2px 0 0;margin:0.2ex -0.2ex 1ex auto;}msub, msup, msubsup, matrix, mfrac, munder, mover, radical, vector, piecewise, mrow, mfenced{white-space:nowrap}matrix, vector, piecewise, mtable{display:inline-table;border-collapse:collapse;vertical-align:middle;text-align:center;margin:1px;}matrixrow, piece, otherwise, vector > *, mtr, mlabeledtr {display:table-row}matrixrow > *, piece > *, otherwise:after, mtd{display:table-cell;line-height:1.7em;white-space:nowrap;padding:1px 8px}otherwise:after{content:"Otherwise"}matrixrow:before, matrixrow:after,vector > *:before, vector > *:after,mtable[left="["] > mtr:before, mtable[left="("] > mtr:before, mtable[left="{"] > mtr:before, mtable[right="]"] > mtr:after, mtable[right=")"] > mtr:after, mtable[right="}"] > mtr:after{display:table-cell;content:"\u00A0";border-bottom:solid 1px;border-left:solid 1px;border-top:hidden}matrixrow:after, vector > *:after,mtable[right="]"] > mtr:after, mtable[right=")"] > mtr:after, mtable[right="}"] > mtr:after{border-left:none;border-right:solid 1px}matrixrow:first-child:before, matrixrow:first-child:after, vector > *:first-child:before, vector > *:first-child:after,mtable[left="["] > mtr:first-child:before, mtable[left="("] > mtr:first-child:before, mtable[left="{"] > mtr:first-child:before,mtable[right="]"] > mtr:first-child:after, mtable[right=")"] > mtr:first-child:after, mtable[right="}"] > mtr:first-child:after{border-top:solid 1px}determinant + matrix > matrixrow:before,determinant + matrix > matrixrow:after{content:normal}determinant + matrix{border-right:solid 1px;border-left:solid 1px}mtable[left="|"]{border-left:solid 1px;}mtable[right="|"]{border-right:solid 1px;}piecewise{border:dashed 1px gray}piece > *:first-child{text-align:right}piece > * + *{text-align:left}table[class="matrixshell"]{display:inline-table;vertical-align:middle;}td[class="cellSup"], td[class="cellSub"],td[class="cellSur"], td[class="cellInf"]{font-size:0.7em;}td[class="cellSup"]{text-align:left;vertical-align:top;}td[class="cellSur"]{text-align:right;vertical-align:top;}td[class="cellSub"]{text-align:left;vertical-align:bottom;}td[class="cellInf"]{text-align:right;vertical-align:bottom;}mphantom {visibility:hidden}merror{outline:solid thin red}merror:before{content:"Error: "}mfenced:before{content:"("}mfenced:after{content:")"}mfenced[open]:before{content:attr(open)}mfenced[close]:after{content:attr(close)}mfenced[size]:before,mfenced[size]:after{font-size:1.8em;vertical-align:-0.2ex;}mfenced[visibility="hidden"]:before,mfenced[visibility="hidden"]:after{display:none;}maction[actiontype="highlight"]:hover{background-color:yellow;color:black;}maction[actiontype="toggle"] > * + *,maction[actiontype="toggle"]:hover > *:first-child{display:none}maction[actiontype="toggle"]:hover > *:first-child + *{display:inline-block;}maction[actiontype="statusline"] > * + *, maction[actiontype="tooltip"] > * + *{display:none}maction[actiontype="statusline"]:hover > * + *, maction[actiontype="tooltip"]:hover > * + *{position:fixed;display:block;top:0;left:0;background-color:InfoBackground;color:InfoText;padding:0.5ex;border:solid 1px}mspace[linebreak="goodbreak"]:before{content:"\u200B";white-space:normal;} mspace[linebreak="newline"]:before, mspace[linebreak="indentingnewline"]:before {content:"\\000A"; white-space:pre;}mglyph[alt]:before{content:attr(alt);}mi[normal], mi[mathvariant="normal"],mn[normal], mn[mathvariant="normal"],mo[normal], mo[mathvariant="normal"],ms[normal], ms[mathvariant="normal"],mtext[normal], mtext[mathvariant="normal"]{font-style:normal;}mi, mi[mathvariant="italic"], mi[mathvariant="bold-italic"],mi[mathvariant="sans-serif-italic"], mi[mathvariant="sans-serif-bold-italic"],mn[mathvariant="italic"], mn[mathvariant="bold-italic"],mn[mathvariant="sans-serif-italic"], mn[mathvariant="sans-serif-bold-italic"],mo[mathvariant="italic"], mo[mathvariant="bold-italic"],mo[mathvariant="sans-serif-italic"], mo[mathvariant="sans-serif-bold-italic"],ms[mathvariant="italic"], ms[mathvariant="bold-italic"],ms[mathvariant="sans-serif-italic"], ms[mathvariant="sans-serif-bold-italic"],mtext[mathvariant="italic"], mtext[mathvariant="bold-italic"],mtext[mathvariant="sans-serif-italic"], mtext[mathvariant="sans-serif-bold-italic"]{font-style:italic;}mi[mathvariant="bold"], mi[mathvariant="bold-italic"], mi[mathvariant="bold-sans-serif"], mi[mathvariant="sans-serif-bold-italic"],mn[mathvariant="bold"], mn[mathvariant="bold-italic"], mn[mathvariant="bold-sans-serif"], mn[mathvariant="sans-serif-bold-italic"],mo[mathvariant="bold"], mo[mathvariant="bold-italic"], mo[mathvariant="bold-sans-serif"], mo[mathvariant="sans-serif-bold-italic"],ms[mathvariant="bold"], ms[mathvariant="bold-italic"], ms[mathvariant="bold-sans-serif"], ms[mathvariant="sans-serif-bold-italic"],mtext[mathvariant="bold"], mtext[mathvariant="bold-italic"], mtext[mathvariant="bold-sans-serif"], mtext[mathvariant="sans-serif-bold-italic"]{font-weight:bold;}mi[mathvariant="monospace"], mn[mathvariant="monospace"],mo[mathvariant="monospace"], ms[mathvariant="monospace"],mtext[mathvariant="monospace"]{font-family:monospace;}mi[mathvariant="bold-sans-serif"], mi[mathvariant="bold-sans-serif"], mi[mathvariant="sans-serif-italic"], mi[mathvariant="sans-serif-bold-italic"],mn[mathvariant="bold-sans-serif"], mn[mathvariant="bold-sans-serif"], mn[mathvariant="sans-serif-italic"], mn[mathvariant="sans-serif-bold-italic"],mo[mathvariant="bold-sans-serif"], mo[mathvariant="bold-sans-serif"], mo[mathvariant="sans-serif-italic"], mo[mathvariant="sans-serif-bold-italic"],ms[mathvariant="bold-sans-serif"], ms[mathvariant="bold-sans-serif"], ms[mathvariant="sans-serif-italic"], ms[mathvariant="sans-serif-bold-italic"],mtext[mathvariant="bold-sans-serif"], mtext[mathvariant="bold-sans-serif"], mtext[mathvariant="sans-serif-italic"], mtext[mathvariant="sans-serif-bold-italic"]{font-family:sans-serif;}ms:before, ms:after {content:"\\0022"}ms[lquote]:before {content:attr(lquote)}ms[rquote]:after {content:attr(rquote)}mo[size]{font-size:1.3em;vertical-align:-0.1ex;}math{border-left:solid 1px transparent;}workaround{font-size:xx-small;}');
style.setAttribute('type','text/css');
style.appendChild(stylesheet);
if (tree.getElementsByTagNameNS('http://www.w3.org/1999/xhtml','head').length > 0)
	{var parent = tree.getElementsByTagNameNS('http://www.w3.org/1999/xhtml','head')[0];}
else
	{var parent = tree;}
parent.insertBefore(style,parent.firstChild);
document.replaceChild(tree, document.documentElement);
}, false);

/*
	UserJS processor for MathML 2.0 Presentational Markup. Last modified 14:17 23/06/2006.
	Developed by George Chavchanidze as a side product of XML MAIDEN project http://xml-maiden.com
*/