function localPending(){window.location.pathname.indexOf("index.html");properties.isShare?document.getElementById("shareBox")&&(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("shareMyspace").title= LOCALS.SHARE_MYSPACE,document.getElementById("shareTumblr").title=LOCALS.SHARE_TUMBLR):document.getElementById("shareBox").parentNode.removeChild(document.getElementById("shareBox"));document.getElementById("zoomBox")&&(document.getElementById("zoomIn").title=LOCALS.ZOOM_IN,document.getElementById("zoomOut").title=LOCALS.ZOOM_OUT);properties.isToc?(document.getElementById("tocBtn").title=LOCALS.TOC_TITLE,document.getElementById("tocBox").innerHTML="

"+LOCALS.TOC_TITLE+"

"):document.getElementById("tocBtn").parentNode.removeChild(document.getElementById("tocBtn")); properties.isDownload?document.getElementById("downloadBtn")&&!properties.isToc&&(document.getElementById("downloadBtn").style.left="0px"):document.getElementById("downloadBtn").parentNode.removeChild(document.getElementById("downloadBtn"));properties.isCopy||(document.getElementById("Copyright").innerHTML="");if(document.getElementById("infoBtn")){var 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}properties.isThumbnail?document.getElementById("thumbBox")&&(document.getElementById("thumbBtn").title=LOCALS.THUMBNAILS_TITLE):document.getElementById("thumbBox").parentNode.removeChild(document.getElementById("thumbBox"));document.getElementById("currentPage")&&document.getElementById("currentPage").parentNode.insertBefore(document.createTextNode(LOCALS.PAGE), document.getElementById("currentPage"));notification.show();pageInit()} var book={w:600,h:400,scale:1.2,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);document.getElementById("Publication").style.width=book.w+"px";document.getElementById("Book").style.width=book.w+"px";document.getElementById("Book").style.height=book.h+"px";INNER.substrate&& (INNER.substrate.background&&(document.getElementById("Book").style.background=INNER.substrate.background),INNER.substrate.backgroundColor&&(document.getElementById("Book").style.backgroundColor=INNER.substrate.backgroundColor),INNER.substrate.backgroundSize&&(document.getElementById("Book").style.backgroundSize=INNER.substrate.backgroundSize),document.getElementById("Book").style.backgroundPosition="center center",document.getElementById("Book").style.backgroundRepeat="no-repeat",document.getElementById("Book").style.backgroundOrigin= "border-box")}},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();"contain"==INNER.substrate.backgroundSize?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):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):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={isShow:!1,flip:function(a,b){a=a||window.event;13==(a.which||a.keyCode)&&(loadPage(pager.checkPageName(b.value)),b.value="")},checkPageName:function(a){if(0<1*a){var b=1,c={};c.page=pageList[1].title;c.item=pageList[1].item;for(c.change=!1;pageList[b];){if(0<1*pageList[b].title){if(1*a==1*pageList[b].title){c.item=pageList[b].item; c.page=pageList[b].title;c.change=!0;break}}else for(var d=pageList[b].title.split("-"),e=0;d[e];){if(1*a==1*d[e]){c.item=pageList[b].item;c.page=pageList[b].title;c.change=!0;break}e++}b++}}return c},checkHashName:function(a){a=a.substr(1);var b={};b.page=pageList[1].title;b.item=pageList[1].item;b.change=!1;for(var c=window.location.hash,d=1;pageList[d]&&c!=pageList[d].item;)d++;d==pageList.length&&(b.change=!0);if(""==a)b.change=!0;else if(-1!=a.indexOf("noFlash"))b.change=!0;else if(0<1*a)b=pager.checkPageName(a); else if(-1!=a.substr(0).indexOf("page"))for(d=1;pageList[d];){if(a==pageList[d].item){b.item=pageList[d].item;b.page=pageList[d].title;b.change=!0;break}d++}else for(d=1;pageList[d];){if(a==pageList[d].title){b.item=pageList[d].item;b.page=pageList[d].title;b.change=!0;break}d++}return b},checkLinkName:function(a){var b={};b.page=pageList[1].item;b.item=pageList[1].title;b.change=!1;for(var c=1;pageList[c];){if(a==pageList[c].item){b.item=pageList[c].item;b.page=pageList[c].title;b.change=!0;break}c++}return b}}, 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)}},download={isShow:!1,createList:function(a){var b=document.getElementById("downloadBox");b.hasChildNodes()&&b.removeChild(b.childNodes[0]);var c=document.createElement("UL"); b.appendChild(c);for(b=1;a[b];){var d=document.createElement("LI");"undefined"!=typeof a[b].pdfPublication&&(d.innerHTML=""+LOCALS.DOWNLOAD_PUBLICATION+" ("+a[b].pdfPublication.size+") ");"undefined"!=typeof a[b].PdfPage&&(d.innerHTML=""+LOCALS.DOWNLOAD_PAGE+" ("+a[b].PdfPage.size+") ");"undefined"!=typeof a[b].UserFile&&(d.innerHTML=""+LOCALS.DOWNLOAD_FILE+ " ("+a[b].UserFile.size+") ");"undefined"!=typeof a[b].MacPublication&&(d.innerHTML=""+LOCALS.DOWNLOAD_FILE+" ("+a[b].MacPublication.size+") ");"undefined"!=typeof a[b].WinPublication&&(d.innerHTML=""+LOCALS.DOWNLOAD_FILE+" ("+a[b].WinPublication.size+") ");c.appendChild(d);b++}},mouseOn:function(a){download.isShow?(a.getElementsByTagName("div")[0].style.opacity="0",a.getElementsByTagName("div")[0].style.top= "-100px",download.isShow=!1):(a.getElementsByTagName("div")[0].style.opacity="1",a.getElementsByTagName("div")[0].style.top="25px",download.isShow=!0)},lock:function(a,b){b.preventDefault?b.preventDefault():b.returnValue=!1;b.stopPropagation?b.stopPropagation():b.returnValue=!1;b.cancelBubble=!0}},share={setUrl:function(a,b,c){c=c||1;document.getElementById("shareBox")&&(document.getElementById("shareFB").href=decodeURIComponent("https://facebook.com/sharer.php?u="+b+"?p="+c),document.getElementById("shareTwitter").href= decodeURIComponent("https://twitter.com/home?status="+a+" "+b+"#"+c),document.getElementById("shareBlogger").href=decodeURIComponent("http://www.blogger.com/blog_this.pyra?u="+b+"#"+c+"&t="+a+"&n=publication"),document.getElementById("shareEmail").href=decodeURIComponent("mailto:?subject="+a+"&body="+b+"#"+c),document.getElementById("shareLinked").href=decodeURIComponent("http://www.linkedin.com/shareArticle?mini=true&url="+b+"#"+c+"&title="+a+"&summary="+a+"&source="+b),document.getElementById("shareMyspace").href= decodeURIComponent("http://www.myspace.com/index.cfm?fuseaction=postto&t="+a+"&c=&u="+b+"#"+c+"&l=1"),document.getElementById("shareTumblr").href=decodeURIComponent("http://www.tumblr.com/share/link?url="+b+"#"+c+"&name="+a+"&description="))}},pageInit=function(){function a(){loadPage(pager.checkHashName(window.location.hash))}INNER={};a();window.addEventListener("hashchange",a,!1);document.getElementById("zoomIn")&&document.getElementById("zoomIn").addEventListener("click",function(){zoomBook("in")}, !1);document.getElementById("zoomOut")&&document.getElementById("zoomOut").addEventListener("click",function(){zoomBook("out")},!1);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")&& document.getElementById("tocBtn").addEventListener("click",toc.action,!1);document.getElementById("navigationBoxLeftTool")&&(document.getElementById("navigationBoxLeftTool").onclick=function(a){b(a,"left")});document.getElementById("navigationBoxRightTool")&&(document.getElementById("navigationBoxRightTool").onclick=function(a){b(a,"right")});document.getElementById("thumbBtn")&&document.getElementById("thumbBtn").addEventListener("click",thumbnail.action,!1);document.getElementById("infoBtn")&&document.getElementById("infoBtn").addEventListener("click", about.action,!1);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(){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;bb.offsetWidth)for(;c.offsetWidth>b.offsetWidth&&1d;)scale+=1,d++,c.style.fontSize=scale+"px";c.offsetWidth>b.offsetWidth&&(scale-=1,c.style.fontSize=scale+"px")}d=(b.offsetHeight-c.offsetHeight)/2;d=d.toFixed();0a.offsetLeft&&(a.style.left=a.offsetLeft+thumbnail.step+"px")},scrollRight:function(){var a=document.getElementById("ThumbUl");0>=a.offsetLeft-thumbnail.step&&a.offsetWidth+a.offsetLeft+thumbnail.step>=workspace.w&&(a.style.left=a.offsetLeft-thumbnail.step+"px")}},toc={isShow:!1,step:50,action:function(){if(document.getElementById("tocBox")){var a=toc.isShow?0:200;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)";"firefox"==browser.name||"ie"==browser.name?document.getElementById("zoomBox").style.left=a+"px":document.getElementById("zoomBox").style[browser.prefix+"Transform"]= "translateX("+a+"px)";document.getElementById("thumbBtn").style[browser.prefix+"Transform"]="translateX("+a+"px)";document.getElementById("Publication").style[browser.prefix+"TransitionDuration"]="500ms";document.getElementById("Publication").style[browser.prefix+"Transform"]="translateX("+a/2+"px)";window.setTimeout(function(){document.getElementById("Publication").style[browser.prefix+"TransitionDuration"]="0ms"},500);document.getElementById("thumbLeftTool").style[browser.prefix+"Transform"]="translateX("+ a+"px)";thumbnail.resize();toc.isShow=toc.isShow?!1:!0}},create:function(a,b){function c(a,b){var e=document.createElement(a.tag);a.className&&(e.className=a.className);b.appendChild(e);"a"==a.tag&&(a.text&&(e.innerHTML=a.text),a.href&&(e.href=a.href),e.addEventListener("click",eventLock,!1));if(a.content)if(a.content[0])for(var f=0;a.content[f];)c(a.content[f],e),f++;else"ul"==a.content.tag?d(a.content,e):c(a.content,e);delete e}function d(a,b){var d=document.createElement(a.tag);a.text&&(d.textContent= a.text);d.id="tocUL";a.className&&(d.className=a.className);b.appendChild(d);for(var e=1;a.content[e];)c(a.content[e],d),e++;delete d}b.style.height=workspace.h+"px";var e=document.createElement("div");e.style.height=workspace.h-30+"px";e.id="tocContent";e.className="tocContent";b.appendChild(e);var f=document.createElement("div");f.id="tocNavTop";f.className="tocNavTop";b.appendChild(f);f.addEventListener("click",toc.scrollDown,!1);f=document.createElement("div");f.id="tocNavBottom";f.className= "tocNavBottom";b.appendChild(f);f.addEventListener("click",toc.scrollUp,!1);f=null;a[0]&&d(a[0],e);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;-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;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;a=a||window.event;a=a.target||a.srcElement;var 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;"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};