var defaultViewManager="scroll";var adjacentLoadPages=3;var adjacentFontLoadPages=8;var ie6_pngfix_shim="/images/4gen/trans_1x1.gif";var pagePadding=30;var extrasWidth=315;var fontLoaderStrategy;var FONT_LOADER_MHTML_EOT=1;var FONT_LOADER_CSS_TTF=2;var FONT_LOADER_MULTI_SVG=3;var FONT_SERV_VERSION=12;if(!window.console){window.console={log:function(){}}}var DocumentManager=(function(){var r={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",decode:function(H){var F="";var O,M,K;var N,L,J,I;var G=0;H=H.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(G<H.length){N=this._keyStr.indexOf(H.charAt(G++));L=this._keyStr.indexOf(H.charAt(G++));J=this._keyStr.indexOf(H.charAt(G++));I=this._keyStr.indexOf(H.charAt(G++));O=(N<<2)|(L>>4);M=((L&15)<<4)|(J>>2);K=((J&3)<<6)|I;F=F+String.fromCharCode(O);if(J!=64){F=F+String.fromCharCode(M)}if(I!=64){F=F+String.fromCharCode(K)}}F=r._utf8_decode(F);return F},_utf8_decode:function(F){var G="";var I=0;var K=0;var J=0;var H=0;while(I<F.length){K=F.charCodeAt(I);if(K<128){G+=String.fromCharCode(K);I++}else{if((K>191)&&(K<224)){H=F.charCodeAt(I+1);G+=String.fromCharCode(((K&31)<<6)|(H&63));I+=2}else{H=F.charCodeAt(I+1);c3=F.charCodeAt(I+2);G+=String.fromCharCode(((K&15)<<12)|((H&63)<<6)|(c3&63));I+=3}}}return G}};function j(F){}j.prototype.initEventHelper=function(){this.eventListenerEnabled=true;this.eventListeners={};for(var F=0;F<this.possibleEvents.length;F++){this.eventListeners[this.possibleEvents[F]]={}}};j.prototype.addEvent=function(F,G){if(!this.eventListeners[F]){throw F+" is not a valid type of event"}this.eventListeners[F][G]=G};j.prototype.removeEvent=function(F,G){delete this.eventListeners[F][G]};j.prototype.fireEvent=function(I,J){if(!this.eventListenerEnabled){return}var F=this.eventListeners[I];var G=[];if(arguments.length>1){G[arguments.length-2]=null;for(var K=1;K<arguments.length;K++){G[K-1]=arguments[K]}}var H=this;function L(N){N.apply(H,G)}for(var M in F){if(F.hasOwnProperty(M)){L(F[M])}}};function p(G,F){G.prototype.addEvent=j.prototype.addEvent;G.prototype.removeEvent=j.prototype.removeEvent;G.prototype.fireEvent=j.prototype.fireEvent;G.prototype.initEventHelper=j.prototype.initEventHelper;G.prototype.possibleEvents=F}var k="font_preload_bed";var d="\uF8FF";var E=function(){return !document.styleSheets[0].insertRule};var i=(function(){var F=navigator.userAgent.toLowerCase();return F.search("android 2.2")>-1})();var e=(function(){var F=navigator.userAgent.toLowerCase();return(F.search("mobile")>-1&&F.search("safari")>-1&&!i)})();var z=navigator.userAgent.indexOf("AppleWebKit/")>-1;fontLoaderStrategy=(function(){if(E()){return FONT_LOADER_MHTML_EOT}else{if(e){return FONT_LOADER_MULTI_SVG}else{return FONT_LOADER_CSS_TTF}}})();if(E()){adjacentFontLoadPages=5;adjacentLoadPages=2}if(i){adjacentFontLoadPages=1;adjacentLoadPages=1}function D(K,I,G,J,H,F){this.id=K;this.shortstyle=I;this.family=G;this.fallback=J;this.weight=H;this.style=F}D.prototype.eotCssRule=function(F){var G="src: url(mhtml:"+F+"!"+this.id+".eot); font-family: "+this.family+"; font-weight: "+this.weight+"; font-style: "+this.style;return"@font-face {"+G+"}"};D.prototype.ttfCssRule=function(F){var G="src: url("+F+this.family+".ttf) format('truetype'); font-family: "+this.family+"; font-weight: "+this.weight+"; font-style: "+this.style;return"@font-face {"+G+"}"};D.prototype.svgCssRule=function(F){var G="src: url("+F+"#"+this.family+") format('svg'); font-family: "+this.family+"; font-weight: "+this.weight+"; font-style: "+this.style;return"@font-face {"+G+"}"};D.prototype.createPreloadElem=function(){return"<span style='font-family: "+this.family+"'>scribd.</span> "};function A(F){this.fonts=[];this.docManager=F;this._cssRuleQueue=[];this._fontLoadQueue=[]}A.prototype._makeNewStyleBlock=function(){var G=document.createElement("style");if(!window.createPopup){G.appendChild(document.createTextNode(""))}var F=document.getElementsByTagName("head")[0];F.appendChild(G);return G};A.prototype._insertCssRule=function(F){this._cssRuleQueue.push(F)};A.prototype._flushCssRuleQueue=function(H){if(this._cssRuleQueue.length>0){var G=(H&&document.getElementById(H))||this._makeNewStyleBlock();var F=this._cssRuleQueue.join("\n");if(E()){G.styleSheet.cssText=F}else{if(!window.createPopup){G.appendChild(document.createTextNode(F))}else{G.innerHTML=F}}this._cssRuleQueue=[]}};A.prototype.getFontAggregatorHostForFonts=function(I){var H=[];for(var G=0;G<I.length;G++){H.push(I[G].shortstyle+I[G].id)}H.sort();var F=this.docManager.nextFontAggregatorHost()+"/"+this.docManager.assetPrefix+"/"+H.join(",")+"/"+FONT_SERV_VERSION+"/";switch(fontLoaderStrategy){case FONT_LOADER_MHTML_EOT:F+="eots";break;case FONT_LOADER_CSS_TTF:if(!i){F+="ttfs.css"}break;case FONT_LOADER_MULTI_SVG:F+="fonts.svg";break}return F};A.prototype._addTTFRules=function(I,G){for(var H=0;H<I.length;H++){var F=I[H];this._insertCssRule(F.ttfCssRule(G))}};A.prototype._addSVGRules=function(I,G){for(var H=0;H<I.length;H++){var F=I[H];this._insertCssRule(F.svgCssRule(G))}};A.prototype._addEOTRules=function(I,G){for(var H=0;H<I.length;H++){var F=I[H];this._insertCssRule(F.eotCssRule(G))}};A.prototype._nextPreloadId=function(){if(!this._preloadId){this._preloadId=0}var F="preload_bed"+this._preloadId;this._preloadId+=1;return F};A.prototype._addCSSWebkit=function(M,G){var P=this;var J=document.createElement("iframe");function Q(){var R=document.createElement("div");var S=P._nextPreloadId();R.innerHTML=N;var T=document.getElementById(k);var U=window.setInterval(function(){if(J.contentDocument.styleSheets.length>0){window.clearInterval(U);J.contentDocument.body.getBoundingClientRect();T.appendChild(R);window.setTimeout(function(){J.contentDocument.body.getBoundingClientRect();P._addCSSLink(G)},500)}},0)}var O=this._nextPreloadId();J.id=O;var N="";for(var I=0;I<M.length;I++){var F=M[I];N+=F.createPreloadElem()}var H=this._makeNewStyleBlock();J.addEventListener("load",function(){Q()},false);J.style.display="none";document.body.appendChild(J);J.contentDocument.body.innerHTML=N;var L=J.contentDocument.createElement("link");L.href=G;L.rel="stylesheet";L.type="text/css";L.media="screen";var K=J.contentDocument.getElementsByTagName("head")[0];K.appendChild(L)};A.prototype._addCSSLink=function(F){var H=document.createElement("link");H.href=F;H.rel="stylesheet";H.type="text/css";var G=document.getElementsByTagName("head")[0];G.appendChild(H)};A.prototype.flushFontQueue=function(){if(this._fontLoadQueue.length===0){return}if(this.docManager.displayType=="rasterize"){return}var F=this._fontLoadQueue;this._fontLoadQueue=[];var G=this.getFontAggregatorHostForFonts(F);switch(fontLoaderStrategy){case FONT_LOADER_MHTML_EOT:this._addEOTRules(F,G);break;case FONT_LOADER_CSS_TTF:if(i){this._addTTFRules(F,G)}else{if(z){this._addCSSWebkit(F,G)}else{this._addCSSLink(G)}}break;case FONT_LOADER_MULTI_SVG:this._addSVGRules(F,G);break}this._flushCssRuleQueue()};A.prototype.addFontToQueue=function(G){var F=this.fonts[G];if(!F._loadQueued){F._loadQueued=true;this._fontLoadQueue.push(F)}};A.prototype.addFont=function(L,J,H,K,I,G){var F=new D(L,J,H,K,I,G);this.fonts[L]=F};A.prototype.setNumFonts=function(F){for(var G=0;G<F;G++){this.fonts[G]=new D(G,"","ff"+G,"sans-serif","normal","normal")}};A.prototype._initHidersCSS=function(){var F=[];for(var G=0;G<this.fonts.length;G++){F.push("."+this.fonts[G].family)}this._insertCssRule(F.join(", ")+" {display: none;}\n")};A.prototype._initFamilyCSS=function(){for(var F=0;F<this.fonts.length;F++){var H=this.fonts[F].family;var J=this.fonts[F].fallback;var I=this.fonts[F].weight;var G=this.fonts[F].style;if(E()){this._insertCssRule("."+H+" {font-family: "+H+";\n}")}else{this._insertCssRule("."+H+" {font-family: "+H+", "+J+"; font-weight: "+I+"; font-style: "+G+";\n}")}}};A.prototype.initStyles=function(F){if(this.docManager.displayType=="rasterize"){return}this._initFamilyCSS();switch(fontLoaderStrategy){case FONT_LOADER_MHTML_EOT:break;case FONT_LOADER_CSS_TTF:if(!i){this._initHidersCSS()}break;case FONT_LOADER_MULTI_SVG:break}this._flushCssRuleQueue("preload_styler")};A.prototype.setupTestElements=function(){if(fontLoaderStrategy!=FONT_LOADER_CSS_TTF||z||this.docManager.displayType=="rasterize"){return}var I="";for(var H=0;H<this.fonts.length;H++){var F=this.fonts[H];I+=F.createPreloadElem()}var G=document.getElementById(k);G.innerHTML=I;document.body.appendChild(G);this._insertCssRule("#"+k+" span {display: block; visibility: hidden}");this._flushCssRuleQueue()};function a(F,G){this.pages=[];this.loaded=false;this.fonts={};this.numFonts=0;this.fontLoader=G;this.groupNum=F||0}a.prototype.addPage=function(H){for(var G=0;G<H.fonts.length;G++){var F=H.fonts[G];if(this.fonts[F]===undefined){this.fonts[F]=true;this.numFonts+=1}}this.pages.push(H)};a.prototype.isFull=function(){var H=this.pages.length;var G=this.groupNum;var F=this.numFonts;if(fontLoaderStrategy==FONT_LOADER_MHTML_EOT){return(this.hasLoaded||F>50||(F>=20&&((G===0&&H>=adjacentFontLoadPages+3)||(H>=15))))}else{if(fontLoaderStrategy==FONT_LOADER_MULTI_SVG||i){return(this.hasLoaded||(F>=5&&H>=adjacentFontLoadPages))}else{return(this.hasLoaded||F>100||(F>=20&&((G===0&&H>=adjacentFontLoadPages+3)||(H>=100))))}}};a.prototype.load=function(G){if(this.hasLoaded){return}this.hasLoaded=true;var F=this;function H(){for(var I in F.fonts){if(F.fonts.hasOwnProperty(I)){F.fontLoader.addFontToQueue(I)}}F.fontLoader.flushFontQueue()}if(G){window.setTimeout(function(){H()},G)}else{H()}};a.prototype.newNextGroup=function(){return new a(this.groupNum+1,this.fontLoader)};var s=1;var C=2;var b=3;var B=4;var u=(function(){if(document.documentElement.style.WebkitTransform!==undefined){return s}else{if(document.documentElement.style.MozTransform!==undefined){return C}else{if(document.documentElement.style.OTransform!==undefined){return B}else{return b}}}})();function o(I){for(var G in this._defaultParams){if(this._defaultParams.hasOwnProperty(G)){this[G]=I[G]||this._defaultParams[G]}}for(var F=0;F<this._requiredParams.length;F++){var H=this._requiredParams[F];if(!this[H]){throw"Missing required Page param: "+H}}if(!this.contentUrl&&!this.innerPageElem){throw"Must initialize a page with either a contentUrl or innerPageElem element"}if(this.containerElem.boundToPageObj===true){throw"Container Elem is already bound to a page.  We shouldn't get here"}this.containerElem.boundToPageObj=true;this._targetWidth=null;this._innerPageVisible=!!this.innerPageElem;this._imagesTurnedOn=false;this.boundingRect=null;this.isVisible=false;this.displayDirty=true;this.displayOn=null;this.loadHasStarted=!!this.innerPageElem}o.prototype._defaultParams={containerElem:null,innerPageElem:null,contentUrl:null,origWidth:null,origHeight:null,fonts:null,docManager:null,pageNum:null};o.prototype._requiredParams=["origWidth","origHeight","fonts","docManager","containerElem","pageNum"];o.prototype._updateBoundingRect=function(){var K,J,I,G;if(this.containerElem.getBoundingClientRect){var H=this.containerElem.getBoundingClientRect();var F=this.docManager.viewportManager.viewRect;J=H.left+F.left;K=H.top+F.top;I=H.right-H.left;G=H.bottom-H.top;this.boundingRect={left:J,top:K,bottom:K+G,right:J+I,width:I,height:G}}else{K=this.containerElem.offsetTop;J=this.containerElem.offsetLeft;I=this.containerElem.offsetWidth;G=this.containerElem.offsetHeight;this.boundingRect={left:J,top:K,bottom:K+G,right:J+I,width:I,height:G}}};o.prototype._setContainerContents=function(H){var G=/<noscript *><img[^<>]*\/><\/noscript *>/g;this.containerElem.innerHTML=H.replace(G,"")+this.containerElem.innerHTML;var F=this;this.innerPageElem=this.containerElem.children[0];this.turnOnLinks();this.turnOnImages();this.fixSVGFonts();this.displayDirty=true;if(this.displayOn){this.display()}else{this.hide()}};o.prototype.fixSVGFonts=function(){if(this._svgFontsFixed){throw"Already fixed the svg fonts"}if(!this.innerPageElem){return}if(e){var G=function(K){if(K.nodeType==document.TEXT_NODE){var H=K.textContent.search(/[  \n][^ \n ]/);if(H>=0){G(K.splitText(H+1))}}else{var J=K.childNodes;for(var I=0;I<J.length;I++){G(J[I])}}};var F=function(J){var I=J.childNodes;for(var H=0;H<I.length;H++){var L=I[H];if(L.nodeType==document.ELEMENT_NODE){F(L)}else{var K=I[H+1];if(K&&K.nodeName=="#text"){J.insertBefore(document.createElement("span"),K)}}}};G(this.innerPageElem);F(this.innerPageElem)}this._svgFontsFixed=true};o.prototype.imagePageContent=function(F){str="<img src='"+F+"'></img>";return str};o.prototype.load=function(){this.currentlyLoading=true;this.loadHasStarted=true;if(this.innerPageElem){throw"We already have loaded this page, but it looks like you called loadPage again"}this.loadFonts();var H="page"+this.pageNum+"_callback";if(window[H]){throw"Something went wrong. We're requesting a page we already had a callback for"}if(this.docManager.displayType=="rasterize"){delete this.currentlyLoading;this._setContainerContents(this.imagePageContent(this.contentUrl));return}var G=document.createElement("script");var F=this;window[H]=function(J){document.body.removeChild(G);var K=J[0];delete F.currentlyLoading;F._setContainerContents(K);F.docManager.fireEvent("pageLoaded",F.containerElem);try{delete window[H]}catch(I){window[H]=undefined}};G.src=this.contentUrl;G.type="text/javascript";document.body.appendChild(G)};o.prototype.remove=function(){if(this.innerPageElem){var F=this.innerPageElem.parentNode;F.removeChild(this.innerPageElem);delete this.innerPageElem;delete this.currentLoading;delete this.loadHasStarted;this._linksTurnedOn=false;this._imagesTurnedOn=false;this._svgFontsFixed=false}};o.prototype.display=function(G,F){if(this.displayOn&&!this.displayDirty){return}this.displayOn=true;if(this.currentlyLoading){return}else{if(!this.innerPageElem){if(this.loadHasStarted){return}else{if(G){this.load();return}else{return}}}}this.displayDirty=false;if(!F){if(!this._linksTurnedOn){this.turnOnLinks()}if(!this._imagesTurnedOn){this.turnOnImages()}if(!this._svgFontsFixed){this.fixSVGFonts()}}this.loadFonts();if(this._innerPageVisible){return}this.containerElem.className=this.containerElem.className.replace(/placeholder|not_visible/g,"");this._innerPageVisible=true;if(!F){this._fitContentsToWidth();this.innerPageElem.style.display="block"}};o.prototype.hide=function(){if(!this.displayOn&&!this.displayDirty){return}this.displayOn=false;if(!this.innerPageElem){return}this.displayDirty=false;this.containerElem.className=this.containerElem.className+" not_visible";this._innerPageVisible=false;this.innerPageElem.style.display="none"};o.prototype.setLoadFontGroup=function(F){F.addPage(this);this.loadFontGroup=F};o.prototype.loadFonts=function(){this.loadFontGroup.load()};var q=!!(document.all&&(/msie 6./i).test(navigator.appVersion)&&window.ActiveXObject);o.prototype._setZoomScale=function(H){var G=this.innerPageElem;switch(u){case s:G.style.WebkitTransform="scale("+H+")";G.style.WebkitTransformOrigin="top left";break;case C:G.style.MozTransform="scale("+H+")";G.style.MozTransformOrigin="top left";break;case B:G.style.OTransform="scale("+H+")";G.style.OTransformOrigin="top left";break;case b:if(!G.originalZoom){G.originalZoom=G.currentStyle.zoom=="normal"?1:parseFloat(G.currentStyle.zoom)/100;if(q){G.originalZoom*=1.35}}G.style.zoom=(G.originalZoom*H*100)+"%";if(q){var F=this.innerPageElem;setTimeout(function(){F.style.marginLeft=F.style.marginLeft===""?0:""},500)}break;default:throw"Unknown scale method "+u}};o.prototype._fitContentsToWidth=function(){if(this._targetWidth&&this.innerPageElem&&this._innerPageVisible){var F=this._targetWidth/this.origWidth;this._setZoomScale(F);this._targetWidth=null}};o.prototype.setWidth=function(G){var F=Math.ceil((G/this.origWidth)*this.origHeight);this.containerElem.style.width=G+"px";this.containerElem.style.height=F+"px";this._targetWidth=G;this._fitContentsToWidth()};o.prototype.setBounds=function(G,F){if(this.origWidth/this.origHeight>G/F){F=Math.ceil((G/this.origWidth)*this.origHeight)}else{G=Math.ceil((F/this.origHeight)*this.origWidth)}this.containerElem.style.width=G+"px";this.containerElem.style.height=F+"px";this._targetWidth=G;this._fitContentsToWidth()};o.prototype.turnOnImages=function(){if(!this.innerPageElem){throw"Can't turn on images for a page that's not loaded"}if(this._imagesTurnedOn){throw"Images have already been turned on for this document"}this._imagesTurnedOn=true;var H=this.innerPageElem.getElementsByTagName("img");for(var G=0;G<H.length;G++){var F=H[G];if(F.className.toLowerCase().search("absimg")>-1){if(!F.src){var I=this.docManager.subImageSrc(F.getAttribute("orig"));if(this.docManager.enablePNGHack){F.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+I+"', sizingMethod='scale')";F.src=ie6_pngfix_shim}else{F.src=I}F.removeAttribute("orig");F.style.display="block"}}}};o.prototype.turnOnLinks=function(){if(!this.innerPageElem){throw"Can't turn on links for a page that's not loaded"}if(this._linksTurnedOn){throw"Links have already been turned on for this document"}this._linksTurnedOn=true;var I=this.innerPageElem.getElementsByTagName("a");for(var H=0;H<I.length;H++){var F=I[H];if(F.className.toLowerCase().search("ll")>-1){if(!F.href){var J=F.getAttribute("orig");if(J){var G=r.decode(J).replace(/^j[\W]*a[\W]*v[\W]*a[\W]*s[\W]*c[\W]*r[\W]*i[\W]*p[\W]*t[\W]*:|^f[\W]*i[\W]*l[\W]*e[\W]*:/ig,"");if(G.search(/^page/)>-1){F.href="#outer_page_"+G.substring(4)}else{if(G.search(/^(http|ftp)/)<0){G="http://"+G}F.target="_blank";F.href=G;F.rel="nofollow"}}}}}};function y(){this.initEventHelper();this.viewRect=null;this.enabled=false;var F=this;this._scrollCallback=function(){F._eventHandler("scroll")};this._resizeCallback=function(G){F._eventHandler("resize")}}p(y,["vertical","horizontal","either","resize"]);y.prototype._makeViewRect=function(){var L=document.documentElement;var K=window.scrollY||window.pageYOffset||L.scrollTop;var J=window.scrollX||window.pageXOffset||L.scrollLeft;var I=window.innerWidth||L.clientWidth;var F=window.innerHeight||L.clientHeight;var H=J+I;var G=K+F;return{top:K,left:J,right:H,bottom:G,width:I,height:F}};y.prototype._updateViewRect=function(){var H=this.viewRect;this.viewRect=this._makeViewRect();var G=!H||H.left!=this.viewRect.left||H.width!=this.viewRect.width;var F=!H||H.top!=this.viewRect.top||H.height!=this.viewRect.height;return{xChanged:G,yChanged:F}};y.prototype._eventHandler=function(F){var G=this._updateViewRect();if((F=="resize"||F=="both")&&(G.xChanged||G.yChanged)){this.fireEvent("resize",this.viewRect)}if(G.xChanged||G.yChanged){this.fireEvent("either",this.viewRect)}if(G.xChanged){this.fireEvent("horizontal",this.viewRect)}if(G.yChanged){this.fireEvent("vertical",this.viewRect)}};y.prototype.enable=function(){if(this.enabled){throw"ViewportManager has already been enabled"}this.enabled=true;this._eventHandler("both");if(window.addEventListener){window.addEventListener("resize",this._resizeCallback,false);window.document.addEventListener("scroll",this._scrollCallback,false)}else{if(window.attachEvent){window.attachEvent("onresize",this._resizeCallback);window.attachEvent("onscroll",this._scrollCallback)}}};y.prototype.disable=function(){if(!this.enabled){throw"ViewportManager is already been enabled"}this.enabled=false;if(window.removeEventListener){window.removeEventListener("resize",this._resizeCallback,false);window.document.removeEventListener("scroll",this._scrollCallback,false)}else{if(window.detatchEvent){window.detatchEvent("onresize",this._resizeCallback);window.detatchEvent("onscroll",this._scrollCallback)}}};function t(G,H,I){this.initEventHelper();this.viewManager=G;this.page=H;this.oldPage=I==H?null:I;this.pretty=false;var F=this;this._animateCssForwardCallback=function(){F.oldPage.containerElem.style.display="none";F.oldPage.hide();$(F.oldPage.containerElem).removeClassName("pageflipForward");F.oldPage.containerElem.removeEventListener("webkitAnimationEnd",F._animateCssForwardCallback);F.fireEvent("afterAnimation","css");F.page._updateBoundingRect();F.oldPage._updateBoundingRect()};this._animateCssBackwardCallback=function(){F.oldPage.containerElem.style.display="none";F.oldPage.hide();$(F.page.containerElem).removeClassName("pageflipBackward");F.page.containerElem.removeEventListener("webkitAnimationEnd",F._animateCssBackwardCallback);F.fireEvent("afterAnimation","css");F.page._updateBoundingRect();F.oldPage._updateBoundingRect()}}p(t,["afterDisplay","beforeAnimation","afterAnimation"]);var f=1;var m=2;var h=3;t.prototype._detectAnimationType=function(){var F=this.page.containerElem.style;if(F.WebkitAnimationName!==undefined){return f}else{if(F.WebkitTransform!==undefined||F.MozTransform!==undefined||F.transform!==undefined){return m}else{return h}}};t.prototype._cssForward=function(){this.oldPage.isVisible=false;this.oldPage.containerElem.addEventListener("webkitAnimationEnd",this._animateCssForwardCallback);this.fireEvent("beforeAnimation","css");$(this.oldPage.containerElem).addClassName("pageflipForward")};t.prototype._cssBackward=function(){this.page.isVisible=true;this.page.containerElem.addEventListener("webkitAnimationEnd",this._animateCssBackwardCallback);this.fireEvent("beforeAnimation","css");$(this.page.containerElem).addClassName("pageflipBackward")};t.prototype._animateCss=function(){this.page.containerElem.style.display="";if(this.oldPage.pageNum<this.page.pageNum){this._cssForward()}else{this._cssBackward()}};t.prototype._jsForward=function(){var K=null;var J=this.oldPage.containerElem;var H=this;var I;var G;$(J).addClassName("basicPageflipForward");this.page.containerElem.style.display="";this.fireEvent("beforeAnimation","js");function F(){var N=new Date().valueOf();var L=(N-I)/(G-I);var M="scaleX("+(1-L/2*2)+") skewY("+-Math.sin(((1-L/2)*Math.PI))/5+"rad)";J.style.WebkitTransform=M;J.style.MozTransform=M;if(L>1){window.clearInterval(K);$(J).removeClassName("basicPageflipForward");J.style.display="none";J.style.WebkitTransform="";J.style.MozTransform="";H.fireEvent("afterAnimation","js");return}}I=new Date().valueOf();G=I+600;K=window.setInterval(F,1)};t.prototype._jsBackward=function(){var L=null;var J=this.page.containerElem;var K=this.oldPage.containerElem;var H=this;var I;var G;this.fireEvent("beforeAnimation","js");$(J).addClassName("basicPageflipBackward");function F(){var O=new Date().valueOf();var M=(O-I)/(G-I);var N="scaleX("+(M/2*2)+") skewY("+-Math.sin(((0.5+M/2)*Math.PI))/5+"rad)";J.style.WebkitTransform=N;J.style.MozTransform=N;J.style.display="";if(M>1){window.clearInterval(L);$(J).removeClassName("basicPageflipBackward");J.style.WebkitTransform="";J.style.MozTransform="";K.style.display="none";H.fireEvent("afterAnimation","js");return}}I=new Date().valueOf();G=I+600;L=window.setInterval(F,1)};t.prototype._animateJs=function(){if(this.oldPage.pageNum<this.page.pageNum){this._jsForward()}else{this._jsBackward()}};t.prototype._basic=function(){this.page.containerElem.style.display="";if(this.oldPage){this.oldPage.isVisible=false;this.oldPage.containerElem.style.display="none";this.oldPage.hide()}};t.prototype.width=function(){return this.viewManager._zoomedPageWidth()};t.prototype.go=function(){if(!(this.pretty&&this.oldPage)){this._basic()}else{switch(this._detectAnimationType()){case f:this._animateCss();break;case m:this._animateJs();break;case h:this._basic()}}this.page.display(true);this.page.isVisible=true;if(this.oldPage){this.oldPage._updateBoundingRect()}this.page._updateBoundingRect();this.fireEvent("afterDisplay")};function x(){}x.prototype.name=function(){return this._name};x.prototype.register=function(G,F){if(this.registered){throw"This ViewManager is already registered"}this.registered=true;this.documentManager=G;this.viewportManager=F;this._currentPageWidth=defaultViewWidth;this._currentZoomMultiplier=1;this._updatePageWidths();var H=this.documentManager.firstVisiblePage;this._register(G,F);if(H){this.documentManager.gotoPage(H.pageNum,{pretty:false})}};x.prototype._zoomedPageWidth=function(){return this._currentPageWidth*this._currentZoomMultiplier};x.prototype._updatePageWidths=function(){this.documentManager.setPageWidths(this._zoomedPageWidth())};x.prototype.isTopPageInView=function(){return true};x.prototype._register=function(G,F){};x.prototype.unregister=function(){if(!this.registered){throw"This ViewManager is already unregistered"}if(this.isFullscreen){this.exitFullscreen()}this._checkBodyWidth();this._unregister();this.registered=false;delete this.documentManager;delete this.viewportManager};x.prototype._unregister=function(){};x.prototype.gotoPage=function(G,F){if(!this.registered){throw"ViewManager must be registerd to call gotoPage"}this._gotoPage(G,F)};x.prototype._gotoPage=function(G,F){};x.prototype._fireHideExtras=function(){this.documentManager._fireHideExtras();this._extrasHidden=true};x.prototype._fireShowExtras=function(){this.documentManager._fireShowExtras();this._extrasHidden=false};x.prototype.enterFullscreen=function(){if(this.isFullscreen){throw"Fullscreen is already set"}this._checkBodyWidth();this.viewportManager.addEvent("resize",this._fullscreenResizedCallback);this._fireHideExtras();this.resetZoom();this._enterFullscreen();this._fullscreenResized(this.viewportManager.viewRect);this._currentPageWidth=this.viewportManager.viewRect.width;this.isFullscreen=true;var F=this.documentManager.firstVisiblePage;if(F){this.documentManager.gotoPage(F.pageNum,{pretty:false})}this.documentManager._fireEnteredFullscreen()};x.prototype.exitFullscreen=function(){if(!this.isFullscreen){throw"Fullscreen is not set"}this.viewportManager.removeEvent("resize",this._fullscreenResizedCallback);this._fireShowExtras();this.resetZoom();this._exitFullscreen();this.isFullscreen=false;var F=this.documentManager.firstVisiblePage;if(F){this.documentManager.gotoPage(F.pageNum,{pretty:false})}this.documentManager._fireExitedFullscreen()};x.prototype._viewBarWidth=function(){if(this._extrasHidden){return 0}else{return this.documentManager.options.extrasWidth}};x.prototype._enterFullscreen=function(){};x.prototype._exitFullscreen=function(){};x.prototype._fullscreenResized=function(F){};x.prototype._scrollWithZoom=function(F,G){window.scrollTo(0,F.top*G)};x.prototype.zoom=function(G){var F=this.viewportManager.viewRect;this._currentZoomMultiplier*=G;this._checkBodyWidth();this._updatePageWidths();this.documentManager.setIsScrolling(true);this._scrollWithZoom(F,G);this._zoomed();this.documentManager.setIsScrolling(false);this.documentManager._fireZoomed(G)};x.prototype._zoomed=function(){};x.prototype.resetZoom=function(){this._currentZoomMultiplier=1;this._checkBodyWidth();this._updatePageWidths();this._zoomed()};x.prototype._checkBodyWidth=function(F){var H=document.documentElement.clientWidth;var G=this._zoomedPageWidth()+this._viewBarWidth();globalHeader=document.getElementById("global_header");if(G>H){document.body.style.width=G+"px";if(globalHeader){globalHeader.style.width=H+"px"}}else{document.body.style.width="100%";if(globalHeader){globalHeader.style.width="100%"}}};function l(){this._name="book";this.currentPageId=null;var F=this;this._fullscreenResizedCallback=function(G){F._fullscreenResized(G)}}l.prototype=new x();l.prototype._register=function(G,F){this._prepareDisplay()};l.prototype._unregister=function(){for(var F in this.documentManager.pages){if(this.documentManager.pages.hasOwnProperty(F)){var G=this.documentManager.pages[F];G.containerElem.style.display=""}}};l.prototype._prepareDisplay=function(){for(var F in this.documentManager.pages){if(this.documentManager.pages.hasOwnProperty(F)){var G=this.documentManager.pages[F];G.hide();G.containerElem.style.zIndex=this.documentManager.maximumPageNumber()-G.pageNum;G.containerElem.style.display="none"}}this.documentManager.setPageMissingModulesVisible(false);this.documentManager.gotoPage(this.documentManager.currentPageNum()||1)};l.prototype._zoomed=function(){var F=this.documentManager.pages[this.currentPageId];this.documentManager._firePageFlip(this._zoomedPageWidth(),F.boundingRect.height)};l.prototype._gotoPage=function(F,G){if(!this.documentManager.pages.hasOwnProperty(F)){return}var J=this.currentPageId?this.documentManager.pages[this.currentPageId]:null;var I=this.documentManager.pages[F];var H=new t(this,I,J);H.pretty=G.pretty;this.documentManager._preparePageFlip(H);H.go();this.currentPageId=F;this.documentManager.visiblePagesChanged()};l.prototype._setWidth=function(F){this._currentPageWidth=F;this.documentManager.setPageWidths(F)};l.prototype._fullscreenResized=function(F){this._setWidth(F.width-pagePadding)};l.prototype._enterFullscreen=function(){this._previousPageWidth=this._currentPageWidth||defaultViewWidth;var F=new Effect.ScrollTo(this.documentManager.pages[this.currentPageId].containerElem,{duration:0.3})};l.prototype._exitFullscreen=function(){this._setWidth(defaultViewWidth);this._checkBodyWidth()};function w(){this._name="slideshow";this.currentPageId=null;var F=this;this._fullscreenResizedCallback=function(G){F._fullscreenResized(G)}}w.prototype=new x();w.prototype._register=function(G,F){this._prepareDisplay()};w.prototype._unregister=function(){};w.prototype._prepareDisplay=function(){for(var F in this.documentManager.pages){if(this.documentManager.pages.hasOwnProperty(F)){var G=this.documentManager.pages[F];G.containerElem.style.display="none";G.hide()}}this.documentManager.setPageMissingModulesVisible(false);this.documentManager.gotoPage(this.documentManager.currentPageNum()||1)};w.prototype._setPageBounds=function(F){var G=this.documentManager.pages[this.currentPageId];if(G){G.setBounds(F.width,F.height)}};w.prototype._gotoPage=function(F,G){if(!this.documentManager.pages.hasOwnProperty(F)){return}var H;if(this.currentPageId){H=this.documentManager.pages[this.currentPageId];if(H){H.isVisible=false;H.containerElem.style.display="none";H.hide()}}this.currentPageId=F;H=this.documentManager.pages[F];if(this.isFullscreen){this._setPageBounds(this.viewportManager.viewRect)}H.isVisible=true;H.display(true);H.containerElem.style.display="";this.documentManager.visiblePagesChanged()};w.prototype._setWidth=function(F){this._currentPageWidth=F;this.documentManager.setPageWidths(F)};w.prototype._fullscreenResized=function(F){this._setPageBounds(F)};w.prototype._enterFullscreen=function(){this._previousPageWidth=this._currentPageWidth||defaultViewWidth;var F=new Effect.ScrollTo(this.documentManager.pages[this.currentPageId].containerElem,{duration:0.3})};w.prototype._exitFullscreen=function(){this._setWidth(defaultViewWidth);this._checkBodyWidth()};function c(){this._name="scroll";var F=this;this._verticalPositionChangeCallback=function(){F._verticalPositionChanged()};this._fullscreenResizedCallback=function(){F._fullscreenResized()}}c.prototype=new x();c.prototype._updateInViewport=function(H){var F=this.viewportManager.viewRect;var G=H.boundingRect;var I=H.isVisible;if(!F||!G){H.isVisible=false}else{H.isVisible=(G.left<F.right&&G.right>F.left&&G.top<F.bottom&&G.bottom>F.top)}this.adjacentVisiblePages=2;return I!=H.isVisible};c.prototype._verticalPositionChanged=function(){var G=false;for(var I in this.pages){if(this.pages.hasOwnProperty(I)){var H=this.pages[I];var F=this._updateInViewport(H);G=G||F}}if(G){this.documentManager.visiblePagesChanged()}else{this.documentManager.scheduleLogPageView()}this._updateDisplayOnPages()};c.prototype._updateDisplayOnPages=function(){if(this.documentManager.firstVisiblePage&&this.documentManager.lastVisiblePage){var I=this.documentManager.firstVisiblePage.pageNum-this.adjacentVisiblePages;var H=this.documentManager.lastVisiblePage.pageNum+this.adjacentVisiblePages;for(var G in this.pages){if(this.pages.hasOwnProperty(G)){var F=this.pages[G];if(F){if(F.pageNum>=I&&F.pageNum<=H){F.display()}else{F.hide();this.documentManager.fireEvent("pageHide",F)}}}}}};c.prototype._zoomed=function(){this._verticalPositionChanged()};c.prototype._register=function(I,G){this.pages=I.pages;this.viewportManager.addEvent("vertical",this._verticalPositionChangeCallback);for(var F in this.pages){if(this.pages.hasOwnProperty(F)){var H=this.documentManager.pages[F];H.containerElem.style.display=""}}this.documentManager.setPageMissingModulesVisible(true);this.documentManager._updatePageBoundingRects();this._verticalPositionChanged()};c.prototype.isTopPageInView=function(){if(this._isScrolling){return true}var F=this.documentManager.firstVisiblePage;if(F){if(this.documentManager._expectedFirstPageNum>F.pageNum){return true}return F.boundingRect.top+5>=this.viewportManager.viewRect.top}else{return true}};c.prototype._unregister=function(){if(this._isScrolling){this._scrollEffect.cancel();delete this._isScrolling;delete this._scrollEffect;this.documentManager.setIsScrolling(false)}this.viewportManager.removeEvent("vertical",this._verticalPositionChangeCallback);delete this.pages};c.prototype._gotoPage=function(G,I){if(!this.pages.hasOwnProperty(G)){return}var K=this.documentManager.pages[G];if(I.pretty){var H=0;if(this._isScrolling){var J=this._scrollEffect.currentFrame/this._scrollEffect.totalFrames*2;H=J<0.5?J:1-J;this._scrollEffect.cancel()}this.documentManager.setIsScrolling(true);var F=this;this._scrollEffect=new Effect.ScrollTo(K.containerElem,{duration:0.4,fps:100,startOn:H,afterFinish:function(){F.documentManager.setIsScrolling(false);F.documentManager.visiblePagesChanged();delete F._isScrolling;delete F._scrollEffect}})}else{if(this._isScrolling){this._scrollEffect.cancel()}this.documentManager.setIsScrolling(true);K._updateBoundingRect();scrollTo(K.boundingRect.left,K.boundingRect.top);this.documentManager.setIsScrolling(false);this.documentManager.visiblePagesChanged()}return K.pageNum};c.prototype._gotoNextPage=function(){if(!this.documentManager.firstVisiblePage){return}this.documentManager.gotoPage(this.documentManager.firstVisiblePage.pageNum+1,{direction:1})};c.prototype._gotoPreviousPage=function(){if(!this.documentManager.firstVisiblePage){return}this.documentManager.gotoPage(this.documentManager.firstVisiblePage.pageNum-1,{direction:-1})};c.prototype._setWidth=function(F){this._currentPageWidth=F;this._updatePageWidths();this._checkBodyWidth()};c.prototype._fullscreenResized=function(){this._setWidth((window.innerWidth||document.documentElement.clientWidth)-pagePadding)};c.prototype._enterFullscreen=function(){this._previousPageWidth=this._currentWidth||defaultViewWidth};c.prototype._exitFullscreen=function(){this._setWidth(this._previousPageWidth)};function n(H,G,F){this.options=F||{};this.options.extrasWidth=this.options.extrasWidth||extrasWidth;this.defaultViewMode=(H||"scroll");this.mobile=(G||false);this.initEventHelper();this.pages={};this._pageWidths=null;this._fontLoader=new A(this);this.viewManagers={scroll:new c(),slideshow:new w(),book:new l()};this.viewportManager=new y();this._currentFontAggregatorHostIdx=0;this.visiblePages=[];this.firstVisiblePage=null;this.lastVisiblePage=null;this.currentFontGroup=new a(0,this._fontLoader);this._isScrolling=false}p(n,["expectedFirstPageChanged","viewmodeChanged","enteredFullscreen","exitedFullscreen","hideExtras","showExtras","preparePageFlip","zoomed","pageHide","pageLoaded","allPagesAdded"]);n.prototype._fireZoomed=function(F){this.fireEvent("zoomed",F)};n.prototype.nextFontAggregatorHost=function(){this._currentFontAggregatorHostIdx=(this._currentFontAggregatorHostIdx+1)%this.fontAggregatorHosts.length;return this.fontAggregatorHosts[this._currentFontAggregatorHostIdx]};n.prototype._preparePageFlip=function(F){this.fireEvent("preparePageFlip",F)};n.prototype._fireHideExtras=function(){this.fireEvent("hideExtras")};n.prototype._fireShowExtras=function(){this.fireEvent("showExtras")};n.prototype._firePageFlip=function(G,F){this.fireEvent("pageFlip",G,F)};n.prototype.currentPageNum=function(){return this._expectedFirstPageNum};n.prototype.setupTestElements=function(){this._fontLoader.setupTestElements()};n.prototype.pageCount=function(){if(this.hasOwnProperty("_pageCount")){return this._pageCount}var F=0;for(var G in this.pages){if(this.pages.hasOwnProperty(G)){F++}}this._pageCount=F;return this._pageCount};n.prototype.setupPaidDocument=function(H,G){this.allowedPages=H;this.originalPageCount=G;this._allowedPagesHash=[];this._maximumAllowedPage=this.allowedPages.max();this._minimumAllowedPage=this.allowedPages.min();this._isPaidDocument=true;this._pageMissingElements=[];for(var F=0;F<H.length;F++){this._allowedPagesHash[H[F]]=true;if((F>0&&H[F]>H[F-1]+1)||(F===0&&H[F]!=1)){this._pageMissingElements.push("page_missing_explanation_"+H[F].toString())}}if(this._maximumAllowedPage!=this.originalPageCount){this._pageMissingElements.push("page_missing_explanation_"+(this.originalPageCount+1).toString())}};n.prototype.maximumPageNumber=function(){if(this.allowedPages){return this.originalPageCount}else{return this.pageCount()}};n.prototype.getClosestPageNumber=function(G,H){if(this.allowedPages){if(this._allowedPagesHash[G]){return G}else{if(G>=this._maximumAllowedPage){return this._maximumAllowedPage}else{if(G<=this._minimumAllowedPage){return this._minimumAllowedPage}}for(var F=1;F<=this.originalPageCount;F++){if(H<=0&&this._allowedPagesHash[G-F]===true){return G-F}else{if(H>=0&&G+F<this.originalPageCount&&this._allowedPagesHash[G+F]===true){return G+F}}}}}else{return G}};n.prototype.setPageMissingModulesVisible=function(G){if(!this._isPaidDocument){return}for(var F=0;F<this._pageMissingElements.length;F++){if(G){$(this._pageMissingElements[F]).show()}else{$(this._pageMissingElements[F]).hide()}}};n.prototype.getNextAvailablePage=function(F){return getClosestPageNumber(F,1)};n.prototype.getPreviousAvailablePage=function(F){return getClosestPageNumber(F,-1)};n.prototype.flushFontQueue=function(){this._fontLoader.flushFontQueue()};n.prototype.visiblePagesChanged=function(){var I=[];for(var H in this.pages){if(this.pages.hasOwnProperty(H)){var G=this.pages[H];if(G.isVisible){I.push(G)}}}I.sort(function(K,J){if(K.pageNum<J.pageNum){return -1}else{return 1}});this.visiblePages=I;var F=this.firstVisiblePage;this.firstVisiblePage=I.length>0?I[0]:null;this.lastVisiblePage=I.length>0?I[I.length-1]:null;if(!this._isScrolling){this._loadAdjacentFonts();this._loadAdjacentPages()}if((this.firstVisiblePage!==F&&(!this.firstVisiblePage||!F))||this.firstVisiblePage.pageNum!=F.pageNum){if(!this._isScrolling&&this.firstVisiblePage){this._updateExpectedFirstPage(this.firstVisiblePage.pageNum)}}this.scheduleLogPageView()};function v(G,H,F){return Math.max(H,Math.max(H,G))}n.prototype.boundingRatioForPage=function(J){var F=this.viewportManager.viewRect;var H=J.boundingRect;var I=H.bottom-H.top;var G=H.right-H.left;return{left:(F.left-H.left)/G,right:(F.right-H.right)/G+1,top:v((F.top-H.top)/I+J.pageNum,J.pageNum,J.pageNum+1),bottom:v((F.bottom-H.bottom)/I+J.pageNum+1,J.pageNum,J.pageNum+1)}};n.prototype.scheduleLogPageView=function(){if(this.logPageViewTimout){window.clearTimeout(this.logPageViewTimout)}var F=this;this.logPageViewTimout=window.setTimeout(function(){F.logPageView();F.logPageViewTimout=null},1000)};function g(F){return Math.floor(F*100)/100}n.prototype.getVisibleBBox=function(){var F={};if(this.firstVisiblePage){var H=this.boundingRatioForPage(this.firstVisiblePage);F.left=H.left;F.right=H.right;F.top=H.top}if(this.lastVisiblePage){var G=this.boundingRatioForPage(this.lastVisiblePage);F.bottom=G.bottom}return F};n.prototype.logPageView=function(){var I=this.getVisibleBBox();for(var F in I){if(I.hasOwnProperty(F)){I[F]=g(I[F])}}var G=window.$rat;if(G){var H;if(window.RAT_API_VERSION=="2"){H=[[I.left,I.top],[I.right,I.bottom]]}else{H="("+I.left+" "+I.top+") ("+I.right+" "+I.bottom+")"}G("articulosbar.viewchange",H)}return I};n.prototype._updateExpectedFirstPage=function(F){this._expectedFirstPageNum=F;this.fireEvent("expectedFirstPageChanged",this._expectedFirstPageNum)};n.prototype._loadAdjacentFonts=function(){if(this.firstVisiblePage&&this.lastVisiblePage){var J=[];var F=this.firstVisiblePage.pageNum-adjacentFontLoadPages;var H=this.lastVisiblePage.pageNum+adjacentFontLoadPages;for(var G=F;G<=H;G++){var I=this.pages[G];if(I){I.loadFonts()}}}};n.prototype._loadAdjacentPages=function(){if(this.firstVisiblePage&&this.lastVisiblePage){var J=[];var F=this.firstVisiblePage.pageNum-adjacentLoadPages;var H=this.lastVisiblePage.pageNum+adjacentLoadPages;for(var G=F;G<=H;G++){var I=this.pages[G];if(I&&!I.loadHasStarted){I.load();if(this.mobile){I.setWidth(this._pageWidths)}}}if(this.mobile){this._removeUnusedPages()}}};n.prototype._removeUnusedPages=function(){var G=this.firstVisiblePage.pageNum-adjacentLoadPages;var I=this.lastVisiblePage.pageNum+adjacentLoadPages;var F=this.pages;var H=adjacentLoadPages+1;while(F[H]){if(H<G||H>I){F[H].remove()}H++}};n.prototype._updatePageBoundingRects=function(){for(var F in this.pages){if(this.pages.hasOwnProperty(F)){this.pages[F]._updateBoundingRect()}}};n.prototype.addPage=function(G){if(G.pageNum===undefined){throw"must have pageNum param"}G.docManager=this;var F=new o(G);this.pages[G.pageNum]=F;if(this._pageWidths){F.setWidth(this._pageWidths)}if(this.currentFontGroup.isFull()){this.currentFontGroup=this.currentFontGroup.newNextGroup()}F.setLoadFontGroup(this.currentFontGroup);return F};n.prototype.setIsScrolling=function(F){this._isScrolling=F};n.prototype.setViewManager=function(F){if(this._currentViewManager){this._currentViewManager.unregister()}var G=this._currentViewManager;this._currentViewManager=this.viewManagers[F];this._currentViewManager.register(this,this.viewportManager);this.fireEvent("viewmodeChanged",this._currentViewManager.name(),G?G.name():null)};n.prototype.setDefaultWidth=function(F){this._currentViewManager._currentPageWidth=F;this._currentViewManager._currentZoomMultiplier=1;this._currentViewManager._updatePageWidths()};n.prototype.subImageSrc=function(H){var G,F=0;for(G=0;G<H.length;G++){F+=H.charCodeAt(G)}var I=this._imageDomainSubstitutionList[F%this._imageDomainSubstitutionList.length];return H.replace(this._imageDomainSubstitutionFrom,I)};n.prototype.allPagesAdded=function(){if(this._allPagesAddedCalled){throw"can only call allPagesAdded once"}this.viewportManager.enable();this._updatePageBoundingRects();this.setViewManager(this.defaultViewMode);this.fireEvent("allPagesAdded")};n.prototype.setPageWidths=function(F){this._pageWidths=F;for(var G in this.pages){if(this.pages.hasOwnProperty(G)){this.pages[G].setWidth(this._pageWidths)}}this._updatePageBoundingRects()};n.prototype.addFont=function(K,I,G,J,H,F){this._fontLoader.addFont(K,I,G,J,H,F)};n.prototype.setNumFonts=function(F){this._fontLoader.setNumFonts(F)};n.prototype.initStyles=function(){this._fontLoader.initStyles()};n.prototype.gotoPage=function(F,G){if(!G){G={}}if(G.pretty===undefined){G.pretty=true}var I=G.direction||0;var H=this.pages[F];if(H===undefined&&this._isPaidDocument){F=this.getClosestPageNumber(F,I);H=this.pages[F]}if(this.pages[F]){this._updateExpectedFirstPage(F);this._currentViewManager.gotoPage(this._expectedFirstPageNum,G);if(this.mobile){this.pages[F].setWidth(this._pageWidths)}}};n.prototype.gotoPreviousPage=function(){if(this._currentViewManager.isTopPageInView()){this.gotoPage(this._expectedFirstPageNum-1,{direction:-1})}else{this.gotoPage(this._expectedFirstPageNum,{direction:-1})}};n.prototype.gotoNextPage=function(){this.gotoPage(this._expectedFirstPageNum+1,{direction:1})};n.prototype.enterFullscreen=function(){this._currentViewManager.enterFullscreen()};n.prototype.exitFullscreen=function(){this._currentViewManager.exitFullscreen()};n.prototype._fireEnteredFullscreen=function(){this.fireEvent("enteredFullscreen")};n.prototype._fireExitedFullscreen=function(){this.fireEvent("exitedFullscreen")};n.prototype.viewMode=function(){if(this._currentViewManager){return this._currentViewManager.name()}return null};n.prototype.zoom=function(F){this._currentViewManager.zoom(F)};n.prototype.resetZoom=function(){this._currentViewManager.resetZoom()};n.prototype.setImageDomainSubstitution=function(F,G){this._imageDomainSubstitutionFrom=F;this._imageDomainSubstitutionList=G};n.prototype.disableViewManagerResizeWidth=function(){x.prototype._checkBodyWidth=function(){}};return n})();
