TRANSITION_TIME=200; function localPending(){var a;document.getElementById("infoBtn").title=LOCALS.ABOUT_TITLE;a=document.getElementById("shareBox");if(properties.isShare){if(a)document.getElementById("shareFB").title=LOCALS.SHARE_FACEBOOK,document.getElementById("shareTwitter").title=LOCALS.SHARE_TWITTER,document.getElementById("shareBlogger").title=LOCALS.SHARE_BLOGGER,document.getElementById("shareEmail").title=LOCALS.SHARE_EMAIL,document.getElementById("shareLinked").title=LOCALS.SHARE_LINKEDIN,document.getElementById("shareTumblr").title= LOCALS.SHARE_TUMBLR,document.getElementById("shareGoogle").title=LOCALS.SHARE_GOOGLE,document.getElementById("shareVk").title=LOCALS.SHARE_VK}else a.parentNode.removeChild(a);a=document.getElementById("zoomBox");a.style[browser.prefix+"TransitionDuration"]=TRANSITION_TIME+"ms";if(a)document.getElementById("zoomIn").title=LOCALS.ZOOM_IN,document.getElementById("zoomOut").title=LOCALS.ZOOM_OUT;a=document.getElementById("tocBox");a.style[browser.prefix+"TransitionDuration"]=TRANSITION_TIME+"ms";a.innerHTML= "

"+LOCALS.TOC_TITLE+"

";a=document.getElementById("tocBtn");properties.isToc?(a.title=LOCALS.TOC_TITLE,a.style[browser.prefix+"TransitionDuration"]=TRANSITION_TIME+"ms"):a.parentNode.removeChild(a);a=document.getElementById("downloadBtn");a.style[browser.prefix+"TransitionDuration"]=TRANSITION_TIME+"ms";a.title=LOCALS.DOWNLOAD_TITLE;if(properties.isDownload){if(!properties.isToc)a.style.left="0px"}else a.parentNode.removeChild(a);a=document.getElementById("thumbBox");a.style[browser.prefix+ "TransitionDuration"]=TRANSITION_TIME+"ms";properties.isThumbnail?(document.getElementById("thumbBtn").title=LOCALS.THUMBNAILS_TITLE,document.getElementById("thumbBtn").style[browser.prefix+"TransitionDuration"]=TRANSITION_TIME+"ms",document.getElementById("thumbLeftTool").style[browser.prefix+"TransitionDuration"]=TRANSITION_TIME+"ms",document.getElementById("thumbLine").style[browser.prefix+"TransitionDuration"]=TRANSITION_TIME+"ms"):a.parentNode.removeChild(a);if(!properties.isCopy)document.getElementById("Copyright").innerHTML= "";if(document.getElementById("infoBtn"))a="",a=browser.isFlash?PUBL?"undefined"!=typeof window.parent?LOCALS.BASIC_INFO_RECOMMENDATION1.replace("{0}","").replace("{1}",""):LOCALS.BASIC_INFO_RECOMMENDATION1.replace("{0}","").replace("{1}",""):LOCALS.BASIC_INFO_RECOMMENDATION1.replace("{0}","").replace("{1}",""):LOCALS.BASIC_INFO_RECOMMENDATION2.replace("{0}","").replace("{1}",""),document.getElementById("infoBalloon").innerHTML="

"+LOCALS.BASIC_INFO_TITLE.replace("{0}",TITLE)+"


"+LOCALS.BASIC_INFO_TEXT+"
"+a;document.getElementById("Navigation").style[browser.prefix+"TransitionDuration"]=TRANSITION_TIME+"ms";document.getElementById("currentPage").parentNode.insertBefore(document.createTextNode(LOCALS.PAGE), document.getElementById("currentPage"));notification.show();bgCorrection();pageInit()} var book={w:600,h:400,scale:1.3,step:0.2,init:!1,getSize:function(){book.w="False"==INNER.isWide?INNER.bookWidth:2*INNER.bookWidth;book.h=INNER.bookHeight},setSize:function(a){book.getSize();book.w*=a;book.h*=a},setScale:function(a){0>a&&(400>book.w||200>book.h)||(book.scale+=a)},draw:function(){book.setSize(book.scale);var a=document.getElementById("Book");document.getElementById("Publication").style.width=book.w+"px";a.style.width=book.w+"px";a.style.height=book.h+"px";if(browser.supportHTML5){if(INNER.substrate){if(INNER.substrate.background)a.style.background= INNER.substrate.background;if(INNER.substrate.backgroundColor)a.style.backgroundColor=INNER.substrate.backgroundColor;if(INNER.substrate.backgroundSize)a.style.backgroundSize=INNER.substrate.backgroundSize;a.style.backgroundPosition="center center";a.style.backgroundRepeat="no-repeat";a.style.backgroundOrigin="border-box"}}else{if(INNER.substrate.backgroundColor)a.style.backgroundColor=INNER.substrate.backgroundColor;a=document.getElementById("Page");a.currentStyle||window.getComputedStyle(a,null); if(INNER.substrate.background){var b=document.createElement("img");b.src=INNER.substrate.background.substr(4,INNER.substrate.background.length-5);b.style.position="absolute";b.style.top="0px";b.style.left="0px";b.style.width="100%";b.style.height="100%";a.appendChild(b);a.style.backgroundImage="none"}}}},page={w:600,h:400,top:0,left:0,scale:1,getSize:function(){page.w=INNER.width;page.h=INNER.height},correct:function(){page.getSize();if("contain"==INNER.substrate.backgroundSize)if(book.w/page.w== book.h/page.h)page.w=book.w,page.h=book.h,page.scale=book.scale,page.top=0,page.left=0;else if(book.w/page.w>book.h/page.h)page.scale=book.h/page.h,page.w*=page.scale,page.h=book.h,page.top=0;else{if(book.w/page.wbook.h/page.h)page.scale=book.w/page.w,page.w=book.w,page.h*=page.scale,page.top=(book.h-page.h)/2,page.left=0},draw:function(){page.correct();document.getElementById("Page").style.width=page.w+"px";document.getElementById("Page").style.height=page.h+"px";document.getElementById("Page").style.top=page.top+"px";document.getElementById("Page").style.left=page.left+"px"}},pager= {currentId:pageList[1].item,currentIndex:1,holdKey:"",isShow:!1,changeStateByKey:function(a){a=a||window.event;switch(a.which||a.keyCode){case 34:0"+LOCALS.DOWNLOAD_PUBLICATION+" ("+a[b].pdfPublication.size+") ";if("undefined"!=typeof a[b].PdfPage)d.innerHTML=""+LOCALS.DOWNLOAD_PAGE+" ("+a[b].PdfPage.size+") ";if("undefined"!=typeof a[b].UserFile)d.innerHTML=""+LOCALS.DOWNLOAD_FILE+" ("+a[b].UserFile.size+ ") ";if("undefined"!=typeof a[b].MacPublication)d.innerHTML=""+LOCALS.DOWNLOAD_FILE+" ("+a[b].MacPublication.size+") ";if("undefined"!=typeof a[b].WinPublication)d.innerHTML=""+LOCALS.DOWNLOAD_FILE+" ("+a[b].WinPublication.size+") ";c.appendChild(d);b++}},mouseOn:function(a,b){download.lock(b);download.isShow?(a.title=LOCALS.DOWNLOAD_TITLE,a.getElementsByTagName("div")[0].style.opacity= "0",a.getElementsByTagName("div")[0].style.top="-200px",download.isShow=!1):(a.title="",a.getElementsByTagName("div")[0].style.opacity="1",a.getElementsByTagName("div")[0].style.top="30px",download.isShow=!0)},hide:function(){if(download.isShow){var a=document.getElementById("downloadBox");a.parentNode.title=LOCALS.DOWNLOAD_TITLE;a.style.opacity="0";a.style.top="-200px";download.isShow=!1}},lock:function(a){a.preventDefault?a.preventDefault():a.returnValue=!1;a.stopPropagation?a.stopPropagation(): a.returnValue=!1;a.cancelBubble=!0}},share={setUrl:function(a,b,c){c=c||1;if(document.getElementById("shareBox"))document.getElementById("shareFB").href="https://facebook.com/sharer.php?u="+encodeURIComponent(b+"#"+c),document.getElementById("shareTwitter").href="https://twitter.com/intent/tweet?url="+encodeURIComponent(b+"#"+c)+"&text="+a,document.getElementById("shareBlogger").href="http://blogger.com/blog-this.g?u="+encodeURIComponent(b+"#"+c)+"&t="+a+"&n=publication",document.getElementById("shareEmail").href= "mailto:?subject="+a+"&body="+encodeURIComponent(b+"#"+c),document.getElementById("shareLinked").href="http://www.linkedin.com/shareArticle?mini=true&url="+encodeURIComponent(b+"#"+c)+"&title="+a,document.getElementById("shareTumblr").href="http://www.tumblr.com/share/link?url="+encodeURIComponent(b+"#"+c)+"&name="+a+"&description=",document.getElementById("shareGoogle").href="https://plus.google.com/share?url="+encodeURIComponent(b+"#"+c),document.getElementById("shareVk").href="http://vk.com/share.php?url="+ encodeURIComponent(b+"#"+c)+"&title="+a+"&image="+encodeURIComponent(window.location.href.substr(0,window.location.href.indexOf("index.html"))+COVER_SRC)+"&description="}},pageInit=function(){function a(){loadPage(pager.checkHashName(window.location.hash))}INNER={};a();setEvent(window,"hashchange",a);document.getElementById("zoomIn")&&setEvent(document.getElementById("zoomIn"),"click",function(){zoomBook("in")});document.getElementById("zoomOut")&&setEvent(document.getElementById("zoomOut"),"click", function(){zoomBook("out")});var b=function(a,b){a.preventDefault?a.preventDefault():a.returnValue=!1;a.stopPropagation?a.stopPropagation():a.returnValue=!1;"toc"!=b&&("left"==b?INNER.leftTool&&loadPage(pager.checkLinkName(INNER.leftTool.src.split(".")[0])):"right"==b&&INNER.rightTool&&loadPage(pager.checkLinkName(INNER.rightTool.src.split(".")[0])));return!1};document.getElementById("tocBtn")&&setEvent(document.getElementById("tocBtn"),"click",toc.action);document.getElementById("navigationBoxLeftTool")&& setEvent(document.getElementById("navigationBoxLeftTool"),"click",function(a){b(a,"left")});document.getElementById("navigationBoxRightTool")&&setEvent(document.getElementById("navigationBoxRightTool"),"click",function(a){b(a,"right")});document.getElementById("thumbBtn")&&setEvent(document.getElementById("thumbBtn"),"click",thumbnail.action);document.getElementById("infoBtn")&&setEvent(document.getElementById("infoBtn"),"click",about.action);properties.isToc&&toc.create(tocList,document.getElementById("tocBox")); properties.isThumbnail&&thumbnail.create(pageList,document.getElementById("thumbLine"));properties.isShare&&share.setUrl(document.title,FULL_SRC)};function zoomBook(a){switch(a){case "in":book.setScale(book.step);break;case "out":book.setScale(-book.step)}content.draw()} var content={init:function(){if(!book.init&&(book.getSize(),book.w>workspace.w-100))book.scale=(workspace.w-100)/book.w,book.init=!0;for(var a=document.getElementsByTagName("meta"),b=0;b b.offsetWidth)for(;c.offsetWidth>b.offsetWidth&&1d;)scale+=1,d++,c.style.fontSize=scale+"px";if(c.offsetWidth>b.offsetWidth)scale-=1,c.style.fontSize=scale+"px"}d=(b.offsetHeight-c.offsetHeight)/2;d=d.toFixed();if(0c-1;)e=a.childNodes[b],d(e),b--}}},scrollCurrent:function(){var a=this.el,b=toc.isShow?workspace.w-200:workspace.w,c=a.offsetWidth,d=RTL?b/2-84*(pageList.length-1-pager.currentIndex):b/2-84*pager.currentIndex;if("undefined"!=typeof a.style&&ba.offsetLeft?a.offsetLeft+thumbnail.step:0;a.style.left= this.currentLeft+"px";this.setBg()},scrollRight:function(){var a=thumbnail.el;this.currentLeft=a.offsetLeft>workspace.w-a.offsetWidth?a.offsetLeft-thumbnail.step:workspace.w-a.offsetWidth;a.style.left=this.currentLeft+"px";this.setBg()}},toc={isShow:!1,step:50,action:function(){if(document.getElementById("tocBox")){var a=toc.isShow?0:200,b={};if(browser.supportHTML5)document.getElementById("tocBox").style[browser.prefix+"Transform"]="translateX("+a+"px)",document.getElementById("tocBtn").style[browser.prefix+ "Transform"]="translateX("+a+"px)",properties.isDownload&&(document.getElementById("downloadBtn").style[browser.prefix+"Transform"]="translateX("+a+"px)"),document.getElementById("Navigation").style[browser.prefix+"Transform"]="translateX("+a/2+"px)",properties.isThumbnail&&(document.getElementById("thumbBtn").style[browser.prefix+"Transform"]="translateX("+a+"px)",document.getElementById("thumbLeftTool").style[browser.prefix+"Transform"]="translateX("+a+"px)");else{document.getElementById("tocBtn").style.left= a+"px";document.getElementById("tocBox").style.left=a-200+"px";if(properties.isDownload)properties.isToc?document.getElementById("downloadBtn").style.left=a+40+"px":document.getElementById("downloadBtn").style.left=a+"px";document.getElementById("Navigation").style.left=a/2+"px";if(properties.isThumbnail)document.getElementById("thumbBtn").style.left=a+"px",document.getElementById("thumbLeftTool").style.left=a+"px"}"firefox"==browser.name||"ie"==browser.name?document.getElementById("zoomBox").style.left= a+"px":document.getElementById("zoomBox").style[browser.prefix+"Transform"]="translateX("+a+"px)";b=document.getElementById("Publication");b.style[browser.prefix+"TransitionDuration"]=TRANSITION_TIME+"ms";b.style[browser.prefix+"Transform"]=200>workspace.w-book.w?"translateX("+a+"px)":"translateX("+a/2+"px)";window.setTimeout(function(){b.style[browser.prefix+"TransitionDuration"]="0ms"},TRANSITION_TIME);thumbnail.resize();toc.isShow=toc.isShow?!1:!0}},create:function(a,b){function c(a,b){var g=document.createElement(a.tag); if(a.className)g.className=a.className;b.appendChild(g);if("a"==a.tag){if(a.text)g.innerHTML=a.text;if(a.href)g.href=a.href;setEvent(g,"click",e)}if(a.content)if(a.content[0])for(var f=0;a.content[f];)c(a.content[f],g),f++;else"ul"==a.content.tag?d(a.content,g):c(a.content,g);delete g}function d(a,b){var d=document.createElement(a.tag);if(a.text)d.textContent=a.text;d.id="tocUL";if(a.className)d.className=a.className;b.appendChild(d);for(var e=1;a.content[e];)c(a.content[e],d),e++;delete d}var e= function(a){a.preventDefault?a.preventDefault():a.returnValue=!1;a.stopPropagation?a.stopPropagation():a.returnValue=!1;var a=a||window.event,a=a.target||a.srcElement,b=a.href?a.href:a.parentNode.href;if("png"==b.split("/")[b.split("/").length-1].split(".")[1])b=a.parentNode.href;b=b.split("/")[b.split("/").length-1].split(".")[0];loadPage(pager.checkLinkName(b));return!1};b.style.height=workspace.h+"px";var h=document.createElement("div");h.style.height=workspace.h-90+"px";h.id="tocContent";h.className= "tocContent";b.appendChild(h);var f=document.createElement("div");f.id="tocNavTop";f.className="tocNavTop";b.appendChild(f);setEvent(f,"click",toc.scrollDown);f=document.createElement("div");f.id="tocNavBottom";f.className="tocNavBottom";b.appendChild(f);setEvent(f,"click",toc.scrollUp);f=null;a[0]&&d(a[0],h);workspace.addListener(toc.checkSize)},checkSize:function(){var a=document.getElementById("tocBox");a.style.height=workspace.h+"px";a=document.getElementById("tocContent");a.style.height=workspace.h- 30+"px"},scrollUp:function(){var a=document.getElementById("tocUL").offsetTop;if(-a+workspace.h-30-toc.step<=document.getElementById("tocUL").offsetHeight)document.getElementById("tocUL").style.top=a-toc.step+"px"},scrollDown:function(){var a=document.getElementById("tocUL").offsetTop;if(0>=a+toc.step)document.getElementById("tocUL").style.top=a+toc.step+"px"}},eventLock=function(a){a.preventDefault?a.preventDefault():a.returnValue=!1;a.stopPropagation?a.stopPropagation():a.returnValue=!1;var a=a|| window.event,a=a.target||a.srcElement,b=a.href?a.href:a.parentNode.href;if(-1==b.indexOf("basic-html"))return"_self"==a.target?window.location=b:window.open(b),!0;if("png"==b.split("/")[b.split("/").length-1].split(".")[1])b=a.parentNode.href;b=b.split("/")[b.split("/").length-1].split(".")[0];loadPage(pager.checkLinkName(b));return!1};