function addEvent(n,t,i){n.addEventListener?n.addEventListener(t,i,!1):n.attachEvent&&n.attachEvent("on"+t,i)}function hasClass(n,t){return n.className&&new RegExp("(\\s|^)"+t+"(\\s|$)").test(n.className)}function addClass(n,t){return hasClass(n,t)||(n.className+=(n.className?" ":"")+t),n}function removeClass(n,t){return hasClass(n,t)&&(n.className=n.className.replace(new RegExp("(\\s|^)"+t+"(\\s|$)")," ").replace(/^\s+|\s+$/g,"")),n}function get_sibling_func(n){return function(t){do t=t[n];while(t&&t.nodeType!==1);return t}}function onclickCollapse(n){var t;for(n=n||window.event,t=n.target||n.srcElement;!hasClass(t,"title");)t=t.parentNode;collapseEl(getNextEl(t),new Date,hasClass(t.parentNode,"hide"))}function collapseEl(n,t,i){var r=n.scrollHeight,u=Math.ceil((new Date-t)/Math.min(r,i?500:200)*r);u<r?(n.style.height=(i?u:r-u)+"px",setTimeout(function(){collapseEl(n,t,i)},25)):(n.style.height=i?"auto":"0px",addClass(n.parentNode,i?"show":"hide"),removeClass(n.parentNode,i?"hide":"show"))}function enableCollapsibleHead(n){var t=n?n.firstElementChild||n.children[0]:null;t&&addEvent(t,"click",onclickCollapse)}function enableCollapsibleHeads(){for(var t=document.getElementsByTagName("div"),n=0;n<t.length;n++)hasClass(t[n],"expanding")&&enableCollapsibleHead(t[n],!0)}function processUlinks(){var i,n,t;if(document.getElementsByTagName)for(i=document.getElementsByTagName("a"),n=0;n<i.length;n++)t=i[n],t.getAttribute("href")&&t.className=="ulink"&&(t.target="_blank")}function getFilename(n,t){t=typeof t=="undefined"?!1:t;var i=/[\/\\]([^\/\\]+)$/.exec(n)||[];return i=i[1]||n,t?i.substring(0,i.lastIndexOf(".")):i}function createSpecialHash(){return location.hash?location.hash:"#"+getFilename(location.pathname,!0)}function onPageOpen(){var n=top.frames.leftnav;self!=top&&n?(addClass(document.documentElement,"js"),n.tocUpdateFromTopic&&n.tocUpdateFromTopic(),addEvent(window,"load",onPageLoad)):self.location.replace(CFG_HTML2IDX_RELPATH+"index."+CFG_HTML_EXT+createSpecialHash())}function onPageLoad(){if(top.document.title=document.title,typeof window.history.replaceState=="function")top.history.replaceState(null,window.location.href,window.location.href);else{var n=createSpecialHash();top.location.hash!=n&&top.setHash(n)}setTimeout(function(){enableCollapsibleHeads()},1);setTimeout(function(){processUlinks()},1)}var getNextEl=get_sibling_func("nextSibling");onPageOpen()