!function(a){"use strict";function b(a,b){document.getElementById(a)&&(document.getElementById(a).innerHTML=b)}function c(a,b){document.getElementById(a)&&document.getElementById(a).setAttribute("title",b)}String.format||(String.format=function(a){var b=Array.prototype.slice.call(arguments,1);return a.replace(/{(\d+)}/g,function(a,c){return"undefined"!=typeof b[c]?b[c]:a})});var d=a.LANGS[0],e=a.navigator.userLanguage||a.navigator.language;if("undefined"!=typeof e&&(e=e.split("-")[0].toLowerCase(),e!=d))for(var f=0;f<LANGS.length;f++)if(LANGS[f]==e){d=LANGS[f];break}a.localPending=function(){var d=a.document;b("popupTitle",a.PUBLICATION_NAME);var e="";switch(a.PUBLICATION_TYPE){case"book":e=LOCALS["FLIP BOOK"];break;case"catalog":e=LOCALS["DIGITAL CATALOG"];break;case"document":e=LOCALS.DOCUMENT;break;case"magazine":e=LOCALS["DIGITAL MAGAZINE"];break;case"photoalbum":e=LOCALS["PHOTO GALLERY"]}var f='<a id="flashLink" href="http://get.adobe.com/flashplayer/" title="Install Flash Player"><img src="http://www.adobe.com/macromedia/style_guide/images/160x41_Get_Flash_Player.jpg" alt="Install Flash Player" border="0" style="border:0;display:block;" width="160" height="41"></a>',g=String.format(LOCALS.SEO_INFO_TEXT,a.PUBLICATION_NAME," ");a.detector.device.pc&&(g+="<br/><br/>"+String.format(LOCALS.NOTIFICATION_TEXT,e),g+="<br/><br/>"+f),b("popupText",g),c("closeButton",LOCALS.CLOSE_BUTTON);var h=window.sessionStorage?!0:!1;a.detector.device.pc&&h&&!window.sessionStorage.getItem("infoHasBeenShown")&&!a.detector.publisher.isOn&&(d.getElementById("infoPopUp").style.display="block",d.getElementById("popUp").style.display="block",window.sessionStorage.setItem("infoHasBeenShown",!0)),b("downloadPdfLink",LOCALS.DOWNLOAD_TITLE+" PDF"),b("downloadMacLink",LOCALS.DOWNLOAD_MAC),b("downloadWindowsLink",LOCALS.DOWNLOAD_WIN),c("tocLink",LOCALS.TOC_TITLE),b("tocLabel",LOCALS.TOC_TITLE),c("prevPageArrow",LOCALS.PREV_PAGE),c("nextPageArrow",LOCALS.NEXT_PAGE),c("tocPageArrow",LOCALS.TOC_TITLE),b("pageLabel",LOCALS.PAGE),c("infoButton",LOCALS.ABOUT_TITLE),c("zoomIn",LOCALS.ZOOM_IN),c("zoomOut",LOCALS.ZOOM_OUT),c("facebookShare",LOCALS.SHARE_FACEBOOK),b("facebookShareText",LOCALS.SHARE_FACEBOOK),c("twitterShare",LOCALS.SHARE_TWITTER),b("twitterShareText",LOCALS.SHARE_TWITTER),c("linkedinShare",LOCALS.SHARE_LINKEDIN),b("linkedinShareText",LOCALS.SHARE_LINKEDIN),c("tumblrShare",LOCALS.SHARE_TUMBLR),b("tumblrShareText",LOCALS.SHARE_TUMBLR),c("googleShare",LOCALS.SHARE_GOOGLE),b("googleShareText",LOCALS.SHARE_GOOGLE),c("mailShare",LOCALS.SHARE_EMAIL),b("mailShareText",LOCALS.SHARE_EMAIL),c("vkShare",LOCALS.SHARE_VK),b("vkShareText",LOCALS.SHARE_VK),b("poweredBy",LOCALS.POWERED_BY),b("tocTitle",LOCALS.TOC_TITLE)},a.loadScript(a.STATIC_FOLDER+"/javascript/locales/"+d+"/textlang.js",function(){})}(this);