var O;var J;var f;function init(){O=d("html");J=d("outline");r();LoadSlide(1);};function r(){f=new T("outline");var t=new ActiveXObject("Microsoft.XMLDOM");t.async=false;t.load("htmls/toc.xml");var H=t.documentElement.selectSingleNode("index");var l=new Array();var url=new Array();var i;for(i=0;i<H.childNodes.length;i++){l[i]=K(H.childNodes[i].selectSingleNode("title").text);url[i]=H.childNodes[i].selectSingleNode("url").text;}f.P(l,url);};function LoadSlide(D){var url=f.v(D);f.L(D);f.Q(url);};function T(k){this.k=d(k);this.e=1;this.url=new Array();};T.prototype={P:function(l,url){var toc0=0,toc1=0,c,i,j;for(i=1;i<=l.length;i++){this.url[i]=url[i-1];var title=l[i-1];if(title.indexOf("...")==0){toc1++;c="toc1";G=title.substr(3);title=toc0+"."+toc1+" "+G;}else{toc0++;toc1=0;c="toc0";G=title;title=toc0+". "+G;}var o=document.createElement("DIV");o.id="f"+i;o.D=i;o.M=this;o.className=c;o.innerHTML="<div style='padding:3px 0px 0px 0px'>"+title+"</div>";o.title=G;o.onclick=this.onClick;o.onkeyup=this.onClick;o.onmouseover=this.R;o.onmouseout=this.U;this.k.appendChild(o);}},onClick:function(){var w=window.event.keyCode;if(w!=13&&w!=0)return;this.M.e=this.D;LoadSlide(this.M.e);},R:function(){if(this.D==this.M.e)return;var c=this.className.split(" ");this.className=c[0]+" tocOver";},U:function(){if(this.D==this.M.e)return;var c=this.className.split(" ");this.className=c[0];},L:function(D){this.e=D;var m=this.k;for(var i=1;i<=m.childNodes.length;i++){var f=d("f"+i);var c=f.className.split(" ");f.className=c[0];if(i==D){f.className=c[0]+" tocFocus";if((f.offsetTop<m.scrollTop)||(f.offsetTop>m.scrollTop+m.clientHeight-20)){m.scrollTop=f.offsetTop-(m.clientHeight)*0.5;}m.focus();}}},v:function(n){return this.url[n];},Q:function(url){O.src="htmls/"+url;}};function K(text){var html=text.replace(/&/,"&amp;");html=html.replace(/</,"&lt;");html=html.replace(/>/,"&gt;");html=html.replace(/\r\n/,"<br>");html=html.replace(/\n/,"<br>");html=html.replace(/\r/,"<br>");return(html);};function d(id){return document.getElementById(id);};var B=0;function Y(X){B++;if(d("_debug")==null){var I=document.createElement("div");I.style.position="absolute";I.style.left=600;I.style.top=0;I.style.height="600px";I.style.width="200px";I.id="_debug";I.style.overflow="auto";I.style.backgroundColor="yellow";document.getElementsByTagName("body")[0].appendChild(I);}var V=d("_debug");V.innerHTML=V.innerHTML+"<br>"+B+": "+X;}