iidoc={toc:function(a){function d(a,d){var e=new Array;var f=new RegExp("[hH]([2-"+(d+1)+"])");var g=function(a){for(var d=a.firstChild;d!=null;d=d.nextSibling){if(d.nodeType==1){var h=f.exec(d.tagName);if(h&&(d.getAttribute("class")||d.getAttribute("className"))!="float"){e[e.length]=new c(d,b(d),h[1]-1)}g(d)}}};g(a);return e}function c(a,b,c){this.element=a;this.text=b;this.toclevel=c}function b(a){var c="";for(var d=a.firstChild;d!=null;d=d.nextSibling){if(d.nodeType==3)c+=d.data;else if(d.firstChild!=null)c+=b(d)}return c}var e=document.getElementById("toc");if(!e){return}var f=[];var g;for(g=0;g<e.childNodes.length;g++){var h=e.childNodes[g];if(h.nodeName=="DIV"&&h.getAttribute("class")&&h.getAttribute("class").match(/^toclevel/))f.push(h)}for(g=0;g<f.length;g++){e.removeChild(f[g])}var i=d(document.getElementById("content"),a);for(var g=0;g<i.length;++g){var h=i[g];if(h.element.id=="")h.element.id="_toc_"+g;var j=document.createElement("a");j.href="#"+h.element.id;j.appendChild(document.createTextNode(h.text));var k=document.createElement("div");k.appendChild(j);k.className="toclevel"+h.toclevel;e.appendChild(k)}if(i.length==0)e.parentNode.removeChild(e)},footnotes:function(){var a;var b=document.getElementById("footnotes");if(!b){return}var c=[];for(a=0;a<b.childNodes.length;a++){var d=b.childNodes[a];if(d.nodeName=="DIV"&&d.getAttribute("class")=="footnote")c.push(d)}for(a=0;a<c.length;a++){b.removeChild(c[a])}var e=document.getElementById("content");var f=e.getElementsByTagName("span");var g={};var h=0;for(a=0;a<f.length;a++){if(f[a].className=="footnote"){h++;var i=f[a].getAttribute("data-note");if(!i){i=f[a].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1];f[a].innerHTML="[<a id='_footnoteref_"+h+"' href='#_footnote_"+h+"' title='View footnote' class='footnote'>"+h+"</a>]";f[a].setAttribute("data-note",i)}b.innerHTML+="<div class='footnote' id='_footnote_"+h+"'>"+"<a href='#_footnoteref_"+h+"' title='Return to text'>"+h+"</a>. "+i+"</div>";var j=f[a].getAttribute("id");if(j!=null)g["#"+j]=h}}if(h==0)b.parentNode.removeChild(b);else{for(a=0;a<f.length;a++){if(f[a].className=="footnoteref"){var k=f[a].getElementsByTagName("a")[0].getAttribute("href");k=k.match(/#.*/)[0];h=g[k];f[a].innerHTML="[<a href='#_footnote_"+h+"' title='View footnote' class='footnote'>"+h+"</a>]"}}}},install:function(a){function d(){clearInterval(b);c()}function c(){asciidoc.footnotes();if(a){asciidoc.toc(a)}}var b;b=setInterval(c,500);if(document.addEventListener)document.addEventListener("DOMContentLoaded",d,false);else window.onload=d}};asciidoc.install()
