var UserGroups="English";(this||(0,eval)("(this)")).bdor=[]; (function(b){function c(b){b=f.match(b);if(null==b||0==b.length)return 0;b=b[0];var c=b.indexOf("/");b=b.substring(c+1,b.length);return""==b?0:parseInt(b)}function d(b){b=f.match(b);if(null==b||0==b.length)return 0;b=b[0].replace("_",".").match(/\d+\.?\d?/);if(null==b||0==b.length)return 0;b=b[0];return""==b?0:parseFloat(b)}var f=navigator.userAgent.toLowerCase();b.browser={};b.browser.webkit=/webkit/.test(f);b.browser.mozilla=/firefox/.test(f);b.browser.firefox=b.browser.mozilla;b.browser.msie=/msie/.test(f)|| /trident/.test(f)||/edge/.test(f);b.browser.edge=/edge/.test(f);b.browser.opera=/opera/.test(f)||/opr/.test(f);b.browser.chrome=/chrome/.test(f)&&!b.browser.opera&&!b.browser.edge;b.browser.uc=/ucbrowser/.test(f);b.browser.safari=/safari/.test(f)&&!b.browser.chrome&&!b.browser.uc&&!b.browser.opera;b.browser.wechat=/micromessenger/.test(f);b.browser.version=0;bdor[1]="p";b.browser.firefox&&(b.browser.version=c(/firefox\/\d+/));if(b.browser.msie){var g=f.match(/msie\s?\d+\.0/);null==g?(g=f.match(/trident\/\d+\.0/), null!=g&&0$.browser.version},isPad=function(){return $.browser.device==$.browser.DEVICE_PAD||$.browser.device==$.browser.DEVICE_PC&&$.system.name==$.system.ANDROID?!0:!1},isIpad=function(){var b= navigator.userAgent.toLowerCase();return 0$.browser.version},isWeChat=function(){return $.browser.wechat}, isAndroidDefault=function(){return $.system.name==$.system.ANDROID&&$.browser.safari},isPhoneBook=function(){if($.system.name==$.system.ANDROID&&$.browser.uc)return!0;var b=window.location.search;return(isPhone()||isPad())&&$.system.name==$.system.ANDROID&&4>parseInt($.system.version)||0<=b.toLowerCase().indexOf("phonebook=true")||(isPhone()||isPad())&&"slide"==bookConfig.FlipStyle.toLowerCase()?!0:!1},isHigherThanIOS8=function(){return $.system.name==$.system.IOS&&8<=$.system.version},isInTheFrame= function(){return window.top!=window};function isBelowIE9(){return $.browser.msie?9>$.browser.version?!0:!1:!1}function isBelowIE8(){return $.browser.msie?8>$.browser.version?!0:!1:!1}function isBelowIE10(){return $.browser.msie?10>$.browser.version?!0:!1:!1}var global=function(){return this||(0,eval)("(this)")}(),virtual_function=function(){}; function getPackageByName(b){if(void 0==b||""==b)return global;var c=global;b=b.split(".");for(var d=0;dc?this.substr(0,b)+"...":this.toString()},remove:function(b){if("string"!=typeof b||!b)return this;var c=this.indexOf(b);if(0>c)return this;b=b.length;return this.substring(0,c)+this.substring(c+b,this.length)+""},removeStartFrom:function(b){if("string"==typeof b&&b)return b=this.indexOf(b),0> b?this:this.substring(0,b)+""},cycleToLength:function(b){if(!isNaN(b)){for(var c=parseInt(b/this.length),d=this;0this.length?this:this.substring(0,1).toUpperCase()+this.substring(1)},firstLowerCase:function(){return 1>this.length?this:this.substring(0,1).toLowerCase()+this.substring(1)},extract:function(){if(0==this.length||0==arguments.length)return[];for(var b=[],c=this.toString(),d=0;d=d?f.push(b.charAt(c)):128<=d&&2047>=d?f.push(String.fromCharCode(192|d>>6&31),String.fromCharCode(128|d&63)):2048<= d&&65535>=d&&f.push(String.fromCharCode(224|d>>12&15),String.fromCharCode(128|d>>6&63),String.fromCharCode(128|d&63));return f.join("")},parseUtf8:function(b){if(!b)return"";var c,d,f,g=[],h=b.length;for(c=0;c>7&255)?g.push(b.charAt(c)):6==(d[0]>>5&255)?(d.push(b.charCodeAt(++c)),f=[],f.push(d[0]&31),f.push(d[1]&63),g.push(String.fromCharCode(f[0]<<6|f[1]))):14==(d[0]>>4&255)&&(d.push(b.charCodeAt(++c)),d.push(b.charCodeAt(++c)),f=[],f.push(d[0]<<4|d[1]>> 2&15),f.push((d[1]&3)<<6|d[2]&63),g.push(String.fromCharCode(f[0]<<8|f[1])));return g.join("")}}});Array.expand({remove:function(b){return isNaN(b)||b>this.length?!1:this.splice(b,1)[0]},indexOf:function(b){for(var c=0;cc&&(b=c);return b},isBetween:function(b,c,d){if(isNaN(c)||isNaN(d)||isNaN(b))return!1;var f=Math.min(c,d);c=Math.max(c,d);return b>=f&&b<=c?!0:!1},fixed:function(b,c){if(isNaN(b))return b;isNaN(c)&&(c=0);var d=Math.pow(10,c);return Math.round(b*d)/d},decimals:function(b){if(isNaN(b))return-1;b=Number(b).toString();var c=b.indexOf(".");return-1==c?0:b.length-c-1}, random:function(b,c,d){if(isNaN(b)||isNaN(c))return 0;void 0==d&&Number.decimals(b)==Number.decimals(c)&&(d=Number.decimals(b));var f=Math.min(b,c);b=Math.max(b,c);c=Math.random();f+=(b-f)*c;return!d||0>d||isNaN(d)?Math.floor(f):Number.fixed(f,d)}}}); var Color=function(b){b&&"object"==typeof b&&b.toString&&(b=b.toString());return{value:ColorTable.value(b),toString:function(){function b(c,d,h){if(c.lengthd)for(;c.lengthd?Number(0):d;d=d.toString(16);8=b.length?"0"+b:b;g=1>=g.length?"0"+g:g;d=1>=d.length?"0"+d:d;f=1>=f.length?"0"+f:f;return"FF"==f?"#"+b+g+d:"#"+f+b+g+d},reduce:function(b){return this.add("object"==typeof b?b:{r:-b,g:-b,b:-b,a:1})},rgba:function(b){var d=this.split();b=void 0==b||""===b?d.a:parseFloat(b);1=d.length?"0"+d:d,f=1>=f.length?"0"+f:f,g=1>=g.length?"0"+g:g,b=1>=b.length?"0"+b:b;return"FF"==b?"#"+d+f+g:"#"+b+d+f+g}}};function colorSplit(b){return Color(b).split()}function colorAdd(b,c){return Color(b).add(c)}function colorDiv(b,c){return Color(b).reduce(c)}function equals(b,c){return 1E-7>Math.abs(b-c)} var Point=function(b,c){return{x:b,y:c,isNearTo:function(b,c){if(!b)return!1;void 0==c&&(c=5);return Math.abs(this.x-b.x)d/f){if(bd/f){var g=d,h=d/b*c;c=0;f=(f-h)/2}else h=f,g=f/c*b,c=(d-g)/2,f=0;return{scale:b/g,width:g,height:h,left:c,top:f}} function getOffset(b){for(var c=b.target,d=0,f=0;c;)d+=c.offsetLeft,f+=c.offsetTop,c=c.offsetParent;return{X:window.pageXOffset+b.clientX-d,Y:window.pageYOffset+b.clientY-f}} function getPositionFromEvt(b){b=b.originalEvent&&b.originalEvent.changedTouches?b.originalEvent.changedTouches:b.changedTouches?b.changedTouches:[b];return{x:(b[0].pageX||b[0].clientX)+(document.documentElement.scrollLeft||document.body.scrollLeft),y:(b[0].pageY||b[0].clientY)+(document.documentElement.scrollTop||document.body.scrollTop)}}jQuery(document).ready(function(){window.setTimeout(function(){window.hint=new Hint},10)}); Class("Hint",{create:function(){this.$text=$("

");$("body").append(this.$text)},text:function(b){this.$text.find("span").html(b);this.animateShow();this.delay&&window.clearTimeout(this.delay);this.delay=window.setTimeout(function(){this.animateHide();this.delay=null}.bind(this),2E3)},animateShow:function(){this.$text.css({opacity:1,display:"block"})},animateHide:function(){this.$text.animate({opacity:"0"},1E3,function(){this.$text.hide()}.bind(this))}}); bdor[30]=function(b,c){return bdor[b]-c}; Class("RangeSlider",{create:function(b,c){this.slider=b;this.min=0;this.max=c.max?c.max:1;isNaN(this.max)&&(this.max=100);this.onChange=c.onChange;this.init();void 0==c.range||isNaN(c.range)?(this.currentRange=0,this.setRange(0)):(this.currentRange=c.range,this.setRange(c.range))},init:function(){this.slider_total=$('
');this.slider_range=$('
');this.slider_hander=$('
');this.slider_range.css("pointer-events", "none");this.slider_hander.css("pointer-events","none");this.slider.append(this.slider_total);this.slider.append(this.slider_range);this.slider.append(this.slider_hander);this.initEvents()},initEvents:function(){this.isMouseDown=!1;this.slider_total.bind(_event._down,function(b){this.isMouseDown=!0;b=isTouch?b.originalEvent?b.originalEvent.changedTouches:b.changedTouches:[b];this.onChangeRange(b);return!1}.bind(this));this.slider_total.bind(_event._move,function(b){if(this.isMouseDown)return b=isTouch? b.originalEvent?b.originalEvent.changedTouches:b.changedTouches:[b],this.onChangeRange(b),!1}.bind(this));this.slider_total.bind(_event._up,function(b){return this.isMouseDown=!1}.bind(this));this.slider_total.bind(_event._leave,function(b){this.isMouseDown=!1}.bind(this));this.slider_hander.bind(_event._down,function(b){b=isTouch?b.originalEvent?b.originalEvent.changedTouches:b.changedTouches:[b];this.onChangeRange(b);return!1}.bind(this))},setMax:function(b){this.max=b},setRange:function(b){if(void 0!= b){this.range=parseFloat(b);this.animation&&this.animation.stop();var c=this.currentRange,d=this.range;this.animation=function(b,g){this.currentRange=$.easing.swing(null,b,c,d-c,g);this.moveToRange(this.currentRange);this.currentRange==this.range&&this.animation&&this.animation.stop()}.animation(this,200)}},onChangeRange:virtual_function,moveToRange:virtual_function}); Class("VerticalSlider",{onChangeRange:function(b){b=b[0];if(void 0!=b){var c=$(b.target),d=b.offsetY;void 0==d&&(d=b.pageY-c.offset().top);b=(c.height()-d)/this.slider_total.height()*this.max;this.setRange(b);if(this.onChange)this.onChange(b)}},moveToRange:function(b){this.slider_total.offset();this.slider.offset();var c=parseInt(this.slider_range.css("bottom").replace("px","")),d=this.slider_hander.width(),f=this.slider_total.height()-d;b=Math.floor(b*f/this.max);b=Math.min(b,f);d=b+d/2;this.slider_hander.css({bottom:b+ c});this.slider_range.css({height:d})}}).extend("RangeSlider"); Class("HorizontalSlider",{onChangeRange:function(b){b=b[0];if(void 0!=b){var c=$(b.target),d=b.offsetX;void 0==d&&(d=b.pageX-c.offset().left);b=d/this.slider_total.width()*this.max;this.setRange(b);if(this.onChange)this.onChange(b)}},moveToRange:function(b){var c=this.slider_total.offset().left-this.slider.offset().left;parseInt(this.slider_range.css("bottom").replace("px",""));var d=this.slider_hander.width(),f=this.slider_total.width()-d;b=Math.floor(b*f/this.max);b=Math.min(b,f);d=b+d/2;this.slider_hander.css({left:b+ c});this.slider_range.css({width:d})}}).extend("RangeSlider");(function(b){b.fn.slider=function(b){if(b){this.empty();var d=null;(d="horizontal"==b.direction?new HorizontalSlider(this,b):new VerticalSlider(this,b))||(d=new HorizontalSlider(this,b));return d}}})(jQuery); (function(b){var c="object"==typeof exports&&exports,d="object"==typeof module&&module&&module.exports==c&&module,f="object"==typeof global&&global;if(f.global===f||f.window===f)b=f;var g=function(b){this.message=b};g.prototype=Error();g.prototype.name="InvalidCharacterError";var h={encode:function(b){b=String(b);if(/[^\0-\xFF]/.test(b))throw new g("The string to be encoded contains characters outside of the Latin1 range.");for(var c=b.length%3,d="",f=-1,h,k,s,r=b.length-c;++f>18&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h>>12&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h>>6&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h&63);2==c?(h=b.charCodeAt(f)<<8,k=b.charCodeAt(++f),h+=k,d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h>> 10)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h>>4&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h<<2&63)+"="):1==c&&(h=b.charCodeAt(f),d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h>>2)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(h<<4&63)+"==");return d},decode:function(b){b=String(b);for(var c=b.length,d=0,f,g,h="",k=-1;++k>(-2*d&6)));return h},version:"0.1.0"};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define(function(){return h});else if(c&&!c.nodeType)if(d)d.exports=h;else for(var k in h)h.hasOwnProperty(k)&&(c[k]=h[k]);else b.base64=h})(this);function parsHexToNormalString(b){for(var c="";2<=b.length;)c+=String.fromCharCode(parseInt(b.substring(0,2),16)),b=b.substring(2,b.length);return c} function parseHexString(b){for(var c=[];2<=b.length;)c.push(parseInt(b.substring(0,2),16)),b=b.substring(2,b.length);return c}function byteArray2String(b){for(var c="",d=0;dg;g++)d[g]=g,f[g]=b.charCodeAt(g%b.length);for(var h=0,g=0;256>g;g++){var h=h+d[g]+f[g]&255,k=d[g];d[g]=d[h];d[h]=k}for(var l=h=f=0,m,k="",g=0;g>>32-k,d)}function f(b,d,f,g,h,k,l){b=c(b,c(c(d&g|f&~g,h),l));return c(b<>>32-k,d)}function g(b,d,f,g,h,k,l){b=c(b,c(c(d^f^g,h),l));return c(b<>>32-k,d)}function h(b,d,f,g,h,k,l){b=c(b, c(c(f^(d|~g),h),l));return c(b<>>32-k,d)}function k(b){var c="",d="",f;for(f=0;3>=f;f++)d=b>>>8*f&255,d="0"+d.toString(16),c+=d.substr(d.length-2,2);return c}var l=[],m,n,p,q,t,s,r,u,v,l=function(b){var c,d=b.length;c=d+8;for(var f=16*((c-c%64)/64+1),g=Array(f-1),h=0,k=0;k>>29;return g}(this);s=1732584193;r=4023233417;u=2562383102;v=271733878;for(m=0;mb||this.moduleCount<=b||0>c||this.moduleCount<=c)throw Error(b+","+c);return this.modules[b][c]},getModuleCount:function(){return this.moduleCount},make:function(){if(1>this.typeNumber){for(var b=1,b=1;40>b;b++){for(var c=QRRSBlock.getRSBlocks(b,this.errorCorrectLevel),d=new QRBitBuffer,f=0,g=0;g=d;d++)if(!(-1>=b+d||this.moduleCount<=b+d))for(var f=-1;7>=f;f++)-1>=c+f||this.moduleCount<=c+f||(this.modules[b+d][c+f]=0<=d&&6>=d&&(0==f||6==f)||0<=f&&6>= f&&(0==d||6==d)||2<=d&&4>=d&&2<=f&&4>=f?!0:!1)},getBestMaskPattern:function(){for(var b=0,c=0,d=0;8>d;d++){this.makeImpl(!0,d);var f=QRUtil.getLostPoint(this);if(0==d||b>f)b=f,c=d}return c},createMovieClip:function(b,c,d){b=b.createEmptyMovieClip(c,d);this.make();for(c=0;c=h;h++)for(var k=-2;2>=k;k++)this.modules[f+h][g+k]=-2==h||2==h||-2==k||2==k||0==h&&0==k?!0:!1}},setupTypeNumber:function(b){for(var c= QRUtil.getBCHTypeNumber(this.typeNumber),d=0;18>d;d++){var f=!b&&1==(c>>d&1);this.modules[Math.floor(d/3)][d%3+this.moduleCount-8-3]=f}for(d=0;18>d;d++)f=!b&&1==(c>>d&1),this.modules[d%3+this.moduleCount-8-3][Math.floor(d/3)]=f},setupTypeInfo:function(b,c){for(var d=QRUtil.getBCHTypeInfo(this.errorCorrectLevel<<3|c),f=0;15>f;f++){var g=!b&&1==(d>>f&1);6>f?this.modules[f][8]=g:8>f?this.modules[f+1][8]=g:this.modules[this.moduleCount-15+f][8]=g}for(f=0;15>f;f++)g=!b&&1==(d>>f&1),8>f?this.modules[8][this.moduleCount- f-1]=g:9>f?this.modules[8][15-f-1+1]=g:this.modules[8][15-f-1]=g;this.modules[this.moduleCount-8][8]=!b},mapData:function(b,c){for(var d=-1,f=this.moduleCount-1,g=7,h=0,k=this.moduleCount-1;0l;l++)if(null==this.modules[f][k-l]){var m=!1;h>>g&1));QRUtil.getMask(c,f,k-l)&&(m=!m);this.modules[f][k-l]=m;g--; -1==g&&(h++,g=7)}f+=d;if(0>f||this.moduleCount<=f){f-=d;d=-d;break}}}};QRCode.PAD0=236;QRCode.PAD1=17; QRCode.createData=function(b,c,d){c=QRRSBlock.getRSBlocks(b,c);for(var f=new QRBitBuffer,g=0;g8*b)throw Error("code length overflow. ("+f.getLengthInBits()+">"+8*b+")");for(f.getLengthInBits()+4<=8*b&&f.put(0,4);0!=f.getLengthInBits()%8;)f.putBit(!1);for(;!(f.getLengthInBits()>=8*b);){f.put(QRCode.PAD0,8);if(f.getLengthInBits()>= 8*b)break;f.put(QRCode.PAD1,8)}return QRCode.createBytes(f,c)}; QRCode.createBytes=function(b,c){for(var d=0,f=0,g=0,h=Array(c.length),k=Array(c.length),l=0;l>>=1;return c},getPatternPosition:function(b){return QRUtil.PATTERN_POSITION_TABLE[b-1]},getMask:function(b,c,d){switch(b){case QRMaskPattern.PATTERN000:return 0==(c+d)% 2;case QRMaskPattern.PATTERN001:return 0==c%2;case QRMaskPattern.PATTERN010:return 0==d%3;case QRMaskPattern.PATTERN011:return 0==(c+d)%3;case QRMaskPattern.PATTERN100:return 0==(Math.floor(c/2)+Math.floor(d/3))%2;case QRMaskPattern.PATTERN101:return 0==c*d%2+c*d%3;case QRMaskPattern.PATTERN110:return 0==(c*d%2+c*d%3)%2;case QRMaskPattern.PATTERN111:return 0==(c*d%3+(c+d)%2)%2;default:throw Error("bad maskPattern:"+b);}},getErrorCorrectPolynomial:function(b){for(var c=new QRPolynomial([1],0),d=0;d< b;d++)c=c.multiply(new QRPolynomial([1,QRMath.gexp(d)],0));return c},getLengthInBits:function(b,c){if(1<=c&&10>c)switch(b){case QRMode.MODE_NUMBER:return 10;case QRMode.MODE_ALPHA_NUM:return 9;case QRMode.MODE_8BIT_BYTE:return 8;case QRMode.MODE_KANJI:return 8;default:throw Error("mode:"+b);}else if(27>c)switch(b){case QRMode.MODE_NUMBER:return 12;case QRMode.MODE_ALPHA_NUM:return 11;case QRMode.MODE_8BIT_BYTE:return 16;case QRMode.MODE_KANJI:return 10;default:throw Error("mode:"+b);}else if(41>c)switch(b){case QRMode.MODE_NUMBER:return 14; case QRMode.MODE_ALPHA_NUM:return 13;case QRMode.MODE_8BIT_BYTE:return 16;case QRMode.MODE_KANJI:return 12;default:throw Error("mode:"+b);}else throw Error("type:"+c);},getLostPoint:function(b){for(var c=b.getModuleCount(),d=0,f=0;f=l;l++)if(!(0>f+l||c<=f+l))for(var m=-1;1>=m;m++)0>g+m||c<=g+m||0==l&&0==m||k!=b.isDark(f+l,g+m)||h++;5b)throw Error("glog("+ b+")");return QRMath.LOG_TABLE[b]},gexp:function(b){for(;0>b;)b+=255;for(;256<=b;)b-=255;return QRMath.EXP_TABLE[b]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},i=0;8>i;i++)QRMath.EXP_TABLE[i]=1<i;i++)QRMath.EXP_TABLE[i]=QRMath.EXP_TABLE[i-4]^QRMath.EXP_TABLE[i-5]^QRMath.EXP_TABLE[i-6]^QRMath.EXP_TABLE[i-8];for(i=0;255>i;i++)QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]]=i; function QRPolynomial(b,c){if(void 0==b.length)throw Error(b.length+"/"+c);for(var d=0;dthis.getLength()-b.getLength())return this;for(var c=QRMath.glog(this.get(0))-QRMath.glog(b.get(0)),d=Array(this.getLength()),f=0;f>>7-b%8&1)},put:function(b,c){for(var d=0;d>>c-d-1&1))},getLengthInBits:function(){return this.length},putBit:function(b){var c=Math.floor(this.length/8);this.buffer.length<=c&&this.buffer.push(0);b&&(this.buffer[c]|=128>>>this.length%8);this.length++}}; (function(b){b.fn.qrcode=function(c){"string"===typeof c&&(c={text:c});c=b.extend({},{render:"canvas",width:256,height:256,typeNumber:-1,correctLevel:QRErrorCorrectLevel.H,background:"#ffffff",foreground:"#000000"},c);var d=function(){var b=new QRCode(c.typeNumber,c.correctLevel);b.addData(c.text);b.make();var d=document.createElement("canvas");d.width=c.width;d.height=c.height;for(var h=d.getContext("2d"),k=c.width/b.getModuleCount(),l=c.height/b.getModuleCount(),m=0;m").css("width",c.width+"px").css("height",c.height+"px").css("border","0px").css("border-collapse", "collapse").css("background-color",c.background),h=c.width/f.getModuleCount(),k=c.height/f.getModuleCount(),l=0;l").css("height",k+"px").appendTo(g),n=0;n").css("width",h+"px").css("background-color",f.isDark(l,n)?c.foreground:c.background).appendTo(m)}else f=d(),g=new Image,g.src=f.toDataURL("image/png");f=g}else f=d();jQuery(f).appendTo(this)})}})(jQuery); !function(b,c,d,f){function g(b,c,d){return Array.isArray(b)?(h(b,d[c],d),!0):!1}function h(b,c,d){var g;if(b)if(b.forEach)b.forEach(c,d);else if(b.length!==f)for(g=0;g\s*\(/gm,"{anonymous}()@"): "Unknown Stack Trace",f=b.console&&(b.console.warn||b.console.log);return f&&f.call(b.console,g,d),c.apply(this,arguments)}}function l(b,c,d){var f=c.prototype;c=b.prototype=Object.create(f);c.constructor=b;c._super=f;d&&N(c,d)}function m(b,c){return function(){return b.apply(c,arguments)}}function n(b,c){return typeof b==Na?b.apply(c?c[0]||f:f,c):b}function p(b,c,d){h(s(c),function(c){"undefined"!=typeof window.addEventListener?b.addEventListener(c,d,!1):b.attachEvent(c,d)})}function q(b,c,d){h(s(c), function(c){"undefined"!=typeof window.removeEventListener?b.removeEventListener(c,d,!1):b.detachEvent(c,d)})}function t(b,c){for(;b;){if(b==c)return!0;b=b.parentNode}return!1}function s(b){return b.trim().split(/\s+/g)}function r(b,c,d){if(b.indexOf&&!d)return b.indexOf(c);for(var f=0;fr(g,k)&&f.push(b[h]); g[h]=k;h++}return d&&(f=c?f.sort(function(b,d){return b[c]>d[c]}):f.sort()),f}function w(b,c){if(c&&c[0]){for(var d,g,h=c[0].toUpperCase()+c.slice(1),k=0;kW(l)?h:l;d.scale=g?K(k[0],k[1],la)/K(g.pointers[0],g.pointers[1],la):1;d.rotation=g?S(k[1],k[0],la)+ S(g.pointers[1],g.pointers[0],la):0;d.maxPointers=c.prevInput?d.pointers.length>c.prevInput.maxPointers?d.pointers.length:c.prevInput.maxPointers:d.pointers.length;l=c.lastInterval||d;k=d.timeStamp-l.timeStamp;d.eventType!=G&&(k>Qa||l.velocity===f)?(h=d.deltaX-l.deltaX,l=d.deltaY-l.deltaY,m=h/k||0,n=l/k||0,k=m,g=n,m=W(m)>W(n)?m:n,h=L(h,l),c.lastInterval=d):(m=l.velocity,k=l.velocityX,g=l.velocityY,h=l.direction);d.velocity=m;d.velocityX=k;d.velocityY=g;d.direction=h;c=b.element;t(d.srcEvent.target, c)&&(c=d.srcEvent.target);d.target=c;b.emit("hammer.input",d);b.recognize(d);b.session.prevInput=d}function A(b){for(var c=[],d=0;dg;)d+=b[g].clientX,f+=b[g].clientY,g++;return{x:aa(d/c),y:aa(f/c)}}function L(b,c){return b=== c?ma:W(b)>=W(c)?0>b?da:ea:0>c?fa:ha}function K(b,c,d){d||(d=Ca);var f=c[d[0]]-b[d[0]];b=c[d[1]]-b[d[1]];return Math.sqrt(f*f+b*b)}function S(b,c,d){d||(d=Ca);return 180*Math.atan2(c[d[1]]-b[d[1]],c[d[0]]-b[d[0]])/Math.PI}function D(){this.evEl=Ra;this.evWin=Sa;this.pressed=!1;x.apply(this,arguments)}function I(){this.evEl=Da;this.evWin=Ea;x.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}function ia(){this.evTarget=Ta;this.evWin=Ua;this.started=!1;x.apply(this,arguments)}function V(){this.evTarget= Va;this.targetIds={};x.apply(this,arguments)}function X(b,c){var d=u(b.touches),f=this.targetIds;if(c&(F|Y)&&1===d.length)return f[d[0].identifier]=!0,[d,d];var g,h=u(b.changedTouches),k=[],l=this.target;if(g=d.filter(function(b){return t(b.target,l)}),c===F)for(d=0;dk&&(c.push(b),k=c.length-1):f&(B|G)&&(d=!0);0>k||(c[k]=b,this.callback(this.manager,f,{pointers:c,changedPointers:[b],pointerType:g,srcEvent:b}),d&&c.splice(k,1))}});var fb={touchstart:F,touchmove:Y,touchend:B,touchcancel:G},Ta="touchstart",Ua="touchstart touchmove touchend touchcancel";l(ia,x,{handler:function(b){var c=fb[b.type];if(c===F&&(this.started=!0),this.started){var d,f=u(b.touches);d=u(b.changedTouches);d=(c&(B|G)&&(f=v(f.concat(d), "identifier",!0)),[f,d]);c&(B|G)&&0===d[0].length-d[1].length&&(this.started=!1);this.callback(this.manager,c,{pointers:d[0],changedPointers:d[1],pointerType:"touch",srcEvent:b})}}});var gb={touchstart:F,touchmove:Y,touchend:B,touchcancel:G},Va="touchstart touchmove touchend touchcancel";l(V,x,{handler:function(b){var c=gb[b.type],d=X.call(this,b,c);d&&this.callback(this.manager,c,{pointers:d[0],changedPointers:d[1],pointerType:"touch",srcEvent:b})}});var Wa=2500;l(O,x,{handler:function(b,c,d){var f= "touch"==d.pointerType,g="mouse"==d.pointerType;if(!(g&&d.sourceCapabilities&&d.sourceCapabilities.firesTouchEvents)){if(f)c&F?(this.primaryTouch=d.changedPointers[0].identifier,ja.call(this,d)):c&(B|G)&&ja.call(this,d);else{if(f=g)a:{for(var f=d.srcEvent.clientX,g=d.srcEvent.clientY,h=0;h=l&&25>=k){f=!0;break a}}f=!1}if(f)return}this.callback(b,c,d)}},destroy:function(){this.touch.destroy();this.mouse.destroy()}}); var La=w($a.style,"touchAction"),Ma=La!==f,Fa="auto",ua="manipulation",ba="none",na="pan-x",oa="pan-y";T.prototype={set:function(b){"compute"==b&&(b=this.compute());Ma&&this.manager.element.style&&(this.manager.element.style[La]=b);this.actions=b.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var b=[];return h(this.manager.recognizers,function(c){n(c.options.enable,[c])&&(b=b.concat(c.getTouchAction()))}),Xa(b.join(" "))},preventDefaults:function(b){if(!Ma){var c= b.srcEvent,d=b.offsetDirection;if(!this.manager.session.prevented){void c.preventDefault();var f=this.actions,g=-1b.distance,l=250>b.deltaTime;if(1===b.pointers.length&&k&&l)return}if(!f||!h)return g||h&&d&M||f&&d&Z?this.preventSrc(c):void 0}}},preventSrc:function(b){this.manager.session.prevented=!0;b.preventDefault()}};var pa=1,H=2,ca=4,U=8,R=U,ka=16;P.prototype={defaults:{},set:function(b){return N(this.options,b),this.manager&& this.manager.touchAction.update(),this},recognizeWith:function(b){if(g(b,"recognizeWith",this))return this;var c=this.simultaneous;return b=qa(b,this),c[b.id]||(c[b.id]=b,b.recognizeWith(this)),this},dropRecognizeWith:function(b){return g(b,"dropRecognizeWith",this)?this:(b=qa(b,this),delete this.simultaneous[b.id],this)},requireFailure:function(b){if(g(b,"requireFailure",this))return this;var c=this.requireFail;return b=qa(b,this),-1===r(c,b)&&(c.push(b),b.requireFailure(this)),this},dropRequireFailure:function(b){if(g(b, "dropRequireFailure",this))return this;b=qa(b,this);b=r(this.requireFail,b);return-1f&&c(d.options.event+Ga(f));c(d.options.event);b.additionalEvent&&c(b.additionalEvent);f>=U&&c(d.options.event+Ga(f))},tryEmit:function(b){return this.canEmit()?this.emit(b):void(this.state= 32)},canEmit:function(){for(var b=0;bh?da:ea,d=h!=this.pX, f=Math.abs(b.deltaX)):(g=0===k?ma:0>k?fa:ha,d=k!=this.pY,f=Math.abs(b.deltaY))),b.direction=g,d&&f>c.threshold&&g&c.direction},attrTest:function(b){return J.prototype.attrTest.call(this,b)&&(this.state&H||!(this.state&H)&&this.directionTest(b))},emit:function(b){this.pX=b.deltaX;this.pY=b.deltaY;var c=Ha(b.direction);c&&(b.additionalEvent=this.options.event+c);this._super.emit.call(this,b)}});l(va,J,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ba]},attrTest:function(b){return this._super.attrTest.call(this, b)&&(Math.abs(b.scale-1)>this.options.threshold||this.state&H)},emit:function(b){1!==b.scale&&(b.additionalEvent=this.options.event+(1>b.scale?"in":"out"));this._super.emit.call(this,b)}});l(wa,P,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Fa]},process:function(b){var c=this.options,d=b.pointers.length===c.pointers,f=b.distancec.time;if(this._input=b,!f||!d||b.eventType&(B|G)&&!g)this.reset();else if(b.eventType&F)this.reset(), this._timer=setTimeout(m(function(){this.state=R;this.tryEmit()},this),c.time);else if(b.eventType&B)return R;return 32},reset:function(){clearTimeout(this._timer)},emit:function(b){this.state===R&&(b&&b.eventType&B?this.manager.emit(this.options.event+"up",b):(this._input.timeStamp=ta(),this.manager.emit(this.options.event,this._input)))}});l(xa,J,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ba]},attrTest:function(b){return this._super.attrTest.call(this,b)&& (Math.abs(b.rotation)>this.options.threshold||this.state&H)}});l(ya,J,{defaults:{event:"swipe",threshold:10,velocity:0.3,direction:M|Z,pointers:1},getTouchAction:function(){return ra.prototype.getTouchAction.call(this)},attrTest:function(b){var c,d=this.options.direction;return d&(M|Z)?c=b.overallVelocity:d&M?c=b.overallVelocityX:d&Z&&(c=b.overallVelocityY),this._super.attrTest.call(this,b)&&d&b.offsetDirection&&b.distance>this.options.threshold&&b.maxPointers==this.options.pointers&&W(c)>this.options.velocity&& b.eventType&B},emit:function(b){var c=Ha(b.offsetDirection);c&&this.manager.emit(this.options.event+c,b);this.manager.emit(this.options.event,b)}});l(sa,P,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ua]},process:function(b){var c=this.options,d=b.pointers.length===c.pointers,f=b.distance=k){b.animateInterval.stop();b.parameters.left=b.parameters.naturalLeft+50*(b.parameters.naturalWidth- b.parameters.width*c)/100;b.parameters.top=b.parameters.naturalTop+50*(b.parameters.naturalHeight-b.parameters.height*c)/100;b.parameters.width*=c;b.parameters.height*=c;b.css({width:b.parameters.width+"px",height:b.parameters.height+"px",left:b.parameters.left+"px",top:b.parameters.top+"px"});for(r=0;r=b.parameters.width*b.parameters.scale/b.parameters.naturalWidth&& b.zoomOut(b)}}.animation(this,320)}};this.panForMove=function(b,c,d,f){b.css({left:b.parameters.left+c+"px",top:b.parameters.top+d+"px"})};var c=!1,d=0,f=0;bookConfig.SupportOperatePageZoom&&this.dblclick(function(b){b.pointers=[{pageX:b.pageX,pageY:b.pageY}];this.onDoubleTap(b)}.bind(this));this.bind(_event._down,function(b){c=!0;d=b.pageX;f=b.pageY}.bind(this));this.bind(_event._move,function(b){b.pointers=[{pageX:b.pageX,pageY:b.pageY}];c&&(b.deltaX=b.pageX-d,b.deltaY=b.pageY-f,this.onPan(b))}.bind(this)); this.bind(_event._end,function(b){c=!1;this.parameters.left+=b.pageX-d;this.parameters.top+=b.pageY-f}.bind(this))}; jQuery.fn.zoom=function(b,c){this.options=b;this.isBook=c;this.parameters={width:$(this).width()||0,height:$(this).height()||0,naturalWidth:$(this).width()||0,naturalHeight:$(this).height()||0,left:$(this).offset().left-0||0,top:$(this).offset().top-0||0,toScale:1,scale:1,rotate:0,tran:{x:0,y:0},origin:{x:50,y:50},zoomFlag:!1,zoomming:!1,zoomOut:!1,resize:!1,eventCancel:!1,zoomDelay:!1,onPan:!1,onSwipe:!1,onDoubleTap:!1,onPinch:!1,zoomArea:{left:0,top:0,right:0,bottom:0}};this.onPan=function(b){if(!this.parameters.resize&& !this.parameters.eventCancel&&!this.parameters.zoomming&&b&&b.pointers&&1==b.pointers.length&&(this.swipeInterval&&this.swipeInterval.stop(),this.animateInterval&&this.animateInterval.stop(),this.parameters.zoomFlag)){"panstart"==b.type&&(this.parameters.onPan=!0);var c=this.getDelta(b),c=this.panForMove(this,c.deltaX,c.deltaY,!0);if(this.options&&this.options.onPan)this.options.onPan();if("panend"==b.type||"pancancel"==b.type)this.parameters.onPan=!1,this.setZoomParameters(this,c),this.restrictInBoundary(this)}}; this.onSwipe=function(b){if(!this.parameters.resize&&!this.parameters.eventCancel&&!this.parameters.zoomming)if(this.parameters.zoomFlag){var c=this.parameters.tran,d=this.tranLimit(this,this.parameters.scale,this.parameters.tran);if(d.x==parseInt(c.x)&&d.y==parseInt(c.y)){this.animateInterval&&this.animateInterval.stop();this.swipeInterval&&this.swipeInterval.stop();var k=0,l=0;b=this.getVelocity(b);k=b.velocityX;l=b.velocityY;this.swipeInterval=function(b,c){var d=this.parameters.tran,f=this.tranLimit(this, this.parameters.scale,this.parameters.tran);f.x!=parseInt(d.x)||f.y!=parseInt(d.y)?(this.swipeInterval.stop(),this.restrictInBoundary(this)):(d=(c-b)/c,d=this.panForMove(this,k*d*16.7,l*d*16.7,!0),this.setZoomParameters(this,d),b>=c&&(this.swipeInterval.stop(),this.restrictInBoundary(this)))}.animation(this,320)}}else b=this.getDirection(b),this.options&&this.options.swipeend&&this.options.swipeend(b)};this.getDirection=function(b){var c,d=bookConfig.upsideOnMobile();b.direction&Hammer.DIRECTION_RIGHT&& !d&&(c="right");b.direction&Hammer.DIRECTION_LEFT&&!d&&(c="left");b.direction&Hammer.DIRECTION_UP&&!d&&(c="up");b.direction&Hammer.DIRECTION_DOWN&&!d&&(c="down");b.direction&Hammer.DIRECTION_RIGHT&&d&&(c="down");b.direction&Hammer.DIRECTION_LEFT&&d&&(c="up");b.direction&Hammer.DIRECTION_UP&&d&&(c="left");b.direction&Hammer.DIRECTION_DOWN&&d&&(c="right");return c};this.getVelocity=function(b){var c=0,d=0,k=bookConfig.upsideOnMobile();0==b.velocityX||k||(c=b.velocityX);0==b.velocityY||k||(d=b.velocityY); 0!=b.velocityX&&k&&(c=b.velocityY);0!=b.velocityY&&k&&(d=-b.velocityX);return{velocityX:c,velocityY:d}};this.getDelta=function(b){var c=0,d=0,k=bookConfig.upsideOnMobile();0==b.deltaX||k||(c=b.deltaX);0==b.deltaY||k||(d=b.deltaY);0!=b.deltaX&&k&&(c=b.deltaY);0!=b.deltaY&&k&&(d=-b.deltaX);return{deltaX:c,deltaY:d}};this.onDoubleTap=function(b){if(!(BookInfo.getBook().status_resize||BookInfo.getBook().flipping||(BookInfo.getBook().endFlip(),global.windowTapInterval&&window.clearTimeout(global.windowTapInterval), this.parameters.resize||this.parameters.zoomming)))if(BookInfo.getBook().unSelect(),this.status_zoom=!0,!this.parameters.zoomFlag)BookEvent.trigger("zoomIn",["double tap",BookInfo.getCurrentPages().join("-")]),this.zoomIn(this),this.parameters.origin=this.mathOrigin(this,b),this.originObj(this,this.parameters.origin),this.parameters.zoomOut=!1,this.animateToScale(this,this.middleScale,b);else if(this.parameters.zoomFlag){BookEvent.trigger("zoomOut",["double tap",BookInfo.getCurrentPages().join("-")]); var c=this.parameters.naturalWidth/this.parameters.width;this.parameters.zoomOut=!0;this.animateToScale(this,c,b)}};this.onPinch=function(b){"pinchstart"==b.type&&(this.pinchStart=!0);if(!(this.parameters.resize||this.parameters.zoomming||!this.parameters.zoomFlag&&1>=b.scale)&&b&&b.pointers){BookInfo.getBook().unSelect();this.animateInterval&&this.animateInterval.stop();this.swipeInterval&&this.swipeInterval.stop();var c=function(){this.pinchStart=!1;this.parameters.zoomFlag||(this.parameters.zoomOut= !1,this.zoomIn(this));BookEvent.trigger("zoomIn",["pinch",BookInfo.getCurrentPages().join("-")]);this.scale=this.parameters.toScale;this.parameters.origin=this.mathOrigin(this,b);this.originObj(this,this.parameters.origin);this.pinchMoveIn(this,parseFloat(this.scale)*parseFloat(b.scale),b,this.parameters.origin)}.bind(this);"pinchstart"==b.type&&(this.parameters.onPinch=!0,c(b));"pinchend"==b.type&&(this.parameters.scale=this.parameters.toScale,this.parameters.onPinch=!1,this.exceedScale(this,b), this.pinchStart=!1);"pinchmove"==b.type&&(this.pinchStart&&c(b),this.pinchMoveIn(this,parseFloat(this.scale)*parseFloat(b.scale),b,this.parameters.origin));"pinchcancel"==b.type&&(this.parameters.scale=this.parameters.toScale,this.parameters.onPinch=!1,this.exceedScale(this,b),this.pinchStart=!1)}};this.exceedScale=function(b,c){var d=b.parameters.width*b.parameters.toScale/b.parameters.naturalWidth,k=b.parameters.width*b.parameters.toScale,l=b.parameters.height*b.parameters.toScale,m=b.parameters.naturalWidth* b.maxScale/b.parameters.width,n=b.parameters.naturalWidth/b.parameters.width,p=b.parameters.toScale;d>b.maxScale&&(p=m);if(1>d||kwindowWidth?(q=windowWidth-t-n+l*c*b.parameters.zoomArea.right/100,s=-n-l*c*b.parameters.zoomArea.left/100):(q=-n-l*c*b.parameters.zoomArea.left/100,s=windowWidth-t-n+l* c*b.parameters.zoomArea.right/100);r>windowHeight?(t=windowHeight-r-p+m*c*b.parameters.zoomArea.bottom/100,r=-p-m*c*b.parameters.zoomArea.top/100):(t=-p-m*c*b.parameters.zoomArea.top/100,r=windowHeight-r-p+m*c*b.parameters.zoomArea.bottom/100);k=Number.between(k,q,s);d=Number.between(d,t,r);return{x:parseInt(k),y:parseInt(d)}}};this.pinchMoveIn=function(b,c,d){if(!b.parameters.eventCancel&&!b.parameters.zoomming&&d&&d.pointers&&2==d.pointers.length){var k={};k.scale=c;k.tran=b.mathTran(b,d,b.parameters.origin); b.transformSetting(b,k);b.parameters.toScale=c}};this.mathTran=function(b,c,d){if(!c||!c.pointers||0>=c.pointers.length||!d)return{x:0,y:0};c=this.getPageXY(c);pageX=c.pageX;pageY=c.pageY;var k,l;l=b.parameters.width;c=b.parameters.height;k=b.parameters.left;b=b.parameters.top;k=(d.x*l/100+k).toFixed(2);d=(d.y*c/100+b).toFixed(2);tranX=pageX-parseFloat(k);tranY=pageY-parseFloat(d);return{x:parseFloat(tranX.toFixed(2)),y:parseFloat(tranY.toFixed(2))}};this.mathOrigin=function(b,c){if(!c||!c.pointers|| 0>=c.pointers.length)return{x:50,y:50};var d=this.getPageXY(c);pageX=d.pageX;pageY=d.pageY;var k,l;k=b.parameters.width;d=b.parameters.height;l=this.getBookOffset(b);k=(pageX-parseInt(l.left))/(k*b.parameters.scale);d=(pageY-parseInt(l.top))/(d*b.parameters.scale);return{x:(100*k).toFixed(2),y:(100*d).toFixed(2)}};this.getPageXY=function(b){var c,d,k=bookConfig.upsideOnMobile();1==b.pointers.length&&(c=b.pointers[0].pageX,d=b.pointers[0].pageY);1=h)b.animateInterval.stop(),BookInfo.getBook().bookAttachments&&BookInfo.getBook().bookAttachments.Items.find("ZoomMap").each(function(b){b.refreshArea()}),c&&"function"==typeof c&&c()}.animation(this, 320)}}};this.transformSetting=function(b,c){b.setZoomParameters(b,c);var d=transformCSS(c);b.css(d)};this.panForMove=function(b,c,d,k){var l=b.parameters?b.parameters.tran:{x:0,y:0};k=b.parameters?b.parameters.scale:1;l||(l={x:0,y:0});k||0==k||(k=1);c=parseInt(l.x+c);d=parseInt(l.y+d);d={x:c,y:d};c=transformCSS({tran:d,scale:k});b.css(c);return{tran:d,scale:k}};this.originObj=function(b,c){b.css({"-webkit-transform-origin":c.x+"% "+c.y+"%","-moz-transform-origin":c.x+"% "+c.y+"%","-ms-transform-origin":c.x+ "% "+c.y+"%","-o-transform-origin":c.x+"% "+c.y+"%"})};this.setZoomParameters=function(b,c){function d(h){return void 0===c[h]||null===c[h]||isNaN(c[h])?b.parameters[h]:c[h]}function k(d){return void 0!==c[d]&&null!==c[d]?c[d]:b.parameters[d]}b&&b.parameters&&c&&(b.parameters={width:d("width"),height:d("height"),naturalWidth:d("naturalWidth"),naturalHeight:d("naturalHeight"),left:d("left"),top:d("top"),scale:d("scale"),rotate:d("rotate"),toScale:d("toScale"),tran:k("tran"),origin:k("origin"),zoomFlag:k("zoomFlag"), zoomming:k("zoomming"),zoomOut:k("zoomOut"),resize:k("resize"),eventCancel:k("eventCancel"),zoomArea:k("zoomArea"),zoomDelay:k("zoomDelay"),onPan:k("onPan"),onSwipe:k("onSwipe"),onDoubleTap:k("onDoubleTap"),onPinch:k("onPinch")})};this.animateToTransform=function(b,c,d){if(!this.parameters.eventCancel&&!this.parameters.zoomming){this.options&&this.options.zoomStart&&this.options.zoomStart();this.parameters.zoomming=!0;var k=this.getBookOffset($(this));this.parameters.tran=getTransform(this[0]);this.parameters.left= k.left-this.parameters.tran.x;this.parameters.top=k.top-this.parameters.tran.y;this.parameters.width=$(this).width();this.parameters.height=$(this).height();this.parameters.naturalWidth=$(this).width();this.parameters.naturalHeight=$(this).height();this.setZoomSize();var l={};l.origin=this.parameters.origin;l.scale=b;l.tran=c;l.origin=d;this.zoomTran=l;c=transformCSS(l);this.originObj(this,l.origin);animateOnce(this,c,300,function(){getTransform(this[0]);this.transformSetting(this,l);this.parameters.scale= b;this.parameters.toScale=b;this.parameters.zoomming=!1;if(this.options.onZoomed)this.options.onZoomed(l)}.bind(this),"%stransform","ease-in-out")}};this.animateToScale=function(b,c,d){if(!b.parameters.eventCancel&&!b.parameters.zoomming){b.options&&b.options.zoomStart&&b.options.zoomStart();b.parameters.zoomming=!0;var k={};k.origin=b.parameters.origin;k.scale=c;k.tran=this.mathTran(b,d,k.origin);k.tran=this.tranLimit(b,c,k.tran);this.zoomTran=k;this.animation(b,c,k)}};this.animation=function(b, c,d){var k=transformCSS(d);b.originObj(b,d.origin);animateOnce(b,k,300,function(){getTransform(b[0]);b.transformSetting(b,d);b.parameters.scale=c;b.parameters.toScale=c;b.parameters.zoomming=!1;var k=(b.parameters.width*b.parameters.toScale).toFixed(2),m=b.parameters.naturalWidth;if(Number.isBetween(k,m-1,m+1)){b.timeout&&(b.timeout=void 0,window.clearTimeout(b.timeout));b.parameters.zoomDelay=!1;if(b.options.onZoomed)b.options.onZoomed(b.zoomTran);b.zoomOut(b)}else if(b.options.onZoomed)b.options.onZoomed(b.zoomTran)}.bind(b), "%stransform","ease-in-out")};this.delayExecuteOnZoomed=function(b){b.timeout=window.setTimeout(function(){if(b.parameters.zoomFlag&&!b.parameters.onPinch&&!b.parameters.zoomming)b.options.onZoomed(b.zoomTran);b.parameters.zoomDelay=!1;window.clearTimeout(b.timeout);b.timeout=void 0},3E3)};this.registerParamers=function(b){b&&(void 0!=b.width&&(this.parameters.width=b.width),void 0!=b.height&&(this.parameters.height=b.height),void 0!=b.left&&(this.parameters.left=b.left),void 0!=b.top&&(this.parameters.top= b.top),void 0!=b.scale&&(this.parameters.scale=b.scale),void 0!=b.tran&&(this.parameters.tran=b.tran),void 0!=b.origin&&(this.parameters.origin=b.origin))};this.setZoomSize=function(){var b=$(this).width(),c=$(this).height(),d=bookConfig.largePageHeight/bookConfig.largePageWidth,k=bookConfig.defaultZoomWidth?bookConfig.defaultZoomWidth:bookConfig.largePageWidth,l=k*d,m=bookConfig.maxZoomWidth,d=m*d;bookConfig.FlipDirection?(this.middleScale=Number.between(k/b,1.5,2),this.maxScale=Number.between(m/ b,2,4)):(this.middleScale=Number.between(l/c,1.5,2),this.maxScale=Number.between(d/c,2,4));this.middleScale||(this.middleScale=2);m||(this.maxScale=4)};var d=new Hammer.Manager($(this)[0]);d.add(new Hammer.Pan);d.add((new Hammer.Swipe({velocity:0.15})).recognizeWith(d.get("pan")));d.on("panstart panmove panend pancancel",this.onPan.bind(this));d.on("swipe swipeup",this.onSwipe.bind(this));if(bookConfig.SupportOperatePageZoom){d.add(new Hammer.Pinch);isPhone()||isPad()?d.add(new Hammer.Tap({event:"doubletap", taps:2,interval:400,posThreshold:30})):d.add(new Hammer.Tap({event:"doubletap",taps:2}));if(isPhone()||isPad()||isSlideBook())d.on("pinchstart pinchmove pinchcancel pinchend",this.onPinch.bind(this));if(!isAndroidWeChat())d.on("doubletap",this.onDoubleTap.bind(this))}this.setZoomSize()}; Class("VideoSkin",{create:function(b,c){this.content=b;this.video=b.find("video:first");this.html_video=c?c:this.video[0];this.initPlayer();this.initControlBar();this.initSkin();this.initEvents();this.onResize()},initPlayer:function(){this.player=this.html_video;var b=this.video.find("source:first");b&&(b=b.attr("src"),(b.endsWith(".flv")||b.endsWith(".f4v"))&&this.content.html('"))}, initControlBar:function(){this.content.addClass("video-player");this.controlBar=$('
');this.controlBorder=$('
');this.content.append(this.controlBar);this.controlBar.append(this.controlBorder);this.btnPlay=$('
');this.bevel1=$('
');this.video_timer=$('
00:00
');this.video_seek=$('
');this.bevel2=$('
'); this.volume_seek=$('
');this.btnVolume=$('
');this.btnFullscreen=$('
');this.controlBar.append(this.btnPlay);this.controlBar.append(this.bevel1);this.controlBar.append(this.btnFullscreen);this.controlBar.append(this.video_timer);this.controlBar.append(this.video_seek);this.controlBar.append(this.bevel2);this.controlBar.append(this.volume_seek);this.controlBar.append(this.btnVolume);this.createVideoSeekSlider(); this.createVolumeSeekSlider();this.btnCenter=$('
');this.content.append(this.btnCenter)},createVideoSeekSlider:function(){var b=this.html_video.$media[0].duration;b||(b=100);this.video_seek_slider=this.video_seek.slider({range:0,max:b,direction:"horizontal",onChange:function(b){try{this.html_video.$media[0].currentTime=parseFloat(b)}catch(d){}}.bind(this)})},createVolumeSeekSlider:function(){this.volume_value=1;this.volume_seek_slider=this.volume_seek.slider({range:1, max:1,direction:"vertical",onChange:function(b){b=parseFloat(b);try{this.volume_value=b,equals(b,0)?(this.html_video.$media[0].muted=!0,this.btnVolume.addClass("volume-mute")):(this.html_video.$media[0].muted=!1,this.btnVolume.removeClass("volume-mute")),this.html_video.$media[0].volume=b}catch(c){}}.bind(this)})},initEvents:function(){this.initControlBarEvents();this.initPlayEvents();this.initVolumeEvents();this.initFullscreenEvents()},initPrompt:function(b){if(b&&b.length){var c=this.html_video.$media[0].duration; this.video_seek.width();for(var d=0;d

");this.video_seek.append(f);this.promptEvent(f,b[d].time)}}},promptEvent:function(b,c){b.bind("mouseenter",function(c){b.css({background:"#2CA8D5"})}.bind(this));b.bind("mouseleave",function(c){b.css({background:"#fff"})}.bind(this));b.bind("click",function(b){this.html_video.$media[0].currentTime= c}.bind(this))},initControlBarEvents:function(){var b=function(){var b="visible";!0==this.html_video.$media[0].paused&&(b="hidden");this.controlBar.css({visibility:b,opacity:1})}.bind(this),c=function(){this.controlBar.css({visibility:"hidden",opacity:0})}.bind(this);$.browser.device==$.browser.DEVICE_PC?(this.video.bind(_event._enter,b),this.video.bind(_event._leave,c),this.controlBar.bind(_event._enter,b),this.controlBar.bind(_event._leave,c)):(this.video.bind(_event._down,function(){b();this.hideControlbarFlag= !1}.bind(this)),this.video.bind(_event._move,function(){b();this.hideControlbarFlag=!1}.bind(this)),this.video.bind(_event._up,function(){this.hideControlbarFlag=!0;(function(){!0==this.hideControlbarFlag&&c()}).delay(this,5E3)}.bind(this)))},initPlayEvents:function(){var b=function(b){b=(b=this.content.find("source").attr("src"))?b.slice(b.lastIndexOf("/")+1):"";!1==this.html_video.$media[0].paused?(bookConfig.googleAnalyticsID&>ag("event","pause",{event_category:"Video",event_label:"Page"+BookInfo.getCurrentPages()[0]+ " "+b}),this.pause()):(bookConfig.googleAnalyticsID&>ag("event","play",{event_category:"Video",event_label:"Page"+BookInfo.getCurrentPages()[0]+" "+b}),this.play(),this.controlBar.css({visibility:"visible",opacity:1}));return!1},c=(new Date).getTime();this.video.bind(_event._click,b.bind(this));this.btnPlay.bind(_event._click,b.bind(this));this.btnCenter&&this.btnCenter.bind(_event._click,b.bind(this));this.video.bind("play",function(){c=(new Date).getTime();BookEvent.trigger("playMedia",["play", BookInfo.getCurrentPageIndex(),this.html_video.$media[0].currentSrc,"Video",0]);this.btnPlay.addClass("paused-button");this.btnCenter&&this.btnCenter.css("display","none")}.bind(this));this.video.bind("pause",function(){BookEvent.trigger("playMedia",["pause",BookInfo.getCurrentPageIndex(),this.html_video.$media[0].currentSrc,"Video",(new Date).getTime()-c]);this.btnPlay.removeClass("paused-button");this.btnCenter&&this.btnCenter.css("display","block")}.bind(this));this.video.bind("ended",function(){this.btnPlay.removeClass("paused-button"); this.btnCenter&&this.btnCenter.css("display","block")}.bind(this));this.video.bind("timeupdate",function(){var b=this.html_video.$media[0].currentTime,c=this.html_video.$media[0].duration;c||(c=100);this.video_seek_slider&&(this.video_seek_slider.setMax(c),this.video_seek_slider.setRange(b));this.video_timer.text(this.timeFormat(b))}.bind(this))},initVolumeEvents:function(){this.btnVolume.bind(_event._click,function(){!0==this.html_video.$media[0].muted?(this.html_video.$media[0].muted=!1,this.volume_seek_slider.setRange(this.volume_value), this.btnVolume.removeClass("volume-mute")):(this.html_video.$media[0].muted=!0,this.volume_seek_slider.setRange(0),this.btnVolume.addClass("volume-mute"));return!1}.bind(this));this.btnVolume.bind("mouseenter",function(b){b=isTouch?b.originalEvent?b.originalEvent.changedTouches:b.changedTouches:[b];b=b[0].pageX-b[0].offsetX-this.controlBar.offset().left;b+=(this.btnVolume.width()-this.volume_seek.width())/2;this.volume_seek.css({left:b+"px"});this.volume_seek.css({visibility:"visible",opacity:"1"})}.bind(this)); this.btnVolume.bind("mouseleave",function(){this.volume_seek.css({visibility:"hidden",opacity:"0"})}.bind(this));this.volume_seek.bind("mouseenter",function(){this.volume_seek.css({visibility:"visible",opacity:"1"})}.bind(this));this.volume_seek.bind("mouseleave",function(){this.volume_seek.css({visibility:"hidden",opacity:"0"})}.bind(this))},initFullscreenEvents:function(){this.btnFullscreen.bind(_event._click,function(){fullScreenApi.supportsFullScreen?fullScreenApi.isFullScreen()?fullScreenApi.cancelFullScreen(): fullScreenApi.requestFullScreen(this.html_video.$media[0]):this.html_video.$media[0].webkitSupportsFullscreen?this.html_video.$media[0].webkitEnterFullscreen():alert(getLanguage("proFullScreenWarn","Current browser does not support full-screen,Please use Chrome for best results"));return!1}.bind(this));this.video.bind(fullScreenApi.fullScreenEventName,function(){fullScreenApi.isFullScreen()?(this.html_video.play(),this.btnFullscreen.addClass("player-exit-fullscreen")):this.btnFullscreen.removeClass("player-exit-fullscreen")}.bind(this))}, timeFormat:function(b){var c=10>Math.floor(b/60)?"0"+Math.floor(b/60):Math.floor(b/60);return c+":"+(10>Math.floor(b-60*c)?"0"+Math.floor(b-60*c):Math.floor(b-60*c))},initSkin:virtual_function,onResize:function(){var b=this.controlBar.width();b||(b=this.content.width());var c=Math.max(0,b-this.seekWidth);0>=c?this.video_seek.css({display:"none"}):(this.video_seek.css({width:c,display:"block"}),this.video_seek_slider.setRange(this.html_video.$media[0].currentTime));c=this.btnVolume.position().left+ this.controlBar.position().left+(this.btnVolume.width()-this.volume_seek.width())/2;bb?this.video_timer.css("display","none"):this.video_timer.css("display","block")},initSkin:function(){this.content.addClass("round")}}).extend("VideoSkin"); Class("ClassicVideoSkin",{create:function(b,c){this.seekWidth=195;this.volumeWidth=135;this.fullscreenWidth=70;this.initEventMonitor();this._super(b,c);this.btnCenter&&this.btnCenter.css("display","none")},initSkin:function(){this.content.addClass("classic")},initEventMonitor:function(){this.eventTime;var b=function(){void 0==this.eventTime?b.stop():5E3');this.btnBack=$('
');this.btnForward=$('
'); this.volume_seek=$('
');this.btnVolume=$('
');this.btnVolumeUp=$('
');this.btnVolumeDown=$('
');this.audio_timer=$('
00:00/00:00
');this.audio_seek=$('
');this.audio_name=$('
');this.content.append(this.btnPlay); this.content.append(this.btnBack);this.content.append(this.btnForward);this.content.append(this.volume_seek);this.content.append(this.btnVolume);this.content.append(this.btnVolumeUp);this.content.append(this.btnVolumeDown);this.content.append(this.audio_timer);this.content.append(this.audio_seek);this.content.append(this.audio_name);this.createAudioSeekSlider();this.createVolumeSeekSlider()},createAudioSeekSlider:function(){var b=this.html_audio.$media[0].duration;b||(b=100);this.audio_seek_slider= this.audio_seek.slider({range:0,max:b,direction:"horizontal",onChange:function(b){try{this.html_audio.setCurrentTime(parseFloat(b))}catch(d){}}.bind(this)})},createVolumeSeekSlider:function(){this.volume_value=1;this.volume_seek_slider=this.volume_seek.slider({range:1,max:1,direction:this.volumeDirection,onChange:function(b){b=parseFloat(b);try{this.volume_value=b,0==b?(this.html_audio.$media[0].muted=!0,this.volume_btn.addClass("volume-mute")):(this.html_audio.$media[0].muted=!1,this.html_audio.$media[0].volume= b,this.volume_btn.removeClass("volume-mute"))}catch(c){}}.bind(this)})},initEvents:function(){this.initPlayEvents();this.initVolumeEvents()},initPlayEvents:function(){var b=(new Date).getTime();this.btnPlay.bind(_event._click,function(b){if(this.resources[0])return b=this.resources[0].slice(this.resources[0].lastIndexOf("/")+1),!1==this.html_audio.$media[0].paused?(bookConfig.googleAnalyticsID&>ag("event","pause",{event_category:"audio",event_label:"Page"+BookInfo.getCurrentPages()[0]+" "+b}),this.html_audio.pause()): (bookConfig.googleAnalyticsID&>ag("event","play",{event_category:"audio",event_label:"Page"+BookInfo.getCurrentPages()[0]+" "+b}),this.html_audio.play()),!1}.bind(this));this.audio.bind("play",function(){b=(new Date).getTime();this.btnPlay.addClass("paused-button");BookEvent.trigger("playMedia",["play",BookInfo.getCurrentPageIndex(),this.resources[this.audioIndex],"Audio",0])}.bind(this));this.audio.bind("pause",function(){this.btnPlay.removeClass("paused-button");BookEvent.trigger("playMedia", ["pause",BookInfo.getCurrentPageIndex(),this.resources[this.audioIndex],"Audio",(new Date).getTime()-b])}.bind(this));this.audio.bind("ended",function(){this.btnPlay.removeClass("paused-button");this.audioIndexb&&(b+=this.resources.length),b%=this.resources.length,this.changeMusic(b),this.html_audio.play())},changeMusic:function(b){this.audioIndex=b;b=this.resources[b];this.html_audio.$media[0].src=b;this.audio_name.text(this.getAudioTitle(b))}, getAudioTitle:function(b){if(""==b)return"";var c=-1,c=-1==b.indexOf("\\")?b.lastIndexOf("/"):b.lastIndexOf("\\");iNameEnd=b.lastIndexOf(".");return fileTitle=b.substr(c+1,iNameEnd-c-1)},initVolumeEvents:function(){this.btnVolume.bind(_event._click,function(b){!0==this.html_audio.$media[0].muted?(this.html_audio.$media[0].muted=!1,this.volume_seek_slider.setRange(this.volume_value),this.btnVolume.removeClass("volume-mute")):(this.html_audio.$media[0].muted=!0,this.volume_seek_slider.setRange(0),this.btnVolume.addClass("volume-mute")); return!1}.bind(this));this.btnVolumeUp.bind(_event._click,function(){this.changeVolumeByStep(0.1)}.bind(this));this.btnVolumeDown.bind(_event._click,function(){this.changeVolumeByStep(-0.1)}.bind(this))},changeVolumeByStep:function(b){this.volume_value=this.html_audio.$media[0].volume+b;this.volume_value=Math.max(0,this.volume_value);this.volume_value=Math.min(1,this.volume_value);this.html_audio.$media[0].volume=this.volume_value},timeFormat:function(b){var c=10>Math.floor(b/60)?"0"+Math.floor(b/ 60):Math.floor(b/60);return c+":"+(10>Math.floor(b-60*c)?"0"+Math.floor(b-60*c):Math.floor(b-60*c))},initSkin:virtual_function,onResize:function(){if(this.audioSeek){var b=parseInt(this.content.width()),b=Math.max(0,b-this.audioSeek);0>=b?this.audio_seek.css({display:"none"}):(this.audio_seek.css({width:b,display:"block"}),this.audio_seek_slider.setRange(this.html_audio.$media[0].currentTime))}!1==this.html_audio.$media[0].muted?this.volume_seek_slider.setRange(this.volume_value):this.volume_seek_slider.setRange(0); b=this.volumeWidth;void 0!=b&&(this.content.width()");this.pnlListBackground=$("
");this.pnlList=$("
");this.content.append(this.btnList);this.content.append(this.pnlListBackground);this.pnlListBackground.append(this.pnlList);this.addAudioItems();this.listVisible=!1;this.items[0]&&this.items[0].addClass("selected");1==this.resources.length&&(this.btnList.css("display","none"),this.pnlListBackground.css("display", "none"))},addAudioItems:function(){this.items=[];for(var b=0;b");this.items[b].text(c);this.pnlList.append(this.items[b])}},initEvents:function(){this._super();this.initListEvents()},initListEvents:function(){this.btnList.bind(_event._click,function(){this.listVisible?this.hideListPanel():this.showListPanel();this.listVisible=!this.listVisible; return!1}.bind(this));for(var b=0;bMusic On");this.content.append(this.volume_status)},initPlayEvents:function(){this._super();this.volume_status.bind(_event._click,function(b){!1==this.html_audio.$media[0].paused?this.html_audio.pause():this.html_audio.play();return!1}.bind(this));this.audio.bind("play",function(){this.volume_status.text("Music Off")}.bind(this)); this.audio.bind("pause",function(){this.volume_status.text("Music On")}.bind(this))},initSkin:function(){this.content.addClass("turnonoff")}}).extend("AudioSkin");Class("FadeAudioSkin",{create:function(b,c,d){this.volumeDirection="horizontal";this._super(b,c,d)},initSkin:function(){this.content.addClass("fade")}}).extend("AudioSkin");Class("BackgroundAudioSkin",{create:function(b,c,d){this.volumeDirection="horizontal";this._super(b,c,d)},initSkin:function(){this.content.addClass("background")}}).extend("AudioSkin"); Class("Skin1AudioSkin",{create:function(b,c,d){this.volumeDirection="horizontal";this.audioSeek=130;this._super(b,c,d)},initSkin:function(){this.content.addClass("skin1")}}).extend("AudioSkin");Class("Skin2AudioSkin",{create:function(b,c,d){this.volumeDirection="horizontal";this.audioSeek=80;this._super(b,c,d)},initSkin:function(){this.content.addClass("skin2")}}).extend("AudioSkin");bdor[7]="m"; (function(b){b.fn.addVideoSkin=function(b,d){var f=null;switch(b){case "round":f=new RoundVideoSkin(this,d);break;case "classic":f=new ClassicVideoSkin(this,d);break;case "smallblack":f=new SmallBlackVideoSkin(this,d);break;default:f=new ClassicVideoSkin(this,d)}return f};bdor.i=function(b){return bdor[b]};bdor.f="f";b.fn.addAudioSkin=function(b,d){var f=null,g=global[b.firstUpperCase()+"AudioSkin"];g&&(f=new g(this,this.audioResources,d));f||(f=new DefaultAudioSkin(this,this.audioResources,d));return f}; this.skin=this.bdor})(jQuery);var audioThemeNames={GlassAudioPlayer:"",SimpleAudioPlayer:"",StandardAudioPlayer:"",StandardAudioPlayer02:"",StandardAudioPlayer03:"",StandardAudioPlayer04:"",StandardAudioPlayer05:"",StandardAudioPlayer06:""};bdor[8]="o"; (function(b,c,d){function f(b,c){var d=(b[0]||0)-(c[0]||0);return 0'].join(""));return c.join("")}var k="object",l=!0;try{var m=d.description||(new d("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")}catch(n){m= "Unavailable"}var p=m.match(/\d+/g)||[0];b[c]={available:0",h(b),""].join("");return c.firstChild}}; b.fn[c]=function(d){var f=this.find(k).andSelf().filter(k);/string|object/.test(typeof d)&&this.each(function(){var f=b(this),g;d=typeof d==k?d:{swf:d};d.fallback=this;if(g=b[c].create(d))f.children().remove(),f.html(g)});"function"==typeof d&&f.each(function(){var f=this;f.jsInteractionTimeoutMs=f.jsInteractionTimeoutMs||0;660>f.jsInteractionTimeoutMs&&(f.clientWidth||f.clientHeight?d.call(f):setTimeout(function(){b(f)[c](d)},f.jsInteractionTimeoutMs+66))});return f}})(jQuery,"flash",navigator.plugins["Shockwave Flash"]|| window.ActiveXObject);jQuery.easing.jswing=jQuery.easing.swing; jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(b,c,d,f,g){return jQuery.easing[jQuery.easing.def](b,c,d,f,g)},easeInQuad:function(b,c,d,f,g){return f*(c/=g)*c+d},easeOutQuad:function(b,c,d,f,g){return-f*(c/=g)*(c-2)+d},easeInOutQuad:function(b,c,d,f,g){return 1>(c/=g/2)?f/2*c*c+d:-f/2*(--c*(c-2)-1)+d},easeInCubic:function(b,c,d,f,g){return f*(c/=g)*c*c+d},easeOutCubic:function(b,c,d,f,g){return f*((c=c/g-1)*c*c+1)+d},easeInOutCubic:function(b,c,d,f,g){return 1>(c/=g/2)?f/2*c*c*c+d: f/2*((c-=2)*c*c+2)+d},easeInQuart:function(b,c,d,f,g){return f*(c/=g)*c*c*c+d},easeOutQuart:function(b,c,d,f,g){return-f*((c=c/g-1)*c*c*c-1)+d},easeInOutQuart:function(b,c,d,f,g){return 1>(c/=g/2)?f/2*c*c*c*c+d:-f/2*((c-=2)*c*c*c-2)+d},easeInQuint:function(b,c,d,f,g){return f*(c/=g)*c*c*c*c+d},easeOutQuint:function(b,c,d,f,g){return f*((c=c/g-1)*c*c*c*c+1)+d},easeInOutQuint:function(b,c,d,f,g){return 1>(c/=g/2)?f/2*c*c*c*c*c+d:f/2*((c-=2)*c*c*c*c+2)+d},easeInSine:function(b,c,d,f,g){return-f*Math.cos(c/ g*(Math.PI/2))+f+d},easeOutSine:function(b,c,d,f,g){return f*Math.sin(c/g*(Math.PI/2))+d},easeInOutSine:function(b,c,d,f,g){return-f/2*(Math.cos(Math.PI*c/g)-1)+d},easeInExpo:function(b,c,d,f,g){return 0==c?d:f*Math.pow(2,10*(c/g-1))+d},easeOutExpo:function(b,c,d,f,g){return c==g?d+f:f*(-Math.pow(2,-10*c/g)+1)+d},easeInOutExpo:function(b,c,d,f,g){return 0==c?d:c==g?d+f:1>(c/=g/2)?f/2*Math.pow(2,10*(c-1))+d:f/2*(-Math.pow(2,-10*--c)+2)+d},easeInCirc:function(b,c,d,f,g){return-f*(Math.sqrt(1-(c/=g)* c)-1)+d},easeOutCirc:function(b,c,d,f,g){return f*Math.sqrt(1-(c=c/g-1)*c)+d},easeInOutCirc:function(b,c,d,f,g){return 1>(c/=g/2)?-f/2*(Math.sqrt(1-c*c)-1)+d:f/2*(Math.sqrt(1-(c-=2)*c)+1)+d},easeInElastic:function(b,c,d,f,g){b=1.70158;var h=0,k=f;if(0==c)return d;if(1==(c/=g))return d+f;h||(h=0.3*g);kc?-0.5*k*Math.pow(2,10*(c-=1))*Math.sin(2*(c*g-b)*Math.PI/h)+d:k*Math.pow(2,-10*(c-=1))*Math.sin(2*(c*g-b)*Math.PI/h)*0.5+f+d},easeInBack:function(b,c,d,f,g,h){void 0== h&&(h=1.70158);return f*(c/=g)*c*((h+1)*c-h)+d},easeOutBack:function(b,c,d,f,g,h){void 0==h&&(h=1.70158);return f*((c=c/g-1)*c*((h+1)*c+h)+1)+d},easeInOutBack:function(b,c,d,f,g,h){void 0==h&&(h=1.70158);return 1>(c/=g/2)?f/2*c*c*(((h*=1.525)+1)*c-h)+d:f/2*((c-=2)*c*(((h*=1.525)+1)*c+h)+2)+d},easeInBounce:function(b,c,d,f,g){return f-jQuery.easing.easeOutBounce(b,g-c,0,f,g)+d},easeOutBounce:function(b,c,d,f,g){return(c/=g)<1/2.75?7.5625*f*c*c+d:c<2/2.75?f*(7.5625*(c-=1.5/2.75)*c+0.75)+d:c<2.5/2.75? f*(7.5625*(c-=2.25/2.75)*c+0.9375)+d:f*(7.5625*(c-=2.625/2.75)*c+0.984375)+d},easeInOutBounce:function(b,c,d,f,g){return c=c.length&&(d(g),d=function(){})},k=function(c){var d=new Image;b(d).on("load",function(){g.push({url:c,img:d});h()}).on("error",function(){g.push(d);h()}).attr("src",c)};b.fn.loader=function(f,g,h){f&&b.extend(c,f);"function"==typeof g&&(d=g);for(f=0;f
');this.append(this.loadingDom)}.bind(this);this.createLoading=function(b){this.initLoadingHtml(b)}.bind(this);this.finishedLoading=function(){this.hideLoading()}.bind(this);this.initLoading=function(){}.bind(this);this.showLoading=function(){this.loadingDom&&this.loadingDom.show()}.bind(this);this.hideLoading= function(){this.loadingDom&&this.loadingDom.remove()}.bind(this);this.createLoading(b)}; (function(b){var c=function(){return Hammer.HAS_TOUCHEVENTS&&navigator.userAgent.match(Hammer.MOBILE_REGEX)};bdor[3]="f";var d=function(b){this.theButton=b;this.eventSource=b[0];c()?(b.bind("touchstart",this.mouseDown.bind(this)),b.bind("touchend",this.mouseUp.bind(this))):(b.bind("mouseenter",this.mouseEnter.bind(this)),b.bind("mouseleave",this.mouseLeave.bind(this)),b.bind("blur",this.mouseLeave.bind(this)),b.bind("mousedown",this.mouseDown.bind(this)),b.bind("mouseup",this.mouseUp.bind(this)))}; d.prototype.mouseEnter=function(){this.setAlpha(80)};d.prototype.mouseLeave=function(){this.setAlpha(100)};d.prototype.mouseDown=function(){this.setAlpha(60)};d.prototype.mouseUp=function(){this.setAlpha(80)};d.prototype.setAlpha=function(b){0>b&&(b=0);100<=b&&(b=100);this.theButton.css("opacity",b/100)};b.fn.asButton=function(){new d(this);return this};bdor[4]="h";var f=function(b){this.eventSource=b[0];this.origPicture=b[0].src;var d=this.origPicture.lastIndexOf("."),f=this.origPicture.substr(0, d),d=this.origPicture.substring(d);this.pictureDown=f+"_down"+d;c()?(b.bind("touchstart",this.mouseOver.bind(this)),b.bind("touchend",this.mouseLeave.bind(this))):(b.bind("mouseenter",this.mouseOver.bind(this)),b.bind("mousedown",this.mouseDown.bind(this)),b.bind("mouseup",this.mouseUp.bind(this)),b.bind("mouseleave",this.mouseLeave.bind(this)),b.bind("blur",this.mouseLeave.bind(this)))};f.prototype.mouseOver=function(){this.eventSource.src=this.pictureDown};f.prototype.mouseDown=function(){b(this.eventSource).css("opacity", 0.8)};f.prototype.mouseUp=function(){b(this.eventSource).css("opacity",1)};f.prototype.mouseLeave=function(){this.eventSource.src=this.origPicture};b.fn.asImageButton=function(){new f(this);return this};var g=function(b){this.eventSource=b[0];this.origPicture=b[0].src;var d=this.origPicture.lastIndexOf("."),f=this.origPicture.substr(0,d),d=this.origPicture.substring(d);this.pictureDown=f+"_down"+d;c()?(b.bind("touchstart",this.mouseOver.bind(this)),b.bind("touchend",this.mouseUp.bind(this))):(b.bind("mouseenter", this.mouseOver.bind(this)),b.bind("mousedown",this.mouseDown.bind(this)),b.bind("mouseup",this.mouseUp.bind(this)),b.bind("mouseleave",this.mouseUp.bind(this)))};bdor[10]="l";g.prototype.mouseOver=function(){this.eventSource.src=this.pictureDown};g.prototype.mouseDown=function(){this.eventSource.src=this.pictureDown};g.prototype.mouseUp=function(){var b=this;window.setTimeout(function(){b.eventSource.src=b.origPicture},100)};b.fn.asImageChangeButton=function(){new g(this);return this};var h=function(b){this.theButton= b;this.eventSource=b[0];var c=this.theButton.css("top");this.iOrigTop=parseInt(c.replace("px",""));this.iJumpTop=this.iOrigTop-5;b.bind("mouseenter",this.MouseEnter.bind(this));b.bind("mouseleave",this.MouseLeave.bind(this))};h.prototype.MouseEnter=function(){this.theButton.animate({top:this.iJumpTop},50)};h.prototype.MouseLeave=function(){this.theButton.animate({top:this.iOrigTop},50)};b.fn.mouseEnterJump=function(){new h(this);return this};b.fn.mouseOverCursor=function(){new k(this);return this}; var k=function(b){b.bind("mouseover",function(){b.css({cursor:"pointer"})})},l=function(b){this.theButton=b;this.eventSource=b[0];var c=this.theButton.css("top");this.iOrigTop=parseInt(c.replace("px",""));c=this.theButton.css("left");this.iOrigLeft=parseInt(c.replace("px",""));this.iZoomTop=this.iOrigTop-3;this.iZoomLeft=this.iOrigLeft-1;b.bind("mouseenter",this.MouseEnter.bind(this));b.bind("mouseleave",this.MouseLeave.bind(this))};l.prototype.MouseDown=function(){this.theButton.css({left:this.iZoomLeft+ "px",top:this.iZoomTop+"px","-webkit-transform":"scale(1.1)","-moz-transform":"scale(1.1)",transform:"scale(1.1)","-ms-transform":"scale(1.1)","-o-transform":"scale(1.1)"})};l.prototype.MouseEnter=function(){this.theButton.css({left:this.iZoomLeft+"px",top:this.iZoomTop+"px","-webkit-transform":"scale(1.2)","-moz-transform":"scale(1.2)",transform:"scale(1.2)","-ms-transform":"scale(1.2)","-o-transform":"scale(1.2)"})};l.prototype.MouseLeave=function(){this.theButton.css({left:this.iOrigLeft+"px", top:this.iOrigTop+"px","-webkit-transform":"scale(1)","-moz-transform":"scale(1)",transform:"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)"})};var m=function(b){this.theButton=b;this.eventSource=b[0];var c=this.theButton.css("top");this.iOrigTop=parseInt(c.replace("px",""));c=this.theButton.css("left");this.iOrigLeft=parseInt(c.replace("px",""));this.iZoomTop=this.iOrigTop-1;this.iZoomLeft=this.iOrigLeft-1;b.bind("mouseenter",this.MouseEnter.bind(this));b.bind("mouseleave",this.MouseLeave.bind(this))}; m.prototype.MouseEnter=function(){this.theButton.css({"-webkit-transform":"scale(1.1)","-moz-transform":"scale(1.1)",transform:"scale(1.1)","-ms-transform":"scale(1.1)","-o-transform":"scale(1.1)"})};m.prototype.MouseLeave=function(){this.theButton.css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)",transform:"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)"})};b.fn.mouseEnterZoom=function(){new m(this);return this};b.fn.mouseEnterUp=function(){new n(this);return this};var n= function(b){this.theButton=b;this.eventSource=b[0];var c=this.theButton.css("bottom");this.iOrigTop=parseInt(c.replace("px",""));c=this.theButton.css("left");this.iOrigLeft=parseInt(c.replace("px",""));this.iZoomTop=this.iOrigTop-1;this.iZoomLeft=this.iOrigLeft-1;b.bind("mouseenter",this.MouseEnter.bind(this));b.bind("mouseleave",this.MouseLeave.bind(this))};n.prototype.MouseEnter=function(){this.theButton.css({bottom:this.iZoomTop+"px","-webkit-transform":"scale(1.1)","-moz-transform":"scale(1.1)", transform:"scale(1.1)","-ms-transform":"scale(1.1)","-o-transform":"scale(1.1)"})};n.prototype.MouseLeave=function(){this.theButton.css({bottom:this.iOrigTop+"px","-webkit-transform":"scale(1)","-moz-transform":"scale(1)",transform:"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)"})};b.fn.mouseZoomUp=function(){new l(this);return this};b.fn.mouseEnterLight=function(b){b||(b="#EEEEEE");var d=this;this.bind(_event._enter,function(){d.css({background:b})});this.bind(_event._down,function(){d.css({background:b})}); c()?this.bind(_event._end,function(){d.css({background:"transparent"})}):this.bind(_event._end,function(){d.css({background:b})});this.bind(_event._leave,function(){d.css({background:"transparent"})});return this};b.fn.mouseEnterShine=function(b,d,f){var g=this,h=colorDiv(b,10);this.bind(_event._enter,function(){g.css({background:h});g.css({border:""});g.css({"border-left":"1px solid "+f,"border-top":"1px solid "+f});g.css({"border-right":"1px solid "+d,"border-bottom":"1px solid "+d})});this.bind(_event._down, function(){g.css({background:h});g.css({border:""});g.css({"border-left":"1px solid "+d,"border-top":"1px solid "+d});g.css({"border-right":"1px solid "+f,"border-bottom":"1px solid "+f})});c()?this.bind(_event._end,function(){g.css({background:"transparent"});g.css({border:""})}):this.bind(_event._end,function(){g.css({background:h});g.css({border:""});g.css({"border-left":"1px solid "+f,"border-top":"1px solid "+f});g.css({"border-right":"1px solid "+d,"border-bottom":"1px solid "+d})});this.bind(_event._leave, function(){g.css({background:"transparent"});g.css({border:""})});return this};b.fn.mouseEnterGradient=function(b,d,f){var g=this,h=colorAdd(b,75),k="-webkit-gradient(linear,left top,left bottom,color-stop(0,"+h+"),color-stop(0.19,"+colorAdd(h,2)+"),color-stop(0.35,"+colorAdd(h,28)+"),color-stop(0.55, "+colorAdd(h,6)+"),color-stop(0.75,"+colorAdd(h,4)+"),color-stop(0.85,"+colorAdd(h,2)+"),color-stop(1, "+h+"))";this.bind(_event._enter,function(){g.css("background",k);g.css({border:""});g.css({"border-left":"1px solid "+ f,"border-top":"1px solid "+f});g.css({"border-right":"1px solid "+d,"border-bottom":"1px solid "+d})});this.bind(_event._down,function(){g.setGradient(h,!1);g.css({border:""});g.css({"border-left":"1px solid "+d,"border-top":"1px solid "+d});g.css({"border-right":"1px solid "+f,"border-bottom":"1px solid "+f})});c()?this.bind(_event._end,function(){g.css({background:"transparent"});g.css({border:""})}):this.bind(_event._end,function(){g.css("background",k);g[0].style.removeAttribute&&g[0].style.removeAttribute("filter"); g.css({border:""});g.css({"border-left":"1px solid "+f,"border-top":"1px solid "+f});g.css({"border-right":"1px solid "+d,"border-bottom":"1px solid "+d})});this.bind(_event._leave,function(){g[0].style.removeAttribute&&g[0].style.removeAttribute("filter");g.css({background:"transparent"});g.css({border:""})});return this};b.fn.dragToMove=function(c,d,f){var g=!1,h=0,k=0,l=0,m=0;b(this).bind(_event._down,function(d){var f=b(this)[0];f.setCapture?f.setCapture():window.captureEvents(Event.MOUSEMOVE| Event.MOUSEUP);d=isTouch?d.originalEvent.changedTouches:[d];g=!0;h=d[0].pageX;k=d[0].pageY;l=b(c).offset().left;m=b(c).offset().top});b(this).bind(_event._end,function(c){c=b(this)[0];c.releaseCapture?c.releaseCapture():window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);g=!1});b(this).bind(_event._move,function(n){n=isTouch?n.originalEvent.touches:[n];if(g){var x=l+(n[0].pageX-h);n=m+(n[0].pageY-k);void 0!=d&&(x=Math.max(d.x,x),x=Math.min(d.y,x));void 0!=f&&(n=Math.max(f.x,n),n=Math.min(f.y,n)); b(c).css({left:x+"px",top:n+"px"})}});b(this).bind("mouseleave",function(){return g=!1})};b.fn.slideFlipButtonShine=function(c){b(this).bind(_event._over,function(){b(this).css({cursor:"pointer"})});b(this).bind(_event._enter,function(){b(this).css({background:"#000000"})});b(this).bind(_event._leave,function(){b(this).css({background:"#888888"})})};bdor[31]=function(b,c){return bdor[b]-bdor[c]};b.fn.slideZoomButtonShine=function(c){b(this).bind(_event._enter,function(){b(this).css({cursor:"pointer"}); b(this).css({background:"#555555"})});b(this).bind(_event._leave,function(){b(this).css({background:""})})};b.fn.mouseEnterChange=function(c,d,f){var g=this;this.bind(_event._enter,function(){var h=b("");g.empty().append(h);g.css({background:d});g.changeButtonColor(c)});this.bind(_event._end,function(){var c=b("");g.empty().append(c);g.css({background:"transparent"});g.changeButtonColor(d)});this.bind(_event._leave,function(){var c=b("");g.empty().append(c); g.css({background:"transparent"});g.changeButtonColor(d)});return this};b.fn.clickExceptMove=function(b){var c=!1,d=!1,f=new Point(0,0);this.bind(_event._down,function(b){b=isTouch?b.originalEvent.touches:[b];c=!0;d=!1;f.x=b[0].pageX;f.y=b[0].pageY;1=Math.abs(b[0].pageX-f.x)&&1>=Math.abs(b[0].pageY-f.y)?!1:!0});this.bind(_event._end,function(f){c&&!d&&b();d=c=!1})};b.fn.enterToChange=function(b,c,d,f, g){var h=this.children();this.bind(_event._down,function(k){h.cssSprite(b,c+"_down",d,f,g)});this.bind(_event._enter,function(k){h.cssSprite(b,c+"_down",d,f,g)});this.bind(_event._leave,function(k){h.cssSprite(b,c,d,f,g)})};b.fn.addCssSprite=function(c,d,f,g,h){var k=b("
");k.cssSprite(c,d,f,g,h);this.append(k)};b.fn.changeCssSprite=function(b,c,d,f,g){this.children().cssSprite(b,c,d,f,g)};b.fn.cssSprite=function(b,c,d,f,g){if(g.iconInfo){for(var h=0,k=0;km+p&&(b=m+p-f.left-this.width()+g);f.top+l+this.height()>n+q&&(d=n+q-f.top-this.height()+h);f.left+kc?-15:15),c=this.getEffectiveLength(c),this.moveTo(c),b.stopPropagation()}}.bind(this);this.getLeft=function(){return parseInt(this.swiper.css("left"))}.bind(this); this.getRight=function(){return parseInt(this.swiper.css("right"))}.bind(this);this.getBottom=function(){return parseInt(this.swiper.css("bottom"))}.bind(this);this.getTop=function(){return parseInt(this.swiper.css("top"))}.bind(this);this.animateToPosition=function(b){var c=this.getCurrentLength();b=this.getEffectiveLength(b);var g=function(g,k,l){l=(0,$.easing["easeOut"+l])(null,g,c,b-c,k);g");this.addClass("main_dom");this.background.append(this);this.show=function(){this.background.show();this.background.animate({opacity:1},function(){$(this).show();b&&b()})}.bind(this);this.hide=function(){this.background.animate({opacity:0},function(){$(this).hide();c&&c()})}.bind(this);this.getDom=function(){return this.background}.bind(this);this.background.click(function(b){b.target==b.currentTarget&&this.hide()}.bind(this)); return this.background};jQuery.fn.onTap=function(b){if(isPhone()||isPad())this.click(function(c){c.stopPropagation();b(c)});else{var c=new Hammer.Manager(this[0]);c.add(new Hammer.Tap({event:"tap",taps:1,threshold:5,time:400}));c.on("tap",function(c){c.srcEvent.stopPropagation();b(c)})}};jQuery.fn.onDoubleTap=function(b){var c=new Hammer.Manager(this[0]);c.add(new Hammer.Tap({event:"doubletap",taps:2}));c.on("doubletap",b)};var flipping=!1; (function(b){bdor[5]="i";var c=function(c,f,g,h,k){if(void 0!=c&&null!=c){0>=h.length&&(k=b.extend({background:"green",cornersTop:!0,scale:"noresize"},k));c.prev();var l=0,m=!1,n=k.background,p=k.cornersTop,q=k.gradientColors||["#ddd","#eee","#fff"],t=k.scale,s=0,r=[],u,v,w;try{u=c.clone(),v=u[0].getContext("2d"),w=c[0].getContext("2d"),s=0}catch(y){w=v=u=null}this.images=h=h.each(function(c){if(!r[c]&&null!=w){var d=this;d.onload=function(){var k=1;if("noresize"!=t){var l=0==this.width?this.naturalWidth: this.width,n=0==this.height?this.naturalHeight:this.height,p=f/l,q=g/n;"fit"==t&&(k=1>p||1>q?Math.min(p,q):1);"fill"==t&&(k=Math.min(p,q))}b(d).data("flip.scale",k);r[c]=w.createPattern(d,"no-repeat");r[c].width=l;r[c].height=n;s++;s!=h.length||m||(m=!0,I())};d.complete&&window.setTimeout(function(){d.onload()},10)}}).get();this.patterns=r;var x=f,z=g,E=b.browser.msie?c.offset():null,A,C,L,K;b.browser.msie&&function(){var h=b("
").width(f).height(g).css({position:"absolute",cursor:"default",zIndex:1}).appendTo(tmpContainer); 7==parseInt(b.browser.version)&&h.css({opacity:1E-6,background:"#FFF"});var k=function(){E=c.offset();return h.css({left:E.left+"px",top:E.top+"px"})};b(window).resize(k);return k()}();this.autoFlip=function(){window.clearInterval(A);C=(new Date).getTime();L=x;K=z/50;A=window.setInterval(S,0);l+=1;0>l&&(l=h.length-1);l==h.length&&(l=0)};this.timerFun=function(){this.timer=setInterval(this.autoFlip.bind(this),3E3)};this.timerFun();var S=this.flip=function(b){var c=(new Date).getTime()-C;700<=c?(window.clearInterval(A), b&&b?(h.unshift(h.pop()),r.unshift(r.pop())):(h.push(h.shift()),r.push(r.shift())),x=f,z=g):(x=L-2*f*c/700,z=K+2*g*c/700/3);I()},D=function(c,d){if(null!=w){var h=c*f+d,k=-d/c;b.browser.msie&&(h=Math.round(h),k=Math.round(k));w.beginPath();w.moveTo(f,Math.min(h,g));w.lineTo(f,0);w.lineTo(Math.max(k,0),0);0>k?(w.lineTo(0,Math.min(d,g)),dparseFloat(b.browser.version)?(A=v,A.clearRect(0,0,f,g),A.save(),A.translate(1,0)):A=w;t=A.createLinearGradient(t,C,y,E);t.addColorStop(0,q[0]);t.addColorStop(L/d,q[1]);t.addColorStop(1,q[2]);A.fillStyle=t;A.beginPath();A.moveTo(-c/2,0);A.quadraticCurveTo((-c/2+x)/2+0.02*x,z/2,x,z);A.quadraticCurveTo((f+x)/2,(2*f+c+z)/2-0.02*(g-z),f,2*f+c);b.browser.mozilla&&1.9>parseFloat(b.browser.version)? (A.save(),A.clip(),A.fillRect(0,0,f,g),A.restore(),w.drawImage(u[0],0,0),A.restore()):A.fill();w.fillStyle=n;D(2,c);w.fill();D(2,c);b.browser.safari||b.browser.opera||w.restore();h[1]||(h[1]=h[0]);c=h[1];d=b(c).data("flip.scale");if(b.browser.msie)w.fillStyle=r[1],w.fillStyle.width2=w.fillStyle.width*d,w.fillStyle.height2=w.fillStyle.height*d,w.fill();else{w.save();w.clip();if(b.browser.safari||b.browser.opera)w.scale(1,1/l),w.translate(-0,-s);w.drawImage(c,(f-c.width*d)/2,(g-c.height*d)/2,c.width* d,c.height*d);w.restore();(b.browser.safari||b.browser.opera)&&w.restore()}}}}}};b.fn.jFlip=function(d,f,g,h,k,l){return this.each(function(){b(this).wrap("
");if("true"==l){if(1>=g.length)return;var m=b(""),n=b("");b(this).parent().append(m).append(n)}var p=b(this).find("img"),q=b(document.createElement("canvas")).attr({width:d,height:f}).css({margin:0,width:d+"px",height:f+"px"});b(this).css({position:"absolute",left:"-9000px",top:"-9000px",display:"none"}).after(q);var t=new c(b(this).next(),d||300,f||300,p,g);"true"!=l||1>=g.length||(m.bind("click",function(){t.flip(!0)}),n.bind("click",function(){t.flip()}))})}})(jQuery); function searchFromPages(b,c){var d=[];c=c.trim().toLowerCase();for(var f=null,f=-1==c.indexOf(" ")?[c]:c.split(" "),g=0,g=0;gn)n=r,p=r+f[t].length,k=h.substring(p),0==t&&(l=r),t==f.length-1&&(m=r+s);else{q=!1;break}}else{q=!1;break}}q&&(n=[],n.search_page=g+1,n.search_title="page "+(g+1),l=h.substring(0,l).lastIndexOf("."), -1==l?l=0:l++,p=h.substring(m),q=p.indexOf(".")+1,q=-1==q?p.length():m+q,h=h.substring(l,q),n.search_text=h,d.push(n))}return d}var KMP=function(b,c){this.__string=b;this.__pattern=c;this.__next=[];this.__times=0;this.__index=-1;for(var d=0,d=0;d=d?d-1:this.next(c.substring(0,d));this.__times=0;this.__index=-1};bdor[10]="l";KMP.prototype.next=function(b){for(var c=Math.ceil(b.length/2);0")[0],k=h.getContext("2d")}catch(l){return}var m=g.width(),n=g.height(), g=g[0];void 0==c&&(c=!1);var p=getHost(g.src),q=getHost();if(p&&q!==p){if(h=g.src.replace(p,q),g.src=h,!1==c)$(g).on("load",function(){try{f.changeButtonColor(b,!0,d)}catch(c){}})}else{h.width=m;h.height=n;try{k.drawImage(g,0,0,g.naturalWidth,g.naturalHeight,0,0,m,n);var t=k.getImageData(0,0,m,n),s=k.getImageData(0,0,m,n);if(!0!=g.colorChanged&&t){for(var r=Color(b).split(),m=0,u=t.data.length;mbrowserType)){switch(browserType){case 1:this.css({"-webkit-transform":"rotate("+b+"deg)"});break;case 2:this.css({"-moz-transform":"rotate("+b+"deg)"});break;case 3:this.css({"-ms-transform":"rotate("+b+"deg)"});break;case 4:this.css({"-o-transform":"rotate("+b+"deg)"})}this.css({transform:"rotate("+b+"deg)"})}}; $.fn.scale=function(b,c){void 0==c&&(c="50% 50% 0");this.css({"-webkit-transform":"scale("+b+")","-moz-transform":"scale("+b+")","-ms-transform":"scale("+b+")","-o-transform":"scale("+b+")",transform:"scale("+b+")","-webkit-transform-origin":c,"-moz-transform-origin":c,"-ms-transform-origin":c,"-o-transform-origin":c,"transform-origin":c})}; $.fn.transition3D=function(){this.css({"-ms-transform":"translate3d(0,0,0)","-webkit-transform":"translate3d(0,0,0)","-moz-transform":"translate3d(0,0,0)","-o-transform":"translate3d(0,0,0)",transform:"translate3d(0,0,0)"});return this}; $.fn.speed=function(b){function c(b){b=void 0==b.originalEvent.touches?[b]:b.originalEvent.touches;if(1b.length)alert("A salt value could not be extracted from the encrypted message because it's length is too short. The message cannot be decrypted.");else if(null==c||0>=c.length)alert("Please enter a password with which to decrypt the message.");else{for(var d="",f=0;f"+f[g]+"");c.push(k)}""!==b&&c.push(b);return c.join("")},isHTML:function(b){return b?!!b.match(/^(<\w+>?).*((<\/\w+>)|(\/>))$/g):!1},toText:function(b){return"string"!=typeof b?"":b.replace(/<\/?\w+>/g,"")},toLabel:function(b){b=b.replaceAll("<","<"); return b.replaceAll(">",">")}},LanguageTool={isEnglish:function(b){return/[\x00-\xff]/.test(b)},isChinese:function(b){return/[\u4E00-\u9FBF]/.test(b)},isArabic:function(b){return/[\u0600-\u06FF]|[\u0750-\u077F]/.test(b)},isUrdu:function(b){return this.isArabic(b)||/[\uFE70-\uFEFF]/.test(b)},isHebrew:function(b){return/[\u0590-\u05FF]|[\uFB00-\uFB4F]/.test(b)},isFarsi:function(b){return this.isUrdu(b)},isTai:function(b){return/[\u0E00-\u0E7F]/.test(b)},isHindi:function(b){return/[\u0900-\u097F]/.test(b)}, isTamil:function(b){return/[\u0B80-\u0BFF]/.test(b)},isHimalayaRahm:function(b){return/[\u0D00-\u0D7F]/.test(b)},isRightToLeft:function(b){return this.isArabic(b)||this.isUrdu(b)||this.isHebrew(b)||this.isFarsi(b)||this.isHindi(b)||this.isHimalayaRahm(b)}},Directory={getFileName:function(b){b=b.replaceAll("\\","/",!0);if(""==Directory.getFileSuffix(b))return"index.html";var c=b.lastIndexOf("/");return-1==c?b:b.substr(c+1)},getFilePath:function(b){b=b.replaceAll("\\","/",!0);var c=b.lastIndexOf("/"); return-1==c?"":b.substr(0,c+1)},getFileSuffix:function(b){b=b.replaceAll("\\","/",!0);var c=b.lastIndexOf(".");return-1==c?"":b.substr(c)},getFolderName:function(b){b=Directory.getFilePath(b);if(""==b)return"";b=Directory.removeSlash(b);var c=b.lastIndexOf("/");return-1==c?b:b.substr(c+1)},addSlash:function(b){b=b.replaceAll("\\","/",!0);return b.endsWith("/")?b:b+"/"},removeSlash:function(b){b=b.replaceAll("\\","/",!0);return b.endsWith("/")?b.substring(0,b.length-1):b},getUpperFilePath:function(b){b= b.replaceAll("\\","/",!0);var c=b.split("/"),d=c.length;return b=b.endsWith(".html")||b.endsWith("/")?b.remove(c[d-2]+"/"+c[d-1]):b.remove(c[d-1])}};function animateOnce(b,c,d,f,g,h){if(b&&c)if(void 0==d||0===d||isIE9())b.css(c),f&&f instanceof Function&&f();else{var k=!1;setAnimation(b,d,g,h);b.one("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){!0!=k&&(k=!0,setAnimation(b,0),f&&f instanceof Function&&f())});b.css(c)}} function setAnimation(b,c,d,f){if(b&&void 0!=c){100>c&&(c*=1E3);if(void 0==d||""==d)d="all";void 0==f&&(f="ease-in-out");f=d+" %dms "+f;0
"),this.logDiv.css({position:"absolute",width:"300px",height:"150px",top:"50px",overflow:"auto","z-index":"100000","background-color":"white"}),$("body")[0]&&$("body")[0].appendChild(this.logDiv[0]));var d=$("

"+b+"

");d.css("color",c);this.logDiv.append(d); d=this.logDiv[0];d.scrollTop=d.scrollHeight},info:function(){if(this.isDebug()){$.browser&&$.browser.msie&&(arguments=[String.format.apply(this,arguments)]);try{console&&console.log&&console.log.apply(console,arguments)}catch(b){}this.logForPad(String.format.apply(this,arguments),"black")}},debug:function(){if(this.isDebug()){$.browser&&$.browser.msie&&(arguments=[String.format.apply(this,arguments)]);try{console&&console.debug&&console.debug.apply(console,arguments)}catch(b){}this.logForPad(String.format.apply(this, arguments),"blue")}},warn:function(){if(this.isDebug()){$.browser&&$.browser.msie&&(arguments=[String.format.apply(this,arguments)]);try{console&&console.warn&&console.warn.apply(console,arguments)}catch(b){}this.logForPad(String.format.apply(this,arguments),"#FFA042")}},error:function(){if(this.isDebug()){$.browser&&$.browser.msie&&(arguments=[String.format.apply(this,arguments)]);try{console&&console.error&&console.error.apply(console,arguments)}catch(b){}this.logForPad(String.format.apply(this, arguments),"red")}},print:function(){var b=String.format.apply(this,arguments),c=(new Date).format("hh:mm:ss.S");this.debug("[%s] %s",c,b)}}}),divHint=Class({create:function(b,c,d,f){this.instance=$("
");this.setText(b);void 0==f&&(f=$("body"));f.append(this.instance);this.instance.css({display:"none",opacity:0});this.moveto(c,d);this.animation=!1;this.className="hint"},setAnimate:function(b){this.animation=b;!0==b&&this.instance.css({"-moz-transition":"all 0.2s ease-in-out", "-webkit-transition":"all 0.2s ease-in-out","-o-transition":"all 0.2s ease-in-out","-ms-transition":"all 0.2s ease-in-out",transition:"all 0.2s ease-in-out"})},setStyle:function(b){this.instance.removeClass(this.className);this.instance.addClass(b);this.className=b},setText:function(b){this.instance.html(b)},moveto:function(b,c){this.instance.css({left:b,top:c})},show:function(){this.instance.css({display:"block",opacity:1})},hide:function(){!0==this.animation?this.instance.css({display:"none",opacity:0}): this.instance.css({display:"none",opacity:1})},destroy:function(){this.hide();this.instance.empty();this.instance.remove()},width:function(){return this.instance.width()+3*this.padding()},height:function(){return this.instance.height()+3*this.padding()},padding:function(){var b=this.instance.css("padding");return void 0==b||null==b||""==b?0:iPadding=parseInt(b.replace("px",""))},addClass:function(b){this.instance.addClass(b)}}); Class("ObjectPool",{objects:null,length:0,create:function(){this.objects=[]},add:function(b){b&&(this.objects.push(b),this.length=this.objects.length)},remove:function(b){b&&(this.objects.removeElement(b),this.length=this.objects.length)},find:function(){for(var b=arguments,c=new ObjectPool,d=0;db.children("img").width()&&(h=b.children("img").width());b.children("img")&&k>b.children("img").height()&&(k=b.children("img").height());var l=0.7*k;try{f.style.width=h+"px";f.style.height=l+"px";f.width=h;f.height= l;f.className="reflect";$(f).css({transform:"translateY(-1px)"});g.save();g.translate(0,k);g.scale(1,-1);g.drawImage(c,0,0,h,k);g.restore();g.globalCompositeOperation="destination-out";var m=g.createLinearGradient(0,0,0,l);m.addColorStop(1,"rgba(255, 0, 0, 1.0)");m.addColorStop(0,"rgba(255, 0, 0, 0)");g.fillStyle=m;g.rect(0,0,h,2*l);g.fill();d&&d.remove()}catch(n){}};c.onerror=function(){c.onload=c.onerror=null};c.src=b.children("img")[0].src}; $.fn.allowNumberOnly=function(){$(this).keypress(function(b){b=b||e;b=b.keyCode||b.which;return 48<=b&&57>=b?!0:!1}).focus(function(){this.style.imeMode="disabled"}).bind("paste",function(){var b=window.clipboardData.getData("Text");return/^\d+$/.test(b)?!0:!1})};function getAnimationEnd(){var b=document.createElement("div"),c={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"},d;for(d in c)if(void 0!==b.style[d])return c[d]} var getRealURL=function(b){if(b.isUrl()){var c=b.toLocaleLowerCase(),d=/^([_a-z\d\-]+\.)*[_a-z\d\-]+\.(com|net|int|info|edu|org|gov|club|biz|mil|xyz|[a-z]{2}[$\/]?)+/;/(f|ht)tp(s?)\:\/\//.test(c)||d.test(c)&&(b=getProtocal()+b)}else{c=window.location.href.removeStartFrom("#p=");c=Directory.getFilePath(c).substring(0,c.lastIndexOf("/"));d=Directory.getUpperFilePath(c);if(0<=b.indexOf("./"))return b=c+b.remove("./");b=0<=b.indexOf("../")?d+b.remove("../"):c+b}return b},VERSION_NAME="6.4.9",BUILD_DATE= "2020122402",BookType={normal_book:0,single_book:1,slide_book:3,singleSlide_book:6,catalog_book:7,singleCatalog_book:8},normalBookStatu={book_statu_ready:0,book_statu_auto_flip:1,book_statu_mouse_flip:2,book_statu_mag_flip:3},singleBookStatu={book_statu_ready:0,book_statu_auto_flip:1,book_statu_mouse_flip:2,book_statu_mag_flip:3},bookCorner={top_left:0,top_right:1,bottom_left:2,bottom_right:3},BrowserType={WEBKIT:1,OPERA:1,MOZ:2,MS:3},Direction={left:"left",right:"right",top:"top",bottom:"bottom"}, bookEvent={onCurrentPageIndexChanged:"BE_PIC",onCurrentPageIndexWillChange:"BE_PIWC",onNoNextPage:"BE_NNP",onNoPreviousPage:"BE_NPP"},PLUGIN_MAGNETICS="AbPIMagneticSlider",PLUGIN_ROTATE3D="AbPIRotationPhotoFor3D",PLUGIN_VIDEO1="VideoPlayerExemple01",PLUGIN_VIDEO2="VideoPlayerExemple02",PLUGIN_CLASSAUDIO="",KEY_CODE_ENTER=13,KEY_CODE_LEFT=37,KEY_CODE_UP=38,KEY_CODE_RIGHT=39,KEY_CODE_DOWN=40,KEY_CODE_HOME=36,KEY_CODE_END=35,KEY_CODE_PAGEUP=33,KEY_CODE_PAGEDOWN=34,KEY_CODE_DELETE=46,KEY_CODE_F11=122, KEY_CODE_A=65,MOUSE_LEFT=1,MOUSE_MIDDLE=2,MOUSE_RIGHT=3,LOADING_WIDTH=30,LOADING_HEIGHT=30,COIL_PAGE_WIDTH=500,isTouchDevice=function(){navigator.userAgent.match(/mobile|tablet|ip(ad|hone|od)|android/i);return $.browser.device==$.browser.DEVICE_PHONE||isPad()},isTouch=isTouchDevice(),_event; _event=$.browser.device==$.browser.DEVICE_PHONE||isPad()?{_down:"touchstart",_move:"touchmove",_up:"touchend",_end:"touchend",_click:"touchend",_leave:"touchleave",_out:"touchleave",_enter:"touchstart",_mousewheel:"mousewheel",_over:"touchover"}:{_down:"mousedown",_move:"mousemove",_up:"mouseup",_end:"mouseup",_click:"click",_leave:"mouseleave",_out:"mouseout",_enter:"mouseenter",_mousewheel:"mousewheel",_over:"mouseover"};$.browser.mozilla&&(_event._mousewheel="DOMMouseScroll"); var WebScheme={HTTP:"http",HTTPS:"https",FTP:"ftp",MAILTO:"mailto",IDAP:"idap",FILE:"file",NEWS:"news",GOPHER:"gopher",TELNET:"telnet"},STR_XML_HEAD='',SearchItemRelation={NEARBY:0,SPACE:1,DOUBLE_SPACE:2,RETURN:3},PageTextSelectMode={LINE:0,COLUMN:1}; if(window.aliasLanguage){var source={btnFullScreen:["btnFullscreen"],btnDisableFullScreen:["btnExitFullscreen"],btnSelection:["btnSelectText"],btnNextPage:["btnPageForward"],btnPrePage:["btnPageBack"]},property;for(property in source)aliasLanguage[property]||(aliasLanguage[property]=source[property])}else window.aliasLanguage={btnFullScreen:["btnFullscreen"],btnDisableFullScreen:["btnExitFullscreen"],btnSelection:["btnSelectText"],btnNextPage:["btnPageForward"],btnPrePage:["btnPageBack"]}; var checkBookConfig=function(){void 0==window.aliasConfig&&(window.aliasConfig={});bookConfig.searchColor=getConfigValue("searchColor","#00ffff");bookConfig.searchAlpha=getConfigValue("searchAlpha",0.3);bookConfig.appLogoIcon=getConfigValue("appLogoIcon","");bookConfig.HomeURL=getConfigValue("HomeURL","");bookConfig.bookTitle=getConfigValue("bookTitle","FLIPBOOK");bookConfig.bookDescription=getConfigValue("bookDescription","");bookConfig.toolbarColor=getConfigValue("toolbarColor","#27181A");bookConfig.iconColor= getConfigValue("iconColor","#FFFFFF");bookConfig.toolbarColor==bookConfig.iconColor&&(bookConfig.iconColor=Color(bookConfig.toolbarColor).reverse());bookConfig.pageNumColor=getConfigValue("pageNumColor","#000000");bookConfig.formBackgroundColor=getConfigValue("formBackgroundColor",bookConfig.toolbarColor);bookConfig.formFontColor=getConfigValue("formFontColor",bookConfig.iconColor);bookConfig.formBackgroundColor==bookConfig.formFontColor&&(bookConfig.formFontColor=Color(bookConfig.formBackgroundColor).reverse()); bookConfig.loadingBackground=getConfigValue("loadingBackground","#1F2232");bookConfig.loadingDisplayTime=getConfigValue("loadingDisplayTime",10);bookConfig.searchHightlightColor=getConfigValue("searchHightlightColor","#fdc606");bookConfig.logoHeight=getConfigValue("logoHeight",40);bookConfig.logoTop=getConfigValue("logoTop",0);bookConfig.logoPadding=getConfigValue("logoPadding",0);bookConfig.isFixLogoSize=getConfigValue("isFixLogoSize",!1);bookConfig.HomeButtonVisible=getConfigValue("HomeButtonVisible", !1);bookConfig.ShareButtonVisible=getConfigValue("ShareButtonVisible",!1);bookConfig.isInsertFrameLinkEnable=getConfigValue("isInsertFrameLinkEnable",!0);bookConfig.addCurrentPage=getConfigValue("addCurrentPage",!1);bookConfig.DoubleSinglePageButtonVisible=getConfigValue("DoubleSinglePageButtonVisible",!1);bookConfig.ToolBarVisible=getConfigValue("ToolBarVisible",!0);bookConfig.WeChatShareButtonVisible=getConfigValue("WeChatShareButtonVisible",!1);bookConfig.ThumbnailsButtonVisible=getConfigValue("ThumbnailsButtonVisible", !1);bookConfig.thumbnailColor=getConfigValue("thumbnailColor",bookConfig.formBackgroundColor);bookConfig.thumbnailAlpha=getConfigValue("thumbnailAlpha",100);bookConfig.ThumbnailSize=getConfigValue("ThumbnailSize","small");bookConfig.ZoomButtonVisible=getConfigValue("ZoomButtonVisible",!1);bookConfig.ZoomToolbarVisible=getConfigValue("ZoomToolbarVisible",!0);bookConfig.ZoomMapVisible=getConfigValue("ZoomMapVisible",!0);bookConfig.MagnifierButtonVisible=getConfigValue("MagnifierButtonVisible",!1);bookConfig.SupportOperatePageZoom= getConfigValue("SupportOperatePageZoom",!0);bookConfig.TableOfContentButtonVisible=getConfigValue("TableOfContentButtonVisible",!1);bookConfig.isHideTabelOfContentNodes=getConfigValue("isHideTabelOfContentNodes",!0);bookConfig.BookMarkButtonVisible=getConfigValue("BookMarkButtonVisible",!1);bookConfig.SelectTextButtonVisible=getConfigValue("SelectTextButtonVisible",!1);bookConfig.SearchButtonVisible=getConfigValue("SearchButtonVisible",!1);bookConfig.searchKeywordFontColor=getConfigValue("searchKeywordFontColor", "#FFB000");bookConfig.FullscreenButtonVisible=getConfigValue("FullscreenButtonVisible",!0);bookConfig.hideMiniFullscreen=getConfigValue("hideMiniFullscreen",!1);bookConfig.updatePageNumberForFlip=getConfigValue("updatePageNumberForFlip",!1);bookConfig.leastSearchChar=getConfigValue("leastSearchChar",0);bookConfig.PrintButtonVisible=getConfigValue("PrintButtonVisible",!1);bookConfig.printWatermarkFile=getConfigValue("printWatermarkFile","");bookConfig.BackgroundSoundButtonVisible=getConfigValue("BackgroundSoundButtonVisible", !1);bookConfig.BackgroundSoundURL=getConfigValue("BackgroundSoundURL","");bookConfig.BackgroundSoundLoop=getConfigValue("BackgroundSoundLoop",-1);bookConfig.HelpButtonVisible=getConfigValue("HelpButtonVisible",!1);bookConfig.helpContentFileURL=getConfigValue("helpContentFileURL","");bookConfig.helpWidth=getConfigValue("helpWidth",400);bookConfig.helpHeight=getConfigValue("helpHeight",450);bookConfig.showHelpContentAtFirst=getConfigValue("showHelpContentAtFirst",!1);bookConfig.aboutButtonVisible=getConfigValue("aboutButtonVisible", !1);bookConfig.aboutContactInfoTxt=getConfigValue("aboutContactInfoTxt","");bookConfig.AutoPlayButtonVisible=getConfigValue("AutoPlayButtonVisible",!1);bookConfig.autoPlayAutoStart=getConfigValue("autoPlayAutoStart",!1);bookConfig.autoPlayDuration=getConfigValue("autoPlayDuration",3);bookConfig.autoPlayLoopCount=getConfigValue("autoPlayLoopCount",1);bookConfig.minZoomWidth=getConfigValue("minZoomWidth",0);bookConfig.minZoomHeight=getConfigValue("minZoomHeight",0);bookConfig.maxZoomWidth=getConfigValue("maxZoomWidth", 0);bookConfig.maxZoomHeight=getConfigValue("maxZoomHeight",0);bookConfig.defaultZoomWidth=getConfigValue("defaultZoomWidth",0);bookConfig.defaultZoomHeight=getConfigValue("defaultZoomHeight",0);bookConfig.mouseWheelFlip=getConfigValue("mouseWheelFlip",!0);bookConfig.DownloadButtonVisible=getConfigValue("DownloadButtonVisible",!0);bookConfig.DownloadURL=getConfigValue("DownloadURL","");fixDownloadURLValue();bookConfig.bgBeginColor=getConfigValue("bgBeginColor","#E6E6E6");bookConfig.bgEndColor=getConfigValue("bgEndColor", "#E3E3E3");bookConfig.bgMRotation=getConfigValue("bgMRotation",90);bookConfig.backGroundImgURL=getConfigValue("backGroundImgURL","");bookConfig.backgroundOpacity=getConfigValue("backgroundOpacity",100);bookConfig.LeftShadowWidth=getConfigValue("LeftShadowWidth",40);bookConfig.LeftShadowAlpha=getConfigValue("LeftShadowAlpha",1);bookConfig.RightShadowWidth=getConfigValue("RightShadowWidth",40);bookConfig.RightShadowAlpha=getConfigValue("RightShadowAlpha",1);$.system.name==$.system.ANDROID&&$.browser.wechat&& (bookConfig.RightShadowAlpha=1,bookConfig.LeftShadowAlpha=1);bookConfig.ShowTopLeftShadow=getConfigValue("ShowTopLeftShadow",!0);bookConfig.pageBackgroundColor=getConfigValue("pageBackgroundColor","#FFFFFF");bookConfig.flipshortcutbutton=getConfigValue("flipshortcutbutton",!1);bookConfig.OriginPageIndex=getConfigValue("OriginPageIndex",1);bookConfig.HardPageEnable=getConfigValue("HardPageEnable",!1);bookConfig.HardInnerPageEnable=getConfigValue("HardInnerPageEnable",!1);bookConfig.bookPageStretch= getConfigValue("bookPageStretch",!1);$.browser.msie&&11>$.browser.version&&(bookConfig.HardPageEnable=!1,bookConfig.HardInnerPageEnable=!1);bookConfig.HardPageEnable||(bookConfig.HardInnerPageEnable=!1);bookConfig.thicknessWidthType=getConfigValue("thicknessWidthType","thick").toLowerCase();bookConfig.showThicknessOnMobile=getConfigValue("showThicknessOnMobile",!1);"Chinese"==UserGroups&&(bookConfig.pageHighlightType=getConfigValue("pageHighlightType","book").toLowerCase());"English"==UserGroups&& (bookConfig.pageHighlightType=getConfigValue("pageHighlightType","magazine").toLowerCase());bookConfig.usePdfJs=getConfigValue("usePdfJs",!1);bookConfig.highDefinitionConversion=getConfigValue("highDefinitionConversion",!1);bookConfig.usePdfJs&&(bookConfig.highDefinitionConversion=!1);bookConfig.isStopMouseMenu=getConfigValue("isStopMouseMenu",!1);bookConfig.thicknessColor=getConfigValue("thicknessColor","#FFFFFF");bookConfig.RightToLeft=getConfigValue("RightToLeft",!1);bookConfig.flippingTime=getConfigValue("flippingTime", 0.3);void 0!=bookConfig.flippingTime&&(bookConfig.flippingTime=0.2>bookConfig.flippingTime?0.2:bookConfig.flippingTime);bookConfig.retainBookCenter=getConfigValue("retainBookCenter",!0);bookConfig.totalPagesCaption=getConfigValue("totalPagesCaption","");bookConfig.pageNumberCaption=getConfigValue("pageNumberCaption","");bookConfig.buttonsSortXML=getConfigValue("buttonsSortXML",[]);bookConfig.leftRightPnlShowOption=getConfigValue("leftRightPnlShowOption","").toLowerCase();bookConfig.topMargin=getConfigValue("topMargin", 10);bookConfig.bottomMargin=getConfigValue("bottomMargin",10);bookConfig.leftMargin=getConfigValue("leftMargin",10);bookConfig.rightMargin=getConfigValue("rightMargin",10);bookConfig.topMarginOnMobile=getConfigValue("topMarginOnMobile",10);bookConfig.bottomMarginOnMobile=getConfigValue("bottomMarginOnMobile",10);bookConfig.leftMarginOnMobile=getConfigValue("leftMarginOnMobile",10);bookConfig.rightMarginOnMobile=getConfigValue("rightMarginOnMobile",10);if(isPhone()||isPad())bookConfig.topMargin=bookConfig.topMarginOnMobile, bookConfig.bottomMargin=bookConfig.bottomMarginOnMobile,bookConfig.leftMargin=bookConfig.leftMarginOnMobile,bookConfig.rightMargin=bookConfig.rightMarginOnMobile,bookConfig.phoneFlipShortcutSwitchButtonVisible=getConfigValue("phoneFlipShortcutSwitchButtonVisible",!1),bookConfig.phoneFlipShortcutButton=getConfigValue("phoneFlipShortcutButton",!1);bookConfig.visibleAreaLeft=parseFloat(getConfigValue("visibleAreaLeft","0%"));bookConfig.visibleAreaTop=parseFloat(getConfigValue("visibleAreaTop","0%")); bookConfig.visibleAreaRight=parseFloat(getConfigValue("visibleAreaRight","100%"));bookConfig.visibleAreaBottom=parseFloat(getConfigValue("visibleAreaBottom","100%"));bookConfig.visibleAreaLeft=isNaN(bookConfig.visibleAreaLeft)?"0%":bookConfig.visibleAreaLeft;bookConfig.visibleAreaTop=isNaN(bookConfig.visibleAreaTop)?"0%":bookConfig.visibleAreaTop;bookConfig.visibleAreaRight=isNaN(bookConfig.visibleAreaRight)?"100%":bookConfig.visibleAreaRight;bookConfig.visibleAreaBottom=isNaN(bookConfig.visibleAreaBottom)? "100%":bookConfig.visibleAreaBottom;bookConfig.bleedAreaLeft=parseFloat(getConfigValue("bleedAreaLeft","0%"));bookConfig.bleedAreaTop=parseFloat(getConfigValue("bleedAreaTop","0%"));bookConfig.bleedAreaRight=parseFloat(getConfigValue("bleedAreaRight","0%"));bookConfig.bleedAreaBottom=parseFloat(getConfigValue("bleedAreaBottom","0%"));bookConfig.bleedAreaLeft=isNaN(bookConfig.bleedAreaLeft)?"0%":bookConfig.bleedAreaLeft;bookConfig.bleedAreaTop=isNaN(bookConfig.bleedAreaTop)?"0%":bookConfig.bleedAreaTop; bookConfig.bleedAreaRight=isNaN(bookConfig.bleedAreaRight)?"0%":bookConfig.bleedAreaRight;bookConfig.bleedAreaBottom=isNaN(bookConfig.bleedAreaBottom)?"0%":bookConfig.bleedAreaBottom;bookConfig.visibleAreaLeft=bookConfig.bleedAreaLeft?bookConfig.bleedAreaLeft:bookConfig.visibleAreaLeft;bookConfig.visibleAreaTop=bookConfig.bleedAreaTop?bookConfig.bleedAreaTop:bookConfig.visibleAreaTop;bookConfig.visibleAreaRight=bookConfig.bleedAreaRight?100-parseFloat(bookConfig.bleedAreaRight):bookConfig.visibleAreaRight; bookConfig.visibleAreaBottom=bookConfig.bleedAreaBottom?100-parseFloat(bookConfig.bleedAreaBottom):bookConfig.visibleAreaBottom;bookConfig.LinkDownColor=getConfigValue("LinkDownColor","#9C9C9C");bookConfig.LinkAlpha=getConfigValue("LinkAlpha",0.4);bookConfig.googleAnalyticsID=getConfigValue("googleAnalyticsID","");bookConfig.language=getConfigValue("language","English");bookConfig.AboutAddress=getConfigValue("AboutAddress","");bookConfig.AboutEmail=getConfigValue("AboutEmail","");bookConfig.AboutMobile= getConfigValue("AboutMobile","");bookConfig.AboutWebsite=getConfigValue("AboutWebsite","");bookConfig.AboutDescription=getConfigValue("AboutDescription","");bookConfig.AboutAuthor=getConfigValue("AboutAuthor","");bookConfig.totalPageCount=getConfigValue("totalPageCount",1);bookConfig.largePageWidth=getConfigValue("largePageWidth",1440);bookConfig.largePageHeight=getConfigValue("largePageHeight",1728);bookConfig.normalPath=getConfigValue("normalPath","files/page/");bookConfig.largePath=getConfigValue("largePath", "files/large/");bookConfig.thumbPath=getConfigValue("thumbPath","files/thumb/");bookConfig.FlipStyle=getConfigValue("FlipStyle","flip");bookConfig.FlipStyle=bookConfig.FlipStyle.toLowerCase();var b=bookConfig.autoDoublePage?bookConfig.autoDoublePage.toLocaleLowerCase():"auto";"single"!=b&&"auto"!=b&&"double"!=b?getConfigValue("autoDoublePage",!0)?bookConfig.showDoublePage="auto":bookConfig.showDoublePage="single":bookConfig.showDoublePage=b;bookConfig.alwaysDoublePageOnMobile=getConfigValue("alwaysDoublePageOnMobile", !1);bookConfig.upsideOnMobile=function(){return bookConfig.alwaysDoublePageOnMobile&&window.innerHeight>window.innerWidth?!0:!1};bookConfig.QRPath=getConfigValue("QRPath","files/extfile/QRURL.png");bookConfig.QRCode=getConfigValue("QRCode",!1);bookConfig.MiniStyle=getConfigValue("MiniStyle",!0);bookConfig.AnnotationButtonVisible=getConfigValue("AnnotationButtonVisible",!1);bookConfig.InstructionsButtonVisible=getConfigValue("InstructionsButtonVisible",!1);bookConfig.showInstructionOnStart=getConfigValue("showInstructionOnStart", !0);bookConfig.showBookInstructionOnStart=getConfigValue("showBookInstructionOnStart",!1);bookConfig.EmailButtonVisible=getConfigValue("EmailButtonVisible",!1);bookConfig.btnShareWithEmailSubject=getConfigValue("btnShareWithEmailSubject","");bookConfig.btnShareWithEmailBody=getConfigValue("btnShareWithEmailBody","");bookConfig.socialShareLink=getConfigValue("socialShareLink","");bookConfig.VideoButtonVisible=getConfigValue("VideoButtonVisible",!1);if(!global.videoList||0>=global.videoList.length)bookConfig.VideoButtonVisible= !1;bookConfig.SlideshowButtonVisible=getConfigValue("SlideshowButtonVisible",!1);if(!global.slideshow||0>=global.slideshow.length)bookConfig.SlideshowButtonVisible=!1;bookConfig.CompanyLogoFile=getConfigValue("CompanyLogoFile","");bookConfig.UIBaseURL=getConfigValue("UIBaseURL","");bookConfig.haveAdSense=getConfigValue("haveAdSense",!1);bookConfig.adSenseLeft=getConfigValue("adSenseLeft",0);bookConfig.adSenseTop=getConfigValue("adSenseTop",0);bookConfig.adSenseWidth=getConfigValue("adSenseWidth", 0);bookConfig.adSenseHeight=getConfigValue("adSenseHeight",0);bookConfig.adSenseClientId=getConfigValue("adSenseClientId","");bookConfig.adSenseSlotId=getConfigValue("adSenseSlotId","");bookConfig.productName=getConfigValue("productName","Flip HTML5");bookConfig.homePage=getConfigValue("homePage","http://www.fliphtml5.com");bookConfig.preloadNextPage=getConfigValue("preloadNextPage",!0);bookConfig.showMirrorSide=getConfigValue("showMirrorSide",!0);bookConfig.addPaperCoil=getConfigValue("addPaperCoil", !1);bookConfig.addPaperCoil&&(bookConfig.BindingType="loose");if("loose"==bookConfig.BindingType||"loose2"==bookConfig.BindingType)bookConfig.addPaperCoil=!0;bookConfig.ToolbarViewMode=getConfigValue("ToolbarViewMode","standard");bookConfig.ToolbarViewMode=bookConfig.ToolbarViewMode.toLocaleLowerCase();bookConfig.isTheBookOpen=getConfigValue("isTheBookOpen",!1);bookConfig.FlipDirection=getConfigValue("FlipDirection",0);bookConfig.phoneFlipShortcutSwitchButtonIcon=getConfigValue("phoneFlipShortcutSwitchButtonIcon", "");bookConfig.HomeButtonIcon=getConfigValue("HomeButtonIcon","");bookConfig.AnnotationButtonIcon=getConfigValue("AnnotationButtonIcon","");bookConfig.VideoButtonIcon=getConfigValue("VideoButtonIcon","");bookConfig.SlideshowButtonIcon=getConfigValue("SlideshowButtonIcon","");bookConfig.ShareButtonIcon=getConfigValue("ShareButtonIcon","");bookConfig.ThumbnailButtonIcon=getConfigValue("ThumbnailButtonIcon","");bookConfig.ZoomInButtonIcon=getConfigValue("ZoomInButtonIcon","");bookConfig.ZoomOutButtonIcon= getConfigValue("ZoomOutButtonIcon","");bookConfig.MagnifierButtonIcon=getConfigValue("MagnifierButtonIcon","");bookConfig.FullscreenButtonIcon=getConfigValue("FullscreenButtonIcon","");bookConfig.ExitFullscreenButtonIcon=getConfigValue("ExitFullscreenButtonIcon","");bookConfig.BookmarkButtonIcon=getConfigValue("BookmarkButtonIcon","");bookConfig.TableOfContentButtonIcon=getConfigValue("TableOfContentButtonIcon","");bookConfig.SearchButtonIcon=getConfigValue("SearchButtonIcon","");bookConfig.PrintButtonIcon= getConfigValue("PrintButtonIcon","");bookConfig.BackgroundSoundButtonOnIcon=getConfigValue("BackgroundSoundButtonOnIcon","");bookConfig.BackgroundSoundButtonOffIcon=getConfigValue("BackgroundSoundButtonOffIcon","");bookConfig.HelpButtonIcon=getConfigValue("HelpButtonIcon","");bookConfig.AboutButtonIcon=getConfigValue("AboutButtonIcon","");bookConfig.AutoPlayStartButtonIcon=getConfigValue("AutoPlayStartButtonIcon","");bookConfig.AutoPlayStopButtonIcon=getConfigValue("AutoPlayStopButtonIcon","");bookConfig.DownloadButtonIcon= getConfigValue("DownloadButtonIcon","");bookConfig.facebookShotImageURL=getConfigValue("facebookShotImageURL","");bookConfig.searchTextJS=getConfigValue("searchTextJS","files/search/book_config.js");bookConfig.searchPositionJS=getConfigValue("searchPositionJS","files/search/text_position.js");bookConfig.userSmallMode=getConfigValue("userSmallMode",!0);bookConfig.maxWidthToSmallMode=getConfigValue("maxWidthToSmallMode",300);bookConfig.maxHeightToSmallMode=getConfigValue("maxHeightToSmallMode",300); bookConfig.backgroundScene=getConfigValue("backgroundScene","None");bookConfig.bgSoundVol=getConfigValue("bgSoundVol",50);bookConfig.bgSoundVol=Number.between(bookConfig.bgSoundVol,0,100);bookConfig.enablePageBack=getConfigValue("enablePageBack",!1);bookConfig.userListPath=getConfigValue("userListPath","files/extfiles/users.js");bookConfig.isFlipPdf=getConfigValue("isFlipPdf",!1);bookConfig.SingleModeBanFlipToLastPage=getConfigValue("SingleModeBanFlipToLastPage",!1);bookConfig.isSingleBookFullWindowOnMobile= getConfigValue("isSingleBookFullWindowOnMobile",!1);bookConfig.showGotoButtonsAtFirst=getConfigValue("showGotoButtonsAtFirst",!1);!1==bookConfig.isFlipPdf&&void 0!=global.isFlipPdf&&(bookConfig.isFlipPdf=isFlipPdf);bookConfig.FlipSound=getConfigValue("FlipSound",!0);bookConfig.CurlingPageCorner=getConfigValue("CurlingPageCorner",!0);bookConfig.iconFontColor=getConfigValue("iconFontColor","#ffffff");try{void 0!=global.staticAd&&!0==staticAd.haveAd&&void 0==global.staticAd.adPosition&&("Chinese"==UserGroups&& (global.staticAd.adPosition=1),"English"==UserGroups&&(global.staticAd.adPosition=0)),void 0!=global.staticAd&&!0==staticAd.haveAd&&1!=parseInt(global.staticAd.adPosition)?bookConfig.retainBookCenter=!1:bookConfig.retainBookCenter=getConfigValue("retainBookCenter",!0)}catch(c){}bookConfig.updateURLForPage=getConfigValue("updateURLForPage",!0);bookConfig.borderColor=getConfigValue("borderColor","#572f0d");bookConfig.outerCoverBorder=getConfigValue("outerCoverBorder",!1);bookConfig.hardCoverBorderWidth= getConfigValue("hardCoverBorderWidth",0);bookConfig.cornerRound=getConfigValue("cornerRound",0);bookConfig.hardCoverBorderWidth=bookConfig.HardPageEnable?Number.between(0,16,bookConfig.hardCoverBorderWidth):0;bookConfig.cornerRound=bookConfig.HardPageEnable?Number.between(0,bookConfig.hardCoverBorderWidth,bookConfig.cornerRound):0;bookConfig.coverTexture=getConfigValue("coverTexture","none");bookConfig.passwardPrompt=getConfigValue("passwardPrompt","");bookConfig.SlideshowAutoPlay=getConfigValue("SlideshowAutoPlay", !1);bookConfig.SlideshowPlayInterval=getConfigValue("SlideshowPlayInterval",5);bookConfig.productName=getConfigValue("productName","Flip HTML5");bookConfig.homePage=getConfigValue("homePage","http://www.fliphtml5.com");global.productName=bookConfig.productName||"Flip HTML5";global.homePage=bookConfig.homePage||"http://www.fliphtml5.com";bookConfig.backgroundPosition=getConfigValue("backgroundPosition","Stretch");bookConfig.toolbarAlwaysShow=getConfigValue("toolbarAlwaysShow",!1);isPhone()||isPad()|| (bookConfig.toolbarAlwaysShow=!0);bookConfig.restorePageVisible=getConfigValue("restorePageVisible",!1);bookConfig.toobarClear=getConfigValue("toobarClear",!1);bookConfig.bottomToolBarAlpha=getConfigValue("bottomToolBarAlpha",1);bookConfig.topToolBarAlpha=getConfigValue("topToolBarAlpha",1);bookConfig.ToolBarAlpha=getConfigValue("ToolBarAlpha",1);(isPhone()||isPad())&&"slide"!=bookConfig.FlipStyle.toLowerCase()&&(bookConfig.FlipStyle="flip");isBelowIE9()&&(bookConfig.FlipStyle="slide");if(isPhone()|| isPad()||"catalog"==bookConfig.FlipStyle.toLowerCase()||"slide"==bookConfig.FlipStyle.toLowerCase()&&"lite"==bookConfig.ToolbarViewMode.toLowerCase())bookConfig.flipshortcutbutton=!1;bookConfig.BackgroundSoundURL||bookConfig.FlipSound||(bookConfig.BackgroundSoundButtonVisible=!1);if(bookType==BookType.singleCatalog_book||bookType==BookType.catalog_book||bookType==BookType.slide_book&&"lite"==bookConfig.ToolbarViewMode.toLowerCase()||bookType==BookType.singleSlide_book&&"lite"==bookConfig.ToolbarViewMode.toLowerCase()|| isPhone()||isPad())bookConfig.flipshortcutbutton=!1;if(global.videoList&&1<=global.videoList.length)for(b=0;b");bookConfig.AboutDescription=bookConfig.AboutDescription.replace(/\r/g,"
");checkBookmarkConfig();isBelowIE9()&&(bookConfig.BookMarkButtonVisible=!1,bookConfig.AnnotationButtonVisible=!1,bookConfig.WeChatShareButtonVisible=!1);bookConfig.useTheAliCloudChart&&bookConfig.backGroundImgURL&& (0<=bookConfig.backGroundImgURL.indexOf("?")?bookConfig.backGroundImgURL+="&x-oss-process=image/resize,h_800":bookConfig.backGroundImgURL+="?x-oss-process=image/resize,h_800",window.isSupportWebp&&(bookConfig.backGroundImgURL+="/format,webp"));checkURLValue();global.checkReportConfig&&checkReportConfig()}; function checkBookmarkConfig(){global.bmtConfig||(bmtConfig=[]);void 0==bmtConfig.onSideEdge&&(bmtConfig.onSideEdge=!0);void 0==bmtConfig.showPage&&(bmtConfig.showPage=!1);void 0==bmtConfig.hasTexture&&(bmtConfig.hasTexture=!1);bmtConfig.tabs&&0bookConfig.topMargin&&(bookConfig.topMargin=75),"vertical"==bookConfig.flipDrection&&75>bookConfig.bottomMargin&&(bookConfig.topMargin= 75))} var isBool=function(b){if(!0===b||!1===b)return!0;if(void 0==b)return!1;var c=["false","no","hide","disable"];b=b.toLowerCase();return 0>["true","yes","show","enable"].indexOf(b)&&0>c.indexOf(b)?!1:!0},getConfigValue=function(b,c){void 0!=c&&"string"==typeof c&&""!=c.trim()&&isBool(c)&&(c=parseBool(c));var d;d=void 0!=bookConfig[b]?bookConfig[b]:getValueFromAliasConfig(b);return void 0==d?c:void 0==c?d:"number"==typeof c?Number(d):"boolean"==typeof c?parseBool(d):"string"==typeof c&&"#"==c[0]?Color(d).toString(): d},getValueFromAliasConfig=function(b){if(global.aliasConfig&&(b=aliasConfig[b]))for(var c=0;cc.length)return Point(0, 0);c=c[1].split(", ");return Point(parseInt(c[0],10),parseInt(c[1],10))},getTransformScale=function(b){var c;switch(browserType){case 3:c=b.style["-ms-transform"];break;case 2:c=b.style["-moz-transform"];break;case 1:c=b.style["-webkit-transform"];break;case 4:c=b.style["-o-transform"];break;default:c=b.style.transform}if(void 0==c||null==c)if(c=b.style.transform,void 0==c||null==c)return 1;c=c.match(/scale\((.*?)\)/)||c.match(/scale3d\((.*?)\)/);if(null==c||""==c||2>c.length)return 1;c=c[1].split(","); return c[0]},getColor=function(b,c){var d=bookConfig[b];return void 0!=d?Color(d).toString():c},getImage=function(b){return b?$(""):new Image},parseBool=function(b,c){if(!0===b||!1===b)return b;if(void 0==b||null==b)return!1;c=!!c;if("number"==typeof b)return 0!=b;if("string"!=typeof b||""==b)return!1;var d=["true","yes","show","enable"],f=["false","no","hide","disable"];b=b.toLowerCase();return 0>d.indexOf(b)&&0>f.indexOf(b)?c:0<=d.indexOf(b)},getLanguage=function(b,c){if(global.selectedLanguage&& selectedLanguage[b])return selectedLanguage[b];if(global.aliasLanguage&&aliasLanguage[b])for(var d=aliasLanguage[b],f=0;fb.length)return b;var d=b.length,f=b.toLowerCase().indexOf(c.toLowerCase()),g;25<=f?(g=Math.max(25<=d-f?f-25:d-50,0),g=".."+b.substring(g,f)):g=b.substring(0,f);d=25h.length))for(var g=getRealPageNumber(h[0]),k=getRealPageNumber(h[1]),h=Math.min(g,k),g=Math.max(g,k);h<=g;h++)h>bookConfig.totalPageCount||c(h)||d.push(h)}}return d},isSlideBook=function(){return"slide"==bookConfig.FlipStyle.toLowerCase()||isBelowIE9()?!0:!1}; function addGoogleAdSense(){bookConfig.haveAdSense&&loadJavascript("//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",function(){var b=document.createElement("ins"),b=$(b);b.addClass("adsbygoogle");b.css({display:"inline-block",width:"100%",height:"100%"});b.attr("data-ad-client",bookConfig.adSenseClientId);b.attr("data-ad-slot",bookConfig.adSenseSlotId);var c=$("
");c.css({position:"absolute","z-index":100,left:bookConfig.adSenseLeft+"px",top:bookConfig.adSenseTop+"px",width:bookConfig.adSenseWidth+ "px",height:bookConfig.adSenseHeight+"px"});c.bind(_event._down,function(){BookEvent.trigger("googleAdSense",[bookConfig.adSenseClientId,bookConfig.adSenseSlotId,bookConfig.adSenseLeft,bookConfig.adSenseTop,bookConfig.adSenseWidth,bookConfig.adSenseHeight])});tmpContainer.append(c);c.append(b);eval("(adsbygoogle = window.adsbygoogle || []).push({});")})} var changeLanguage=function(b){selectLanguage(b);global.toolBar&&toolBar.changeLanguage&&toolBar.changeLanguage();global.printBody&&printBody.changeLanguage();global.helpBody&&helpBody.changeLanguage();global.aboutBody&&aboutBody.changeLanguage();global.sharePanel&&sharePanel.changeLanguage();global.languagePanel&&languagePanel.changeLanguage();global.videoGallery&&videoGallery.changeLanguage();global.photoGallery&&photoGallery.changeLanguage();global.bookmark&&bookmark.changeLanguage();global.frmTableOfContent&& frmTableOfContent.changeLanguage();global.frmSearch&&frmSearch.changeLanguage();global.thumbnail&&thumbnail.changeLanguage();global.bookInstructions&&global.bookInstructions.changeLanguage&&global.bookInstructions.changeLanguage();global.telephoneNumberForm&&global.telephoneNumberForm.changeLanguage();global.settingBody&&global.settingBody.changeLanguage();global.doubleSinglePageForm&&global.doubleSinglePageForm.changeLanguage();global.downLoadBody&&global.downLoadBody.changeLanguage();global.annotationPannel&& global.annotationPannel.changeLanguage()},baiduAnalytics=function(){bookConfig.baiduAnalyticsID&&window.setTimeout(function(){var b=document.createElement("script");b.src="https://hm.baidu.com/hm.js?"+bookConfig.baiduAnalyticsID;var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c)},3E3)},controlAudioVolume=function(){if(!isNaN(bookConfig.bgSoundVol)){var b=parseFloat(bookConfig.bgSoundVol/100);global.bgSound&&global.bgSound.setVolume(b);flipAudio&&(flipAudio[0].volume=b)}}, TurnonAutoFlip=function(){bookConfig.autoFlipOnStart&&window.setTimeout(function(){auto_player&&auto_player.start();toolBar&&toolBar.changeAutoPlayIcon&&toolBar.changeAutoPlayIcon()},1E3)},flipAudio,flipSoundIsPlaying=!0,playFlipSound=function(){if(bookConfig.FlipSound&&flipSoundIsPlaying)if(!isPhone()&&!isPad()&&!isIE()){var b="flipsound";if(bookType==BookType.slide_book||bookType==BookType.singleSlide_book)b="slidesound";b=$("");$("body").append(b);var c=parseFloat(bookConfig.bgSoundVol/100);b[0].volume=c;b.bind("ended",function(){$(this).remove()});try{b[0].currentTime=0,b[0].play()}catch(d){}}else if(!isPlaying||!isAndroidDefault())try{flipAudio[0].currentTime=0,flipAudio[0].play()}catch(f){}},initFlipSound=function(){if(isPhone()||isPad()||isIE()){var b="flipsound";if(bookType==BookType.slide_book||bookType==BookType.singleSlide_book)b="slidesound";flipAudio= $("");$("body").append(flipAudio)}};function copyFromObj(b){if(b){b.focus();b.select();try{document.execCommand("Copy")}catch(c){b=b.val(),copyToClipboard(b)}}} function copyHref(b){global.isBelowIE9()||(b=new ClipboardJS(b,{text:function(b){return window.location.href}}),b.on("success",function(b){"Chinese"==UserGroups&&alert("\u590d\u5236\u7f51\u5740\u6210\u529f");"English"==UserGroups&&alert("Copied successfully");b.clearSelection()}),b.on("error",function(b){uc?("Chinese"==UserGroups&&alert("\u590d\u5236\u7f51\u5740\u6210\u529f"),"English"==UserGroups&&alert("Copied successfully"),b.clearSelection()):("Chinese"==UserGroups&&alert("\u590d\u5236\u7f51\u5740\u5931\u8d25"), "English"==UserGroups&&alert("Copied failed"))}))} function copyToClipboard(b){if(window.clipboardData)window.clipboardData.clearData(),window.clipboardData.setData("Text",b);else if(-1!=navigator.userAgent.indexOf("Opera"))window.location=b;else if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(c){return alert(getLanguage("infCopyToClipboard","Your browser does not support clipboard.")),!1}var d=Components.classes["@mozilla.org/widget/clipboard;1"].createInstance(Components.interfaces.nsIClipboard);if(d){var f= Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if(f){f.addDataFlavor("text/unicode");var g={},g=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);g.data=b;f.setTransferData("text/unicode",g,2*b.length);if(!d)return!1;d.setData(f,null,Components.interfaces.nsIClipboard.kGlobalClipboard)}}}else alert(getLanguage("infCopyToClipboard","Your browser does not support clipboard."))} function hideMoreBar(){global.moreBar&&moreBar.visible&&moreBar.hide()}function GetQueryString(b){b=RegExp("(^|&)"+b+"=([^&]*)(&|$)","i");b=window.location.search.substr(1).match(b);return null!=b?decodeURIComponent(b).split(",")[2]:""}function getProtocal(){return window.location.href.toLowerCase().startsWith("https://")?"https://":"http://"};var form_icons={drag:"iVBORw0KGgoAAAANSUhEUgAAABkAAAAKCAYAAABBq/VWAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9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bXeuE0f6mQr1GWWdkZ/NVKjTOQ0n29BkL8n70AblQypUnZP7/qasBedy5sVfyjoU4Lzqm9z3WmVt25Msy7IMSxap36pMct+EZqerllll2ZowQvVNVz2IgBWBX+AFkAtxjJJvw4/KpKsuTPtfgAEA9WJlCl1yxpAAAAAASUVORK5CYII="};var setCurrentIndexTextField=function(b){b=getShownPageNumberInfo(b);$("#guidPageIndex").html(""+b+"");$("#currentPageIndexTextField")&&$("#currentPageIndexTextField")[0]&&!$("#currentPageIndexTextField")[0].onFocus&&$("#currentPageIndexTextField").val(b);(isPhone()||isPad())&&$(".currentPageIndexTextField")&&$(".currentPageIndexTextField")[0]&&!$(".currentPageIndexTextField")[0].onFocus&&$(".currentPageIndexTextField").val(b)},getShownPageNumberInfo=function(b){BookInfo.isDoublePage();b=BookInfo.getCurrentPages(); for(var c=originTotalPageCount,d="",f=0;fg;g++,h/=10)f=Math.floor(b%h/(h/10)),d+=c[2-g][f];return d} var getShownPageNumber=function(b){var c=bookConfig.pageNumberCaption;if(""==c||void 0==c)return b;b=parseInt(b);c=getShownPageArray();return void 0==c[b]?b:c[b]},getRealPageNumber=function(b){b=getRealPage(b);isNaN(b)&&(b=1);return b},getRealPage=function(b){var c=bookConfig.pageNumberCaption;if(""==c||void 0==c)return parseInt(b);b+="";for(var c=getShownPageArray(),d=-1,f=c.length,g=1;g<=f;g++)if(c[g]+""==b){d=g;break}return-1!=d?d:isNaN(parseInt(b))||void 0!==c[parseInt(b)]?"error":parseInt(b)}, setLocationHash=function(b){bookConfig.updateURLForPage&&(window.location.hash="#p="+getShownPageNumber(b))};var nextPageFun=function(b){switch(bookType){case BookType.normal_book:gotoPageFun(BookInfo.getMinPageIndex(flipBook.getCurrentPageIndex())+2,!1,b);break;case BookType.single_book:gotoPageFun(parseInt(singlePageBook.currentPageIndex)+1,!1,b);break;case BookType.slide_book:gotoPageFun(BookInfo.getMinPageIndex(slideBook.getRealPageIndex())+2,!1,b);break;case BookType.singleSlide_book:gotoPageFun(parseInt(singleSlideBook.getRealPageIndex())+1,!1,b);break;case BookType.catalog_book:gotoPageFun(BookInfo.getMinPageIndex(catalogBook.getCurrentPageIndex())+ 2,!1,b);break;case BookType.singleCatalog_book:gotoPageFun(parseInt(singleCatalogBook.currentIndex)+1,!1,b)}},previousPageFun=function(b){switch(bookType){case BookType.normal_book:gotoPageFun(BookInfo.getMaxPageIndex(flipBook.getCurrentPageIndex())-2,!1,b);break;case BookType.catalog_book:gotoPageFun(BookInfo.getMaxPageIndex(catalogBook.getCurrentPageIndex())-2,!1,b);break;case BookType.single_book:gotoPageFun(parseInt(singlePageBook.currentPageIndex)-1,!1,b);break;case BookType.slide_book:gotoPageFun(BookInfo.getMaxPageIndex(slideBook.getRealPageIndex())- 2,!1,b);break;case BookType.singleSlide_book:gotoPageFun(singleSlideBook.getRealPageIndex()-1,!1,b);break;case BookType.singleCatalog_book:gotoPageFun(parseInt(singleCatalogBook.currentIndex)-1,!1,b)}},firstPageFun=function(b){gotoPageFun(1,!1,b)},lastPageFun=function(b){gotoPageFun(originTotalPageCount,!1,b)},gotoPageFun=function(b,c,d){if(!isNaN(b)){gotoPageVisit(b,d);bookConfig.restorePageVisible&&window.localStorage.setItem("historyPageIndex",getShownPageNumber(b));b=parseInt(b);var f=bookConfig.totalPageCount; bookConfig.SingleModeBanFlipToLastPage&&bookType==BookType.single_book&&(f=Math.max(1,bookConfig.totalPageCount-1));if(1>b||b>f)0>BookInfo.getCurrentPages().indexOf(f)&&b>f?gotoPageFun(f,c,d):0>BookInfo.getCurrentPages().indexOf(1)&&1>b?gotoPageFun(1,c,d):(b=1>b?getLanguage("lblFirst","This is the first page"):getLanguage("lblLast","This is the last page"),global._tipsBox||(_tipsBox=new TipsBox(b,bookContainer)),_tipsBox.setCaption(b),_tipsBox.showTipsBox());else if(d=b,BookInfo.isDoublePage()&&(d= BookInfo.getMinPageIndex(d)),d=Math.max(1,d),passwardType()&&bookConfig.excludeFrontPages&&d>parseInt(bookConfig.excludeFrontPages)&&!verifyPassward())global.passwardPannel||(global.passwardPannel=new PasswardPannel),global.passwardPannel.show();else{switch(bookType){case BookType.normal_book:flipBook.gotoPage(b,c);break;case BookType.single_book:singlePageBook.gotoPage(b,c);break;case BookType.slide_book:slideBook.gotoPage(b,c);break;case BookType.singleSlide_book:singleSlideBook.gotoPage(b,c);break; case BookType.catalog_book:catalogBook.gotoPage(b,c);break;case BookType.singleCatalog_book:singleCatalogBook.gotoPage(b,c)}global.bookmark&&global.bookmark.elements.refreshElements();bookConfig.SelectTextButtonVisible&&BookInfo.getBook().unSelect();bookConfig.MagnifierButtonVisible&&BookInfo.getBook().unMagnifierZoom();global.annotationPannel&&global.annotationPannel.clearBtnDownCase();bookConfig.addCurrentPage&&global.sharePanel&&global.sharePanel.elements&&global.sharePanel.elements.fillArea(!0, "link");global.downLoadBody&&downLoadBody.gotoPage(b);if(bookConfig.AnnotationButtonVisible&&!isPhone()&&!isPad()&&BookInfo.getBook().bookAttachments.noteAdd)BookInfo.getBook().bookAttachments.noteAdd.onResize();setCurrentIndexTextField(BookInfo.getCurrentPageIndex(),BookInfo.isDoublePage());setLocationHash(BookInfo.getCurrentPageIndex());global.phoneGotoPagePanel&&global.phoneGotoPagePanel.visible&&global.phoneGotoPagePanel.refreshSlider()}}},gotoPageVisit=function(b,c){var d=0,d=window.lastVisitTime? (new Date).getTime()-window.lastVisitTime:0;window.lastVisitTime=(new Date).getTime();BookEvent.trigger("flipPage",[c,BookInfo.getCurrentPages().join("-"),BookInfo.getCurrentPagesByIndex(b).join("-"),d])};var BookInfo=Class({statics:{getCurrentPages:function(){var b=[];if(this.isDoublePage())var c=this.getCurrentPageIndex(),b=this.getPagesByIndex(c);else c=this.getCurrentPageIndex(),b.push(c);return b},getCurrentPagesByIndex:function(b){var c=[];this.isDoublePage()?c=this.getPagesByIndex(b):c.push(b);return c},getPageCount:function(){return bookConfig.totalPageCount},isRightToLeft:function(){return rightToLeft},getBookType:function(){return bookType},getBook:function(){var b;switch(this.getBookType()){case BookType.normal_book:b= global.flipBook;break;case BookType.single_book:b=global.singlePageBook;break;case BookType.slide_book:b=global.slideBook;break;case BookType.singleSlide_book:b=global.singleSlideBook;break;case BookType.catalog_book:b=global.catalogBook;break;case BookType.singleCatalog_book:b=global.singleCatalogBook}return b},getCurrentPageIndex:function(){var b=this.getBook();return b&&b.getCurrentPageIndex?b.getCurrentPageIndex():bookConfig.OriginPageIndex},isDoublePage:function(b){var c=this.getBookType();void 0!= b&&(c=b);switch(c){case BookType.single_book:return!1;case BookType.singleSlide_book:return!1;case BookType.singleCatalog_book:return!1}return!0},left:function(){var b=this.getBook();return b&&b.getLeft?b.getLeft():0},top:function(){var b=this.getBook();return b&&b.getTop?b.getTop():0},width:function(){var b=this.getBook();return b&&b.getWidth?b.getWidth():0},height:function(){var b=this.getBook();return b&&b.getHeight?b.getHeight():0},scale:function(){var b=this.getBook();return b&&b.getScale?b.getScale(): 0},isZoomming:function(){return this.getBook().showPage.parameters.zoomming},zoomStatus:function(){return this.getBook()&&this.getBook().status_zoom?!0:!1},container:function(){return bookContainer},getThumbnailPages:function(){for(var b=[],c=Math.ceil(bookConfig.totalPageCount/2),d=0;d<=c;d++){var f=this.getPagesByIndex(2*d+1);0
");this.title=$("

"+FormInfo.getFormTitle(this.formType)+"

");this.close=$(phoneSvgIcons.formClose);this.rightToLeft&&this.stage.addClass("rightToLeft");this.close.bind("click",this.hide.bind(this));this.initHtml();this.initEvent();this.onCreate();(isPhone()||isPad())&&this.initScrollEvent()},onCreate:function(){this.stage.insertBefore(this.parent);this.stage.css({position:"absolute", left:this.width+"px",top:0,width:this.width+"px",height:this.height+"px","background-color":colorDiv(this.mainColor,20),color:this.fontColor,overflow:"hidden"})},getPosition:function(b){b=b.originalEvent&&b.originalEvent.changedTouches?b.originalEvent.changedTouches:b.changedTouches?b.changedTouches:[b];return{x:(b[0].pageX||b[0].clientX)+(document.documentElement.scrollLeft||document.body.scrollLeft),y:(b[0].pageY||b[0].clientY)+(document.documentElement.scrollTop||document.body.scrollTop)}},firstTimeMove:function(b){this.firstTime= !0;this.dragEnd=this.getPosition(b);b=this.dragEnd.x-this.dragStart.x;var c=this.dragEnd.y-this.dragStart.y;0==b&&0!=c&&(this.noSwipeRight=!0);0!=b&&0==c&&(this.noSwipeRight=!1);0==b&&0==c&&(this.noSwipeRight=!0);1.01>=Math.abs(b/c)&&(this.noSwipeRight=!0)},initScrollEvent:function(){this.dragStart={};this.dragEnd={};this.stage.bind(_event._down,function(b){b.stopPropagation();this.formTouching=!0;this.firstTime=this.dragMove=this.noSwipeRight=!1;this.dragEnd=this.dragStart=this.getPosition(b);this.endTime= this.startTime=(new Date).getTime()}.bind(this));this.stage.bind(_event._move,function(b){b.stopPropagation();this.dragMove=!0;this.firstTime||this.firstTimeMove(b);if(this.formTouching){this.dragEnd=this.getPosition(b);var c=this.dragEnd.x-this.dragStart.x;this.noSwipeRight||(b.preventDefault(),0=c&&this.stage.css({transform:"translate3d("+ -windowWidth+"px,0,0)"}),c>=windowWidth&&this.stage.css({transform:"translate3d(0px,0,0)"})))}}.bind(this));this.stage.bind(_event._up,function(b){b.stopPropagation();if(this.dragEnd&&void 0!=this.dragEnd.x&&(b=this.dragEnd.x-this.dragStart.x,this.endTime=(new Date).getTime(),this.formTouching&&!(this.noSwipeRight||!this.dragMove||0>b))){this.formTouching=!1;var c=(this.endTime-this.startTime)/1E3;0=c&&b>0.1*windowWidth?this.hide():windowWidth-this.dragEnd.x+this.dragStart.x> 2*windowWidth/3?this.animate(-windowWidth):this.hide();this.dragMove=this.firstTime=this.noSwipeRight=!1}}.bind(this))},show:function(){if(!this.visible&&(this.visible=!0,this.animate(-this.width),this.mask||(this.mask=$("
"),this.mask.click(this.hide.bind(this)),this.parent.append(this.mask)),this.mask&&this.mask.show(),BookInfo.getBook().addSearchHighlight(),this.onShow))this.onShow()},hide:function(){this.visible&&(this.visible=!1,this.dragEnd={},this.animate(0), this.mask&&this.mask.hide(),isPhone()||isPad()||BookInfo.getBook().clearSearchHighlight())},animate:function(b){this.animating=!0;b=transformCSS({tran:{x:b,y:0}});animateOnce(this.stage,b,0.2,function(){this.animating=!1}.bind(this));animateOnce(this.parent,b,0.2,function(){this.animating=!1}.bind(this))},onResize:function(){this.width=windowWidth;this.height=windowHeight;this.stage.css({left:this.width+"px",width:this.width+"px",height:this.height+"px"});var b=this.visible?transformCSS({tran:{x:-this.width, y:0}}):transformCSS({tran:{x:0,y:0}});this.stage.css(b);this.parent.css(b)},showOrHide:function(){!0===this.visible?this.hide():this.show(-this.width)}}).extend(FormFrame),PhoneBottomFormFrame=Class({create:function(b){this._super(b);this.closeUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RjhBN0ZCRjFCQjgwMTFFNjhCMjQ5NjVERDlGODU5NkUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RjhBN0ZCRjJCQjgwMTFFNjhCMjQ5NjVERDlGODU5NkUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpGOEE3RkJFRkJCODAxMUU2OEIyNDk2NUREOUY4NTk2RSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpGOEE3RkJGMEJCODAxMUU2OEIyNDk2NUREOUY4NTk2RSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Prtn4R8AAABdSURBVHjaYvz//z8DLQETA43BqAWjFtDHgv9QTKocyT74T4BPtgWMWAz9j0OebB8w4nA5IzUjmZEAf/DGAb5g+U+tZIpuONGW0DwOWMgwmIFWqWi0sBu1ADsACDAA1jMSLYufr4AAAAAASUVORK5CYII="; this.stage=$("
");this.title=$("

"+FormInfo.getFormTitle(this.formType)+"

");this.close=$("
"+getLanguage("lblCancel","Cancel")+"
");this.rightToLeft&&this.stage.addClass("rightToLeft");this.close.bind(_event._click,this.hide.bind(this));this.initHtml();this.initEvent();this.onCreate()},onCreate:function(){this.stage.insertBefore(this.parent);this.stage.css({position:"fixed", left:0,bottom:-this.height+"px",width:this.width+"px",height:this.height+"px","background-color":colorDiv(this.mainColor,20),color:this.fontColor,overflow:"hidden"})},show:function(){this.visible||(this.visible=!0,this.animate(this.height),this.mask||(this.mask=$("
"),this.mask.bind(_event._click,this.hide.bind(this)),this.parent.append(this.mask)),this.mask&&this.mask.show(),BookInfo.getBook().addSearchHighlight())},hide:function(){this.visible&&(this.visible=!1, this.animate(0),this.mask&&this.mask.hide(),isPhone()||isPad()||BookInfo.getBook().clearSearchHighlight())},animate:function(b){this.animating=!0;b=transformCSS({tran:{x:0,y:-b}});animateOnce(this.stage,b,0.2,function(){this.animating=!1}.bind(this))},onResize:function(){this.width=windowWidth;this.height=272;this.stage.css({bottom:-this.height+"px",width:this.width+"px",height:this.height+"px"});var b=this.visible?transformCSS({tran:{x:0,y:-this.height}}):transformCSS({tran:{x:0,y:0}});this.stage.css(b); this.parent.css(b)},showOrHide:function(){!0===this.visible?this.hide():this.show(this.width)}}).extend(FormFrame),FadeOutFadeForm=Class({create:function(b){this._super(b);this.closeUrl=form_icons.close?"data:image/png;base64,"+form_icons.close:uiBaseURL+"close.png";this.stage=$("
");this.title=$("

");FormInfo.getFormTitle(this.formType)&&this.title.append($(""+FormInfo.getFormTitle(this.formType)+ ""));FormInfo.getFormFavicon(this.formType)&&(this.favicon=$(""));this.close=$("");this.rightToLeft&&this.stage.addClass("rightToLeft");this.initHtml();this.initEvent();this.onCreate()},onCreate:function(){this.stage.appearance("",function(){this.visible=!1}.bind(this));this.parent.append(this.stage.getDom());this.title&&this.title.css({cursor:"default"});this.hide()},initEvent:function(){this.stage.drag(); this.stage.bind(_event._down,function(b){b.stopPropagation()});this.close.bind("click",this.hide.bind(this));this.close.bind("mouseenter",function(){this.close.css({background:"rgba(255,255,255,0.25)"})}.bind(this));this.close.bind("mouseleave",function(){this.close.css({background:""})}.bind(this))},initHtml:virtual_function,onHide:function(){}}).extend(FormFrame),SlideForm=Class({create:function(b){this._super(b);this.closeUrl=form_icons.close?"data:image/png;base64,"+form_icons.close:uiBaseURL+ "close.png";this.stage=$("
");this.title=$("

");this.title.append($(""+FormInfo.getFormTitle(this.formType)+""));FormInfo.getFormFavicon(this.formType)&&(this.favicon=$(""));this.close=$("");this.rightToLeft&&this.stage.addClass("rightToLeft");this.initHtml();this.initEvent();this.onCreate()}, onCreate:function(){this.parent.append(this.stage);this.title&&this.title.css({cursor:"default"});this.hide()},initEvent:function(){this.stage.drag();this.stage.bind(_event._down,function(b){b.stopPropagation()});this.close.bind("click",this.hide.bind(this));this.close.bind("mouseenter",function(){this.close.css({background:"rgba(255,255,255,0.25)"})}.bind(this));this.close.bind("mouseleave",function(){this.close.css({background:""})}.bind(this))},show:function(){this.visible=!0;this.stage.animate({left:10}, 400,function(){}.bind(this));this.onShow()},hide:function(){this.visible=!1;this.stage.animate({left:2*-this.width},400,function(){this.onHide()}.bind(this))},onHide:function(){}}).extend(FormFrame),SlideRightForm=Class({create:function(b){this._super(b);this.closeUrl=form_icons.close?"data:image/png;base64,"+form_icons.close:uiBaseURL+"close.png";this.stage=$("
");this.title=$("

");this.title.append($(""+ FormInfo.getFormTitle(this.formType)+""));FormInfo.getFormFavicon(this.formType)&&(this.favicon=$(""));this.close=$("");this.rightToLeft&&this.stage.addClass("rightToLeft");this.initHtml();this.initEvent();this.onCreate()},onCreate:function(){this.parent.append(this.stage);this.title&&this.title.css({cursor:"default"})},onResize:function(){var b=windowHeight;this.width=250;this.height= b-24;this.stage.css({right:2*-this.width+"px"})},initEvent:function(){this.stage.bind(_event._down,function(b){b.stopPropagation()});this.close.bind("click",this.hide.bind(this));this.close.bind("mouseenter",function(){this.close.css({background:"rgba(255,255,255,0.25)"})}.bind(this));this.close.bind("mouseleave",function(){this.close.css({background:""})}.bind(this))},initHtml:virtual_function,showOrHide:function(){this.visible?this.hide():this.show()},show:function(){this.visible=!0;this.stage.animate({right:0}, 400,function(){}.bind(this));this.onShow()},hide:function(){this.visible=!1;this.stage.animate({right:2*-this.width},400,function(){this.onHide()}.bind(this))}}).extend(FormFrame),PcBottomForm=Class({create:function(b){this._super(b);this.stage=$("
");this.rightToLeft&&this.stage.addClass("rightToLeft");this.initHtml();this.initEvent();this.onCreate()},onCreate:function(){this.parent.append(this.stage)},initEvent:function(){this.stage.drag(); this.stage.bind(_event._down,function(b){b.stopPropagation()});this.stage.bind("click",this.hide.bind(this))},initHtml:virtual_function,onHide:function(){}}).extend(FormFrame),LoadingBook=Class({create:function(b,c){this.parent=b;this.backgroundColor||(this.backgroundColor="#1F2232")},chooseBookStyle:function(){var b=this.getBookTye();"normal_book"==b?this.init():this.initBookStyle(b)},initBookStyle:function(b){switch(b){case "slide_book":bookType=bookConfig.FlipDirection?windowWidthwindowHeight&&"auto"==bookConfig.showDoublePage||"double"==bookConfig.showDoublePage?BookType.slide_book:BookType.singleSlide_book;init();(isPhone()||isPad())&&global.QRbutton&&QRbutton.hide();break;case "flip_book":bookType=bookConfig.FlipDirection?windowWidthwindowHeight&&"auto"==bookConfig.showDoublePage||"double"==bookConfig.showDoublePage?BookType.normal_book:BookType.single_book;init();bookConfig.flipshortcutbutton&&flipShotButton.animate();break;case "catalog_book":bookType=BookType.catalog_book,init()}},getBookTye:function(){var b="normal_book";if("slide"==bookConfig.FlipStyle.toLowerCase()||isBelowIE9())b="slide_book";"flip"!=bookConfig.FlipStyle.toLowerCase()||isBelowIE9()||(b="flip_book");""!=bookConfig.FlipStyle||isBelowIE9()||(b= "flip_book");"catalog"!=bookConfig.FlipStyle.toLowerCase()||isBelowIE9()||(b="catalog_book");return b},init:function(){this.container=$("
");this.bookStyleBox=$("
");this.container.css({"background-color":this.backgroundColor});this.parent.append(this.container);this.container.append(this.bookStyleBox);this.initBookStyleBox()},initBookStyleBox:function(){this.title=$("

");this.description=$("

"); this.flipModel=$("
");this.slideModel=$("
");this.flipModel.append($("").asImageButton());this.slideModel.append($("").asImageButton());this.bookStyleBox.append(this.title);this.bookStyleBox.append(this.description);this.bookStyleBox.append(this.flipModel);this.bookStyleBox.append(this.slideModel);this.title.html(window.document.title);this.description.html(getLanguage("lblSelectMode", "Select View Mode Please.")+"(10)");this.initEvent()},initEvent:function(){this.flipModel.bind(_event._end,function(){window.clearInterval(this.inteval);this.destroy();this.initBookStyle("flip_book")}.bind(this));this.slideModel.bind(_event._end,function(){window.clearInterval(this.inteval);this.destroy();this.initBookStyle("slide_book")}.bind(this));this.initInterval()},initInterval:function(){var b=10,c=getLanguage("lblSelectMode","Select View Mode Please.");this.inteval=window.setInterval(function(){this.description.html(c+ "("+b+")");b--;0>=b&&(window.clearInterval(this.inteval),this.destroy(),this.initBookStyle("flip_book"))}.bind(this),1E3)},onResize:function(){},destroy:function(){this.container&&(this.container.hide(),this.container.remove(),this.slideModel=this.flipModel=this.bookStyleBox=this.container=void 0)}}); function loadXMLString(b){var c=null;if(!window.DOMParser&&window.ActiveXObject)for(var d=["MSXML.2.DOMDocument.6.0","MSXML.2.DOMDocument.3.0","Microsoft.XMLDOM"],f=0;f
"); this.page=$("
");this.image=$("");this.leftBtn=$("");this.rightBtn=$("");this.thumbnail.append(this.image);this.thumbnail.append(this.page)},resetBtnSrc:function(){this.leftBtn.attr("src",this.leftButtonUrl);this.rightBtn.attr("src",this.rightButtonUrl)},initEvent:function(){this.leftBtn.onTap(function(){this.fillContent(this.currentPageIndex- 1)}.bind(this));this.rightBtn.onTap(function(){this.fillContent(this.currentPageIndex+1)}.bind(this))},fillContent:function(b){if(!(1>b||b>bookConfig.totalPageCount)){1==b?this.leftBtn.css({opacity:"0.4",cursor:"auto"}):this.leftBtn.css({opacity:"1",cursor:"pointer"});b==bookConfig.totalPageCount?this.rightBtn.css({opacity:"0.4",cursor:"auto"}):this.rightBtn.css({opacity:"1",cursor:"pointer"});this.currentPageIndex=b;var c=function(b){this.image.attr("src",b);this.image.css({width:this.imageWidth+ "px",height:"130px"})}.bind(this);fillImageAfterLoaded(b,"thumb",c);this.fillPage(b);this.callback&&this.callback(b)}},fillPage:function(b){this.page.html(b+"/"+bookConfig.totalPageCount)},getPageIndex:function(){return this.currentPageIndex}}),PictureListForm=Class({initHtml:function(){this.stage=$("
");this.stage.append(this.thumbnail);1");this.button=b;this.initPrintEvent()},getImageSizeForMM:function(b,c){return b/210>=c/297?{width:210,height:Math.floor(210*c/b)}:{width:Math.floor(297*b/c),height:297}},getImageSizeForInches:function(b,c){return b/7.18>=c/10.52?{width:7.18,height:Number.fixed(7.18*c/b,2)}:{width:Number.fixed(10.52*b/c,2),height:10.52}},getImageSizeForIE:function(b,c){return b/8>=c/11.3?{width:8,height:Number.fixed(8*c/b,2)}:{width:Number.fixed(11.3* b/c,2),height:11.3}},printPages:function(b){var c=0;this.printArea.empty();this.printArray=[];var d=function(d,g,l,m){d=$("
");l=$(l);l.css({width:"100%",height:"100%"});d.append(l);parseBool(bookConfig.PrintButtonVisible)&&""!=bookConfig.printWatermarkFile&&(f=$(""),f.css({"z-index":"201",left:"0",top:"0",position:"absolute"}),d.append(f),g=this.getImageSizeForInches(f[0].naturalWidth,f[0].naturalHeight),f.css({width:g.width+ "in",height:g.height+"in"}));g=isIE()?this.getImageSizeForIE(l[0].naturalWidth,l[0].naturalHeight):this.getImageSizeForInches(l[0].naturalWidth,l[0].naturalHeight);$(l).parent().css({width:g.width+"in",height:g.height+"in"});this.printArray[m]=d;c++;if(c==b.length){for(m=1;m");f.on("load",function(){for(var c=0;c"+getLanguage("frmPrintall","Print All Pages")+""),this.printCurrent=$("
"+getLanguage("frmPrintcurrent", "Print Current Pages")+"
"),this.printRange=$("
"+getLanguage("frmPrintRange","Print Range")+"
")):(this.printAll=$("
"+getLanguage("frmPrintall", "Print All Pages")+"
"),this.printCurrent=$("
"+getLanguage("frmPrintcurrent","Print Current Pages")+"
"),this.printRange=$("
"+getLanguage("frmPrintRange","Print Range")+"
"));this.printButton=$("
"+getLanguage("frmPrintbtn","Print")+"
");this.printButton.printType="printCurrent";this.analysis=new AnalysisPrint(this.printButton);this.pictureListForm=new PictureListForm},pickElements:function(b){b.printOnUrl=this.printOnUrl;b.printOffUrl=this.printOffUrl;b.printAll=this.printAll;b.printCurrent=this.printCurrent;b.printRange=this.printRange;b.printButton=this.printButton;b.pictureListForm=this.pictureListForm},initEvent:function(b){this.printAll.click(function(c){this.buttonEvent(b, c.delegateTarget)}.bind(this));this.printCurrent.click(function(c){this.buttonEvent(b,c.delegateTarget)}.bind(this));this.printRange.click(function(c){this.buttonEvent(b,c.delegateTarget)}.bind(this));this.printRange.find("input").on("input propertychange change",function(){this.refreshPrintButton()}.bind(this));this.printRange.find("input").bind("mousedown touchstart pointerdown mouseover mousemove touchmove touchstend",function(b){b.stopPropagation()})},buttonEvent:function(b,c){var d=b.stage.find(".on"); d.find("img").attr("src",this.printOffUrl);d.find("img")[0].colorChanged=!1;d.removeClass("on");$(c).find("img").attr("src",this.printOnUrl);$(c).find("img")[0].colorChanged=!1;$(c).addClass("on");d=$(c).attr("print");b.printButton.printType=d;this.refreshPrintButton();b.changeItemColor()},refreshPrintButton:function(){"printRange"!=this.printButton.printType||$("#print_range_num").val()?this.lightPrintButton():this.darkPrintButton()},lightPrintButton:function(){$(this.printButton).addClass("usable"); $(this.printButton).removeClass("disable");$(this.printButton).addClass("button_hover")},darkPrintButton:function(){"printRange"==this.printButton.printType&&($(this.printButton).removeClass("usable"),$(this.printButton).removeClass("button_hover"),$(this.printButton).addClass("disable"))},changeLanguage:function(){this.printAll.find(".title").html(getLanguage("frmPrintall","Print All Pages"));this.printCurrent.find(".title").html(getLanguage("frmPrintcurrent","Print Current Pages"));this.printRange.find(".title").html(getLanguage("frmPrintRange", "Print Range"));this.printRange.find("#print_range_num").attr("placeholder",getLanguage("frmPrintexample","Exzample:1,3-7,12"));this.printButton.html(getLanguage("frmPrintbtn","Print"))}}).extend(FormElements),PhonePrintElements=Class({create:function(b){this._super(b);this.printOnUrl=phoneBaseURL+"print_on_phone.png";this.printOffUrl=phoneBaseURL+"print_off_phone.png";this.fontColor=bookConfig.formBackgroundColor?bookConfig.formBackgroundColor:bookConfig.toolbarColor;this.initElements();this.initEvent(b); this.pickElements(b)},initElements:function(){this.rightToLeft?(this.printAll=$("
"+getLanguage("frmPrintall","Print All Pages")+"
"),this.printCurrent=$("
"+getLanguage("frmPrintcurrent","Print Current Pages")+"
"),this.printRange=$("
"+getLanguage("frmPrintRange","Print Range")+"
")):(this.printAll=$("
"+getLanguage("frmPrintall","Print All Pages")+"
"),this.printCurrent=$("
"+getLanguage("frmPrintcurrent","Print Current Pages")+"
"),this.printRange=$("
"+getLanguage("frmPrintRange","Print Range")+"
"));this.printButton=$("
"+getLanguage("frmPrintbtn", "Print")+"
");this.printButton.printType="printCurrent";this.analysis=new AnalysisPrint(this.printButton);this.pictureListForm=new PictureListForm},getOffIcon:function(){return''}, getOnIcon:function(){return''}, buttonEvent:function(b,c){var d=b.stage.find(".on");d.find(".print_icon").html(this.getOffIcon());d.removeClass("on");$(c).find(".print_icon").html(this.getOnIcon());$(c).addClass("on");d=$(c).attr("print");b.printButton.printType=d;this.refreshPrintButton()}}).extend(PrintElements),PcPrintFrame=Class({create:function(b){this.elements=new PrintElements(this);this._super(b)},onCreate:function(){this.initColorCss();this._super()},initColorCss:function(){this.stage.css({"background-color":this.mainColor, color:this.fontColor})},initHtml:function(){this._super()},changeIconColor:function(){this._super();this.pictureListForm.leftBtn.changeButtonColor(this.fontColor);this.pictureListForm.rightBtn.changeButtonColor(this.fontColor);this.changeItemColor()},resetColorChanged:function(){this._super();this.printAll.find("img")[0].colorChanged=!1;this.printCurrent.find("img")[0].colorChanged=!1;this.printRange.find("img")[0].colorChanged=!1;this.pictureListForm&&(this.pictureListForm.leftBtn[0].colorChanged= !1,this.pictureListForm.rightBtn[0].colorChanged=!1)},resetIconSrc:function(){this._super();this.stage.find(".item").find("img").attr("src",this.elements.printOffUrl);this.stage.find(".on").find("img").attr("src",this.elements.printOnUrl);this.pictureListForm&&this.pictureListForm.resetBtnSrc()},changeItemColor:function(){this.printCurrent.changeButtonColor(this.fontColor);this.printRange.changeButtonColor(this.fontColor);this.printAll.changeButtonColor(this.fontColor)},onShow:function(){this.changeIconColor()}}).extend(FadeOutFadeForm), PhonePrintForm=Class({create:function(b){this.elements=new PhonePrintElements(this);this._super(b)},onCreate:function(){this.printAll.css({"background-color":this.fontColor,color:this.mainColor});this.printCurrent.css({"background-color":this.fontColor,color:this.mainColor});this.printRange.css({"background-color":this.fontColor,color:this.mainColor});this.printButton.css({"background-color":this.fontColor,color:this.mainColor});this.favicon&&this.favicon.changeButtonColor(this.fontColor);this._super()}, initHtml:function(){this.title.append(this.close);this.stage.append(this.title);this.stage.append(this.printAll);this.stage.append(this.printCurrent);this.stage.append(this.printRange);this.stage.append(this.printButton)},changeItemColor:function(){},onShow:function(){this.favicon&&this.favicon.changeButtonColor(this.fontColor)},initEvent:function(){}}).extend(PhoneFormFrame),DownloadElements=Class({create:function(b){this._super(b);this.downloadOnUrl=form_icons.print_on?"data:image/png;base64,"+ form_icons.print_on:uiBaseURL+"print_on.png";this.downloadOffUrl=form_icons.print_off?"data:image/png;base64,"+form_icons.print_off:uiBaseURL+"print_off.png";this.initConfig();this.initElements();this.initEvent(b);this.pickElements(b)},initConfig:function(){this.downloadconfig=window.downloadconfig},initElements:function(){this.rightToLeft?(this.downloadAll=$("
"+getLanguage("DownloadFullPublication","Full Publication")+"
"),this.downloadCurrent=$("
"+getLanguage("DownloadCurrentPage","Current Page")+" "+this.pageIndex+"
"),this.downloadAttachments=$("
"+getLanguage("DownloadAttachedFiles","Attached Files")+"
")):(this.downloadAll=$("
"+getLanguage("DownloadFullPublication","Full Publication")+"
"),this.downloadCurrent=$("
"+getLanguage("DownloadCurrentPage","Current Page")+""+this.pageIndex+"
"),this.downloadAttachments= $("
"+getLanguage("DownloadAttachedFiles","Attached Files")+"
"));this.downloadButton=$("
"+getLanguage("btnDownload","Download")+"
");this.downloadButton.downloadType=downloadconfig.pdf?"downloadCurrent":"downloadAttachments";this.selectAttachments=$("");var b=this.downloadconfig.attachments;if(b&& 0"+d.name+""))}this.pictureListForm=new PictureListForm(this.gotoPage.bind(this));this.pageIndex=this.pictureListForm.getPageIndex()},gotoPage:function(b){this.pageIndex=b;this.downloadCurrent.find(".page").html(b)},pickElements:function(b){b&&(b.downloadAll=this.downloadAll,b.downloadCurrent=this.downloadCurrent,b.downloadAttachments=this.downloadAttachments,b.selectAttachments=this.selectAttachments, b.downloadButton=this.downloadButton,b.pictureListForm=this.pictureListForm)},initEvent:function(b){this.downloadAll.click(function(c){this.buttonEvent(b,c.delegateTarget)}.bind(this));this.downloadCurrent.click(function(c){this.buttonEvent(b,c.delegateTarget)}.bind(this));this.downloadAttachments.click(function(c){this.buttonEvent(b,c.delegateTarget)}.bind(this));this.downloadButton.click(function(b){b="";"downloadAll"==this.downloadButton.downloadType&&(b=this.downloadconfig.pdf.url);"downloadCurrent"== this.downloadButton.downloadType&&(b=getPageDir(this.pageIndex,"large"));"downloadAttachments"==this.downloadButton.downloadType&&(b=this.selectAttachments[0].value);window.open(b,"_blank")}.bind(this))},buttonEvent:function(b,c){var d=b.stage.find(".on");d.find("img").attr("src",this.downloadOffUrl);d.find("img")[0].colorChanged=!1;d.removeClass("on");$(c).find("img").attr("src",this.downloadOnUrl);$(c).find("img")[0].colorChanged=!1;$(c).addClass("on");d=$(c).attr("download");b.downloadButton.downloadType= d;b.changeItemColor()},changeLanguage:function(){this.downloadAll.find(".title").html(getLanguage("DownloadFullPublication","Full Publication"));this.downloadCurrent.find(".title").html(getLanguage("DownloadCurrentPage","Current Page"));this.downloadAttachments.find(".title").html(getLanguage("DownloadAttachedFiles","Attached Files"));this.downloadButton.html(getLanguage("btnDownload","Download"))}}).extend(FormElements),PcDownloadFrame=Class({create:function(b){this.elements=new DownloadElements(this); this._super(b)},onCreate:function(){this.initColorCss();this._super()},initColorCss:function(){this.stage.css({"background-color":this.mainColor,color:this.fontColor});this.borderColor=this.mainColorObj.reduce(26);this.itemBgColor=this.mainColorObj.add(24)},initHtml:function(){this._super()},initEvent:function(){this._super()},onShow:function(){this.changeIconColor()},gotoPage:function(b){}}).extend(FadeOutFadeForm),PhoneDownloadForm=Class({create:function(b){this.elements=new DownloadElements(this); this._super(b)},onCreate:function(){this.content.find(".item").css({"background-color":this.fontColor,color:this.mainColor});this.selectContent.css({"background-color":this.fontColor,color:this.mainColor});this.downloadButton.css({"background-color":this.fontColor,color:this.mainColor});this._super()},initHtml:function(){this.title.append(this.close);this.stage.append(this.title);this.downloadContent=$("
");this.content=$("
");this.content1= $("
");downloadconfig.pdf&&(this.content1.append(this.downloadAll),this.content1.append(this.downloadCurrent));this.selectContent=$("
");this.selectContent.append(this.selectAttachments);downloadconfig.attachments&&0"); this.content2.append(this.pictureListForm.getDom());this.content.append(this.content2);this.content.append(this.content1);this.downloadContent.append(this.content);this.stage.append(this.downloadContent)},changeIconColor:function(){this._super();this.changeItemColor()},changeItemColor:function(){this.downloadCurrent.changeButtonColor(this.mainColor);this.downloadAttachments.changeButtonColor(this.mainColor);this.downloadAll.changeButtonColor(this.mainColor);this.pictureListForm.leftBtn.changeButtonColor(this.fontColor); this.pictureListForm.rightBtn.changeButtonColor(this.fontColor)},onShow:function(){this.favicon&&this.favicon.changeButtonColor(this.fontColor);this.changeItemColor()},gotoPage:function(b){this.pictureListForm.fillContent(b)},initEvent:function(){}}).extend(PhoneFormFrame);global.textForPages||(global.textForPages=[]);global.positionForPages||(global.positionForPages=[]); var highlightSearchFun=function(b,c){if(0!=positionForPages.length&&b){var d=!1;window.frmSearch&&frmSearch.visible&&0!=frmSearch.getList().length||(d=!0);var f=search_Text;""==f&&(d=!0);if(!0!=d||isPhone()||isPad()){for(var g,d=0;dm;m++)l[m]=h[k+m];g.addHighlight(l);k+=4}b.css({display:"block"})}}else clearHighlightFun(b)}},clearHighlightFun=function(b){b.css({"background-image":""});b.css({display:"none"});b.empty()},search_Text="",SearchElements=Class({create:function(b){this._super(b);this.callBack=b;this.initElements();this.initEvent(b);this.pickElements(b)},initElements:function(){this.searchButtonUrl= bookConfig.SearchButtonIcon?bookConfig.SearchButtonIcon:form_icons.search_form?"data:image/png;base64,"+form_icons.search_form:uiBaseURL+"search_form.png";this.searchList=[];this.searchText="";this.input=$("");bookConfig.RightToLeft&&this.input.attr("dir","rtl");this.searchButton=$("");this.searchResult=$("

");this.initSwiper()}, initSwiper:function(){this.searchSwiper=$("
");this.searchSwiperList=$("
");this.searchSwiper.append(this.searchSwiperList);this.initPageHtml();isPhone()||isPad()?this.searchSwiper.css({"overflow-y":"auto","overflow-x":"hidden","-webkit-overflow-scrolling":"touch"}):(this.searchSwiper.css({overflow:"hidden"}),this.progress=$("
"),this.progressBar=$("
"),this.searchSwiper.append(this.progress), this.progress.append(this.progressBar),this.searchSwiper.scroll({},Direction.top))},initPageHtml:function(){this.searchPageSwiper=$("");this.pageResult=$("

");this.pageItem=$("
");this.thumb=$("");(isPhone()||isPad())&&this.thumb.css({width:"80px"});this.thumb.onTap(function(){this.thumb.attr("id")&&((isPhone()||isPad()|| global.frmSearch)&&global.frmSearch.hide(),gotoPageFun(this.thumb.attr("id"),!1,"search"))}.bind(this));this.searchPageSwiper.append(this.pageResult).append(this.pageItem.append(this.thumb))},refreshItems:function(b){for(var c=0;c"+b+" :"+getLanguage("lblPage","Page")):this.pageResult.html(getLanguage("lblPage","Page")+": "+b+""),this.thumb.attr("id",c),fillImageAfterLoaded(c,"thumb",function(b){this.thumb.attr("src",b)}.bind(this))):(this.afterSearchText(), this.searchPageSwiper.css({display:"none"}))},doSearch:function(b){!b.length&&!isNaN(this.searchText)&&this.searchText<=bmtConfig.totalPageCount?this.searchResult.css({display:"none"}):this.searchResult.css({display:"block"});this.searchSwiper.hideLoading();this.searchList=b;this.searchSwiperList.empty();rightToLeft?this.searchResult.html(""+this.searchList.length+" "+getLanguage("lblPages","Found Pages")):this.searchResult.html(getLanguage("lblPages", "Found Pages")+" "+this.searchList.length+"");this.refreshSwiper(this.searchSwiperList,this.searchList);this.refresh();BookInfo.getBook().addSearchHighlight()},getSearchText:function(){return this.searchText},getList:function(){return this.searchList},clear:function(){search_Text=this.searchText="";this.input.val("");this.searchList=[];BookInfo.getBook().clearSearchHighlight();this.searchSwiperList.empty();this.searchResult.html(getLanguage("frmSearchPrompt", "Enter key to search."));this.refresh()},pickElements:function(b){b.searchButtonUrl=this.searchButtonUrl;b.searchList=this.searchList;b.searchText=this.searchText;b.input=this.input;b.searchButton=this.searchButton;b.searchResult=this.searchResult;b.searchSwiper=this.searchSwiper;b.searchSwiperList=this.searchSwiperList;b.progress=this.progress;b.progressBar=this.progressBar;b.searchPageSwiper=this.searchPageSwiper;b.pageResult=this.pageResult;this.afterSearchThumbs=b.afterSearchThumbs;this.afterSearchText= b.afterSearchText;b.search=this.search.bind(this)},changeLanguage:function(){this.input.attr("placeholder",FormInfo.getFormTitle("search"));toolBar.edtPreSearch&&toolBar.edtPreSearch.find("input")[0]&&toolBar.edtPreSearch.find("input").val(getLanguage("btnSearch","Search"))}}).extend(FormElements),PcSearchFrame=Class({create:function(b){this.elements=new SearchElements(this);this._super(b)},onCreate:function(){this.initColorCss()},initColorCss:function(){this.stage.css({"background-color":this.mainColor, color:this.fontColor})},initHtml:function(){this.stage.addClass("win10_border");this.stage.append(this.title);this.favicon&&(bookConfig.RightToLeft?this.title.append(this.favicon):this.title.prepend(this.favicon));bookConfig.SearchButtonIcon&&(this.searchButton=$(""));this.stage.append(this.close); this.stage.append(this.input);this.stage.append(this.searchButton);this.stage.append(this.searchPageSwiper);this.stage.append(this.searchResult);this.stage.append(this.searchSwiper);this.parent.append(this.stage)},newSearchItem:function(b,c){return new PcSearchItem(b,c)},onResize:function(){var b=Math.max(windowHeight-bookConfig.topMargin-bookConfig.bottomMargin-toolBar.getHeight(),1);Math.max(windowWidth-bookConfig.leftMargin-bookConfig.rightMargin-toolBar.getWidth(),1);var c=toolBar.getTopHeight()+ 10;this.width=250;this.height=b-87;this.maxHeight=this.height-87;this.stage.css({height:this.height+"px",top:c+"px"});this.searchSwiper.css("height",this.maxHeight+"px");this.elements.refresh()},afterSearchThumbs:function(){this.height=Math.max(windowHeight-bookConfig.topMargin-bookConfig.bottomMargin-toolBar.getHeight(),1)-87;this.searchSwiper.css("height",this.height-287+"px")},afterSearchText:function(){this.height=Math.max(windowHeight-bookConfig.topMargin-bookConfig.bottomMargin-toolBar.getHeight(), 1)-87;this.searchSwiper.css("height",this.height-87+"px");this.searchPageSwiper.css({display:"none"})},getList:function(){return this.elements.getList()},onShow:function(){this.changeIconColor();this.input.focus();BookInfo.getBook().addSearchHighlight()},onHide:function(){BookInfo.getBook().clearSearchHighlight()}}).extend(SlideForm),loadSearchFlag=!1,AnalysisSearch=Class({create:function(b,c){this.callback=c;this.results=[];this.search(b)},search:function(b){if(!1==loadSearchFlag)if(isTouchDevice())loadJavascript(bookConfig.searchTextJS, function(){loadSearchFlag=!0;this.doSearch(b)}.bind(this),function(){loadSearchFlag=!0;this.doSearch(b)}.bind(this));else{var c=!1,d=!1,f=function(){c&&d&&(loadSearchFlag=!0,this.doSearch(b))}.bind(this);loadJavascript(bookConfig.searchTextJS,function(){c=!0;f()},function(){c=!0;f()});var g=String.format(bookConfig.searchPositionJS,BookInfo.getCurrentPageIndex());loadJavascript(g,function(){d=!0;f()},function(){d=!0;f()})}else this.doSearch(b)},doSearch:function(b){this.results=searchFromPages(textForPages, b);this.callback(this.results)},getList:function(){return this.results},clear:function(){this.results=[]}}),SearchItem=Class({create:function(b,c){this.fontColor=c.fontColor;this.parent=b;this.parm=c;this.sDescription=this.handleData(c.search_text,c.searchText);this.index=c.search_page;this.sPage=getShownPageNumber(c.search_page);this.sPageTitle=getLanguage("lblPage","Page");this.initHtml();this.initEvent()},initHtml:function(){this.initElement();this.item.append(this.page);this.item.append(this.description); this.parent.append(this.item)},initElement:function(){this.item=$("
");rightToLeft?(this.page=$("
"+this.sPage+":"+this.sPageTitle+"
"),LanguageTool.isRightToLeft(this.parm.search_text)?this.description=$("
"+this.sDescription+"
"):this.description=$("
"+this.sDescription+"
")):(this.page=$("
"+this.sPageTitle+":"+this.sPage+"
"),this.description=$("
"+ this.sDescription+"
"))},handleData:function(b,c){var d;d=HTMLString.toLabel(b);d=handleData(d,c);return d=HTMLString.riseAWord(d,c,bookConfig.searchKeywordFontColor)},initEvent:function(){this.item.bind("mouseover",function(){this.item.css({"background-color":Color(this.fontColor).rgba(0.25)})}.bind(this));this.item.bind("mouseleave",function(){this.item.css({"background-color":"transparent"})}.bind(this));this.item.onTap(function(){gotoPageFun(this.index,!1,"search");BookInfo.getBook().addSearchHighlight(); (isPhone()||isPad())&&global.frmSearch.hide()}.bind(this))}}),PhoneSearchItem=Class({initEvent:function(){this.item.bind("mouseover",function(){this.item.css({"background-color":Color(this.fontColor).rgba(0.25)})}.bind(this));this.item.bind("mouseleave",function(){this.item.css({"background-color":"transparent"})}.bind(this));this.item.onTap(function(){gotoPageFun(this.index,!1,"search");BookInfo.getBook().addSearchHighlight();(isPhone()||isPad())&&setTimeout(function(){global.frmSearch.hide()}.bind(this), 1>bookConfig.flippingTime?1E3*bookConfig.flippingTime+100:bookConfig.flippingTime+100)}.bind(this))}}).extend(SearchItem),PhoneSearchForm=Class({create:function(b){this.elements=new SearchElements(this);this._super(b)},onCreate:function(){this.stage.css({color:this.fontColor,"background-color":this.mainColor});this.input.css({color:"#000000",opacity:1});var b=new Color(this.mainColor);String.format("%s %s %s %s",b.reduce(40),b.reduce(40),b.add(40),b.add(40));isPhone()||isPad()?this.searchSwiper.css({"overflow-y":"auto", "overflow-x":"hidden","-webkit-overflow-scrolling":"touch"}):this.searchSwiper.css({overflow:"hidden"});this.favicon&&this.favicon.changeButtonColor(this.fontColor);this._super()},initHtml:function(){bookConfig.SearchButtonIcon&&(this.searchButton=$(""));this.container=$("
");this.title.append(this.close); this.stage.append(this.title);this.stage.append(this.input);this.stage.append(this.searchButton);this.searchSwiper.css({height:"auto"}).find(".swiper").css({position:"relative"});this.stage.append(this.container);this.container.append(this.searchPageSwiper).append(this.searchResult).append(this.searchSwiper)},newSearchItem:function(b,c){return new PhoneSearchItem(b,c)},getList:function(){return this.elements.getList()},onShow:function(){this.favicon&&this.favicon.changeButtonColor(this.fontColor)}, hide:function(){this._super();this.input.blur()},afterSearchThumbs:function(){this.height=windowHeight},afterSearchText:function(){this.height=windowHeight;this.searchPageSwiper.css({display:"none"})},onResize:function(){this._super();this.container.css("height",this.height-115+"px");this.searchPageSwiper.css("display");this.input.css("width",this.width-75+"px");this.elements.refresh()},initEvent:function(){}}).extend(PhoneFormFrame),LanguageElements=Class({create:function(b){this._super(b);this.initElements(); this.initEvent(b);this.pickElements(b)},initElements:function(){this.choosedUrl=uiBaseURL+"choosed.png";this.itemArray=[];this.scrollBox=$("
");for(var b=0;b
"+c+"
");b.toLowerCase()===bookConfig.language.toLowerCase()&& (d.addClass("focus"),this.currentItem=d);d.bind(_event._end,function(){this.refreshLanguage(b);this.currentItem=d;this.scrollBox.find(".focus").removeClass("focus");d.addClass("focus")}.bind(this));this.scrollBox.append(d);this.itemArray.push(d)}},refreshLanguage:function(b){bookConfig.language=b;changeLanguage(bookConfig.language)},initEvent:function(b){},pickElements:function(b){b.choosedUrl=this.choosedUrl;b.itemArray=this.itemArray;b.scrollBox=this.scrollBox},changeLanguage:function(){}}).extend(FormElements); Class("PcLanguageForm",{create:function(b){this.elements=new LanguageElements(this);this._super(b)},onCreate:function(){this.close.changeButtonColor(this.color);this._super()},initEvent:function(){this._super();this.stage.bind(_event._end,function(){this.hide()}.bind(this));for(var b=0;b
");var b=this.choosedUrl,c=getLanguage("closeFlipSound","Close Flip Sound"),d=getLanguage("closeBackgroundSound","Close Background Sound");this.flipSoundBtn=$("
"+c+"
");this.backgroundSoundBtn=$("
"+ d+"
");bookConfig.FlipSound&&this.scrollBox.append(this.flipSoundBtn);bookConfig.BackgroundSoundButtonVisible&&bookConfig.BackgroundSoundURL&&this.scrollBox.append(this.backgroundSoundBtn)},initEvent:function(b){$(this.flipSoundBtn.find("img")).bind(_event._down,function(b){b.preventDefault()});$(this.backgroundSoundBtn.find("img")).bind(_event._down,function(b){b.preventDefault()});this.flipSoundBtn.bind(_event._down,function(b){flipSoundIsPlaying=!flipSoundIsPlaying; this.changeFlipSoundBtnCase()}.bind(this));this.backgroundSoundBtn.bind(_event._down,function(){window.bgSound&&bgSound.playOrPause();this.changeBackgroundBtnCase()}.bind(this))},changeFlipSoundBtnCase:function(){flipSoundIsPlaying?(this.flipSoundBtn.find("img").attr("src",this.choosedUrl),playFlipSound(),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"flip sound",getLanguage("tmpl_Flipsoundon","Open Flip Sound")])):(this.flipSoundBtn.find("img").attr("src",this.unChoosedUrl),BookEvent.trigger("clickButton", [BookInfo.getCurrentPageIndex(),"flip sound",getLanguage("tmpl_Flipsoundoff","Close Flip Sound")]))},changeBackgroundBtnCase:function(){!0!==isPlaying?(this.backgroundSoundBtn.find("img").attr("src",this.unChoosedUrl),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"background sound",getLanguage("tmpl_Backgoundsoundoff","Close Background Sound")])):(this.backgroundSoundBtn.find("img").attr("src",this.choosedUrl),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"background sound", getLanguage("tmpl_Backgoundsoundon","Open Background Sound")]))},pickElements:function(b){b.choosedUrl=this.choosedUrl;b.unChoosedUrl=this.unChoosedUrl;b.scrollBox=this.scrollBox;b.flipSoundBtn=this.flipSoundBtn;b.backgroundSoundBtn=this.backgroundSoundBtn;b.changeFlipSoundBtnCase=this.changeFlipSoundBtnCase;b.changeBackgroundBtnCase=this.changeBackgroundBtnCase},changeLanguage:function(){flipSoundIsPlaying?this.flipSoundBtn.find(".title").html(getLanguage("tmpl_Flipsoundon","Open Flip Sound")):this.flipSoundBtn.find(".title").html(getLanguage("tmpl_Flipsoundoff", "Close Flip Sound"));!0===isPlaying?this.backgroundSoundBtn.find(".title").html(getLanguage("tmpl_Backgoundsoundoff","Close Background Sound")):this.backgroundSoundBtn.find(".title").html(getLanguage("tmpl_Backgoundsoundon","Open Background Sound"))}}).extend(FormElements),PhoneSettingForm=Class({create:function(b){this.elements=new SettingElements(this);this._super(b)},onCreate:function(){this.favicon&&this.favicon.changeButtonColor(this.fontColor);this._super()},initHtml:function(){this.title.append(this.close); this.stage.append(this.title);this.stage.append(this.scrollBox)},initEvent:function(){},onShow:function(){this.favicon&&this.favicon.changeButtonColor(this.fontColor)},changeLanguage:function(){this._super();this.elements.changeLanguage()}}).extend(PhoneFormFrame),PcSoundSettingForm=Class({create:function(b){this._super(b)},onCreate:function(){this.stage.css({"background-color":"transparent"});this._super()},initHtml:function(){this.flipSoundOnImage=uiBaseURL+"flipSoundOn.png";this.flipSoundOffImage= uiBaseURL+"flipSoundOff.png";this.backSoundOnImage=uiBaseURL+"backSoundOn.png";this.backSoundOffImage=uiBaseURL+"backSoundOff.png";var b=getLanguage("tmpl_Flipsoundon","Open Flip Sound"),c=getLanguage("tmpl_Backgoundsoundon","Open Background Sound");this.backgroundSoundBtn=$("

"+c+"

");this.flipSoundBtn=$("

"+b+"

");this.stage.append(this.backgroundSoundBtn); this.stage.append(this.flipSoundBtn)},initEvent:function(b){this.flipSoundBtn.bind(_event._end,function(){flipSoundIsPlaying=!flipSoundIsPlaying;this.changeFlipSoundBtnCase()}.bind(this));this.backgroundSoundBtn.bind(_event._end,function(){window.bgSound&&bgSound.playOrPause();this.changeBackgroundBtnCase()}.bind(this))},changeFlipSoundBtnCase:function(){flipSoundIsPlaying?(this.flipSoundBtn.find("img").attr("src",this.flipSoundOnImage),this.flipSoundBtn.find(".title").html(getLanguage("tmpl_Flipsoundon", "Open Flip Sound")),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"flip sound",getLanguage("tmpl_Flipsoundon","Open Flip Sound")]),playFlipSound(),StateSynchronous.instance().findButtons("BackgroundSoundButton").each(function(b){b.setAsSoundOn();b.executeCallback()})):(this.flipSoundBtn.find("img").attr("src",this.flipSoundOffImage),this.flipSoundBtn.find(".title").html(getLanguage("tmpl_Flipsoundoff","Close Flip Sound")),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(), "flip sound",getLanguage("tmpl_Flipsoundoff","Close Flip Sound")]),StateSynchronous.instance().findButtons("BackgroundSoundButton").each(function(b){b.setAsSoundOff();b.executeCallback()}))},changeBackgroundBtnCase:function(){!0!==isPlaying?(this.backgroundSoundBtn.find("img").attr("src",this.backSoundOffImage),this.backgroundSoundBtn.find(".title").html(getLanguage("tmpl_Backgoundsoundoff","Close Background Sound")),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"background sound", getLanguage("tmpl_Backgoundsoundoff","Close Background Sound")])):(this.backgroundSoundBtn.find("img").attr("src",this.backSoundOnImage),this.backgroundSoundBtn.find(".title").html(getLanguage("tmpl_Backgoundsoundon","Open Background Sound")),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"background sound",getLanguage("tmpl_Backgoundsoundon","Open Background Sound")]))},onShow:function(){},changeLanguage:function(){flipSoundIsPlaying?this.flipSoundBtn.find(".title").html(getLanguage("tmpl_Flipsoundon", "Open Flip Sound")):this.flipSoundBtn.find(".title").html(getLanguage("tmpl_Flipsoundoff","Close Flip Sound"));!0===isPlaying?this.backgroundSoundBtn.find(".title").html(getLanguage("tmpl_Backgoundsoundoff","Close Background Sound")):this.backgroundSoundBtn.find(".title").html(getLanguage("tmpl_Backgoundsoundon","Open Background Sound"))}}).extend(FadeOutFadeForm),HelpElements=Class({create:function(b){this._super(b);this.initElements();this.initEvent(b);this.pickElements(b)},initElements:function(){bookConfig.helpContentFileURL? this.image=$("
"):(this.helpUrl=form_icons.help_form?"data:image/png;base64,"+form_icons.help_form:uiBaseURL+"help_form.png",this.image=$(""),this.title1=$("

"+getLanguage("lblHelp1","Drag the page corner to view")+"

"),this.title2=$("

"+getLanguage("lblHelp2","Double click to zoom in, out")+"

"))},resetHelpIcon:function(b){bookConfig.helpContentFileURL||this.image.attr("src",this.helpUrl)},initEvent:function(b){}, pickElements:function(b){b.helpUrl=this.helpUrl;b.image=this.image;b.title1=this.title1;b.title2=this.title2},changeLanguage:function(){this.title1&&this.title1.html(getLanguage("lblHelp1","Drag the page corner to view"));this.title2&&this.title2.html(getLanguage("lblHelp2","Double click to zoom in, out"))}}).extend(FormElements),PcHelpFrame=Class({create:function(b){this.elements=new HelpElements(this);this._super(b)},onCreate:function(){this.initColorCss();bookConfig.helpContentFileURL&&(this.stage.css({width:bookConfig.helpWidth+ "px",height:bookConfig.helpHeight+"px"}),this.image.css({background:"url("+bookConfig.helpContentFileURL+") center no-repeat","background-size":"contain",width:"100%",height:"100%"}),this.content&&this.content.css({width:bookConfig.helpWidth-34+"px",height:bookConfig.helpHeight-59+"px"}));this._super();bookConfig.showHelpContentAtFirst?this.show():this.hide()},initColorCss:function(){this.stage.css({"background-color":this.mainColor,color:this.fontColor})},resetColorChanged:function(){this._super(); !bookConfig.helpContentFileURL&&this.image&&(this.image[0].colorChanged=!1)},resetIconSrc:function(b){this._super();!bookConfig.helpContentFileURL&&this.image&&this.elements.resetHelpIcon(this.fontColor)},changeIconColor:function(){this._super();!bookConfig.helpContentFileURL&&this.image&&this.image.changeButtonColor(this.fontColor)},initHtml:function(){this._super()},onShow:function(){this.changeIconColor()}}).extend(FadeOutFadeForm); Class("SharePoster",{create:function(b){this.parent=b;this.initConfig();this.initHtml();this.initCss();this.initEvent()},initHtml:function(){this.pContainer=$("
");this.initReadyHtmlPanel();this.initPosterImgPanel();this.parent.append(this.pContainer)},initConfig:function(){this.height=windowHeight-20;this.width=0.66*this.height;var b=windowWidth-20;this.width>b&&(this.width=b,this.height=this.width/0.66);this.scale=this.width/684},initReadyHtmlPanel:function(){this.canvas= $("");this.ctx=this.canvas[0].getContext("2d");this.thumb=$("");this.cvsBg=$("");this.qrcodeBox=$("
"); this.qrcodeBox.qrcode({width:100,height:100,render:"image",text:window.location.href});this.pContainer.append(this.canvas)},initPosterImg:function(){this.beforeCreatePoster();this.canvas[0].width=684;this.canvas[0].height=1036;this.loadImgFun(this.thumb,function(){this.loadImgFun(this.cvsBg,this.drawPoster.bind(this))}.bind(this))},loadImgFun:function(b,c){var d=$(b);if(d[0].complete)c&&c();else d.on("load",function(){c&&c()}.bind(this))},drawPoster:function(){var b=window.document.title,c=getImageConfig(this.thumb[0], 556,781);this.ctx.drawImage(this.cvsBg[0],0,0,684,1036);this.drawBottomShadow(c,64,55);this.ctx.drawImage(this.thumb[0],c.left+64,c.top+55,c.width,c.height);this.drawCvsBorder(c,64,55);this.drawLeftShadow(c,64,55);this.drawTitleText(b,"20 Arial");this.ctx.fillStyle="#ffffff";this.ctx.fillRect(308,936,1,60);this.drawAlertText();this.drawQrcode();try{this.afterCreatedPoster();var d=this.canvas[0].toDataURL("image/png",1);this.posterImg.attr("src",d);isIE()?this.pcDownload.bind("click",function(){if(navigator.msSaveBlob)return navigator.msSaveBlob(this.getDataURLtoBlob(d), "poster.png")}.bind(this)):(this.pcDownload.attr("href",d),this.pcDownload.attr("download","poster"));this.hasPoster=!0}catch(f){this.isloadFail=!0,this.afterFailLoad(),console.log(f)}},getDataURLtoBlob:function(b){var c=b.split(",");b=c[0].match(/:(.*?);/)[1];for(var c=atob(c[1]),d=c.length,f=new Uint8Array(d);d--;)f[d]=c.charCodeAt(d);return new Blob([f],{type:b})},drawBottomShadow:function(b,c,d){this.ctx.save();this.ctx.shadowBlur=40;this.ctx.shadowColor="rgba(11,11,11,0.7)";this.ctx.fillStyle= "#ffffff";this.ctx.shadowOffsetY=20;this.ctx.fillRect(b.left+c+0.03*b.width,d+b.top+b.height-147,0.94*b.width,146);this.ctx.restore()},drawLeftShadow:function(b,c,d){this.ctx.save();if(rightToLeft){var f=this.ctx.createLinearGradient(b.left+c+b.width-8,d+b.top+b.height-b.height,b.left+c+b.width,d+b.top+b.height-b.height);f.addColorStop(0,"rgba(255,255,255,0)");f.addColorStop(1,"rgba(58,58,58,0.8)")}else f=this.ctx.createLinearGradient(b.left+c,d+b.top+b.height-b.height,b.left+c+8,d+b.top+b.height- b.height),f.addColorStop(0,"rgba(58,58,58,0.8)"),f.addColorStop(1,"rgba(255,255,255,0)");this.ctx.fillStyle=f;this.ctx.fillRect(b.left+c+b.width-8,d+b.top+b.height-b.height,8,b.height);this.ctx.restore()},drawCvsBorder:function(b,c,d){for(var f=b.height,g=0;5>g;g++)this.ctx.fillStyle=0==g%2?"#e5e5e5":"#f2f2f2",rightToLeft?this.ctx.fillRect(Math.floor(b.left+c-5+1*g),d+b.top+1*(5-g),1,f-2*(5-g)):this.ctx.fillRect(Math.floor(b.left+c+b.width+1*g),d+b.top+1*g,1,f-2*g)},drawTitleText:function(b,c){c&& (this.ctx.font="20px Arial");var d=this.ctx.measureText(b).width,f=15,g=957;this.ctx.textBaseline="top";if(274c)return d?g+"...":g;g=f;f+=textArr[b]}return f},drawAlertText:function(){this.ctx.font="20px Arial"; var b=954;this.ctx.textBaseline="top";this.ctx.fillStyle="#db9a67";var c=this.getLinitText(getLanguage("infLongPressToIndentify","Long press to identify QR code"),267,!0),d=this.getLinitText(getLanguage("infScanCodeToView","Scan code to read"),227,!0),f=323+(226-this.ctx.measureText(d).width)/2;if(getLanguage("infLongPressToIndentify")){b=943;this.ctx.font="14px Arial";var g=323+(226-this.ctx.measureText(c).width)/2;this.ctx.fillText(c,g,b);this.ctx.font="20px Arial";this.ctx.fillText(d,f,b+26)}else this.ctx.fillText(d, 323,b)},drawQrcode:function(){this.ctx.fillStyle="#ffffff";this.ctx.fillRect(561,911,110,110);this.ctx.drawImage(this.qrcodeBox.find("img")[0],566,916,100,100);var b=new Image;(b.src=bookConfig.appLogoIcon)&&this.ctx.drawImage(b,611,961,20,20)},getSrc:function(){var b=getPageDir(1,"normal");-1");this.pcDownload=$(""+getLanguage("btnDownloadPosterPrompt","Click to download the poster")+"");this.alertText=$("
"+getLanguage("infLongPressToSavePoster","Long press to identify QR code")+"
");this.closeBtn=$(''+ phoneSvgIcons.close+"");this.loading=$("");this.posterImgOuter=$("
");this.posterImg=$("");this.popPosterBox=$("
");this.popPosterBg=$("
");this.topTitle.append(this.alertText).append(this.closeBtn).append(this.pcDownload);this.posterImgOuter.append(this.posterImg).append(this.topTitle); this.popPosterBox.append(this.popPosterBg).append(this.posterImgOuter).append(this.loading);this.pContainer.append(this.popPosterBox);this.posterImgOuter.fadeOut()},onResize:function(){this.initConfig();this.resizeCss()},showPosterHtml:function(){this.canvas.css({display:"block",left:"50%",top:"50%",transform:"translate(-50%,-50%) scale("+this.scale+")"})},initCss:function(){this.posterImgOuter.css({overflow:"hidden",transform:"translate(-50%,-50%)","-webkit-transform":"translate(-50%,-50%)",left:"50%", top:"50%","z-index":"1111",position:"absolute",display:"none",width:684*this.scale+"px",height:1036*this.scale+"px"});this.posterImg.css({width:684*this.scale+"px",height:1036*this.scale+"px"});this.pContainer.css({display:"none","z-index":"1001",position:"absolute",left:"0",top:"0",width:"100%",height:"100%",background:"rgba(11,11,11,0.7)"});this.popPosterBox.css({"z-index":"1001",position:"absolute",left:"0",top:"0",width:"100%",height:"100%"});this.popPosterBg.css({"z-index":"0",position:"absolute", left:"0",top:"0",width:"100%",height:"100%"});isPhone()||isPad()?(this.topTitle.css({"-webkit-transform":"translateY(0)",transform:"translateY(0)"}),this.alertText.css({display:"block"}),this.pcDownload.css({display:"none"})):(this.topTitle.css({"-webkit-transform":"translateY(-30px)",transform:"translateY(-30px)"}),this.pcDownload.css({display:"block"}),this.alertText.css({display:"none"}))},resizeCss:function(){this.alertText.css({width:this.width-37+"px"});this.posterImgOuter.css({width:684*this.scale+ "px",height:1036*this.scale+"px"});this.posterImg.css({width:684*this.scale+"px",height:1036*this.scale+"px"});this.canvas.css({"-webkit-transform":"translate(-50%,-50%) scale("+this.scale+")",transform:"translate(-50%,-50%) scale("+this.scale+")"})},initEvent:function(){this.popPosterBg.bind(_event._down,function(b){b.stopPropagation();this.pContainer.fadeOut()}.bind(this));this.posterImg.on("load",function(){this.posterImgOuter.fadeIn()}.bind(this));isPC()&&(this.closeBtn.bind(_event._enter,function(b){b.stopPropagation(); this.closeBtn.css({opacity:"0.65"})}.bind(this)),this.closeBtn.bind(_event._leave,function(b){b.stopPropagation();this.closeBtn.css({opacity:"1"})}.bind(this)),this.pcDownload.bind(_event._enter,function(b){b.stopPropagation();this.pcDownload.css({opacity:"0.65"})}.bind(this)),this.pcDownload.bind(_event._leave,function(b){b.stopPropagation();this.pcDownload.css({opacity:"1"})}.bind(this)));this.closeBtn.bind(_event._click,function(b){b.stopPropagation();this.hide()}.bind(this));isPhone()||isPad()|| (this.posterImgOuter.bind("mouseenter",function(){this.topTitle.css({transform:"translateY(0)","-webkit-transform":"translateY(0)"})}.bind(this)),this.posterImgOuter.bind("mouseleave",function(){this.topTitle.css({transform:"translateY(-30px)","-webkit-transform":"translateY(-30px)"})}.bind(this)))},beforeCreatePoster:function(){this.canvas.css({display:"block"});this.loading.css({display:"block"})},afterCreatedPoster:function(){this.canvas.css({display:"none",left:"110%",top:"110%",transform:"scale("+ this.scale+")"});this.loading.css({display:"none"})},afterFailLoad:function(){this.beforeCreatePoster();this.showPosterHtml();this.loading.css({display:"none"});this.canvas.css({"z-index":"1002"})},show:function(){this.pContainer.fadeIn();this.hasPoster?this.posterImgOuter.fadeIn():this.isloadFail?this.afterFailLoad():this.initPosterImg();global.sharePanel&&global.sharePanel.hide()},hide:function(){this.pContainer.fadeOut()}}); (function(b){if(bookConfig.ShareButtonVisible){var c=window.location.href.toLowerCase();!(-1=window.shareObj.length)return[];for(var b=window.shareObj.length,c=[],d=0;d"); b=$("");c.append(b);$("body").append(c);c.onClick(function(){c.hide();c.remove()})},ShareToFaceBook=function(b){var c=function(){var b=getHost(window.location.href).toLowerCase();if(-1'),c= $('
');g.append(c);$("body").append(g);g.bind("click",function(){g.unbind("click");g.remove()})}} function sharePhoneWeChat(){var b=$('
'),c=$('
');b.append(c);$("body").append(b);b.bind("click",function(){b.unbind("click");b.remove()})} (function(b){function c(b){if(!h)return b&&b();var c=document.createElement("script");c.onload=function(){b&&b()};c.onerror=function(){};c.src=1==+h?"//3gimg.qq.com/html5/js/qb.js":"//jsapi.qq.com/get?api=app.share";$("body").append(c)}function d(b){var d="";1==b.type?d=8:2==b.type?d=1:3==b.type?d=4:4==b.type?d=11:0==b.type&&(d="undefined");var f=function(){var c={url:b.url,title:b.title,description:b.desc,img_url:b.img,img_title:b.title,to_app:d,cus_txt:""};window.browser?browser.app&&browser.app.share(c): window.qb&&qb.share&&qb.share(c)};n?f():c(f)}var f,g,h,k,l,m,n;f=navigator.appVersion;g=1l&&1==m||h&&5.3>l&&1==m?h=0:h&&5.4>l&&2==m?h= 1:g&&(10.2>f&&1==m||9.7>f&&2==m)&&(g=0);c(function(){n=!0});b.mShare=function(b){this.check=function(b,c,d){g?b():h&&!k?b():k?c():d()};this.config=b;this.init=function(b){"undefined"!=typeof b&&(this.config.type=b);try{if(g){var c=this.config;b="";var f;c.type&&(2==m?1==c.type?b="WechatTimeline":2==c.type?b="WechatFriends":3==c.type?b="QQ":4==c.type?b="SinaWeibo":0==c.type&&(b="undefined"):1==m&&(1==c.type?b="kWeixinFriend":2==c.type?b="kWeixin":3==c.type?b="kQQ":4==c.type?b="kSinaWeibo":0==c.type&& (b="undefined")));f=[c.title,c.desc,c.url,b,"","",""];window.ucweb?ucweb.startRequest&&ucweb.startRequest("shell.page_share",f):window.ucbrowser&&ucbrowser.web_share&&ucbrowser.web_share.apply(null,f)}else h&&!k&&d(this.config)}catch(l){}}}})(this);function showPoster(){global.sharePoster||(global.sharePoster=new SharePoster(tmpContainer));global.sharePoster.show()} var PhoneShareItem=Class({create:function(b){b&&(this.info=b,this.initItem(),this.initEvent())},initItem:function(){-1"):this.info.type&&"copy"==this.info.type?(this.link=$(""),copyHref(this.link[0])):this.link=$("");this.item=$("
");this.logo=$("");this.title=$('
'+ this.info.title+"
");this.link.append(this.item);this.info.logo&&this.item.append(this.logo);this.item.append(this.title);this.item.css({color:this.info.fontColor})},initEvent:function(){this.link.bind("touchend",function(){BookEvent.trigger("share",[BookInfo.getCurrentPageIndex(),this.info.title,!1])}.bind(this));-1