/*
 *  ../SourceForge/trunk/mathjax/jax/output/HTML-CSS/autoload/maction.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([
  ['(','function(','c,e){var d,f,b;var a=','e.config.tooltip','=','MathJax.Hub.','Insert({delayPost:600,delayClear:600,offsetX:10,offsetY:5},',3,'||{});c.maction.Augment({HTMLtooltip:','e.addElement(','document.body,"div",{id:"','MathJax_Tooltip','"}),toHTML:',1,'h){h=this.HTMLhandleSize(this.HTMLcreateSpan(h));h.bbox=null;var g=this.getValues("actiontype","selection"),j;if','(this.data[g.selection-1',']){e.Measured',15,'].toHTML(h),h);if(','e.msieHitBoxBug','){var i=',9,'h,"span");','j=e.createFrame(','i',',h.bbox.h,h.bbox.d,h.bbox.w,0,"none");h.insertBefore(','i,h','.firstChild',');i','.style.marginRight=e.Em(-h.bbox.w',');if(e.msieInlineBlockAlignBug){j.style.verticalAlign=e.Em(e.getHD(h).d-h.bbox.d)}}else{',23,'h',25,'j,h',27,');j',29,')}j.className="MathJax_HitBox";j.id="MathJax-HitBox-"+this.spanID;if(','this.HTMLaction[g.actiontype',']){',39,'].call(this,h,j,g.selection)}}this.HTMLhandleSpace(h);this.HTMLhandleColor(h);return h},HTMLaction:{toggle:',1,'h,i,g){','this.selection','=g;i.onclick','=h.childNodes[1].','onclick=','MathJax.Callback(["','HTMLclick','",this]);i.','style.cursor',47,52,'="pointer"},statusline:',1,44,'i.','onmouseover',47,59,'=',49,'HTMLsetStatus',51,'onmouseout',47,66,'=',49,'HTMLclearStatus','",this]);i.onmouseover.autoReset=i.onmouseout.autoReset=true','},tooltip:',1,44,'if(this.data[1]&&','this.data[1].','isToken){i.title=i.alt',47,'title',47,'alt=',77,'data.join','("")}else{i.',59,47,59,'=',49,'HTMLtooltipOver',51,66,47,66,'=',49,'HTMLtooltipOut',72,'}}},',50,':',1,'i){',45,'++;if(',45,'>this.data.length){',45,'=1}var j=this;while(j.type!=="math"){j=j.inherit}var g=j.HTMLspanElement();while(g.nodeName.toLowerCase()!=="nobr"){g=g','.parentNode','}var h=g',111,';h.removeChild(g);var k=h;if(h',111,'.className==="MathJax_Display"){k=h',111,'}j.toHTML(h,k);if(!i){i','=window.event}if(','i.preventDefault','){',120,'()}if(','i.stopPropagation','){',124,'()}i.cancelBubble=true;i.returnValue=false;return false},',64,':',1,'g){window.status','=((this.data[1]&&',77,'isToken)?',77,84,'(""):',77,'toString())},',71,':',1,131,'=""},',91,':',1,'h){if(!h){h',119,'b','){clearTimeout(','b);b=null}','if(f',151,'f)}var g=h.clientX;var j=h.clientY;var i=',49,'HTMLtooltipPost','",this,','g+a.offsetX,j+a.offsetY]);f','=setTimeout(','i,a.delayPost)},',98,':',1,'g){if(f',151,'f);f=null}if(b',151,'b)}var h=',49,'HTMLtooltipClear',158,'80]);b',160,'h,a.delayClear)},',157,':',1,'h,l){f=null;if(b',151,152,'var k','=this.HTMLtooltip;','k','.style.display="','block";k','.style.opacity','="";k','.style.filter','=e.config.styles["#',11,'"].filter;if(this===d){return}k.style.left=h+"px";k.style.top=l+"px";k.innerHTML=\'<span class="MathJax"><nobr></nobr></span>\';e.getScales(k',27,',k',27,');var g=e.createStack(k',27,27,');var j=e.createBox(g);try{e.Measured(',77,'toHTML(j),j)}catch(i){if(!i.restart){throw i}k',185,'none";MathJax.Callback.After(["',157,158,'h,l],i.restart)}e.placeBox(j,0,0);e.createRule(k',27,27,',j.bbox.h,j.bbox.d,0);d=this},',171,':',1,'h){var g',183,'if(h<=0){g',185,'none";g',187,'=g',189,'="";b=null}else{g',187,'=h/100;g',189,'="alpha(opacity="+h+")";b',160,49,171,158,'h-20]),50)}}});',5,'Browser.Select({MSIE:',1,'g){',19,'=true}});',5,'Startup.signal.Post("HTML-CSS maction Ready");MathJax.Ajax.loadComplete(e.autoloadDir+"/maction.js")})(MathJax.ElementJax.mml,MathJax.OutputJax["HTML-CSS"]);']
]);

