try{window.initFlipbook=function(e){var t=$("#pageflip");t.pageflipInit(e),window.isPrintCss=!1},function(){var e=function(e){var t={};$.extend(t,this.config,e),this.config=t,"string"==typeof this.config.el?($(document).on("mouseenter",this.config.el,this,this.events.show),$(document).on("mouseleave",this.config.el,this,this.events.hide)):this.config.el instanceof $&&(this.config.el.on("mouseenter",null,this,this.events.show),this.config.el.on("mouseleave",null,this,this.events.hide))};e.prototype.config={orientation:"top",background:"blue",color:"white",speed:0,margin:0,fixedY:null,text:!1},e.prototype.events={show:function(e){var o=$(this).data("tooltip")?$(this).data("tooltip"):e.data.config.text,i=$(this).data("tooltip-hidden")===!0;if(o&&!i){var r=e.data.config,a=t(o,r);$("body").after(a);var s=$(this)[0].getBoundingClientRect(),c=$(a).height(),u=parseInt($(a).width()/2,10)-parseInt(s.width/2,10),l={top:function(){var e=s.left-u,t=r.fixedY?r.fixedY()-r.margin:s.top-c-r.margin;$(a).css("transform",n(e,t))},bottom:function(){var e=s.left-u,t=r.fixedY?r.fixedY()+s.height+r.margin:s.top+s.height+r.margin;$(a).css("transform",n(e,t))}};l[r.orientation](),$(a).fadeIn(r.speed)}},hide:function(e){$(".tooltip-container").remove()}};var t=function(e,t){var n=$("
",{"class":"tooltip-container"}),o=$("
",{"class":"tooltip"}),i=$("
",{"class":"tooltip-text"}),r=$("
",{"class":"tooltip-triangle-"+t.orientation});return r.css("border-"+t.orientation+"-color",t.background),i.css("background-color",t.background),i.css("color",t.color),n.append(o.append(i.html(e)).append(r))},n=function(e,t){return"translate("+e+"px, "+t+"px)"};window.FlipbookTooltips=e}(),window.FlipbookCursorManager=function(e,t){var n=(e.cursorColor,e.incDirPath),o={zoomin:n+"inc/img/controlbar/zoomin.cur",zoomout:n+"inc/img/controlbar/zoomout.cur"};this.setCursor=function(e,t){e instanceof jQuery&&e.length>0&&e.each(function(){var e=$(this);switch(t){case"zoomin":case"zoomout":e.data("cursor")!==t&&(e.data("cursor",t),e.css("cursor","url('"+o[t]+"'), auto"));break;default:"auto"!==e.data("cursor")&&(e.css("cursor","auto"),e.data("cursor","auto"))}})};var i=function(){var e=function(e){$("
").css({position:"absolute",width:"0px",height:"1px",cursor:"url('"+e+"'), auto"}).appendTo($("body"))};$.each(o,function(t,n){e(n)})};i()},function(){window.FlipbookUrl=function(e,t){var n,o=e.singlePageMode;this.getPageNumberFromUrl=function(){if("undefined"===$.type(n)){var e,o=window.location.search;if("string"===$.type(o)&&o.length>0){var r=/page=([^&]*)/g,a=r.exec(o);if($.isArray(a)&&a.length>1){var s=a[1],c=parseInt(s,10);$.isNumeric(c)&&(e=i(c))}}"undefined"===$.type(e)&&(e=t.getFirstPageNumber()),n=e}return n},this.updateUrl=function(e){var t=e.split("-"),o=t[0],i=window.location.protocol+"//"+window.location.host+window.location.pathname,r=parseInt(o,10);window.history&&"function"===$.type(window.history.pushState)&&$.isNumeric(r)&&("http:"!==location.protocol&&"https:"!==location.protocol||(n!=r?(window.history.pushState({pagenum:r},"",i+"?page="+r),n=r):window.history.replaceState({pagenum:r},"",i+"?page="+r)))};var i=function(e){var n=t.getFirstPageNumber(),i=t.getLastPageNumber();return n>e?e=n:e>i&&(e=i),!o&&e>1&&(e-=e%2),e},r=function(){$(window).on("popstate",function(e,o){if(window.history.state&&window.history.state.pagenum){var r=i(window.history.state.pagenum);r&&(n=r,t.gotoPageNumber(r,!0))}})};r()}}(),function(){var e=function(e){var t={};$.extend(t,this.config,e),this.config=t,$(document).on("mouseenter",this.config.el,this,this.events.show),$(document).on("mouseleave",this.config.el,this,this.events.hide)};e.prototype.config={delayBlinkTime:100,blinkTime:300,background:"blue"},e.prototype._blinkStart=function(){if("waiting"===this.data.status){var e=new Date-this.data.pageOpenTimestamp;e>=this.config.blinkTime&&(this.data.status="process",this.data.blinkTimestamp=new Date,$(this.config.el).css("background",this.config.background))}},e.prototype._blinkEnd=function(){if("process"===this.data.status){var e=new Date-this.data.blinkTimestamp;e>=this.config.blinkTime&&(this.data.status="done",$(this.config.el).css("background","transparent"))}},e.prototype.data={pageOpenTimestamp:null,blinkTimestamp:null,status:null},e.prototype.blink=function(){this.data.status&&"done"!==this.data.status||(this.data.pageOpenTimestamp=new Date),this.data.status="waiting"},e.prototype.OEF=function(){this.data.status&&"done"!==this.data.status&&(this._blinkStart(),this._blinkEnd())},e.prototype.events={show:function(e){$(this).css("opacity",.5),$(this).css("background",e.data.config.background)},hide:function(){$(this).css("background","transparent")}},window.FlipbookLinksFading=e}(),!function(e,t,n,o){"use strict";function i(e,t,n){return setTimeout(u(e,n),t)}function r(e,t,n){return Array.isArray(e)?(a(e,n[t],n),!0):!1}function a(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==o)for(i=0;i\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=e.console&&(e.console.warn||e.console.log);return r&&r.call(e.console,i,o),t.apply(this,arguments)}}function c(e,t,n){var o,i=t.prototype;o=e.prototype=Object.create(i),o.constructor=e,o._super=i,n&&de(o,n)}function u(e,t){return function(){return e.apply(t,arguments)}}function l(e,t){return typeof e==he?e.apply(t?t[0]||o:o,t):e}function d(e,t){return e===o?t:e}function p(e,t,n){a(v(t),function(t){e.addEventListener(t,n,!1)})}function f(e,t,n){a(v(t),function(t){e.removeEventListener(t,n,!1)})}function h(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function g(e,t){return e.indexOf(t)>-1}function v(e){return e.trim().split(/\s+/g)}function m(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var o=0;on[t]}):o.sort()),o}function y(e,t){for(var n,i,r=t[0].toUpperCase()+t.slice(1),a=0;a1&&!n.firstMultiple?n.firstMultiple=F(t):1===i&&(n.firstMultiple=!1);var r=n.firstInput,a=n.firstMultiple,s=a?a.center:r.center,c=t.center=I(o);t.timeStamp=me(),t.deltaTime=t.timeStamp-r.timeStamp,t.angle=N(s,c),t.distance=E(s,c),S(n,t),t.offsetDirection=M(t.deltaX,t.deltaY);var u=$(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=u.x,t.overallVelocityY=u.y,t.overallVelocity=ve(u.x)>ve(u.y)?u.x:u.y,t.scale=a?L(a.pointers,o):1,t.rotation=a?A(a.pointers,o):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,B(n,t);var l=e.element;h(t.srcEvent.target,l)&&(l=t.srcEvent.target),t.target=l}function S(e,t){var n=t.center,o=e.offsetDelta||{},i=e.prevDelta||{},r=e.prevInput||{};t.eventType!==Ie&&r.eventType!==Me||(i=e.prevDelta={x:r.deltaX||0,y:r.deltaY||0},o=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-o.x),t.deltaY=i.y+(n.y-o.y)}function B(e,t){var n,i,r,a,s=e.lastInterval||t,c=t.timeStamp-s.timeStamp;if(t.eventType!=Ee&&(c>Fe||s.velocity===o)){var u=t.deltaX-s.deltaX,l=t.deltaY-s.deltaY,d=$(c,u,l);i=d.x,r=d.y,n=ve(d.x)>ve(d.y)?d.x:d.y,a=M(u,l),e.lastInterval=t}else n=s.velocity,i=s.velocityX,r=s.velocityY,a=s.direction;t.velocity=n,t.velocityX=i,t.velocityY=r,t.direction=a}function F(e){for(var t=[],n=0;ni;)n+=e[i].clientX,o+=e[i].clientY,i++;return{x:ge(n/t),y:ge(o/t)}}function $(e,t,n){return{x:t/e||0,y:n/e||0}}function M(e,t){return e===t?Ne:ve(e)>=ve(t)?0>e?Ae:Le:0>t?De:He}function E(e,t,n){n||(n=qe);var o=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(o*o+i*i)}function N(e,t,n){n||(n=qe);var o=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,o)/Math.PI}function A(e,t){return N(t[1],t[0],We)+N(e[1],e[0],We)}function L(e,t){return E(t[0],t[1],We)/E(e[0],e[1],We)}function D(){this.evEl=Ye,this.evWin=Ue,this.pressed=!1,T.apply(this,arguments)}function H(){this.evEl=Ze,this.evWin=Ge,T.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function R(){this.evTarget=Je,this.evWin=Ke,this.started=!1,T.apply(this,arguments)}function z(e,t){var n=b(e.touches),o=b(e.changedTouches);return t&(Me|Ee)&&(n=_(n.concat(o),"identifier",!0)),[n,o]}function O(){this.evTarget=tt,this.targetIds={},T.apply(this,arguments)}function q(e,t){var n=b(e.touches),o=this.targetIds;if(t&(Ie|$e)&&1===n.length)return o[n[0].identifier]=!0,[n,n];var i,r,a=b(e.changedTouches),s=[],c=this.target;if(r=n.filter(function(e){return h(e.target,c)}),t===Ie)for(i=0;i-1&&o.splice(e,1)};setTimeout(i,nt)}}function U(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,o=0;o=r&&ot>=a)return!0}return!1}function j(e,t){this.manager=e,this.set(t)}function V(e){if(g(e,ut))return ut;var t=g(e,lt),n=g(e,dt);return t&&n?ut:t||n?t?lt:dt:g(e,ct)?ct:st}function Z(){if(!rt)return!1;var t={},n=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(o){t[o]=n?e.CSS.supports("touch-action",o):!0}),t}function G(e){this.options=de({},this.defaults,e||{}),this.id=w(),this.manager=null,this.options.enable=d(this.options.enable,!0),this.state=ft,this.simultaneous={},this.requireFail=[]}function Q(e){return e&bt?"cancel":e&vt?"end":e>?"move":e&ht?"start":""}function J(e){return e==He?"down":e==De?"up":e==Ae?"left":e==Le?"right":""}function K(e,t){var n=t.manager;return n?n.get(e):e}function ee(){G.apply(this,arguments)}function te(){ee.apply(this,arguments),this.pX=null,this.pY=null}function ne(){ee.apply(this,arguments)}function oe(){G.apply(this,arguments),this._timer=null,this._input=null}function ie(){ee.apply(this,arguments)}function re(){ee.apply(this,arguments)}function ae(){G.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function se(e,t){return t=t||{},t.recognizers=d(t.recognizers,se.defaults.preset),new ce(e,t)}function ce(e,t){this.options=de({},se.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=x(this),this.touchAction=new j(this,this.options.touchAction),ue(this,!0),a(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function ue(e,t){var n=e.element;if(n.style){var o;a(e.options.cssProps,function(i,r){o=y(n.style,r),t?(e.oldCssProps[o]=n.style[o],n.style[o]=i):n.style[o]=e.oldCssProps[o]||""}),t||(e.oldCssProps={})}}function le(e,n){var o=t.createEvent("Event");o.initEvent(e,!0,!0),o.gesture=n,n.target.dispatchEvent(o)}var de,pe=["","webkit","Moz","MS","ms","o"],fe=t.createElement("div"),he="function",ge=Math.round,ve=Math.abs,me=Date.now;de="function"!=typeof Object.assign?function(e){if(e===o||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;ns&&(t.push(e),s=t.length-1):i&(Me|Ee)&&(n=!0),0>s||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:r,srcEvent:e}),n&&t.splice(s,1))}});var Qe={touchstart:Ie,touchmove:$e,touchend:Me,touchcancel:Ee},Je="touchstart",Ke="touchstart touchmove touchend touchcancel";c(R,T,{handler:function(e){var t=Qe[e.type];if(t===Ie&&(this.started=!0),this.started){var n=z.call(this,e,t);t&(Me|Ee)&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:Pe,srcEvent:e})}}});var et={touchstart:Ie,touchmove:$e,touchend:Me,touchcancel:Ee},tt="touchstart touchmove touchend touchcancel";c(O,T,{handler:function(e){var t=et[e.type],n=q.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:Pe,srcEvent:e})}});var nt=2500,ot=25;c(W,T,{handler:function(e,t,n){var o=n.pointerType==Pe,i=n.pointerType==Se;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(o)X.call(this,t,n);else if(i&&U.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var it=y(fe.style,"touchAction"),rt=it!==o,at="compute",st="auto",ct="manipulation",ut="none",lt="pan-x",dt="pan-y",pt=Z();j.prototype={set:function(e){e==at&&(e=this.compute()),rt&&this.manager.element.style&&pt[e]&&(this.manager.element.style[it]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return a(this.manager.recognizers,function(t){l(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),V(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)return void t.preventDefault();var o=this.actions,i=g(o,ut)&&!pt[ut],r=g(o,dt)&&!pt[dt],a=g(o,lt)&&!pt[lt];if(i){var s=1===e.pointers.length,c=e.distance<2,u=e.deltaTime<250;if(s&&c&&u)return}return a&&r?void 0:i||r&&n&Re||a&&n&ze?this.preventSrc(t):void 0},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var ft=1,ht=2,gt=4,vt=8,mt=vt,bt=16,_t=32;G.prototype={defaults:{},set:function(e){return de(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(r(e,"recognizeWith",this))return this;var t=this.simultaneous;return e=K(e,this),t[e.id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return r(e,"dropRecognizeWith",this)?this:(e=K(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(r(e,"requireFailure",this))return this;var t=this.requireFail;return e=K(e,this),-1===m(t,e)&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(r(e,"dropRequireFailure",this))return this;e=K(e,this);var t=m(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){n.manager.emit(t,e)}var n=this,o=this.state;vt>o&&t(n.options.event+Q(o)),t(n.options.event),e.additionalEvent&&t(e.additionalEvent),o>=vt&&t(n.options.event+Q(o))},tryEmit:function(e){return this.canEmit()?this.emit(e):void(this.state=_t)},canEmit:function(){for(var e=0;er?Ae:Le,n=r!=this.pX,o=Math.abs(e.deltaX)):(i=0===a?Ne:0>a?De:He,n=a!=this.pY,o=Math.abs(e.deltaY))),e.direction=i,n&&o>t.threshold&&i&t.direction},attrTest:function(e){return ee.prototype.attrTest.call(this,e)&&(this.state&ht||!(this.state&ht)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=J(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),c(ne,ee,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ut]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&ht)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),c(oe,G,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[st]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,o=e.distancet.time;if(this._input=e,!o||!n||e.eventType&(Me|Ee)&&!r)this.reset();else if(e.eventType&Ie)this.reset(),this._timer=i(function(){this.state=mt,this.tryEmit()},t.time,this);else if(e.eventType&Me)return mt;return _t},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===mt&&(e&&e.eventType&Me?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=me(),this.manager.emit(this.options.event,this._input)))}}),c(ie,ee,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ut]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&ht)}}),c(re,ee,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Re|ze,pointers:1},getTouchAction:function(){return te.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Re|ze)?t=e.overallVelocity:n&Re?t=e.overallVelocityX:n&ze&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&ve(t)>this.options.velocity&&e.eventType&Me},emit:function(e){var t=J(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),c(ae,G,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ct]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,o=e.distance0,T=v&&a===_-1;k||T?($.each([["next",l],["last",p]],function(e,t){h&&(a===_-1?t[1].hide():t[1].fadeOut(o))}),$.each([["prev",u],["first",d]],function(e,t){m(t[1],f[t[0]].left+b,f[t[0]].top),h&&0!==s&&t[1].fadeIn(o)})):($.each([["prev",u],["first",d]],function(e,t){h&&(0===a?t[1].hide():t[1].fadeOut(o))}),$.each([["next",l],["last",p]],function(e,t){m(t[1],f[t[0]].left+b,f[t[0]].top),h&&s!==_-1&&t[1].fadeIn(o)}))}else $.each([["prev",u],["first",d],["next",l],["last",p]],function(t,n){0!==s&&s!==_-1&&(m(n[1],f[n[0]].left+b,f[n[0]].top),h&&((0!==e||v)&&w||n[1].fadeIn(o)))}),h&&(v?0===a?(s!==_-1&&(l.css("display","block"),p.css("display","block")),u.css("display","none"),d.css("display","none")):a===_-1&&(0!==s&&(u.css("display","block"),d.css("display","block")),l.css("display","none"),p.css("display","none")):0!==e&&(0===a||2===a?(s!==_-1&&(l.css("display","block"),p.css("display","block")),u.css("display","none"),d.css("display","none")):(0!==s&&(u.css("display","block"),d.css("display","block")),l.css("display","none"),p.css("display","none"))))}},this.toggle=function(e){if(e){var t=i.getPN(),n=i.getLastPageNumber(),r=i.getEndPN();"undefined"===$.type(r)&&(r=t),0===t?(l.fadeIn(o),p.fadeIn(o)):t===n-1?(u.show(),d.show()):c.show(),h=!0}else c.hide(),h=!1};var g=function(){u.on("click",function(e){e.preventDefault(),i.gotoPrevPage(!0)}),l.on("click",function(e){e.preventDefault(),i.gotoNextPage(!0)}),d.on("click",function(e){e.preventDefault(),i.gotoFirstPage(!0),d.add(u).fadeOut(o)}),p.on("click",function(e){e.preventDefault(),i.gotoLastPage(!0),p.add(l).fadeOut(o)})},v=function(){if("string"===$.type(a.color)&&c.find("g").css("fill",a.color),"string"===$.type(a.hoverColor)){var e="mouseenter",t="mouseleave";if(i.getIsTouchDevice()){var n=i.getPfEvent();e=n.__onStart,t=n.__onEnd}c.each(function(){$(this).on(e,function(){$(this).find("g").css("fill",a.hoverColor)}),$(this).on(t,function(){$(this).find("g").css("fill",a.color)})})}},m=function(e,t,n){"undefined"!==$.type(t)&&"undefined"!==$.type(n)||(n=t.top,t=t.left),e.css({transform:"translate("+Math.round(t)+"px, "+Math.round(n)+"px)"})};this.init()},window.NavigationArrowsManager.getSize=function(){return n+e}}(),window.AudioPlayer=function(e){var t={},n=1;this.init=function(){e&&$.each(e,function(e,o){if("undefined"!=typeof o&&"string"==typeof o.src){var i=new Audio;i.src=o.src,i.preload="auto",i.loop=!1,"number"==typeof o.volume?i.volume=o.volume:i.volume=n,t[e]=i}})},this.playSound=function(e){"undefined"!=typeof t[e]&&(t[e].paused||(t[e].pause(),t[e].currentTime=0),t[e].play())},this.init()},window.VideoManager=function(e){var t=this;window.makeObjectObservable(this),this.init=function(){e.addEventHandler("onLoad",n),e.addEventHandler("onFlip",o)};var n=function(e){var n=$("#page"+e),o="click";$(n).find(".youtube-player").each(function(){var e=$(this),n=$("
");e.parent().css({width:$(this).data("width"),height:$(this).data("height"),top:$(this).data("top"),left:$(this).data("left")}),n.html(i(e.data("id"))),n.on(o,function(){var e=n.parent();r(e,e.data("id")),t._emitEvent("onVideoFrameClick")}),e.append(n)}),$(n).find(".vimeo-player").each(function(){var e=$(this);$p=$("
"),$.getJSON("http://www.vimeo.com/api/v2/video/"+e.data("id")+".json?callback=?",{format:"json"},function(e){$p.html('
')}),e.parent().css({width:$(this).data("width"),height:$(this).data("height"),top:$(this).data("top"),left:$(this).data("left")}),$p.on(o,function(e){var n=$(e.target).parent().parent();a(n,n.data("id")),t._emitEvent("onVideoFrameClick")}),e.append($p)})},o=function(){var e=$(".video-iframe");e.each(function(e){$(this).remove()})},i=function(e){return'
'},r=function(e,t){var n=$("");n.attr("src","//www.youtube.com/embed/"+t+"?autohide=2&border=0&wmode=opaque&enablejsapi=1&controls=1&showinfo=1&autoplay=1&rel=0"),n.attr("frameborder","0"),n.attr("class","video-iframe"),n.attr("z-index","1"),n.attr("id",t),n.attr("allowfullscreen","1"),e.append(n)},a=function(e,t){var n=$("");n.attr("src","//player.vimeo.com/video/"+t+"?api=1&player_id="+t+"&color=ffffff&title=0&byline=0&portrait=0&autoplay=1"),n.attr("frameborder","0"),n.attr("class","video-iframe"),n.attr("z-index","1"),n.attr("id",t),e.append(n)};this.init()},window.SearchManager=function(e,t,n){var o,i=100,r=e.getPageInfoList();this.init=function(){},this.search=function(e,t){"undefined"===$.type(o)&&a();var n=[];return $.each(o,function(o,r){var a=r.innerText,c=s(a,e),u=[];$.each(c,function(n,o){var s,c,l="",d=i-e.length;if(d>6){var p,f,h,g=Math.floor((d-6)/2),v=o,m=a.length-e.length-o,b=v>g,_=m>g;b&&_?(s=o-g,c=o-1+e.length+g,p=!0,f=!0):b&&!_?(c=a.length-1,h=g-m,s=v>h+g?o-g-h:0,p=!0,f=!1):_&&!b?(s=0,h=g-v,c=m>h+g?o+e.length-1+g+h:a.length-1,p=!1,f=!0):(s=0,c=a.length-1,p=!1,f=!1),0>s&&(s=0),c>a.length-1&&(c=a.length-1);var y=a.substring(s,c+1);l=y.replace(new RegExp("("+e+")","gi"),"
$1
"),p&&(l="..."+l),f&&(l+="...")}else l="...
"+e+"
...",s=0,c=a.length-1;var w=!1;$.each(u,function(t,n){var i=n.snippetPositionLeftIdx,r=n.snippetPositionRightIdx;o>=i&&o+e.length-1<=r&&(w=!0)}),w||u.push({pageInfoObject:r,snippet:l,snippetPositionLeftIdx:s, snippetPositionRightIdx:c})}),n=n.concat(u)}),n};var a=function(){if(o=[],"undefined"!==$.type(window.flipbookSettings.content)){var e=window.flipbookSettings.content;$.each(r,function(t,n){if("string"===$.type(n.__ThumbnailImageUrl)&&"undefined"!==$.type(n.__PageNumber)&&n.__PageNumber>0){var i=n.__PageNumber;if("undefined"!==$.type(e[i])){var r=$.trim(e[i].replace(/\s+/g," ")),a={pageNumber:i,innerText:r,thumbnail:n.__ThumbnailImageUrl};o.push(a)}}})}},s=function(e,t){var n=[];if("string"===$.type(e)&&e.length>0&&"string"===$.type(t)&&t.length>0)for(var o=e.toLowerCase(),i=t.toLowerCase(),r=o.indexOf(i);-1!==r&&n.length<1e3;)n.push(r),r=o.indexOf(i,r+1);return n};this.init()},window.SearchScreenManager=function(e,t,n){var o,i,r,a,s,c,u,l,d,p,f=this,h=168,g=$("body"),v=!1,m=[],b=0;this.init=function(){r=$($("#Template-searchScreen").html()),s=r.find(".SearchScreen-closeButton"),i=$($("#Template-searchScreenRes").html()),c=r.find(".SearchScreen-inputField"),u=r.find(".SearchScreen-resultsOpaqueContent"),l=r.find(".SearchScreen-resultsBackground"),a=r.find(".SearchScreen-contentTransparent"),c.on("input",_);var e=new Hammer(s.find(".SearchScreen-closeButtonImg")[0]);e.on("tap",function(e){f.closeSearchScreen(),e.srcEvent.preventDefault()}),l.css("background-color",t.searchResultsBackground),a.css("background-color",t.searchScreenBackground),c.css({"background-color":t.searchInputBackground,color:t.searchInputText}),l.css({"background-color":t.searchResultsBackground}),u.css("color",t.searchResultsText),s.find("svg").css("color",t.color1),c.css("border","0"),u.css("color",t.searchResultsText),d=u.parent(),d.on("scroll",w)},this.openSearchScreen=function(){v||(g.append(r),"undefined"===$.type(o)&&(o=Math.ceil(u.height()/h)),u.html(""),c.val(""),b=0,c.focus(),v=!0)},this.closeSearchScreen=function(){v&&(r.detach(),v=!1)};var _=function(e){var t=$(e.target).val();u.html(""),b=0,t.length>2&&(m=n.search(t,"SearchScreenRes-highlight"),w())},y=function(e,n){n||e.css("border-bottom","1px solid "+t.searchResultsSeparator)},w=function(t){var n=d.scrollTop(),r=u.height(),a=(n+r)/d.prop("scrollHeight");if(a>.8&&b2?(g=n.search(e,"SearchResult-highlight"),h.toggleTooltipMini(!1),h.toggleTooltipFull(!0),s.val(e),s.focus(),s.val(""),s.val(e),u.empty(),g.length>0?(c.hide(),T()):c.show()):(u.empty(),c.show())},T=function(){var t=u.scrollTop(),n=u.height(),o=(t+n)/u.prop("scrollHeight");if(o>.8&&v").attr("src",o.pageInfoObject.thumbnail));var s=r.find(".SearchResult-content");s.html(o.snippet),w(r),u.append(r),r.on(b,function(){e.gotoPageNumber(o.pageInfoObject.pageNumber,!0),h.toggleTooltipFull(!1)}),i+=1}}),v=i}};_()},window.ControlBar=function(e,t,n,o){var i,r,a,s,c,u,l,d,p,f,h,g,v,m,b,_,y,w,k,T,x,P,C,S,B,F,I,M,E,N,A,L,D,H,R,z,O=this,q=$("#Template-controlBar"),W={color1:"#b7b7b7",color2:"#ebebeb",background:"#272727",pagerText:"#cccccc",tooltipBackground1:"#121212",tooltipBackground2:"#121212",print1:"#808080",print2:"#FFFFFF",print3:"#ffffff",search1:"#121212",searchScreenBackground:"#000000",searchInputBackground:"#121212",searchInputText:"#cccccc",searchResultsBackground:"#dfdfdf",searchResultsSeparator:"#4a4a4a",searchResultsText:"#4a4a4a"},X={},Y={color1:[".ControlBar-backToBeginningActiveImg svg",".ControlBar-backActiveImg svg",".ControlBar-forwardActiveImg svg",".ControlBar-forwardToEndActiveImg svg",".ControlBar-printButtonImg svg",".ControlBar-downloadButtonImg svg",".ControlBar-searchButtonImg svg",".ControlBar-menuButtonImg svg",".ControlBar-fullscreenButtonImg svg",".PrintMenu-iconImg svg",".SearchMini-searchButtonImg",".SearchFull-searchButtonImg"],color2:[".ControlBar-backToBeginningActiveImgHover svg",".ControlBar-backActiveImgHover svg",".ControlBar-forwardActiveImgHover svg",".ControlBar-forwardToEndActiveImgHover svg",".ControlBar-printButtonImgHover svg",".ControlBar-downloadButtonImgHover svg",".ControlBar-searchButtonImgHover svg",".ControlBar-menuButtonImgHover svg",".ControlBar-fullscreenButtonImgHover svg",".PrintMenu-iconImgHover svg",".SearchMini-searchButtonImgHover",".SearchFull-searchButtonImgHover"],print1:[".PrintMenu-iconImg",".PrintMenu-iconImgHover"],inactive:[".ControlBar-backToBeginningInactiveImg",".ControlBar-backInactiveImg",".ControlBar-forwardInactiveImg",".ControlBar-forwardToEndInactiveImg"]},U={color1:[".SearchFull-closeButtonImg"],color2:[".SearchFull-closeButtonImgHover"],print2:[".PrintMenu-iconImg svg"],print3:[".PrintMenu-iconImgHover svg"]},j=.6,V=t.zIndex?t.zIndex:2,Z="click",G=!0,Q=!0,J=5,K=t.useNavBarMinSizes,ee=t.navbarMinHeight,te=t.navbarMinWidth,ne=t.navBarTablet,oe=t.navBarMobile;this.init=function(){if(q.length>0){e.html(q.html()),i=e.children(".ControlBar"),r=i.children(".ControlBar-content"),i.css("z-index",V),s=$(".ControlBar-pageNavBar"),c=s.find(".ControlBar-backToBeginningActive"),u=s.find(".ControlBar-backToBeginningInactive"),l=s.find(".ControlBar-backActive"),d=s.find(".ControlBar-backInactive"),p=s.find(".ControlBar-forwardToEndActive"),f=s.find(".ControlBar-forwardToEndInactive"),h=s.find(".ControlBar-forwardActive"),g=s.find(".ControlBar-forwardInactive"),m=s.find(".ControlBar-pageInputContainer"),v=m.find(".ControlBar-pageInput"),a=$(".ControlBar-otherButtons"),b=a.find(".ControlBar-printButton"),_=a.find(".ControlBar-downloadButton"),y=a.find(".ControlBar-searchButton"),w=a.find(".ControlBar-menuButton"),k=a.find(".ControlBar-fullscreenButton"),t.fullScreenEnabled&&!n.getIsMobileDevice()||k.hide(),t.searchButtonEnabled||y.parent().hide(),t.printButtonEnabled&&!n.getIsMobileDevice()||b.parent().hide(),t.navigationButtonsEnabled||s.hide(),t.downloadButtonEnabled&&!n.getIsPhone()||_.hide(),t.thumbnailsButtonEnabled||w.hide(),R=r.innerWidth()-r.width(),B=a.innerWidth(),F=s.innerWidth(),z=r.outerWidth()-B-F,z-=R,F+R>te&&(te=F+R),t.touchControl&&("pointer"===t.touchType||n.getIsMobileDevice())||r.find(".ControlBar-button").addClass("ControlBar-button--hover"),T=c.add(l).add(p).add(h).add(b).add(_).add(y).add(w).add(k),x=a.find(".ControlbarTooltip--print"),x.on("mousedown mouseup",function(e){return e.stopPropagation(),!1}),ie();var o=se(),P={touchControl:o.touchControl,color1:o.color1,search1:o.search1,searchInputBackground:o.searchInputBackground,searchInputText:o.searchInputText,searchResultsBackground:o.searchResultsBackground,searchResultsSeparator:o.searchResultsSeparator,searchResultsText:o.searchResultsText,searchScreenBackground:o.searchScreenBackground};A=new window.SearchManager(n,P,r),!t.touchControl||"pointer"!==t.touchType&&!n.getIsMobileDevice()?D=new window.SearchTooltipManager(n,P,A,O):L=new window.SearchScreenManager(n,P,A),de()}},this.updatePage=function(){var e,o,i,r,a,s,c=n.getCurrentPageNumber(),u=n.getPageInfoList(),l=u[c],d=u[c+1];S=!1,l&&l.__PageNumber>0||(l=d,d=void 0),"undefined"!=typeof d&&d.__PageNumber>0||(S=!0),e=l.__PageName,i=l.__PageNumber,e?o=e:i>0&&(o=i),S||(r=d.__PageName,s=d.__PageNumber,r?a=r:s>0&&(a=s));var p=0;r||e||"number"===$.type(a)&&"number"===$.type(o)&&a>0&&o>0&&(p=1);var f,h,g=t.pagerText.split("~")[p].split("#");S?o&&(f=e?o:g[0]+o+g[1],h=o):(f=e&&r?o+" - "+a:e?o+" - "+g[0]+a+g[1]:r?g[0]+o+g[1]+" - "+a:g[0]+o+g[1]+a+g[2],h=o+"-"+a),h=encodeURI(h),fe(f),O.adjustButtonsToScreenSize(),t.hashControl&&n.updateHash(h),le()},this.getHeight=function(){var e=0;return"undefined"!==$.type(J)&&(e=r.outerHeight()),e},this.adjustButtonsToScreenSize=function(){ne&&n.getIsTablet()?s.hide():oe&&n.getIsPhone()?s.hide():K===!0?ae():re()},this.toggleTooltip=function(e,t){var n=e.hasClass("ControlbarTooltip--active");"undefined"==typeof t&&(t=!n),t&&!n?e.addClass("ControlbarTooltip--active"):!t&&n&&e.removeClass("ControlbarTooltip--active")};var ie=function(){t.controlbarTooltipEnabled&&(H=new window.FlipbookTooltips({el:i.find("div.ControlBar-button[data-tooltip]"),color:t.controlbarTooltipColor,background:t.controlbarTooltipBackground,orientation:"top",margin:45,fixedY:function(){return $(document).height()-i.height()}}),i.find("div.ControlBar-button[data-tooltip]").on(Z,H.events.hide))},re=function(){var e=function(e){E?(l.hide(),d.toggle(e)):(l.toggle(e),d.hide()),N?(h.hide(),g.toggle(e)):(h.toggle(e),g.hide())},n=function(e){E?(c.hide(),u.toggle(e)):(c.toggle(e),u.hide()),N?(p.hide(),f.toggle(e)):(p.toggle(e),f.hide())},o=function(e){m.toggle(e)};"undefined"===$.type(I)&&(I=l.width()+h.width(),M=c.width()+I+p.width());var r=I+z+4,v=M+z+8,b=R+B+2,_=R+r+B,y=R+v+B,w=y+m.width()+8+6,k=$(window).width();b>k?G&&(s.hide(),a.hide(),i.hide(),G=!1,Q=!1,J=void 0):k>=b&&_>k?0!==J&&(G=!0,i.show(),a.show(),s.hide(),Q=!1,J=0):k>=_&&y>k?2!==J&&(G=!0,i.show(),e(!0),n(!1),o(!1),a.show(),t.navigationButtonsEnabled&&(s.show(),Q=!0),J=2):k>=y&&w>k?4!==J&&(G=!0,i.show(),e(!0),n(!0),o(!1),a.show(),t.navigationButtonsEnabled&&(s.show(),Q=!0),J=4):5!==J&&(G=!0,i.show(),e(!0),n(!0),o(!0),a.show(),t.navigationButtonsEnabled&&(s.show(),Q=!0),J=5)},ae=function(){var e=$(window).width(),n=$(window).height();Q&&(te>e||ee>n)?(s.hide(),Q=!1,G||i.hide()):Q||e>te&&n>ee&&(t.navigationButtonsEnabled&&(s.show(),Q=!0),i.is(":visible")||i.show());var o=F;Q||(o=0),G&&B+o>e?(a.hide(),Q||i.hide(),G=!1):!G&&e>B+o&&(a.show(),i.is(":visible")||i.show(),G=!0)},se=function(){X=$.extend({},W),"object"==typeof t.colors&&$.each(t.colors,function(e,t){X[e]=t}),X.inactive=ve(X.color1),$.each(Y,function(e,t){$.each(t,function(t,n){$(n).css("fill",X[e])})}),$.each(U,function(e,t){$.each(t,function(t,n){$(n).css("color",X[e])})}),r.css("background-color",X.background),v.css("color",X.pagerText);var e=x.add(P).add(C);return e.css("background-color",X.tooltipBackground1),e.find(".ControlbarTooltip-arrow").css("border-top","solid "+X.tooltipBackground1+" 10px"),$(".PrintMenu-choice").css("background-color",X.tooltipBackground2),$(".PrintMenu-caption").css("color",X.color1).hover(function(e){$(this).css("color","mouseenter"===e.type?X.color2:X.color1)}),X},ce=function(e){"undefined"===$.type(E)&&(E=l.is(":hidden")),E&&e?(J>=2&&(l.show(),d.hide()),J>=4&&(c.show(),u.hide())):E||e||(J>=2&&(l.hide(),d.show()),J>=4&&(c.hide(),u.show())),E=!e},ue=function(e){"undefined"===$.type(N)&&(N=h.is(":hidden")),N&&e?(J>=2&&(h.show(),g.hide()),J>=4&&(p.show(),f.hide())):N||e||(J>=2&&(h.hide(),g.show()),J>=4&&(p.hide(),f.show())),N=!e},le=function(){if(!t.navigationLoop){var e=n.getCurrentPageNumber();e>0?ce(!0):0===e&&ce(!1),en.getLastPageNumber()?n.gotoPageNumber(o,!0):v.val(e),fe()};v.on("click",function(){v.focus()}),v.on("focus",function(){e=v.val(),v.val("")}),v.on("blur",t),v.keypress(function(e){13===e.which&&(n.getIsFullScreen()?t():v.trigger("blur"))})},fe=function(e){"undefined"===$.type(e)&&(e=v.val());var t=35;e.length>5&&(t+=6*(e.length-5)),t+=2,m.css({width:t}),v.val(e)},he=function(){var e=function(){O.toggleTooltip(x,!1),b.data("tooltip-hidden",!1)};b.on(Z,function(){S?(e(),n.printBoth()):(O.toggleTooltip(x),"undefined"!==$.type(D)&&(D.toggleTooltipMini(!1),D.toggleTooltipFull(!1)),b.data("tooltip-hidden",!0))}),y.add(w).add(_).add(k).on(Z,function(){O.toggleTooltip(x,!1)}),x.find(".PrintMenu-choice--left").on(Z,function(t){t.preventDefault(),n.printLeft(),e()}),x.find(".PrintMenu-choice--right").on(Z,function(t){t.preventDefault(),n.printRight(),e()}),x.find(".PrintMenu-choice--both").on(Z,function(t){t.preventDefault(),n.printBoth(),e()}),n.addEventHandler(["onPageChange","onZoomIn","onZoomOut","onLinkClicked"],e),v.on("focus",e),o.addEventHandler("onVideoFrameClick",e)},ge=function(){var e=!1,t=function(){e&&("undefined"===$.type(L)?(e=!1,y.data("tooltip-hidden",!1),"undefined"!==$.type(D)&&(D.toggleTooltipMini(!1),D.toggleTooltipFull(!1))):L.closeSearchScreen())},i=function(){e||("undefined"===$.type(L)?(e=!0,y.data("tooltip-hidden",!0),"undefined"!==$.type(D)&&D.toggleTooltipMini(!0)):L.openSearchScreen())};y.find("svg").on(Z,function(){e?t():i()}),b.add(w).add(_).add(k).on(Z,t),"undefined"!==$.type(D)&&D.addEventHandler("closeButtonClick",t),n.addEventHandler(["onPageChange","onZoomIn","onZoomOut","onLinkClicked"],t),v.on("focus",t),o.addEventHandler("onVideoFrameClick",t)},ve=function(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(e,t,n,o){return t+t+n+n+o+o});var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e),o=e;if($.isArray(n)&&n.length>3){var i=parseInt(n[1],16),r=parseInt(n[2],16),a=parseInt(n[3],16),s=0,c=0,u=0,l=j,d=Math.ceil(s*l)+Math.ceil(i*(1-l)),p=Math.ceil(c*l)+Math.ceil(r*(1-l)),f=Math.ceil(u*l)+Math.ceil(a*(1-l));o="#"+((1<<24)+(d<<16)+(p<<8)+f).toString(16).slice(1)}return o};this.init()};var _gaq=_gaq||[],userAgent=navigator.userAgent||navigator.vendor||window.opera;if(/Presto/i.test(userAgent)||/Android 2\./i.test(userAgent))throw new Error("use_fallback");!function(e,t,n){"use strict";var o,i,r,a,s,c,u,l,d,p,f,h,g,v,m,b,_,y,w,k,T,x,P,C,S,B,F,I,$,M,E,N,A,L,D,H,R,z,O,q,W,X,Y,U,j,V,Z,G,Q,J,K,ee,te,ne,oe,ie,re,ae,se,ce,ue,le,de,pe,fe,he,he,ge,ve,me,be,_e,ye,we,ke,Te,xe,Pe,Ce,Se,Be,Fe,Ie,$e,Me,Ee,Ne,Ae,Le,De,He,Re,ze,Oe,qe,We,Xe,Ye,Ue,je,Ve,Ze,Ge,Qe,Je,Ke,et,tt,nt,ot,it,rt,at,st,ct,ut,lt,dt,pt,ft,ht,gt,vt,mt,bt,_t,yt,wt,kt,Tt,xt,Pt,Ct,St,Bt,Ft,It,$t,Mt,Et,Nt,At,Lt,Dt,Ht,Rt,zt,Ot,qt,Wt,Xt,Yt,Ut,jt,Vt,Zt,Gt,Qt,Jt,Kt,en,tn,nn,on,rn,an,sn,cn,un,ln,dn,pn,fn,hn,gn,vn,mn,bn,_n,yn,wn,kn,Tn,xn,Pn,Cn,Sn,Bn,Fn,In,$n,Mn,En,Nn,An,Ln,Dn,Hn,Rn,zn,On,qn,Wn,Xn,Yn,Un,jn,Vn,Zn,Gn,Qn,Jn,Kn,eo,to,no,oo,io,ro,ao,so,co,uo,lo,po,fo,ho,go,vo,mo,bo,_o,yo,wo,ko,To,xo,Po,Co,So,Bo,Fo,Io,$o,Mo,Eo,No,Ao,Lo,Do,Ho,Ro,zo,Oo,qo,Wo,Xo,Yo=!1,Uo=!1,jo="",Vo=700,Zo=500,Go=!1,Qo={},Jo=!0,Ko=700,ei=500,ti=!1,ni=!1,oi=ni,ii=!0,ri=!0,ai=.1,si=.3,ci=.15,ui=.15,li=e(),di={},pi=[],fi=Math,hi=fi.PI,gi=["left","right"],vi=!1,mi=!0,bi=fi.sin,_i=fi.asin,yi=fi.cos,wi=fi.sqrt,ki=fi.abs,Ti=fi.floor,xi=fi.ceil,Pi=fi.round,Ci=fi.random,Si="auto",Bi=85,Fi=function(t){var o,Je=.3;"string"===e.type(t.IncDirPath)&&(jo=t.IncDirPath),r=t.IDs,a=t.DefaultID,i=t.Title||"flipbook",s=t.PageWidth||300,c=t.PageHeight||400,u=t.CoverWidth||s,l=t.CoverHeight||c,f="undefined"===e.type(t.HardCover)?!1:t.HardCover,h=t.HardPages||vi,d=t.StageWidth,p=t.StageHeight,v="undefined"===e.type(t.DoubleTapZoomSpeed)?18:t.DoubleTapZoomSpeed,U=t.VerticalMode||vi,Ee=t.SinglePageDesktopMode||vi,Ne="undefined"===e.type(t.SinglePageMobileMode)?!0:t.SinglePageMobileMode,j=t.RightToLeft&&!U||vi,k=t.AutoScale||mi,T=t.FullScale||mi,x=t.FillScale||vi,P=t.UpScale||vi,t.CenterSinglePage="undefined"!==e.type(t.CenterSinglePage)?t.CenterSinglePage:!0,C="undefined"===e.type(t.AutoStageHeight)?vi:Boolean(t.AutoStageHeight),Q="undefined"===e.type(t.ControlbarEnabled)?!0:Boolean(t.ControlbarEnabled),H="undefined"===e.type(t.SearchButtonEnabled)?mi:Boolean(t.SearchButtonEnabled),R="undefined"===e.type(t.PrintButtonEnabled)?vi:Boolean(t.PrintButtonEnabled),q="undefined"===e.type(t.ThumbnailsButtonEnabled)?mi:Boolean(t.ThumbnailsButtonEnabled),Yo=function(e){var t=/android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|meego.+mobile|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e);return!(!t&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))}(userAgent),Uo=Boolean(userAgent.match(/iPad|Android|(?=.*\bWindows\b)(?=.*\bARM\b)/i));var Ke=32;Yo||Uo?(Ae=Ne,h&&(h=!1),Ae&&(Ke=10),"boolean"===e.type(t.ControlbarEnabledMobile)&&(Q=t.ControlbarEnabledMobile)):Ae=Ee,m="undefined"===e.type(t.Margin)?Ke:t.Margin,b="undefined"===e.type(t.MarginTop)?m:t.MarginTop,_="undefined"===e.type(t.MarginBottom)?m:t.MarginBottom,y="undefined"===e.type(t.MarginLeft)?m:t.MarginLeft,w="undefined"===e.type(t.MarginRight)?m:t.MarginRight,g=Ae?vi:Boolean(t.CenterSinglePage),F=Ae?mi:t.ScaleToSinglePage||vi,V=Ae?vi:t.AlwaysOpened||vi,Ge={},"undefined"!==e.type(t.FlippingSoundVolume)&&t.FlippingSoundVolume>0&&(Ge.pageFlipping={},Ge.pageFlipping.src="undefined"!==e.type(t.FlippingSoundSrc)?t.FlippingSoundSrc:jo+"inc/sound/flip.mp3",Ge.pageFlipping.volume="undefined"!==e.type(t.FlippingSoundVolume)?t.FlippingSoundVolume:0),(T||x||P)&&(C=vi),S=t.AutoMaxHeight||vi,B=t.MaxHeightOffset||0,I=t.FlexibleContent||vi,o=t.FlexibleContentMinWidth,$=o==n?768:o,o=t.StartPage,M=o==n?1:o,E=t.MinPageLimit||0,E>M&&(M=E),N=t.MaxPageLimit,A=t.StartAutoFlip||!1,o=t.AutoFlipEnabled,L=o==n?!0:o,D="undefined"===e.type(t.FullScreenEnabled)?mi:Boolean(t.FullScreenEnabled),Ve="undefined"===e.type(t.BackgroundColor)?"#d4d4d4":t.BackgroundColor,Ze="undefined"===e.type(t.BackgroundImage)?null:jo+t.BackgroundImage,W=t.AutoFlipInterval||2e3,o=t.AutoFlipLoop,X=o==n?!1:o,Y=t.NavigationLoop||vi,o=t.Preflip,Z=o==n?mi:o,G=t.ControlbarToFront||mi,J="undefined"===e.type(t.Thumbnails)?mi:Boolean(t.Thumbnails),o=t.ThumbnailsLazyLoad,K=o==n?mi:o,o=t.ThumbnailsToFront,ee=o==n?vi:o,te=t.ThumbnailsAutoHide||0,ne=t.ThumbnailsHidden||mi,oe=t.ThumbnailWidth||60,ie=t.ThumbnailHeight||80,re=t.ThumbnailAlwaysCentered||vi,J||(q=!1),ae=t.Transparency||vi,o=t.PageCache,se=o==n?5:o,ce=t.NoFlipShadow||vi,o=t.DropShadow,ue=o==n?mi:o,o=t.Emboss,le=o==n?mi:o,o=t.DropShadowOpacity,de=o==n?.2:o,o=t.FlipTopShadowOpacity,pe=o==n?.2:o,o=t.FlipShadowOpacity,fe=o==n?.2:o,o=t.EmbossOpacity,ge=o==n?.2:o,o=t.HardFlipShadowOpacity,he=o==n?Je:o,ve=t.PreflipArea||128,me=t.SecondaryDragArea||64,be=Ae?ve:t.InsideDragArea||0,_e=t.FlipDuration||400,ye=t.BookOffsetX||0,we=t.BookOffsetY||0,Ae&&(U?we-=l/2:j&&!Ae?ye+=u/2:ye-=u/2),ke=xt?t.PerformanceAware||vi:mi,Te=t.PagerText||"#~#–#",o=t.PagerSkip,xe=o==n?mi:o,o=t.HashControl,$e=o==n?mi:o,o=t.ZoomEnabled,Pe=o==n?mi:o,Ce=t.ClickZoom||mi,o=t.ZoomFlip,Se=o==n?vi:o,o=t.PinchZoom,Be=o==n?vi:o,o=t.MouseControl,Fe=o==n?mi:o,Ie=t.GoogleAnalytics,Me=t.DisableSelection||mi,Le="undefined"!=typeof t.DownloadUrl?t.DownloadUrl:null,O="undefined"!=typeof t.DownloadButtonEnabled?t.DownloadButtonEnabled:!1,Le||(O=!1),Ye="undefined"!==e.type(t.LinksTooltipEnabled)?t.LinksTooltipEnabled:!1,Ye&&"undefined"!==e.type(on)&&(Ye=!1),He=t.LinksTooltipColor||"#FFFFFF",Re=t.LinksTooltipBackground||"#333333",ze=t.LinksTooltipText||"Click to open this link",Oe="undefined"!=typeof t.LinkFading?t.LinkFading:!1,qe=t.LinkBackground||"#0000ff",Xe="undefined"!=typeof t.ControlbarTooltipEnabled?t.ControlbarTooltipEnabled:!1,We="undefined"!==e.type(t.InvisibleLinks)?t.InvisibleLinks:!1,1==We&&(qe="transparent"),Ue=t.ControlbarTooltipColor||"#FFFFFF",je=t.ControlbarTooltipBackground||"#000000","undefined"!==e.type(t.MobileImageMaxHeight)&&(Vo=t.MobileImageMaxHeight),"undefined"!==e.type(t.MobileImageMaxWidth)&&(Zo=t.MobileImageMaxWidth),Go="undefined"!==e.type(t.NavigationArrowsEnabled)?t.NavigationArrowsEnabled:!1,z="undefined"!==e.type(t.NavigationButtonsEnabled)?t.NavigationButtonsEnabled:!Go,Qo.color="undefined"!==e.type(t.NavigationArrowsColor)?t.NavigationArrowsColor:"#b5b5b5",Qo.hoverColor="undefined"!==e.type(t.NavigationArrowsHover)?t.NavigationArrowsHover:"#ffffff",De={},"undefined"!==e.type(t.ControlbarColor1)&&(De.color1=t.ControlbarColor1),"undefined"!==e.type(t.ControlbarColor2)&&(De.color2=t.ControlbarColor2),"undefined"!==e.type(t.ControlbarBackground)&&(De.background=t.ControlbarBackground),"undefined"!==e.type(t.ControlbarPagerText)&&(De.pagerText=t.ControlbarPagerText),"undefined"!==e.type(t.ControlbarTooltipBackground1)&&(De.tooltipBackground1=t.ControlbarTooltipBackground1),"undefined"!==e.type(t.ControlbarTooltipBackground2)&&(De.tooltipBackground2=t.ControlbarTooltipBackground2),"undefined"!==e.type(t.ControlbarPrint1)&&(De.print1=t.ControlbarPrint1),"undefined"!==e.type(t.ControlbarPrint2)&&(De.print2=t.ControlbarPrint2),"undefined"!==e.type(t.ControlbarPrint3)&&(De.print3=t.ControlbarPrint3),"undefined"!==e.type(t.ControlbarSearch1)&&(De.search1=t.ControlbarSearch1),"undefined"!==e.type(t.ControlbarSearchScreenBackground)&&(De.searchScreenBackground=t.ControlbarSearchScreenBackground),"undefined"!==e.type(t.ControlbarSearchInputBackground)&&(De.searchInputBackground=t.ControlbarSearchInputBackground),"undefined"!==e.type(t.ControlbarSearchInputText)&&(De.searchInputText=t.ControlbarSearchInputText),"undefined"!==e.type(t.ControlbarSearchResultsBackground)&&(De.searchResultsBackground=t.ControlbarSearchResultsBackground),"undefined"!==e.type(t.ControlbarSearchResultsSeparator)&&(De.searchResultsSeparator=t.ControlbarSearchResultsSeparator),"undefined"!==e.type(t.ControlbarSearchResultsText)&&(De.searchResultsText=t.ControlbarSearchResultsText),"undefined"!==e.type(t.ZoomCursorColor)&&(Qe=t.ZoomCursorColor),"undefined"!==e.type(t.ZoomCursorEnabled)&&(ri=t.ZoomCursorEnabled),"undefined"!==e.type(t.NavbarMinHeight)&&(Ko=t.NavbarMinHeight),"undefined"!==e.type(t.NavbarMinWidth)&&(ei=t.NavbarMinWidth),"undefined"!==e.type(t.UseNavBarMinSizes)&&(ti=t.UseNavBarMinSizes),"undefined"!==e.type(t.NavBarMobile)&&(ni=t.NavBarMobile,oi=ni),"undefined"!==e.type(t.ChangeQualityOnMobile)&&(ii=t.ChangeQualityOnMobile)},Ii=function(){mt=bt=0,_t=1,lo=vi,Bi*=2,un=Bi+10,ln=2,cn=un/ln,dn=cn+10,sn=un/hi,$i()},$i=function(){gt=2*u,vt=1*l,U&&(gt=u,vt=2*l),Ae&&(gt=u,vt=l),yt=u>s||l>c,wt=2*xi(Wr(s,c)/2),kt=2*xi(Wr(u,l)/2),pn=U?1:2,fn=3-pn,hn=U?-1:1},Mi=function(){Vt=[],Zt=[],Jt=[],Gt=[],Qt=[]},Ei=function(){Pt=vi,St=[],Ro=[],Et=4,Lt=vi,Dt=vi,Ht=vi,Rt=vi,zt=vi,Xt=Yt=Ut=jt=0,gn=vn=mn=bn=_n=yn=wn=kn=n},Ni=function(){Jt=[],Zt=[],Gt=[],tt.empty(),Xi()},Ai=function(t){Mi();for(var n,o,i,r,a,s,c,u=0,l=0,d=0,p=1,h=vi;l"),!0,i,void 0,d)):s||Ri(d++,{__PageNumber:0,__notEmpty:vi}),0===u&&r&&(V=vi),c=zi(o,r,i,a,d),"undefined"===e.type(c.__PageNumber)?c.__PageNumber=p++:c.__PageNumber>0&&(p=c.__PageNumber+1),Ri(d++,c),s&&Ri(d++,zi(e("
"),!0,i,void 0,d)),u++);if(ht=d-1,f){var g=Vt[ht];"undefined"!==e.type(g)&&(g.__isHard=!0)}Hi(),j&&Vt.reverse(),h||(yt=vi),is(E,N),ts()},Li=function(t,n,o){n=n||ft,o=o||vi,0!=n||V||n++;for(var i,r,a,s,c,u,l=0,d=0,p=vi;dht&&(ft=ht-ht%2),0>ft&&(ft=0),Ni()},Hi=function(){ht%2==0&&(Vt[ht].__notEmpty?Ri(++ht,{__PageNumber:0,__notEmpty:vi}):(Vt.splice(ht,1),ht--))},Ri=function(e,t){Vt[e]=t},zi=function(t,n,o,i,r){n=n||vi,o=o||1===r,o||"undefined"===e.type(N)||(o=Ae?r===N-2:r===N-1),i=i||vi;var a=t.data(),d=a.disableEmbossing,p=h||a.hard===!0;f&&o&&(p=!0);var g={__Unload:!(a.unload==vi),__BackgroundFiles:[],__HtmlFile:a.htmlFile,__HtmlData:t.html(),__ThumbnailImageUrl:a.thumbnailImage,__ThumbnailImage:void 0,__DisableEmbossing:"undefined"===e.type(d)?!le:d,__TransparentPage:a.transparentPage==mi,__RemovablePage:a.removablePage==mi,__PageNumber:n?0:a.pageNumber,__PageName:a.pageName,__PageLabel:a.pageLabel,__AutoFlipInterval:a.autoFlipInterval,__Data:a.data,__renderWidth:i?u:s,__renderHeight:i?l:c,__maskSize:o?kt:wt,__isHard:p,__isCover:i,__outer:n,__notEmpty:mi};return"undefined"!==e.type(a.backgroundFileDesktop)&&g.__BackgroundFiles.push({type:"desktop",url:a.backgroundFileDesktop,set:!1}),"undefined"!==e.type(a.backgroundFileMobile)&&g.__BackgroundFiles.push({type:"mobile",url:a.backgroundFileMobile,set:!1}),g.__isHard&&(g.__DisableEmbossing=mi),g.__isLoaded=!g.__HtmlFile,g},Oi=function(e){wn=e>wn?e:wn},qi=function(e){_n=e>_n?e:_n},Wi=function(){var e=ye-(g&&!U?Pi((wn-_n)/2):0),t=we-(g&&U?Pi((wn-_n)/2):0);Go&&.01>Hn&&ut.shift(e,t),mt==e&&bt==t||(Tt=!0,mt=e,bt=t,nt.css({transform:qr(mt,bt)}))},Xi=function(){var t=Zt,o=Jt,i=[],r=[],a=[],s=[],c=[],p=ft,g=ft+1;if(_n=wn=vn=bn=0,Ct=[],Pt){0>Bt?p=Mt:g=Mt+1;for(var v,m,b=0;b=0;)y||Vt[_].__isCover&&!Vt[_].__outer&&yt?(i.push(_),y=ae&&Vt[_].__TransparentPage):w>0&&(Vt[_].__notEmpty&&Jt.push(_),Vt[_+1].__notEmpty&&Jt.push(_+1),w--),!y&&0==w&&_>4?_=2:_-=2;var k=g;for(y=Vt[k].__notEmpty,w=y?se:0;ht>=k;)y||Vt[k].__isCover&&!Vt[k].__outer&&yt?(r.push(k),y=ae&&Vt[k].__TransparentPage):w>0&&(Vt[k-1].__notEmpty&&Jt.push(k-1),Vt[k].__notEmpty&&Jt.push(k),w--),!y&&0==w&&ht-4>k?k=ht-2:k+=2;Zt=[];for(var T,x,P=i.length,C=r.length,S=P>C?P:C,b=0;S>b;b++)C>b&&(x=r[b],T=Vt[x],Oi(U?T.__renderHeight:T.__renderWidth),T.__outer||(bn=wn),Zt.splice(0,0,x),T.__flip=vi,0!=b||Pt?T.__onTop&&(Ps(3,x),T.__onTop=vi):T.__onTop||(c.push({e:2,p:x}),T.__onTop=mi)),P>b&&(x=i[b],T=Vt[x],qi(U?T.__renderHeight:T.__renderWidth),T.__outer||(vn=_n),Zt.splice(0,0,x),Vt[i[b]].__flip=vi,0!=b||Pt?T.__onTop&&(Ps(3,x),T.__onTop=vi):T.__onTop||(c.push({e:2,p:x}),T.__onTop=mi));gn=_n,mn=wn,Pt?Zt=Zt.concat(Ct):Wi(),(!Pt||f&&!ke)&&Pt||Ki(vn,bn);for(var b=0;b=0&&Gt.splice(D,1),Ps(5,B),x.$p.remove(),x.__masked&&(x.__masked=vi,x.$m.remove(),x.$fsc&&x.$fsc.remove()),x.$hts&&(x.$hts.remove(),x.$hts=n)):0>D&&(x.__masked&&Qi(B),x.$p.css("display","none"),Gt.push(B),c.push({e:7,p:B}));var F,I,$,M,E,N,A,L,D,H;e.each(Array(a.length),function(t){F=a[t],D=Gt.lastIndexOf(F),H=Jt.lastIndexOf(F),D>=0?0>H&&(Gt.splice(D,1),Vt[F].$p.css("display",""),c.splice(0,0,{e:8,p:F})):(0>H&&c.splice(0,0,{e:8,p:F}),tt.append($r(F)),I=Vt[F].$p=Er(F),c.splice(0,0,{e:4,p:F}),M=Vt[F].__renderWidth,E=Vt[F].__renderHeight,U?(A=(u-M)/2,N=F%2?l:l-E,L=Si):Ae?(N=(l-E)/2,A=F%2?u/2:u-M,L=F%2?u-M:Si):(N=(l-E)/2,A=F%2?Si:u-M,L=F%2?u-M:Si),I.css({position:"absolute",overflow:"hidden",width:M,height:E,top:N,left:A,right:L}),$=Vt[F].$c=Nr(F),"undefined"!==e.type(d)&&Gi(F),$.html(Vt[F].__HtmlData),Vt[F].__HtmlFile&&$.load(Vt[F].__HtmlFile,"GET"),Vt[F].__isCover||Vt[F].__DisableEmbossing||($.after(Mr("pf-emboss-"+(F%2?"right":"left"),"page"+F+"emboss")),Ar(F).css({position:"absolute",overflow:"hidden",width:U?E/7:M/7,height:U?M:E,top:U?F%2?-M/2:E-M/2:0,left:U?F%2?"50%":Si:F%2?0:Si,right:U?F%2?Si:"50%":F%2?Si:0,"transform-origin":U?F%2?"0% 50%":"100% 50%":"",transform:U?"rotate(90deg)":"",opacity:ge})),H>=0&&(I.css("display","none"),Gt.push(F),c.push({e:7,p:F})))});for(var F,R,I,M,E,b=0,z=2;b0||St&&St.length>0?pt.setCursor(e(".pf-page-cursoroverlay")):Hn>.02&&"undefined"===e.type(t)||"zoomout"===t?pt.setCursor(e(".pf-page-cursoroverlay"),"zoomout"):(.02>Hn&&"undefined"===e.type(t)||"zoomin"===t)&&(1>_t?pt.setCursor(e(".pf-page-cursoroverlay"),"zoomin"):pt.setCursor(e(".pf-page-cursoroverlay"))))},Ui=function(){e.each(Vt,function(t,n){"undefined"!==e.type(n.$p)&&n.$p.length>0&&Gi(t)})},ji=function(e,t){e.css({"background-image":"none"}),setTimeout(function(){e.css({"background-image":"url('"+t+"')","background-size":"100% auto"})},50)},Vi=function(e,t){var n=24,o=n;if(t){var i=_t+Dn*Hn;o=n/i}e.css({"background-image":'url("'+jo+'inc/img/loader.gif")',"background-color":"white","background-repeat":"no-repeat","background-position":"50% 50%","background-size":o+"px "+o+"px"})},Zi=function(t,n){var o=function(n){var i;if("undefined"===e.type(Vt[n].__ThumbnailImage)){if(i=e.Deferred(),t.css("background-image")!=='url("'+jo+'inc/img/loader.gif")'&&Vi(t,!1),"undefined"!==e.type(Vt[n].__ThumbnailImageUrl)){var r=Vt[n].__ThumbnailImageUrl,a=new Image;a.onload=i.resolve.bind(i,a),a.src=r,a.loadingPromise=i,a.onerror=function(){setTimeout(function(){o(n).done(function(e){Vt[n].__ThumbnailImage=e,i.resolve(e)})},500)}}}else"resolved"!==Vt[n].__ThumbnailImage.loadingPromise.state()&&t.css("background-image")!=='url("'+jo+'inc/img/loader.gif")'&&Vi(t,!1),i=Vt[n].__ThumbnailImage.loadingPromise;return i};return o(n)},Gi=function(t){var n=function(o,i,r){"undefined"===e.type(pi[o])&&(pi[t]={});var a;if("undefined"===e.type(pi[o][i])){a=e.Deferred(),Vi(e("#page"+o),!0);var s=new Image;s.onload=a.resolve.bind(a,s),s.src=r,s.loadingPromise=a,s.onerror=function(){setTimeout(function(){n(o,i,r).done(function(e){pi[o][i]=e,a.resolve(e)})},500)}}else"resolved"!==pi[o][i].loadingPromise.state()&&Vi(e("#page"+o)),a=pi[o][i].loadingPromise;return a},o=[];o="undefined"===e.type(t)?[ft,ft+1]:[t],e.each(o,function(o,i){if("undefined"!==e.type(Vt[i])&&"undefined"!==e.type(Vt[i].__BackgroundFiles)){var r=Vt[i].__BackgroundFiles;if(r.length>0){var a=0;if(r.length>1&&(Jo||(a=1)),!r[a].set||i!==ft&&i!==ft+1){!r[a].set&&r.length>1&&(r[Math.abs(a-1)].set=!1);var s=r[a].type,c=r[a].url;n(t,s,c).done(function(){ji(e("#page"+i),r[a].url),r[a].set=!0})}}}})},Qi=function(e){var t=Vt[e],o=t.$p,i=t.__renderWidth,r=t.__renderHeight;o.unwrap();var a=U?Si:e%2?Si:u-i;Ae&&(a=e%2?u/2:u-i),o.css({top:U?e%2?l:l-r:(l-r)/2,left:a,right:U?(u-i)/2:e%2?u-i:Si,"transform-origin":"","backface-visibility":""}),t.$fsc&&(t.$fsc.remove(),t.$fsc=t.$fsA=t.$fsB=n),t.$fts&&(t.$fts.remove(),t.$fts=n),t.__masked=vi},Ji=function(e,t,n,o,i){var r=U?(u-o)/2:u-o;Ae&&(r=-u/2),Vt[e].$fsc.css({"z-index":t++,position:"absolute",top:U?l-n:(l-n)/2,left:r,width:U?o:2*o,height:U?2*n:n,overflow:"hidden",opacity:fe}),Vt[e].$fsA.css({position:"absolute",top:U?n-i:n/2-i,right:U?o/2:o,width:dn,height:2*i,"transform-origin":"100% 50%",overflow:"hidden"}),Vt[e].$fsB.css({position:"absolute",top:U?n-i/2:(n-i)/2,left:U?o/2:o,width:dn,height:i,"transform-origin":"0% 50%",overflow:"hidden"})},Ki=function(e,t){if(li.length>0&&(e!==yn||t!==kn)){yn=e,kn=t;var n=(e+t)/(U?vt:gt);U?ot.css("transform",qr(0,vt/2-e)+"scaleY("+n+")"):ot.css("transform",qr(gt/2-e,0)+"scaleX("+n+")")}},er=function(e,t,n,o,i,r,a,s){if(zt)return vi;a=a||e,s=s||t;var c=St.length,u=$t,r=r||2,i=i||0;if(c>=Et)return vi;if(u=0==c?ft:Mt,r+=r%2,0>o&&E>u-r)return vi;if(o>0&&u+r>N)return vi;var l,d=u+(o>0?1:0),p=u+(r-(0>o?1:0))*o;if(l=Vt[d].__isHard||Vt[p].__isHard?2:i,0==c)Pt=mi,Bt=o,Ft=l,Ps("onFlippingSequenceStarted");else if(Bt!=o||Ft!=l)return vi;0!==n&&1!==n&&4!==n||Ps("onAutoFlippingSequenceStarted"),It=n,$t=u,Mt=u+r*o;var f=1==Ft;return St[c]=ir({__startPN:$t,__endPN:Mt,__startPagePN:f?p:d,__endPagePN:f?d:p,__flipMode:n,__flipType:Ft,__dir:o,__started:vi,__success:vi},e,t),Xi(),(a||s)&&rr(St[c],a*hn,s),mi},tr=function(e,t,n,o,i){return n=n||e.__dir,e.__dir!=n||0==e.__flipMode||4==e.__flipMode||5==e.__flipMode||0==t||1==t?vi:(It=e.__flipMode=t,rr(e,o,i),mi)},nr=function(e){var t=e.__startPagePN,n=e.__endPagePN,o=Vt[t].$p,i=Vt[n].$p;Vt[t].__flip=Vt[t].__animated=Vt[n].__flip=Vt[n].__animated=vi,i.css({transform:qr(0,0)+"rotate(0deg) "}),o.css({transform:qr(0,0)+"rotate(0deg) "})},or=function(e){var t=St[e];t.__success?(ft=t.__endPN,Ps("onBeforePageChange",t.__startPN),Ps("onPageChange",ft)):zt=vi,Ps(1,t.__startPagePN),Ps(1,t.__endPagePN),nr(t),St.splice(e,1),Pt=0!=St.length,Pt&&e>0&&($t=St[e-1].__startPN,Mt=St[e-1].__endPN),t.__success&&(Ps(0===It||1===It?"onAutoFlippingSequenceEnded":"onManualFlippingSequenceEnded"),Ps("onPageChangingComplete"))},ir=function(e,t,n){var o=e.__endPagePN,i=Vt[o].__renderWidth,r=Vt[o].__renderHeight;return 2==e.__flipMode&&(U?(t*=r*e.__dir/n,n=r*e.__dir,-i/2>t&&(t=-i/2),t>i/2&&(t=i/2)):(n*=i*e.__dir/t,t=i*e.__dir,-r/2>n&&(n=-r/2),n>r/2&&(n=r/2))),e.__side=o%2?1:-1,e.__sx=U?-t:-i*e.__side,e.__sy=U?-r*e.__side:n,e.__cx=U?0:-i/2*e.__side,e.__cy=U?-r/2*e.__side:0,e.__ax=U?-t:-i*(0>t?1:-1),e.__ay=U?-r*(0>n?1:-1):n,e},rr=function(e,t,o,i){t=t||e.__ax,o=o||e.__ay;var r=e.__startPagePN,a=e.__endPagePN,s=Vt[r].$p,c=Vt[r].$m,u=Vt[a].$p,l=Vt[a].$m,d=Vt[r].__renderWidth,p=Vt[r].__renderHeight,f=d/2,h=p/2,g=Bt*(1==Ft?-1:1),v=e.__sx,m=e.__sy,b=e.__cx,_=e.__cy,y=U?o==e.__ex?n:oT||k>x)&&5!=e.__flipMode)if(v>t){var P=f-t,C=_i(P/k);t=f-bi(C)*x,o=yi(C)*x*(0>o?-1:1),t>v&&(m*o>0?(o=m,t=v):(o=-m,t=v))}else{var P=f+t,C=_i(P/w);t=bi(C)*T-f,o=yi(C)*T*(0>o?-1:1),v>t&&(m*o>0?(o=m,t=v):(o=-m,t=v))}(0>m&&20>o-m||m>0&&20>m-o)&&!i&&(0>m&&(o=-p+20),m>0&&(o=p-20))}else{var w=wi(t*t+(h+o)*(h+o)),k=wi(t*t+(h-o)*(h-o)),T=wi(d*d+(h+m)*(h+m)),x=wi(d*d+(h-m)*(h-m));if((w>T||k>x)&&5!=e.__flipMode)if(m>o){var P=h-o,C=_i(P/k);o=h-bi(C)*x,t=yi(C)*x*(0>t?-1:1),o>m&&(v*t>0?(o=m,t=v):(o=m,t=-v))}else{var P=o+h,C=_i(P/w);o=bi(C)*T-h,t=yi(C)*T*(0>t?-1:1),m>o&&(v*t>0?(o=m,t=v):(o=m,t=-v))}(0>v&&20>t-v||v>0&&20>v-t)&&!i&&(0>v&&(t=-d+20),v>0&&(t=d-20))}i?(e.__ax=t,e.__ay=o):(e.__ax+=(t-e.__ax)/5,e.__ay+=(o-e.__ay)/5,ki(t-e.__ax)<.5&&ki(o-e.__ay)<.5&&(e.__ax=t,e.__ay=o),t=e.__ax,o=e.__ay);var S=U?o/p*cn:t/d*cn;if(-cn>S&&(S=-cn),S>cn&&(S=cn),0>S&&qi(-bi(S/sn)*(U?p:d)),S>0&&Oi(bi(S/sn)*(U?p:d)),t!=e.__lx||o!=e.__ly){if(2==Ft){var g=Bt*(0>S?1:-1),B=cn*Bt,F=U?"rotateX":"rotateY",I=3e3;if(0>g)if(xt){var $={transform:F+"("+(un+B+S)*hn+"deg) "+qr(0,0)};s.css($);var M={transform:F+"("+cn+"deg) "+qr(I,I)};u.css(M)}else{var E=-(cn-ki(S))/5*Bt;s.css({transform:U?"scaleY("+bi(Bt*S/sn)+") skewX("+E+"deg) "+qr(0,0):"scaleX("+bi(Bt*S/sn)+") skewY("+E+"deg) "+qr(0,0)}),u.css({transform:qr(I,I)})}else if(xt){var M={transform:F+"("+(un-B+S)*hn+"deg) "+qr(0,0)};u.css(M);var $={transform:F+"("+cn+"deg) "+qr(I,I)};s.css($)}else{var E=(cn-ki(S))/5*Bt;u.css({transform:U?"scaleY("+bi(-Bt*S/sn)+") skewX("+E+"deg) "+qr(0,0):"scaleX("+bi(-Bt*S/sn)+") skewY("+E+"deg) "+qr(0,0)}),s.css({transform:qr(I,I)})}ce||(0>g?Vt[r].$hts.css("opacity",(1-ki(bi(S/sn))+1-ki(S/90))/2):Vt[a].$hts.css("opacity",(1-ki(bi(S/sn))+1-ki(S/90))/2)),e.__ax=t,e.__ay=o}else if(U){var N=v-t,A=m-o,L=v-b,D=m-_,H=wi(N*N+A*A),C=_i(N/H)||0,R=wi(L*L+D*D),P=_i(L/R);(0>A||0==A&&0>g)&&(C=hi-C),0>D&&(P=hi-P),P=C-(P-C);var z=yi(P)*R+o,O=bi(P)*R+t,q=(O-b)/2,W=(z-_)/2,X=b+q,Y=_+W,j=wi(q*q+W*W);0>W&&(j*=-1);var V=C*sn,Z=6;u.css({transform:qr(0,((h+j)*g).toFixed(Z))+"rotate("+V+"deg) "}),l.css({transform:qr(-X.toFixed(Z),Y.toFixed(Z))+"rotate("+V+"deg)"}),s.css({transform:qr(-(bi(-C)*g).toFixed(Z),((-h-j+1*yi(-C))*g).toFixed(Z))+"rotate("+-V+"deg) "}),c.css({transform:qr((-X).toFixed(Z),(Y-1*g).toFixed(Z))+"rotate("+V+"deg)"});var G=ki(yi(C)*h)-j*g,Q=bi(-C)*f+G,J=bi(C)*f+G,K=(Q+J)/2,ee=1;if(G=Q>J?Q:J,e.__sl=G,!ce){G/=p,K/=p;var te=.05>K?.05:K;.2>K&&(K=G),.2>K&&(ee=5*K),K>.9&&(ee=1-10*(K-.9));var ne=G;ne>.6&&(ne=ne>.8?.6-1*(ne-.8):.6+.1*bi((ne-.6)/.2*hi));var oe=.5+ee/2;Vt[a].$fsA.css({transform:qr((-X).toFixed(5),Y.toFixed(5))+"rotate("+(V+90)+"deg) scaleX("+6*te+")",opacity:oe.toFixed(5)}),Vt[a].$fsB.css({transform:qr((-X).toFixed(5),Y.toFixed(5))+"rotate("+(V+90)+"deg) scaleX("+3*G+")",opacity:ee.toFixed(5)}),Vt[a].$fts.css({transform:"rotate("+(-V+90)+"deg) "+qr((-j*g).toFixed(5),0)+"scaleX("+4*ne+")",opacity:(ee*pe).toFixed(5)})}e.__lx=t,e.__ly=o}else{var N=v-t,A=m-o,L=v-b,D=m-_,H=wi(N*N+A*A),C=_i(A/H)||0,R=wi(L*L+D*D),P=_i(D/R);(0>N||0==N&&0>g)&&(C=hi-C),0>L&&(P=hi-P),P=C-(P-C);var O=yi(P)*R+t,z=bi(P)*R+o,q=(O-b)/2,W=(z-_)/2,X=b+q,Y=_+W,j=wi(q*q+W*W);0>q&&(j*=-1);var V=C*sn,Z=6;u.css({transform:qr(((f+j)*g).toFixed(Z),0)+"rotate("+V+"deg) "}),l.css({transform:qr(X.toFixed(Z),Y.toFixed(Z))+"rotate("+V+"deg)"}),s.css({transform:qr(((-f-j+1*yi(-C))*g).toFixed(Z),(bi(-C)*g).toFixed(Z))+"rotate("+-V+"deg) "}),c.css({transform:qr((X-1*g).toFixed(Z),Y.toFixed(Z))+"rotate("+V+"deg)"});var G=ki(yi(C)*f)-j*g,Q=bi(-C)*h+G,J=bi(C)*h+G,K=(Q+J)/2,ee=1;if(G=Q>J?Q:J,e.__sl=G,!ce){G/=d,K/=d;var te=.05>K?.05:K;.2>K&&(K=G),.2>K&&(ee=5*K),K>.9&&(ee=1-10*(K-.9));var ne=G;ne>.6&&(ne=ne>.8?.6-1*(ne-.8):.6+.1*bi((ne-.6)/.2*hi));var oe=.5+ee/2;Vt[a].$fsA.css({transform:qr(X.toFixed(5),Y.toFixed(5))+"rotate("+V+"deg) scaleX("+6*te+")",opacity:oe.toFixed(5)}),Vt[a].$fsB.css({transform:qr(X.toFixed(5),Y.toFixed(5))+"rotate("+V+"deg) scaleX("+3*G+")",opacity:ee.toFixed(5)}),Vt[a].$fts.css({transform:"rotate("+-V+"deg) "+qr((-j*g).toFixed(5),0)+"scaleX("+4*ne+")",opacity:(ee*pe).toFixed(5)})}e.__lx=t,e.__ly=o}return y}},ar=function(e,t,n,o,i,r,a){e.__stx=e.__ax,e.__sty=e.__ay,e.__tx=t,e.__ty=n,e.__duration=o,e.__styleX=i,e.__styleY=r,e.__start=ur().getTime(),e.__r=a},sr=function(e){var t=ur().getTime()-e.__start,n=e.__duration,o=vi;t>=n&&(o=mi,t=n);var i=t/n,r=e.__tx-e.__stx,a=e.__ty-e.__sty,s=e.__stx+cr(e.__styleX,i,r,e.__r),c=e.__sty+cr(e.__styleY,i,a,e.__r);return{x:s,y:c,end:o}},cr=function(e,t,n,o){switch(e){case 0:return n*t;case 1:return bi(hi*t/2)*n;case 2:return(1-yi(hi*t/2))*n;case 3:return(1-yi(hi*t))/2*n;case 4:return bi(2*hi*t)*o;case 5:return bi(hi*t)*o;case 6:return yi(2*hi*t)*o;case 7:return yi(hi*t)*o}},ur=function(){return new Date},lr=vi,dr=function(){if(Tn&&raf(dr),Ro.length>0&&vs(),Pt){var e;_n=vn,wn=bn;for(var t=0;tNt?-Xt:Xt:-dn,U?-dn:0>At?-Yt:Yt,2,-1,Ae?1:0)&&(Rt=mi);break;case"OR":er(Nt,At,2,1,1)&&(Rt=mi);break;case"IL":er(U?0>Nt?-Ut:Ut:dn,U?dn:0>At?-jt:jt,2,1,Ae?1:0)&&(Rt=mi)}else{if(Nn||!Mn||!Ir(t))return mi;if("pf-hotspot"===t.target.className)return!0;ao=mi,lr=vi;var o=xr(t,!1);if("undefined"!==e.type(o)){var i=Tr(tn,o.x,o.y,!0);isNaN(i.x)||isNaN(i.y)||ba(i.x,i.y)}}}},fr=function(t){if(!(t&&t.type&&"mousemove"===t.type&&nn))if(tn||(so=t.pageX,co=t.pageY),tn||!Mn||ao||!Ir(t)){if(lr=mi,!Lt&&Fe)if((Rt||Ht||ao||Pn)&&Xr(t),kr(t),Nn||!ao){var o=Pr(Nt,At,Ht);if(Ht&&!tn)o||mr(St[St.length-1]);else if(Rt);else if(!tn&&!Mn&&Z&&!Ae&&o)switch(o){case"TL":case"BL":er(U?0>Nt?-Xt:Xt:Nt,U?At:0>At?-Yt:Yt,3,-1,0,n,Nt,At)&&(Ht=mi);break;case"TR":case"BR":er(U?0>Nt?-Ut:Ut:Nt,U?At:0>At?-jt:jt,3,1,0,n,Nt,At)&&(Ht=mi)}}else{var i=xr(t,!1);if("undefined"!==e.type(i)){var r=Tr(tn,i.x,i.y,!0);isNaN(r.x)||isNaN(r.y)||va(r.x,r.y)}}}else if(Xr(t),ao=mi,lr=vi,"undefined"!==e.type(t.pageX)){var r=Tr(tn,t.pageX,t.pageY,!0);ba(r.x,r.y)}},hr=function(t){if(!(t&&t.type&&"mouseup"===t.type&&nn)){if(Wt=+new Date-qt,qt=void 0,t.target){var n=e(t.target),o=!1;if((n.hasClass("pf-thumbnail-button")||n.hasClass("pf-thumbnail-page"))&&(o=!0),"pf-thumbnail-container"!==n.attr("id")&&"pageflip-thumbnails"!==n.attr("id")||(o=!0),o)return!0}if(Fe)if(kr(t),Sn=null,Rt||Ht)Xr(t),Ps("onManualEnded"),mr(St[St.length-1],!0),Tt=vi,gr();else if(ao){if(Xr(t),tn&&(ao=vi),!Ir(t))return mi;!tn&&Br(Nt,At)&&Ce&&(ao=vi,"video-thumb"!==t.target.className&&"play-button"!==t.target.className&&"pf-hotspot"!==t.target.className&&(Cs.zoomOut(),Cs.hideThumbnails()))}else{if(!Ir(t))return mi;if(!tn&&Br(Nt,At)&&Ce&&"video-thumb"!==t.target.className&&"play-button"!==t.target.className&&"pf-hotspot"!==t.target.className){var i=Tr(tn,t.pageX,t.pageY);_a(Nt,At,i.x,i.y),Cs.zoomIn(),Cs.hideThumbnails()}}}},gr=function(){tn||it.trigger(an.__onMove)},vr=function(e,t,n){Aa();var o=vi,i=U?-.5:e,r=U?2*e:1;if(er(i*s,r*c/2,0,e,t,n,i*s*.97,r*c/2*.97)){var a=St[St.length-1];a.__success=mi;var u=1==a.__flipType?1:-1;U?ar(a,a.__sx,u*a.__sy,_e,5,2==a.__flipType?0:3,-s/8-(Ci()-.5)*s/16):ar(a,u*a.__sx,a.__sy,_e,2==a.__flipType?0:3,5,-c/8+(Ci()-.5)*c/16),o=mi}return o},mr=function(t,n){var o=t.__side*(1==t.__flipType?-1:1);if(tr(t,4)){t.__success=Ot&&Rt?Ot==o:o*(U?At:Nt)>0;var i=Pr(Nt,At,Ht||Rt),r=!1;if(.01>Kr&&(r=Sr(Nt,At)),i||n){var a="undefined"!==e.type(Ot)&&Ot===o;(a||"undefined"!==e.type(Wt)&&400>Wt)&&(t.__success=mi)}Rt=!1,Ht=!1;var s=t.__sx*(U?1:(t.__success?-1:1)*t.__side*o),c=t.__sy*(U?(t.__success?-1:1)*t.__side*o:1),u=U?vt:gt,l=Wr(s-t.__ax,c-t.__ay)/u,d=t.__sl/u,p=2;d>l&&(l=d,p=1),ar(t,s,c,_e*l,U?p:0,U?0:p),zt=!t.__success}},br=function(){Xt=Vt[ft].__renderWidth/fn||0,Yt=Vt[ft].__renderHeight/pn||0,Ut=Vt[ft+1].__renderWidth/fn||0,jt=Vt[ft+1].__renderHeight/pn||0},_r=function(){xn=[],Cn=[]},yr=0,wr=0,kr=function(t){var n,o,i=xr(t,!1);"undefined"!==e.type(i)&&(n=i.x,o=i.y);var r=_t+Dn*Hn,a=(n-et.offset().left)/r-gt/2-mt,s=(o-et.offset().top)/r-vt/2-bt;isNaN(a)||(Nt=a,At=s)},Tr=function(t,n,o,i){var r,a={x:1,y:1},s=1,c=gt,u=vt;Ae&&(U?u/=2:c/=2);var l=0;Q&&(l=rt.getHeight());var f=Hn;i&&(f=sa());var h=f/sa(),g=sa(),v=_t+Dn*g,m=_t+Dn*f,b=_t,_=c*b,y=(d-_)/2,w=y*m/b;w>d/2&&(w=d/2);var k=c*m+2*w,T=u*b,x=(p-T-l)/2,P=x*v/b;P>p/2&&(P=p/2);var C=x+h*(P-x),S=u*m+l+2*C,B=u*m+l+2*P;if(!tn&&ao)if(t)a.x=a.y=1*s,Hn>0&&(a.x=a.y=1*s/Hn);else{var F;if(x>o){var I=o,$=I*P/x;F=$}else if(o>x+T){var M=o-T-x,E=M*P/x;F=P+u*m+E}else{var N=o-x,A=N*(u*m)/T;F=P+A}var L=F-o-((B-l)/2-p/2);L+=(S-l-p)/2,r={x:n*(k-d)/d,y:L}}return"undefined"===e.type(r)&&(r={x:parseInt(n-Ke.offset().left,10)*a.x,y:parseInt(o-Ke.offset().top,10)*a.y}),r},xr=function(t,n){var o,i,r,a=t;if("undefined"===e.type(n)&&(n=!0),nn&&"touch"===on){var s=t.originalEvent.changedTouches;a=void 0,"undefined"!==e.type(s[0])&&(n?Sn&&"undefined"===e.type(window.TouchEmulator)?a=Bn:(Sn=s[0].identifier,Bn=s[0],a=Bn):a=s[0])}return!nn||"touch"===on&&"undefined"!==e.type(a)?"undefined"!==e.type(a.pageX)&&"undefined"!==e.type(a.pageY)&&(o=a.pageX,i=a.pageY):"pointer"===on&&"undefined"!==e.type(a.clientX)&&"undefined"!==e.type(a.clientY)&&(o=a.clientX,i=a.clientY),"undefined"!==e.type(o)&&(r={x:o,y:i}),r},Pr=function(e,t,n){var o="",i=ve*(n?1.2:1);return U?t>-Yt&&jt>t&&(-Yt+i>t?e>-Xt&&-Xt+i>e?o="BL":Xt>e&&e>Xt-i&&(o="TL"):t>jt-i&&(e>-Ut&&-Ut+i>e?o="BR":Ut>e&&e>Ut-i&&(o="TR"))):e>-Xt&&Ut>e&&(-Xt+i>e?t>-Yt&&-Yt+i>t?o="TL":Yt>t&&t>Yt-i&&(o="BL"):e>Ut-i&&(t>-jt&&-jt+i>t?o="TR":jt>t&&t>jt-i&&(o="BR"))),o},Cr=function(){var e=ai;return tn&&(e=si,Ae&&(e=ci)),e},Sr=function(e,t){var n="",o=Cr();return tn&&Hn>.01&&(o=ui),U?(me=o*Math.max(Yt,jt),Ae&&(be=me),t>-Yt&&jt>t&&(-Yt+me>t?ki(e)jt-me?ki(e)t?"IL":"IR"))):(me=o*Math.max(Xt,Ut),Ae&&(be=me),e>-Xt&&Ut>e&&(-Xt+me>e?ki(t)Ut-me?ki(t)e?"IL":"IR"))),n},Br=function(e,t){if(U){var n=Fr(t,Xt,Ut);if(t>-Yt&&jt>t&&e>-n&&n>e)return mi}else{var o=0;Ae||(o=Yt);var i=Fr(e,o,jt);if(e>-Xt&&Ut>e&&t>-i&&i>t)return mi}return vi},Fr=function(e,t,n){return 0>e?t:n},Ir=function(t){var n=e(t.target);return!(n.is("input")||n.is("textarea")||n.is("button"))},$r=function(t){var n,i,r=0==Vt[t].__BackgroundFiles.length;Cr();i=r?"pf-page-container white-bg"+(Vt[t].__outer?" pf-outer":"")+(o?" "+o:""):"pf-page-container pf-"+gi[t%2]+"-side"+(Vt[t].__outer?" pf-outer":"")+(o?" "+o:"");var a="";if(ri&&Vt[t].__PageNumber&&Vt[t].__PageNumber>0){var s=e("
").addClass("pf-page-cursoroverlay");s.attr("id","page"+t+"cursoroverlay");var c=Vt[t].__renderWidth,u=Vt[t].__renderHeight;if(c&&u){var l=Cr(),d=!1,p=!1;Ae?1===Vt[t].__PageNumber&&N-1>1?p=!0:Vt[t].__PageNumber>1&&Vt[t].__PageNumber===N-1?d=!0:Vt[t].__PageNumber>1&&Vt[t].__PageNumber1?p=!0:Vt[t].__PageNumber>1&&Vt[t].__PageNumber===N-1?(N-1)%2===0&&(d=!0):Vt[t].__PageNumber>1&&Vt[t].__PageNumber").append(s).html()}}return n=Mr(i,"page"+t,[a,Mr("pf-page-content","page"+t+"content")])},Mr=function(t,n,o){var i="";return o&&(e.isArray(o)||(o=[o]),e.each(o,function(t,n){"string"===e.type(n)&&(i+=n)})),i+""},Er=function(t){return e("#page"+t)},Nr=function(t){return e("#page"+t+"content")},Ar=function(t){return e("#page"+t+"emboss")},Lr=function(t){return e("#page"+t+"mask")},Dr=function(t){return e("#page"+t+"flipshadowcontainer")},Hr=function(t){return e("#page"+t+"flipshadowA")},Rr=function(t){return e("#page"+t+"flipshadowB")},zr=function(t){return e("#page"+t+"fliptopshadow")},Or=function(t){return e("#page"+t+"hardtopshadow")},qr=function(e,t){return"translate("+e+"px,"+t+"px) "},Wr=function(e,t,n){var o=wi(e*e+t*t);return n&&(o*=e>0?-1:1),o},Xr=function(e){return e.preventDefault()},Yr=function(i,r){return Je!=n?Je:(tn=!0,(window.PointerEvent||window.navigator.pointerEnabled)&&window.navigator.msMaxTouchPoints?(an={__onStart:"pointerdown",__onMove:"pointermove",__onEnd:"pointerup"},on="pointer",rn="pointerup"):(window.MSPointerEvent||window.navigator.msPointerEnabled)&&window.navigator.msMaxTouchPoints?(an={__onStart:"MSPointerDown",__onMove:"MSPointerMove",__onEnd:"MSPointerUp"},on="pointer",rn="MSPointerUp"):"ontouchstart"in t||window.navigator.msMaxTouchPoints||"TouchEmulator"in window?(an={__onStart:"touchstart",__onMove:"touchmove",__onEnd:"touchend"},on="touch",rn="touchend"):(tn=!1,an={__onStart:"mousedown",__onMove:"mousemove",__onEnd:"mouseup"},rn="click"),o="undefined"===e.type(r)?"Flipbook":r,Je=this,xt="WebKitCSSMatrix"in t||"MozPerspective"in document.body.style,Fi(i),Ie&&ms(1),Ii(),Ei(),jr(),this)},Ur=function(){window.goToLabel=function(e){Cs.gotoPageLabel("t"+e,!0),Ps(12)},e(document).on("click","a.pf-hotspot",function(t){Ps(12);var n=e(t.target).attr("href");if(!n||/^mailto:/.test(n))return/^mailto:/.test(n)?(window.top.location=n,!1):!0;t.preventDefault();var o=window.open(n,"_blank");o&&o.focus()}),Ye&&(lt=new FlipbookTooltips({el:"a.pf-hotspot",color:He,background:Re,orientation:"top",text:ze,margin:7})),en=new FlipbookLinksFading({el:"a.pf-hotspot",background:qe}),Oe&&(xs("onAutoFlippingSequenceEnded",function(){Pt||en.blink()}),xs("onManualFlippingSequenceEnded",function(){Pt||en.blink()}))},jr=function(){e(function(){if(Go){var t=window.NavigationArrowsManager.getSize();t>m&&(y=t,w=t)}Kt=Je.html();var n=e("#Template-pages");if(window.flipbookSettings){var o=e("
");e.each(window.flipbookSettings.pages,function(t,n){var i=e("
",{"class":"page"}).attr({"data-background-file-desktop":jo+"inc/pages/page"+t+".jpg","data-background-file-mobile":jo+"inc/pages/page"+t+".jpg","data-thumbnail-image":jo+"inc/pages/thumbnails/page"+t+".jpg","data-page-label":"t"+t});e.each(n.links,function(t,n){var o;o=n.is_internal?e('').css({top:n.top,left:n.left,width:n.width,height:n.height}):e("",{"class":"pf-hotspot",href:n.link}).css({top:n.top,left:n.left,width:n.width,height:n.height}),i.append(o)}),e.each(n.videos,function(t,n){var o=e("
",{"class":"video-container"}),r=e("
",{"class":"video-player","data-id":n.id,"data-width":n.width,"data-height":n.height,"data-top":n.top,"data-left":n.left});"youtube"===n.host?r.addClass("youtube-player"):"vimeo"===n.host&&r.addClass("vimeo-player"),o.append(r),i.append(o)}),o.append(i)}),n=o}ct=n,n.length>0?(Je.html(n.html()),Vr()):Vr(),et.css("display","block")})},Vr=function(){var i=Je.children();if(0==i.length)return[];Ai(i);var r=M=M>N?N:E>M?E:M;ft=Ja(r),ft-=ft%2;var a=o?" "+o:"";Je.html(Mr("pageflip-container"+a,"pf-stage",Mr("pf-book-container"+a,"pf-book",Mr("pf-book-offset"+a,"pf-bookoffs",Mr("pf-book-content"+a,"pf-bookc",[ue?Mr(o?o:n,"pf-dropshadow"):n,ri?Mr(void 0,"pf-cursoroverlay"):n])))+Mr(o?o:n,"pf-controls"))).css("visibility","visible"),Ke=e("#pf-stage"),et=e("#pf-book"),nt=e("#pf-bookoffs"),tt=e("#pf-bookc"),et.css("display","none"),ue&&(ot=e("#pf-dropshadow"),li=li.add(ot)),it=e(document),Ke.css("background-color",Ve),"string"==typeof Ze&&Ke.css({"background-image":'url("'+Ze+'")',"background-size":"cover"}),Ke.css({position:"relative",margin:Si,"-webkit-perspective-origin-x":"50%","-webkit-perspective-origin-y":"50%"}),T?Ke.css({width:"100%",height:"100%"}):("undefined"==typeof d?Ke.css({width:k?"100%":gt+y+w}):Ke.css({width:d}),"undefined"==typeof p?Ke.css({height:k?"100%":vt+b+_}):(Ke.css({height:p}),Ke.css({overflow:"hidden"}))),Qr(),et.css({top:0,left:0,"z-index":10}),Ae?et.css({position:"absolute"}):et.css({position:"relative"}),tt.css({"transform-style":"preserve-3d",opacity:1}),nt.css({position:"absolute",top:0,left:0}),li.length>0&&li.css({position:"absolute",top:0,left:0,"z-index":1,"transform-origin":U?"50% 0%":"0% 50%",opacity:de}),J&&Ca(),Me&&e(Je).css({"user-select":"none"}),dt=new window.FlipbookUrl({singlePageMode:Ae},Cs);var s=dt.getPageNumberFromUrl();return at=new window.VideoManager(Cs),st=new window.AudioPlayer(Ge),ri&&(pt=new window.FlipbookCursorManager({cursorColor:Qe,incDirPath:jo},Cs),xs("onFlippingSequenceStarted",function(){Yi()}),xs("onAutoFlippingSequenceEnded",function(){Yi()}),xs("onManualEnded",function(){Yi()})),Ge.pageFlipping&&(xs("onAutoFlippingSequenceStarted",function(){st.playSound("pageFlipping")}),xs("onManualEnded",function(){st.playSound("pageFlipping")})),Q&&wa(at),Cs.gotoPageNumber(s,!0),Ur(),ea(),na(),Go&&(ut=new window.NavigationArrowsManager(Cs,{SinglePageMode:Ae},Qo)),Ye&&xs("onFlippingSequenceStarted",function(){lt.events.hide()}),Xi(),en&&Oe&&en.blink(),et.on(an.__onStart,pr),it.on(an.__onMove,fr).bind(an.__onEnd,hr),tn&&(et.on("mousedown",pr),it.on("mousemove",fr).bind("mouseup",hr)),e(t).bind("resize",Gr),(T||k)&&Gr(),Wi(),Ui(),A&&Cs.startAutoFlip(vi),it.keydown(function(e){switch(e.which){case 37:Cs.gotoPrevPage(),e.preventDefault();break;case 39:Cs.gotoNextPage(),e.preventDefault()}}),t.raf=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(e){t.setTimeout(e,dn/6)}}(),Tn=mi,dr(),Je},Zr=function(i){!Fn&&Je&&(Fn=mi,tt.css("opacity",0),rt&&(rt.css("opacity",0),rt.unbind()),J&&Aa(),t.setTimeout(function(){Tn=vi},900),t.setTimeout(function(){Pt=vi,cs(),o=n,Je.empty(),Je.html(Kt).attr("style",null),Je=n,Bi=85,it.unbind(an.__onMove,fr).unbind(an.__onEnd,hr),it.unbind("webkitfullscreenchange mozfullscreenchange msfullscreenchange fullscreenchange",hs),e(t).unbind("resize",Gr),Fn=vi,i&&i()},1e3),Ie&&bs())},Gr=function(){if(T&&e(Je).css({width:t.innerWidth,height:"100%"}),T||k){var n=C;if(n&&Do&&(n=vi,Ke.css({height:"100%"})),d=window.innerWidth,p=window.innerHeight,Ke.css({width:d+"px",height:p+"px"}),Je.css({width:d+"px",height:p+"px"}),e("body").css({width:d+"px",height:p+"px"}),S){var o=t.innerHeight-B;p>o&&(p=o,n=vi,Ke.css({height:o}))}var i=0;Q&&!n&&(i=rt.getHeight());var r=d-y-w,a=n?vt:p-b-_;a-=i;var f=F?u:gt,h=F?l:vt,g=r/f,v=a/h;if(S){var m=v>g?g:v,M=vt*m+b+_;M>o&&(n=vi,a=p-b-_,v=a/h,Ke.css({height:o}))}if(I){(U?a>=$:r>=$)?(u=s=xi(r/pn),l=c=xi(a/fn),_t=1):U?(l=c=$/2,_t=a/$,u=s=r/_t):(u=s=$/2,_t=r/$,l=c=a/_t),$i(),Qr();for(var E=0;Ev?g:v:v>g?g:v,_t>1&&!P&&(_t=1);var N=window.screen.height,A=window.screen.width;Jo=!0,ii&&Yo&&("undefined"!==e.type(Vo)&&(Jo=!(Vo>=N)),"undefined"!==e.type(Zo)&&(Zo>=A?Jo=!1:"undefined"!==e.type(Vo)&&(Jo=!0))),Ui(),In=xi((gt*_t-gt)/2+(r-gt*_t)/2),n?(a=vt*(_t+Dn*Hn),Ke.css({height:a+(b+_)}),$n=Ti((vt*(_t+Dn*Hn)-vt)/2)):$n=Ti((vt*_t-vt)/2-(vt*_t-a)/2),ia(r,a),Ps("onStageResize"),Jr(),J&&Ha(mi)}else Ps("onStageResize");ca(),aa(),Ae&&et.css({clip:"rect(-"+p/_t+"px "+d/_t+"px "+p/_t+"px 2px)"}).addClass("pf-book-container-singlepage"),Yi()},Qr=function(){if(et.css({width:gt}),Ae?et.css("height",vt):et.css("height",vt),nt.css({width:gt,height:vt}),li.length>0){Cr();li.css({width:gt,height:vt})}},Jr=function(){var e,t,n=_t+Dn*Hn;if(tn)e=In+jn*Hn+yr+y,t=$n+Vn*Hn+wr+b;else{var o=gt,i=vt;Ae&&(U?i/=2:o/=2);var r=0;Q&&(r=rt.getHeight());var a=Hn/sa(),s=sa(),c=_t+Dn*s,u=_t,l=i*u,d=(p-l-r)/2,f=d*c/u;f>p/2&&(f=p/2);var r=0;Q&&!C&&(r=rt.getHeight());var h=C?vt:p-b-_;h-=r;vt*(_t+Dn*sa());e=In-jn*Hn+yr+y,t=(p-r)/2-i*n/2-Vn*a+wr,et.css({"transform-origin":"50% top"})}Go&&.01>Hn&&(ut.setPosition(n),Wi()),et.css({transform:qr(e,t)+"scale("+n+","+n+")"})},Kr=0,ea=function(){if(tn&&Pe){var t,n=Math.max(window.screen.availWidth,window.screen.availHeight);t=n>1e3?1/1.5:n>700?.4:1/3;var o=new Hammer(nt[0]),i=function(n){var o=sa();o>Hn&&("undefined"!==e.type(window.TouchEmulator)&&(n.velocity=.2),Mn=!0,Hn+=Math.abs(n.velocity)*t,ki(o-Hn)<.01&&(Hn=o),Ps(9,ft),oa(),Jr())},r=function(n){Hn>0&&("undefined"!==e.type(window.TouchEmulator)&&(n.velocity=.2),Hn-=Math.abs(n.velocity)*t,.01>Hn&&(Hn=0,Mn=!1),Ps(10,ft),oa(),Jr())};o.get("pinch").set({enable:!0,threshold:0}),o.get("tap").set({enable:!0,taps:2,posThreshold:100}),o.on("tap",function(e){"video-thumb"!==e.target.className&&"play-button"!==e.target.className&&(ta(e),Mn?aa():ra()),e.preventDefault()}),o.on("pinchstart",function(e){ta(e),Nn=!0,Ln=e.scale,e.preventDefault()}),o.on("pinchmove",function(e){Lne.scale&&r(e),Ln=e.scale,e.preventDefault()}),o.on("pinchend",function(e){Nn=!1,An=!1})}},ta=function(e,t){var n=function(e){var t=_t+Dn*Hn,n=(e.center.x-et.offset().left)/t-gt/2-mt,o=(e.center.y-et.offset().top)/t-vt/2-bt;isNaN(n)||(Nt=n,At=o)},o={x:parseInt(e.center.x-Ke.offset().left),y:parseInt(e.center.y-Ke.offset().top)};n(e),_a(Nt,At,o.x,o.y,t)},na=function(){Dn=0,Hn=0,Rn=0,zn=0,jn=0,Vn=0,Zn=0,Gn=0,Qn=0,Jn=0,Kn=0,eo=0,Mn=vi,ao=vi,En=vi,An=vi},oa=function(){var e=gt,t=vt,n=0;Q&&(n=rt.getHeight());var o=e,i=t,r=Hn;if(tn)o*=_t+Dn*r,i*=_t+Dn*r,Rn=Math.floor((o-d)/(2*r)),zn=Math.floor((i+n-p)/(2*r));else{var a=_t+Dn*sa();o*=a,i*=a,Rn=Ae?Math.floor((2*o-io)/sa()):Math.floor((o-d)/(2*sa())),zn=Math.floor((i+n-p)/(2*sa()))}Wn=-1*Math.abs(zn)-_,Xn=Math.abs(zn)+b,tn&&Rn<-1*Math.abs(b)||!tn&&0>Rn?(Rn=0,On=0,qn=0):(On=-1*Rn-y,qn=Rn+w)},ia=function(e,t){var n=gt,o=vt,i=0;if(Ae&&(U?o/=2:n/=2),Q&&(i=rt.getHeight()),to=n,no=o,oo=n,Ae||(oo=Math.floor(oo/2)),Dn=1>_t?1-_t:0,io=e,ro=t,oa(),Yn=n/io,Un=o/ro,1>Yn&&(Yn=1),1>Un&&(Un=1),0==Dn)na();else if(Mn){var r=ma(Zn,Gn);jn=Zn=r.x,Vn=Gn=r.y}fa(),xs("onFlippingSequenceStarted",function(){aa(),fa(),Ye&<.events.hide()})},ra=function(){!Mn&&1>_t&&(Go&&ut.toggle(!1),Mn=mi,tn&&(En=mi),Ps(9,ft))},aa=function(){Mn&&1>_t&&(Mn=vi,tn||(jn=Zn,Vn=Gn),tn&&(En=mi),lr=!1,ao=!1,Ps(10,ft))},sa=function(){var e=1;return e},ca=function(){for(var t,n=v+1,o=sa(),i=.01,r=1.0001;10>r;r+=1e-4){var a=i*(1-Math.pow(r,n))/(1-r);if(a>o){t=r;break}}"undefined"===e.type(t),uo=t},ua=0,la=!1,da=!1,pa=function(){var n,o=sa(),i="undefined"!==e.type(v);if(n=i?uo:o/7,!tn||En)if(Mn){if(ki(o-Hn)>.01||la){if(i){da&&(ua=0,da=!1),la=!0,ua+=1;var r=.01*Math.pow(uo,v-ua+1);Hn+=r}else Hn+=(o-Hn)*n;Yi(),ki(o-Hn)<=.01&&(Hn=o,la=!1,ua=0,En=vi),Jr(),C&&e(t).trigger("resize")}}else if(0!=Hn||da){if(i){da=!0,la&&(ua=0,la=!1);var r=.01*Math.pow(uo,v-ua+1);Hn-=r,ua+=1}else Hn-=Hn*n;Yi(),.01>=Hn&&(Go&&ut.toggle(!0),da=!1,ua=0,Hn=0,En=vi),Jr(),C&&e(t).trigger("resize")}ha()},fa=function(){rt&&(e("#b-zoomout").css("display",Mn?"":"none"),e("#b-zoomin").css("display",Mn?"none":""),xa(e("#b-zoomin"),Dn>0&&Pe))},ha=function(){if(!tn&&ao){if(Zn===jn&&Gn===Vn)return;jn+=(Zn-jn)/4,Vn+=(Gn-Vn)/4,Jr()}else if(Math.abs(Zn-jn)>.001||Math.abs(Gn-Vn)>.001){oa();var e=ma(Zn,Gn);Zn=e.x,Gn=e.y,jn=Zn,Vn=Gn,Jr()}},va=function(e,t){e+=Qn,t+=Jn,Zn=e,Gn=t;var n=Zn-Kn,o=Gn-eo;Hn>0&&(n/=Hn,tn?o/=Hn:o*=Hn/sa()),Zn=Kn+n,Gn=eo+o;var i=ma(Zn,Gn);Zn=i.x,Gn=i.y},ma=function(t,n){return tn?(On>t&&("undefined"===e.type(Kn)||Kn>=On-2)?t=On:t>qn&&("undefined"===e.type(Kn)||qn+2>=Kn)&&(t=qn),Wn>n&&("undefined"===e.type(eo)||eo>=Wn-2)?n=Wn:n>Xn&&("undefined"===e.type(eo)||Xn+2>=eo)&&(n=Xn)):n>Math.abs(Jn)&&(n=Math.abs(Jn)),{x:t,y:n}},ba=function(e,t){var n=gt,o=vt;Ae&&(U?o/=2:n/=2);var i=0;Q&&(i=rt.getHeight());var r=sa(),a=_t+Dn*r,s=_t,c=n*s,u=(d-c)/2,l=u*a/s;l>d/2&&(l=d/2);var f=o*s,h=(p-f-i)/2,g=h*a/s;g>p/2&&(g=p/2);var v=o*a+i+2*g;Qn=jn-e,Kn=jn,eo=Vn,Jn=tn?Vn-t:-1*((v-i)/2-(p-i)/2)},_a=function(e,t,n,o,i){var r=gt,a=vt;Ae&&(U?a/=2:r/=2);var s=0;Q&&(s=rt.getHeight());var c=Hn;c=sa();var u=_t+Dn*c,l=_t,f=r*l,h=(d-f)/2,g=h*u/l;g>d/2&&(g=d/2);var v=a*l,m=(p-v-s)/2,_=m*u/l;_>p/2&&(_=p/2);var w=a*u+s+2*_,k=n-In-gt/2-e-y-mt,T=o-$n-vt/2-t-b-bt;if(!tn){var x;if(k=-k,m>o){var P=o,C=P*_/m;x=C}else if(o>m+v){var S=o-v-m,B=S*_/m;x=_+a*u+B}else{var F=o-m,I=F*(a*u)/v;x=_+I}T=x-o-((w-s)/2-(p-s)/2)}var $;$=i||!tn?{x:k,y:T}:ma(k,T),jn=$.x,Zn=$.x,Vn=$.y,Gn=$.y},ya=function(e){$e&&(Ro&&0!==Ro.length||St&&0!==St.length||dt.updateUrl(e))},wa=function(t){if(window.ControlBar){var n=e("#pf-controls");rt=new window.ControlBar(n,{zIndex:G||forceTop?12:2,colors:De,touchControl:tn,touchType:on,pagerText:Te,minPageLimit:E,maxPageLimit:N,hashControl:$e,navigationLoop:Y,fullScreenEnabled:D,searchButtonEnabled:H,printButtonEnabled:R,navigationButtonsEnabled:z,downloadButtonEnabled:O,thumbnailsButtonEnabled:q,controlbarTooltipEnabled:Xe,controlbarTooltipBackground:je,controlbarTooltipColor:Ue,navbarMinHeight:Ko, navbarMinWidth:ei,useNavBarMinSizes:ti,navBarTablet:oi,navBarMobile:ni},Cs,t),xs("onPageChangingComplete",function(){rt.updatePage()}),dt.getPageNumberFromUrl()<2&&rt.updatePage(),xs("onStageResize",rt.adjustButtonsToScreenSize)}return Do=!1,D&&(Ho=document.getElementById("pf-stage"),D=Ho.requestFullscreen||Ho.mozRequestFullScreen||Ho.webkitRequestFullScreen||Ho.msRequestFullscreen?mi:vi),D&&it.bind("webkitfullscreenchange mozfullscreenchange fullscreenchange msfullscreenchange",hs),rt},ka=function(e){var t=Ta(e),n="_new"+Math.round(99999*Math.random()).toString(),o=window.open("about:blank",n);o.document.open(),o.document.write(t),o.document.close()},Ta=function(t){var n="\n \n \n \n \n \n",o=[];return t&&"left"!==t||"undefined"===e.type(Vt[ft])||e.isArray(Vt[ft].__BackgroundFiles)&&Vt[ft].__BackgroundFiles.length>0&&o.push("'),t&&"right"!==t||"undefined"===e.type(Vt[ft+1])||e.isArray(Vt[ft+1].__BackgroundFiles)&&Vt[ft+1].__BackgroundFiles.length>0&&o.push("'),n+o.join("
")+"\n"},xa=function(e,t){t==n&&(t=mi),t?e.removeClass("pf-disabled"):Pa(e)},Pa=function(e){e.addClass("pf-disabled")},Ca=function(){var t="pageflip-thumbnails",i="pf-thumbnail-container";et.after(Mr(ne?"pf-hidden":n,t,Mr(n,i))),vo=e("#"+t),o&&vo.addClass(o),mo=e("#"+i),mo.css("width",ht*oe*1.5),po=[],fo=[],ho=[],go=[],Po=0,ko=0,To=0;for(var r,a,t,s="pf-thumbnail",c="-",u="page",l="spread",d="button",p=s+c+u,f=s+c+l,h=s+c+d,g="#"+s,v=0;ht>=v;v+=2)r=Vt[v].__ThumbnailImageUrl?v:-1,a=Vt[v+1].__ThumbnailImageUrl?v+1:-1,0>r&&a>=0&&(r=a,a=-1),r>=0&&a>=0?(mo.append(Mr(f,n,Mr(h,s+r+d)+Mr(h,s+a+d))),Ba(r),t=e(g+r+d).position().left,po.push(t+oe),fo.push(v),ho.push(2*oe),Ba(a),K&&go.push([r,a])):r>=0&&(mo.append(Mr(p,n,Mr(h,s+r+d))),Ba(r),t=e(g+r+d).position().left,po.push(t+oe/2),fo.push(v),ho.push(oe),K&&go.push([r]));po.length?(Po=t+oe*(Vt[ht].__outer?1:2)+w,mo.css("width",Po+20),Sa(),Co=vi,Fo=0,mo.bind(an.__onStart,Ia),mo.bind(an.__onEnd,Ma),mo.bind(an.__onMove,$a),tn&&(mo.bind("mousedown",Ia),mo.bind("mouseup",Ma),mo.bind("mousemove",$a)),mo.css("height",ie+16),tn||mo.bind("mouseleave",Ea),_o=ne,Na(),xs("onZoomIn",Aa),xs("onZoomOut",Aa),xs("onPageChange",Aa)):(J=vi,vo.remove()),ne&&mo.css("display","none")},Sa=function(e){if(J){var t=1;(ee||e)&&(t=12),vo.css("z-index",t)}},Ba=function(t){var n={width:oe,height:ie,"background-size":+oe+"px "+ie+"px",cursor:"pointer"};K||(n.background="url("+Vt[t].__ThumbnailImageUrl+")");var o=e("#pf-thumbnail"+t+"button");o.attr("data-page",t).attr("title","Page "+Vt[t].__PageNumber),o.css(n);var i=new Hammer(o[0]);i.on("tap",function(t){if(!_o&&!Pt){var n=e("#"+t.target.id).data().page;Mo=mi,Cs.gotoPage(n,mi),Aa(),Fa(t.srcEvent)}})},Fa=function(e){Rt||Ht||(Xr(e),e.stopPropagation())},Ia=function(e){nn=!e||!e.type||"mousedown"!==e.type,za(qa(e)),Fa(e)},$a=function(e){e&&e.type&&"mousemove"===e.type&&nn||(!_o||!te||Rt||Ht||ao?Na():La(),So&&(Co=mi,$o=mi,ko=Wa(Bo+qa(e))),Fa(e))},Ma=function(e){e&&e.type&&"mouseup"===e.type&&nn||Oa()},Ea=function(e){Oa(),!_o&&te&&Aa()},Na=function(e){if(!te)return vi;var t=ur();return e!=n?t-bo>e:void(bo=t)},Aa=function(){_o=!0,vo.addClass("pf-hidden"),setTimeout(function(){_o&&(Sa(!1),mo.css("display","none"))},300)},La=function(){Na(),_o=!1,mo.css("display","block"),vo.removeClass("pf-hidden"),Sa(mi)},Da=function(){_o||(Na(te)&&Aa(),To!=ko&&Ra())},Ha=function(e){if(Mo)return void(Mo=vi);var t,o=Ti(d/2),i=po.length-1,r=fo.lastIndexOf(ft);if(re?(wo=o-po[0],yo=o-po[i]):(wo=o-po[0]-o+ho[0]/2,yo=o-po[i]+o-ho[i]/2,yo>wo&&(wo=yo=Ti(wo+yo/2))),0>r){if(!e)return;t=0}else t=po[r];ko=Wa(o-t),(!To==n||_o||e)&&(To=ko+.5)},Ra=function(){if(To!=ko&&(Co?(Fo=ko-Io,Io=ko):0!=Fo&&(Fo*=.9,ki(Fo)<1?Fo=0:ko=Wa(ko+Fo)),To+=(ko-To)/5,ki(ko-To)<1&&(To=ko,Fo=0),mo.css("transform",qr(To,0)),K&&!(ki(To-xo)<32))){xo=To;for(var t=-oe-32,n=d+oe+32,o=go.length,i=0;o>i&&po[i]+Toi&&po[i]+Toe?e=yo:e>wo&&(e=wo),e},Xa=function(e,t,n){Aa();var o=vi;if(E>e||e>N)return Ps("onPageChangingComplete"),o;if(!Pt&&0==Ro.length)if(e-=e%2,e!=ft)if(o=mi,n)ft=e,Ps("onPageChangingComplete"),Xi();else{var i=e-ft;if(t)(e==ht-1&&0!=ft||0==e&&ft!=ht-1)&&(f||yt)&&ki(i)>2?0>i?(gs(0,i+2),gs(200,-2)):(gs(0,i-2),gs(200,2)):(ft==ht-1&&0!=e||0==ft&&e!=ht-1)&&(f||yt)&&ki(i)>2?0>i?(gs(0,-2),gs(200,i+2)):(gs(0,2),gs(200,i-2)):gs(0,i);else{var r,a=999;0>i?(r=-1,i*=-1):r=1,i/=2,a>i&&(a=i);for(var s=0,c=0,u=i/a,l=0;a>l;l++)s=Pi(u*(l+1)),gs(l?_e/4:0,2*(s-c)*r),c=s}}else Ps("onPageChangingComplete");return o},Ya=function(e,t){Xa(Ja(e),t)},Ua=function(e,t){Xa(Ka(e),t)},ja=function(e,t){Xa(es(e),t)},Va=function(e){Xa(j&&!e?N:E,mi)},Za=function(e){return Y&&(!j||e?E+1>ft:ft>N-2)?Qa(e):vr(j&&!e?1:-1,Ae&&!j?1:0,2)},Ga=function(e){return Y&&(j&&!e?E+1>ft:ft>N-2)?Va(e):vr(j&&!e?-1:1,Ae&&j?1:0,2)},Qa=function(e){Xa(j&&!e?E:N,mi)},Ja=function(e){return e>0?Eo.lastIndexOf(parseInt(e)):-1},Ka=function(e){return No.lastIndexOf(e.toLowerCase())},es=function(e){return Ao.lastIndexOf(e)},ts=function(){Eo=[],No=[],Ao=[];for(var e=0;ht>=e;e++)Eo[e]=Vt[e].__PageNumber,No[e]=Vt[e].__PageName?Vt[e].__PageName.toLowerCase():n,Ao[e]=Vt[e].__PageLabel},ns=function(e,t){return t?void(Vt[e].__Data=t):Vt[e].__Data},os=function(){return!(Ht||Rt||Pn)},is=function(e,t){e==n&&(e=0),t==n&&(t=ht),E=j?ht-t:e,N=j?ht-e:t,0>E&&(E=0),N>ht&&(N=ht),E-=E%2,N+=1-N%2},rs=function(){return!Mn&&!Se&&.01>Hn},as=function(){var e=Vt[ft].__AutoFlipInterval||Vt[ft+1].__AutoFlipInterval;e=e==n?W:e,Lo=t.setTimeout(us,e)},ss=function(e){e==n&&(e=mi),Lt||(Lt=mi,e?us():as())},cs=function(){Lt&&(Lt=vi,t.clearTimeout(Lo))},us=function(){if(!Ga(vi)){if(!X)return void Cs.stopAutoFlip();Va()}as()},ls=function(){rt&&(e("#b-pause").css("display",Lt?"":"none"),e("#b-play").css("display",Lt?"none":""))},ds=function(){Ho.requestFullscreen?Ho.requestFullscreen():Ho.mozRequestFullScreen?Ho.mozRequestFullScreen():Ho.webkitRequestFullScreen?Ho.webkitRequestFullScreen():Ho.msRequestFullscreen&&Ho.msRequestFullscreen(),Do=mi},ps=function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),Do=vi},fs=function(){D&&(e("#b-fullscreen").css("display",Do?"none":""),e("#b-fullscreenoff").css("display",Do?"":"none"))},hs=function(e){fs(),Gr()},gs=function(e,t){var o={__delay:e,__pnAdd:t,__startTime:n};Ro.push(o)},vs=function(){var e=ur(),t=Ro[0];t.__startTime||(t.__startTime=ur()),t.__delay-1&&(o=t),"undefined"!==o){if(di){var i=di[o];"function"==typeof i?i(n):e.isArray(i)&&e.each(i,function(e,t){"function"==typeof t&&t(n)})}qo&&("onTop"===o?(ks(n),_s(n)):"onTopEnd"===o&&ys(n))}},Cs={gotoPage:function(e,t){return os()?(cs(),Xa(e,t)):void 0},gotoPageNumber:function(e,t){return os()?(cs(),Ya(e,t)):void 0},gotoPageName:function(e,t){return os()?(cs(),Ua(e,t)):void 0},gotoPageLabel:function(e,t){return os()?(cs(),ja(e,t)):void 0},gotoFirstPage:function(e){os()&&(cs(),Va(e))},gotoPrevPage:function(e){os()&&(cs(),Za(e))},gotoNextPage:function(e){os()&&(cs(),Ga(e))},gotoLastPage:function(e){os()&&(cs(),Qa(e))},startAutoFlip:function(e){os()&&L&&(ss(e),ls())},stopAutoFlip:function(){Lt&&(cs(),ls())},toggleAutoFlip:function(){Lt?Cs.stopAutoFlip():Cs.startAutoFlip()},closePageflip:function(e){Zr(e)},getID:function(){return o},getPN:function(){return ft},getPageNumber:function(e){return Vt[e?e:ft].__PageNumber},getPageName:function(e){return Vt[e?e:ft].__PageName},getPageLabel:function(e){return Vt[e?e:ft].__PageLabel},showThumbnails:function(){J&&(_o?La():Aa())},hideThumbnails:function(){J&&Aa()},zoomIn:function(){Pe&&(ra(),fa())},zoomOut:function(){aa(),fa()},toggleZoom:function(){Mn?Cs.zoomOut():Cs.zoomIn()},mouseControl:function(e){Fe=e},pageLimit:function(e,t){is(e,t)},data:function(e,t){return ns(e,t)},enterFullScreen:function(){return ds()},exitFullScreen:function(){return ps()},addPage:function(t,n,o){Li(e(t),n,o)},reloadPage:function(e){},removePage:function(e,t,n){Di(e,t,n)},printLeft:ka.bind(void 0,"left"),printRight:ka.bind(void 0,"right"),printBoth:ka,download:function(){if(Le)if(window.ActiveXObject){if(window.ActiveXObject&&document.execCommand){var t=window.open(Le,"_blank");t.document.close(),t.document.execCommand("SaveAs",!0,Le),t.close()}}else try{var n=document.createElement("a");n.href=Le,n.target="_blank",n.download=i;var o=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});n.dispatchEvent(o),(window.URL||window.webkitURL).revokeObjectURL(n.href)}catch(r){if("download"in document.createElement("a")){var a=e('s');a.attr("href",Le),a.attr("target","_blank"),a.css("display","none"),e("body").append(a),a.click(function(){e(this).remove()}),a[0].click()}else window.open(Le)}},getIsFullScreen:function(){return Do},getIsThumbnailMode:function(){return J&&!_o},getCurrentPageNumber:function(){return ft},getFirstPageNumber:function(){return E},getLastPageNumber:function(){return N},getPageInfoList:function(){return Vt},updateHash:ya,addEventHandler:xs,getInstance:function(){return Je},getPagesTemplate:function(){return ct},getIsTouchDevice:function(){return"undefined"!==e.type(on)},getIsMobileDevice:function(){return Yo||Uo},getIsPhone:function(){return Yo},getIsTablet:function(){return Uo},getBookWidth:function(){return gt},getBookHeight:function(){return vt},getBookScale:function(){return _t},getStageWidth:function(){return d},getStageHeight:function(){return p},getMargin:function(){return y},getControlbarHeight:function(){var e=0;return Q&&(e=rt.getHeight()),e},getEndPN:function(){return Mt},getClickEventName:function(){return rn},getPfEvent:function(){return an}},Ss=function(e,t){return e==n?Cs:Je?Cs[e](t):[]};e.extend(e.fn,{pageflipInit:Yr,pageflip:Ss})}($,window)}catch(e){!function(){window.initFlipbook=function(){},$(function(){var e,t,n,o,i,r,a,s,c,u,l,d,p,f,h,g,v,m,b,_,y=$(document),w=$(window),k=$("#pageflip"),T="",x=45,P=32,C=!0,S=[],B=[1,void 0],F=0,I=function(){var h=$("#Template-legacy").html();E(),t=$(h),e=t.find(".FBLcontrolbar"),a=t.find(".FBLbook"),n=t.find(".FBLcontrolbar-button--toBeginning"),o=t.find(".FBLcontrolbar-button--back"),i=t.find(".FBLcontrolbar-button--forward"),r=t.find(".FBLcontrolbar-button--toEnd"),f=t.find(".FBLcontrolbar-input"),s=t.find(".FBLbook-pageContainer"),c=s.find(".FBLbook-left"),u=s.find(".FBLbook-right"),l=c.find(".FBLbook-left-content"),d=u.find(".FBLbook-right-content"),p=s.find(".FBLcontrolbar-inputContainer"),k.append(t),N(),R(),w.on("resize",M),M(),window.goToLabel=function(e){A(e)},"string"===$.type(window.flipbookSettings.IncDirPath)&&(T=window.flipbookSettings.IncDirPath)},M=function(){var e=y.width(),t=y.height();if(e!==h||t!==g){var n="undefined"===$.type(h);h=e,g=t;var o=g-x;a.css("height",o+"px");var i=h;b=o-2*P,_=i-2*P,s.css({width:q(_),height:q(b),"margin-top":q(P),"margin-left":q(P)}),n?A(1):D()}},E=function(){F=0,"undefined"!==$.type(window.flipbookSettings)&&"undefined"!==$.type(window.flipbookSettings.pages)&&$.each(window.flipbookSettings.pages,function(e,t){var n=T+"inc/pages/page"+e+".jpg",o=[];$.isArray(t.links)&&(o=t.links),F+=1,S.push({pageNumber:F,backgroundFile:n,linkList:o})}),v=!0,m=F%2!==1},N=function(){n.on("click",function(){A(1)}),o.on("click",function(){A(B[0]-1)}),i.on("click",function(){A(C?B[0]+1:B[0]+2)}),r.on("click",function(){A(F)})},A=function(e){var t=function(e,t){"back"===e?t?(n.removeClass("FBLcontrolbar-button--toBeginningInAct"),o.removeClass("FBLcontrolbar-button--backInAct"),n.addClass("FBLcontrolbar-button--toBeginning"),o.addClass("FBLcontrolbar-button--back")):(n.addClass("FBLcontrolbar-button--toBeginningInAct"),o.addClass("FBLcontrolbar-button--backInAct"),n.removeClass("FBLcontrolbar-button--toBeginning"),o.removeClass("FBLcontrolbar-button--back")):"forward"===e&&(t?(i.addClass("FBLcontrolbar-button--forward"),r.addClass("FBLcontrolbar-button--toEnd"),i.removeClass("FBLcontrolbar-button--forwardInAct"),r.removeClass("FBLcontrolbar-button--toEndInAct")):(i.removeClass("FBLcontrolbar-button--forward"),r.removeClass("FBLcontrolbar-button--toEnd"),i.addClass("FBLcontrolbar-button--forwardInAct"),r.addClass("FBLcontrolbar-button--toEndInAct")))},a=!1;return 2>e?(B=[1,void 0],t("back",!1),t("forward",!0),D(),a=!0):F>e||!m&&e===F?(B=C?[e,void 0]:e%2===1?[e-1,e]:[e,e+1],t("back",!0),t("forward",!0),D(),a=!0):m&&e===F&&(B=[e,void 0],t("back",!0),t("forward",!1),D(),a=!0),a&&z(),a},L=function(e){var t,n=S[e-1];if("undefined"===$.type(n.$loadedImg)){var o;"undefined"===$.type(n.promise)?(o=$.Deferred(),n.promise=o):o=n.promise,t=$("",{src:n.backgroundFile}).css("display","none").appendTo($("body")).on("click",function(){var e=window.open(n.backgroundFile,"_blank");e&&e.focus()}).on("load",function(){n.$loadedImg=t,n.$img=void 0,o.resolve()}).on("error",function(){t.remove(),setTimeout(function(){L(e)},500)}),n.$img=t}return n},D=function(){var e,t,n,o,i,r,a,s,p=function(e,t,n,o,i,r,a){t.css({top:r,left:a}),t.append(e.$loadedImg),$.each(e.linkList,function(e,t){if("undefined"!==$.type(t.link)){var r,a=window.parseInt(t.top,10),s=window.parseInt(t.left,10),c=window.parseInt(t.width,10),u=window.parseInt(t.height,10);window.isNaN(a)||window.isNaN(s)||window.isNaN(c)||window.isNaN(u)||(a=Math.round(a*i),s=Math.round(s*o),c=Math.round(c*o),u=Math.round(u*i),r=t.is_internal?$('').css({top:q(a),left:q(s),width:q(c),height:q(u)}):$("",{"class":"pf-hotspot",href:t.link}).css({top:q(a),left:q(s),width:q(c),height:q(u)}),r.on("click",function(e){var t=$(e.target).attr("href");if(!t||/^mailto:/.test(t))return!0;e.preventDefault();var n=window.open(t,"_blank");n&&n.focus()}),n.append(r))}}),e.$loadedImg.show()},f=0;c.add(u).children("img").detach(),l.add(d).html(""),B[0]&&B[0]<=F&&(e=L(B[0]),a=e.promise,f+=1),B[1]&&B[1]<=F&&(t=L(B[1]),s=t.promise,f+=1);var h,g;1===f&&a.done(function(){B[0]===e.pageNumber&&(i=H(e.$loadedImg,c),h=Math.floor(_/2-i.width/2),g=Math.floor((b-i.height)/2),p(e,c,l,i.widthMultiplier,i.heightMultiplier,g,h))}),2===f&&$.when(a,s).done(function(){if(B[0]===e.pageNumber&&B[1]===t.pageNumber){n=e.$loadedImg,o=t.$loadedImg,i=H(n,c),r=H(o,u);var a=i.width+r.width;h=Math.floor(_/2-a/2),g=Math.floor((b-i.height)/2);var s=h+i.width;p(e,c,l,i.widthMultiplier,i.heightMultiplier,g,h),p(t,u,d,r.widthMultiplier,r.heightMultiplier,g,s)}})},H=function(e,t){var n=e.height(),o=e.width(),i=Math.floor(o*(b/n)),r=Math.floor(n*(b/n)),a=_;return C||(a=Math.floor(_/2)),i>a&&(r=Math.floor(r*(a/i)),i=Math.floor(a)),e.add(t).css({width:q(i),height:q(r)}),{height:r,width:i,heightMultiplier:r/n,widthMultiplier:i/o}},R=function(){var e,t=function(){var t=f.val(),n=parseInt(t,10),o=!1;isNaN(n)||(o=A(n)),o||f.val(e),e=void 0,O()};f.on("click",function(){f.focus()}),f.on("focus",function(){"undefined"===$.type(e)&&(e=f.val()),f.val("")}),f.on("blur",t),f.keypress(function(e){13===e.which&&(f.trigger("blur"),t())})},z=function(){var e="";"number"===$.type(B[0])&&(e=B[0]),"number"===$.type(B[1])&&(e+=" - "+B[1]),O(e)},O=function(t){"undefined"===$.type(t)&&(t=f.val());var n=t.length;t.length<5&&(n=5);for(var o="",i=0;n>i;i+=1)o+="9";n%2>.1&&(o[Math.floor(n/2+1)]="-");var r=$("").addClass("ControlBar-pageInputTest");r.text(o).appendTo(e);var a=r.width()+2;r.remove(),p.css({width:a}),f.val(t)},q=function(e){return e+"px"};try{I()}catch(W){alert(W.name+": "+W.message)}})}()}