book={width:600,height:400,minWidth:560,scale:1,less:!1,getSize:function(){var a=document.getElementById("Page");if(a)book.less=400>a.offsetWidth?!0:!1,book.height=!book.less?a.offsetHeight:400*a.offsetHeight/a.offsetWidth,book.width=!book.less?a.offsetWidth:400,book.minWidth=400>=book.width?book.width+160:book.minWidth,document.getElementsByTagName("body")[0].style.minWidth=book.minWidth+"px"},correct:function(){var a=document.getElementById("Book"),b=document.getElementById("Page");if(book.width>
workspace.w-160)book.scale=workspace.w>book.minWidth?(workspace.w-160)/book.width:book.less?1:400/book.width,a.style.width=book.width*book.scale+"px",b.style.height=book.height*book.scale+"px";else if(400>a.offsetWidth)book.scale=book.less?1:400/a.style.width.split("px")[0],a.style.width="400px",b.style.height=book.height*book.scale+"px";if(b=document.getElementById("navigation")){var d=browser.supportHTML5?135:120;b.style.width=a.offsetWidth+d+"px";if(book.minWidth<workspace.w)b.style.left=(workspace.w-
a.offsetWidth-d)/2+"px";b.style.top=book.height+100<workspace.h?(book.height+100)/2+"px":"50%"}bgCorrection()},checkLongString:function(){for(var a=document.getElementsByTagName("td"),b=0;b<a.length;b++){var d=a[b].parentNode.parentNode.parentNode,d="LI"==d.tagName?d:"LI"==d.parentNode.tagName?d.parentNode:NaN;if(a[b].offsetWidth>d.offsetWidth-40){var d=d.offsetWidth-40,c=a[b].getElementsByTagName("a");if(c[0].innerText)c[0].innerText=c[0].innerText.substring(0,d/8)+"...";if(c[0].innerHTML)c[0].innerHTML=
c[0].innerHTML.substring(0,d/8)+"..."}}}};function initContent(){book.getSize();book.correct();workspace.addListener(book.correct);window.sessionStorage&&!window.sessionStorage.getItem(encodeURIComponent(FULL_SRC))&&(window.sessionStorage.setItem(encodeURIComponent(FULL_SRC),!0),about.action());-1!=document.location.pathname.indexOf("toc.html")?book.checkLongString():zoom(book.scale)}
var about={isShow:!1,action:function(){about.isShow?(document.getElementById("infoBalloon").style.opacity=0,window.setTimeout(function(){document.getElementById("infoBalloon").style.display="none"},500),about.isShow=!1):(document.getElementById("infoBalloon").style.display="block",document.getElementById("infoBalloon").style.opacity=1,about.isShow=!0)}};
function localPending(){document.getElementById("fullVersionLink").innerText=LOCALS.FULL_VERSION;document.getElementById("fullVersionLink").href=""!=CURRENT_PAGE?FULL_SRC+"#"+CURRENT_PAGE:FULL_SRC;if(document.getElementById("tocLink"))document.getElementById("tocLink").innerText=LOCALS.TOC_TITLE;var a="",a=""!=CURRENT_PAGE?BASIC_SRC+"/index.html#"+CURRENT_PAGE:BASIC_SRC+"/index.html",b=""!=CURRENT_PAGE?FULL_SRC+"#"+CURRENT_PAGE:FULL_SRC,a=browser.isFlash?browser.supportHTML5?LOCALS.SEO_INFO_RECOMMENDATION1.replace("{0}",
"<a href='"+decodeURIComponent(b)+"'>").replace("{1}","</a>").replace("{2}","<a href='"+a+"'>").replace("{3}","</a>"):LOCALS.SEO_INFO_RECOMMENDATION1.replace("{0}","<a href='"+decodeURIComponent(b)+"'>").split("{1}")[0]+"</a>"+LOCALS.SEO_INFO_RECOMMENDATION1.split("{3}")[1]:browser.supportHTML5?LOCALS.SEO_INFO_RECOMMENDATION3.replace("{0}","<a href='"+decodeURIComponent(a)+"'>").replace("{1}","</a>").replace("{2}","<a href='"+decodeURIComponent("http://get.adobe.com/flashplayer/")+"' target='_blank'>").replace("{3}",
"</a>"):LOCALS.SEO_INFO_RECOMMENDATION2.replace("{0}","<a href='"+decodeURIComponent("http://windows.microsoft.com/en-us/internet-explorer/download-ie")+"' target='_blank'>").replace("{1}","</a>").replace("{2}","<a href='"+decodeURIComponent("http://get.adobe.com/flashplayer/")+"' target='_blank'>").replace("{3}","</a>");document.getElementById("boxVersion").innerHTML=LOCALS.SEO_VERSION+"<span style='position: relative; top:0px; left:0px; overflow: hidden;'><img src='./style/info.png' style='width: 14px; height:14px; cursor: pointer; position: relative; top: 4px; left:0px;' onclick='javascript:about.action();'><div class='balloon' id='infoBalloon'><div class='arrow'></div><a href='javascript:about.action();' class='closeButton' title='Close'></a><h2>"+
LOCALS.SEO_INFO_TITLE.replace("{0}",document.title)+"</h2><p>"+LOCALS.SEO_INFO_TEXT.replace("{0}","<b>"+document.title+"</b>").replace("{1}","<br>")+"</p><br><p>"+a+"</p></div></span>";if(document.getElementById("TocHeader"))document.getElementById("TocHeader").getElementsByTagName("h2")[0].innerText=LOCALS.TOC_TITLE;if(document.getElementById("TocHeader"))document.getElementById("TocHeader").getElementsByTagName("h2")[0].innerText=LOCALS.TOC_TITLE;if(document.getElementById("RightToolText")&&"SPAN"!=
document.getElementById("RightToolText").tagName)-1!=document.getElementById("RightToolText").href.indexOf("toc.html")?document.getElementById("RightToolText").title=LOCALS.TOC_TITLE:document.getElementById("RightToolText").title=LOCALS.PAGE+" "+document.getElementById("RightToolText").title;if(document.getElementById("LeftToolText")&&"SPAN"!=document.getElementById("LeftToolText").tagName)-1!=document.getElementById("LeftToolText").href.indexOf("toc.html")?document.getElementById("LeftToolText").title=
LOCALS.TOC_TITLE:document.getElementById("LeftToolText").title=LOCALS.PAGE+" "+document.getElementById("LeftToolText").title;notification.show();initContent()}
function rotateContent(a){var b=a.style.transform.substr(7,a.style.transform.length-11),b=b.replace(",",".");a.style.overflow="visible";var d=a.offsetWidth,c=Math.cos(b),e=Math.sin(b);if(9>1*browser.versionIE)if(a=a.childNodes[0],a.style.filter='progid:DXImageTransform.Microsoft.Matrix(sizingMethod="auto expand", M11 = '+c+", M12 = "+-e+", M21 = "+e+", M22 = "+c+")",Math.PI/2<=b&&b<Math.PI)a.style.marginLeft=Math.round(d*c)+"px";else if(Math.PI<=b&&b<3*Math.PI/2)a.style.marginLeft=Math.round(d*c)+
"px",a.style.marginTop=Math.round(d*e)+"px";else{if(3*Math.PI/2<=b&&b<2*Math.PI)a.style.marginTop=Math.round(d*e)+"px"}else if(9==1*browser.versionIE)a.style.msTransformOrigin="0 0 0",a.style.msTransform=" rotate("+b+"rad)",a.style.left=1*a.style.left.replace("px","")-a.style.width.replace("px","")/2+Math.round(d*c/2)+"px",a.style.top=1*a.style.top.replace("px","")+Math.round(d*e/2)+"px"}
function zoom(a){for(var b=document.getElementById("Page").childNodes,d=0;d<b.length;d++)if("DIV"==b[d].tagName){if(1!=a&&!b[d].id){b[d].style.top=1*b[d].style.top.replace("px","")*a+"px";b[d].style.left=1*b[d].style.left.replace("px","")*a+"px";b[d].style.width=Math.abs(b[d].style.width.replace("px",""))*a+"px";b[d].style.height=Math.abs(b[d].style.height.replace("px",""))*a+"px";var c=b[d].getElementsByTagName("img")[0];if(c){var e=c.currentStyle||window.getComputedStyle(b[d],null);c.style.top=
1*c.style.width.replace("px","")*a+"px";c.style.left=1*c.style.width.replace("px","")*a+"px";c.style.width=1*c.style.width.replace("px","")*a+"px";c.style.height=1*c.style.height.replace("px","")*a+"px"}if(c=b[d].getElementsByTagName("iframe")[0])c.currentStyle||window.getComputedStyle(b[d],null),c.style.top=1*c.style.width.replace("px","")*a+"px",c.style.left=1*c.style.width.replace("px","")*a+"px",c.style.width=1*c.style.width.replace("px","")*a+"px",c.style.height=1*c.style.height.replace("px",
"")*a+"px"}if(c=b[d].getElementsByTagName("span")[0]){e=c.currentStyle||window.getComputedStyle(c,null);if(scale=c.style.fontSize?Math.abs(c.style.fontSize.replace("px",""))*a:Math.abs(e.fontSize.replace("px",""))*a)if(c.style.fontSize=scale+"px",c.offsetWidth>b[d].offsetWidth)for(;c.offsetWidth>b[d].offsetWidth&&1<scale;)scale-=1,c.style.fontSize=scale+"px";else if(c.offsetWidth<b[d].offsetWidth){for(e=0;c.offsetWidth<b[d].offsetWidth&&5>e;)scale+=1,e++,c.style.fontSize=scale+"px";if(c.offsetWidth>
b[d].offsetWidth)scale-=1,c.style.fontSize=scale+"px"}e=(b[d].offsetHeight-c.offsetHeight)/2;e=e.toFixed();if(0<e)c.style.padding=e+"px 0px";c.style.top=(b[d].offsetHeight-c.offsetHeight)/2+"px"}browser.isIE&&b[d].style.transform&&rotateContent(b[d])}};