var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b>>0,$jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE? $jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+c+"$"+e),$jscomp.defineProperty(d,$jscomp.propertyToPolyfillSymbol[e],{configurable:!0,writable:!0,value:b})))};$jscomp.initSymbol=function(){}; $jscomp.polyfill("Symbol",function(a){if(a)return a;var b=function(f,g){this.$jscomp$symbol$id_=f;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:g})};b.prototype.toString=function(){return this.$jscomp$symbol$id_};var c="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(f||"")+"_"+d++,f)};return e},"es6","es3"); $jscomp.polyfill("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;cc&&(c=Math.max(c+e,0));c=e}},"es6","es3"); $jscomp.polyfill("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=$jscomp.checkStringArgs(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g=f}},"es6","es3");$jscomp.checkEs6ConformanceViaProxy=function(){try{var a={},b=Object.create(new $jscomp.global.Proxy(a,{get:function(c,d,e){return c==a&&"q"==d&&e==b}}));return!0===b.q}catch(c){return!1}}; $jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy(); $jscomp.polyfill("WeakMap",function(a){function b(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),k=Object.seal({}),n=new a([[m,2],[k,3]]);if(2!=n.get(m)||3!=n.get(k))return!1;n.delete(m);n.set(k,4);return!n.has(m)&&4==n.get(k)}catch(p){return!1}}function c(){}function d(m){var k=typeof m;return"object"===k&&null!==m||"function"===k}function e(m){if(!$jscomp.owns(m,g)){var k=new c;$jscomp.defineProperty(m,g,{value:k})}}function f(m){if(!$jscomp.ISOLATE_POLYFILLS){var k=Object[m];k&&(Object[m]= function(n){if(n instanceof c)return n;Object.isExtensible(n)&&e(n);return k(n)})}}if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(a&&$jscomp.ES6_CONFORMANCE)return a}else if(b())return a;var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var h=0,l=function(m){this.id_=(h+=Math.random()+1).toString();if(m){m=$jscomp.makeIterator(m);for(var k;!(k=m.next()).done;)k=k.value,this.set(k[0],k[1])}};l.prototype.set=function(m,k){if(!d(m))throw Error("Invalid WeakMap key"); e(m);if(!$jscomp.owns(m,g))throw Error("WeakMap key fail: "+m);m[g][this.id_]=k;return this};l.prototype.get=function(m){return d(m)&&$jscomp.owns(m,g)?m[g][this.id_]:void 0};l.prototype.has=function(m){return d(m)&&$jscomp.owns(m,g)&&$jscomp.owns(m[g],this.id_)};l.prototype.delete=function(m){return d(m)&&$jscomp.owns(m,g)&&$jscomp.owns(m[g],this.id_)?delete m[g][this.id_]:!1};return l},"es6","es3");$jscomp.MapEntry=function(){}; $jscomp.polyfill("Map",function(a){function b(){if($jscomp.ASSUME_NO_NATIVE_MAP||!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),m=new a($jscomp.makeIterator([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var k=m.entries(),n=k.next();if(n.done||n.value[0]!=l||"s"!=n.value[1])return!1;n=k.next();return n.done||4!=n.value[0].x||"t"!=n.value[1]||!k.next().done?!1:!0}catch(p){return!1}} if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(a&&$jscomp.ES6_CONFORMANCE)return a}else if(b())return a;var c=new WeakMap,d=function(l){this.data_={};this.head_=g();this.size=0;if(l){l=$jscomp.makeIterator(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}};d.prototype.set=function(l,m){l=0===l?0:l;var k=e(this,l);k.list||(k.list=this.data_[k.id]=[]);k.entry?k.entry.value=m:(k.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:l,value:m},k.list.push(k.entry), this.head_.previous.next=k.entry,this.head_.previous=k.entry,this.size++);return this};d.prototype.delete=function(l){l=e(this,l);return l.entry&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.data_[l.id],l.entry.previous.next=l.entry.next,l.entry.next.previous=l.entry.previous,l.entry.head=null,this.size--,!0):!1};d.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=g();this.size=0};d.prototype.has=function(l){return!!e(this,l).entry};d.prototype.get=function(l){return(l= e(this,l).entry)&&l.value};d.prototype.entries=function(){return f(this,function(l){return[l.key,l.value]})};d.prototype.keys=function(){return f(this,function(l){return l.key})};d.prototype.values=function(){return f(this,function(l){return l.value})};d.prototype.forEach=function(l,m){for(var k=this.entries(),n;!(n=k.next()).done;)n=n.value,l.call(m,n[1],n[0],this)};d.prototype[Symbol.iterator]=d.prototype.entries;var e=function(l,m){var k=m&&typeof m;"object"==k||"function"==k?c.has(m)?k=c.get(m): (k=""+ ++h,c.set(m,k)):k="p_"+m;var n=l.data_[k];if(n&&$jscomp.owns(l.data_,k))for(l=0;lc&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c\n ',ZoomIn:'\n ',ZoomOut:'\n ',sharethis:'\n ',search:'\n ',autoPlay:' \n ',report:'\n ',firstPage:'\n ',previousPage:'\n ',nextPage:'\n ', lastPage:' \n ',moreBar:'\n \n ',instructions:'\n \n ',soundOff:'\n ',soundOn:' \n ',reader:'\n ',languageChange:'\n \n '};a={about:'', addBookmark:' ', annotation:'', arrow_down:'',arrow_right:' ',autoPlay:' ', backward:' ', bookmark:' ', close:' ', download:' ', firstPage:' ', forward:' ', gotoPage:'',help:' ', home:' ', instructions:' ', languageChange:' ', lastPage:' ', moreBar:' ', nextPage:' ', phoneEmail:' ', phoneWeChat:' ', previousPage:' ', print:' ', report:' ', search:' ', settings:' ', sharethis:' ', shoppingCart:' ', soundOff:' ', soundOn:' ', stopAutoPlay:' ', tableOfContent:' ', tel:' ', text:' ', thumbnails:' ', ZoomIn:' ', ZoomOut:' ', doubleSinglePage:' ', videoGallery:' ', fullscreen:'', exitFullscreen:'', phonePageFlip:'', shareHelpSvg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGlkPSLlm77lsYJfMSIgdmlld0JveD0iMCAwIDI4OC42IDE4NS4xIiBzdHlsZT0iYmFja2dyb3VuZDojMTExIj48c3R5bGU+LnN0M3tmaWxsOm5vbmU7c3Ryb2tlOiNmZmY7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLW1pdGVybGltaXQ6MTB9LnN0NXtmaWxsOiNmZmZ9LnN0Nntmb250LWZhbWlseTomcXVvdDtNaWNyb3NvZnRZYUhlaSZxdW90O30uc3Q3e2ZvbnQtc2l6ZToxNnB4fTwvc3R5bGU+PGVsbGlwc2UgY3g9IjEzNi4xIiBjeT0iOTQuNyIgcng9IjEwNS44IiByeT0iNzEuNyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLWRhc2hhcnJheT0iNi4wMzEzLDYuMDMxMyIgaWQ9IlhNTElEXzFfIi8+PHBhdGggY2xhc3M9InN0MyIgZD0iTTIzMC41IDU3LjVzMi0uNyAzLjgtMS40Ii8+PHBhdGggZD0iTTIzOS45IDUzLjZjNS0yLjYgMTEuMi02LjkgMTQuNS0xMy4yIDYuNS0xMi4yLjItMjEuOS0xMC4zLTIwLjFzLTE3LjUgMTYuNC0uNiAyNWMxMy4xIDYuNiAyOS4zLTEyLjkgMzUuOS0yNC4xIiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBzdHJva2UtZGFzaGFycmF5PSI2LjIwODEsNi4yMDgxIi8+PHBhdGggY2xhc3M9InN0MyIgZD0iTTI2OS4zIDIwbDEzLjktOCAyIDE0LjgiLz48cGF0aCBjbGFzcz0ic3Q1IiBkPSJNMTc4LjcgMTM5LjNIOTYuM2MtMi4xIDAtMy44LTEuNi0zLjgtMy42di0yMi45YzAtMiAxLjctMy42IDMuOC0zLjZoODIuNGMyLjEgMCAzLjggMS42IDMuOCAzLjZ2MjIuOWMwIDItMS43IDMuNi0zLjggMy42eiIvPjx0ZXh0IHRyYW5zZm9ybT0idHJhbnNsYXRlKDcyLjgyIDcwLjM1NSkiIGNsYXNzPSJzdDUgc3Q2IHN0NyI+54K55Ye75Y+z5LiK6KeS5YiG5Lqr57uZPC90ZXh0Pjx0ZXh0IHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwOC4yMiA5My42KSIgY2xhc3M9InN0NSBzdDYgc3Q3Ij5RUeWlveWPizwvdGV4dD48dGV4dCB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMTYuMjA0IDEyOS40MjgpIiBmb250LXNpemU9IjE0IiBmb250LWZhbWlseT0iTWljcm9zb2Z0WWFIZWktQm9sZCI+55+l6YGT5LqGPC90ZXh0Pjwvc3ZnPg==", shareToWeChat:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGlkPSLlm77lsYJfMSIgdmlld0JveD0iMCAwIDI4OC42IDE4NS4xIiBzdHlsZT0iYmFja2dyb3VuZDojMTExIj48c3R5bGU+LnN0M3tmaWxsOm5vbmU7c3Ryb2tlOiNmZmY7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLW1pdGVybGltaXQ6MTB9LnN0NXtmaWxsOiNmZmZ9LnN0Nntmb250LWZhbWlseTomcXVvdDtNaWNyb3NvZnRZYUhlaSZxdW90O30uc3Q3e2ZvbnQtc2l6ZToxNnB4fTwvc3R5bGU+PGVsbGlwc2UgY3g9IjEzNi4xIiBjeT0iOTQuNyIgcng9IjEwNS44IiByeT0iNzEuNyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLWRhc2hhcnJheT0iNi4wMzEzLDYuMDMxMyIgaWQ9IlhNTElEXzFfIi8+PHBhdGggY2xhc3M9InN0MyIgZD0iTTIzMC41IDU3LjVzMi0uNyAzLjgtMS40Ii8+PHBhdGggZD0iTTIzOS45IDUzLjZjNS0yLjYgMTEuMi02LjkgMTQuNS0xMy4yIDYuNS0xMi4yLjItMjEuOS0xMC4zLTIwLjFzLTE3LjUgMTYuNC0uNiAyNWMxMy4xIDYuNiAyOS4zLTEyLjkgMzUuOS0yNC4xIiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBzdHJva2UtZGFzaGFycmF5PSI2LjIwODEsNi4yMDgxIi8+PHBhdGggY2xhc3M9InN0MyIgZD0iTTI2OS4zIDIwbDEzLjktOCAyIDE0LjgiLz48cGF0aCBjbGFzcz0ic3Q1IiBkPSJNMTc4LjcgMTM5LjNIOTYuM2MtMi4xIDAtMy44LTEuNi0zLjgtMy42di0yMi45YzAtMiAxLjctMy42IDMuOC0zLjZoODIuNGMyLjEgMCAzLjggMS42IDMuOCAzLjZ2MjIuOWMwIDItMS43IDMuNi0zLjggMy42eiIvPjx0ZXh0IHRyYW5zZm9ybT0idHJhbnNsYXRlKDcyLjgyIDcwLjM1NSkiIGNsYXNzPSJzdDUgc3Q2IHN0NyI+54K55Ye75Y+z5LiK6KeS5YiG5Lqr57uZPC90ZXh0Pjx0ZXh0IHRyYW5zZm9ybT0idHJhbnNsYXRlKDM5LjIyIDkzLjYpIiBjbGFzcz0ic3Q1IHN0NiBzdDciPuW+ruS/oeWlveWPi+aIluiAheWIhuS6q+WIsOaci+WPi+WciDwvdGV4dD48dGV4dCB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMTYuMjA0IDEyOS40MjgpIiBmb250LXNpemU9IjE0IiBmb250LWZhbWlseT0iTWljcm9zb2Z0WWFIZWktQm9sZCI+55+l6YGT5LqGPC90ZXh0Pjwvc3ZnPg==", round:'',rect:'', clear:'', eraser:'',pen:'', note:'', redo:'', undo:'', save:'', formClose:'', message:' ', article1:'',reader:'', article:'',article2:'',calendar:'',book1:'', book:'',reduce:'', enlarge:'',prevArticle:'', nextArticle:'', btnReader:'',btnPages:'',btnCalendar:'',phoneticReading:''};d=d?Object.assign(a,e):a;window.phoneSvgIcons=d};var UserGroups="English",vimeoPlayerUrl="https://player.vimeo.com/api/player.js",cMapUrl="https://unpkg.com/pdfjs-dist@latest/cmaps/",emailLinkUrl="http://gmail.google.com",restrictedMap={"aU3e!G7sD":"","qR2j^H5fZ":"loadingPicture","bJ8w&K3tP":"loadingVideo","dT9e#X1sC":"googleAnalyticsID","yO4u*L2xF":"AnnotationButtonVisible","nL7j@V5rB":"aboutButtonVisible","tT3e&Z4yC":"HomeButtonVisible","hY6w%P9gD":"HomeURL","kA8q!R5jH":"googleTagManagerID","eX1z@S8kT":"language","cK5t#D2fP":"BookMarkButtonVisible", "jN2z^W8hS":"TableOfContentButtonVisible","rF6e&K4bJ":"PhoneButtonVisible",zC9u$P3lF:"LeftShadowWidth;LeftShadowAlpha;RightShadowWidth;RightShadowAlpha;ShowTopLeftShadow;pageHighlightType;","wV5t#G1nQ":"thicknessWidthType;thicknessColor","gF4w!D1qR":"haveAdSense","hJ5m#L3dT":"staticAd","xY4z9F@kL":"appLogoIcon","vA6qM8!bN":"appLogoLinkURL"},specialHandlers={appLogoIcon:function(){return"../../booklogo.png"},appLogoLinkURL:function(){return"https://fliphtml5.com"},staticAd:function(){return!0},language:function(){var a, b,c=(null==(a=window.bookConfig)?void 0:a.language)||(null==(b=window.tmpBookConfig)?void 0:b.language)||"English";return c.includes(";")?c.split(";")[0]:c}};function checkPermission(a,b){if(!b)return!1;for(var c in restrictedMap)if(b.includes(c)&&restrictedMap[c].split(";").includes(a))return!0;return!1} function checkBookConfigRestrictedKey(a,b){var c,d,e,f,g,h=function(){return(null==(c=window.tmpBookConfig)?void 0:null==(d=c.power_info)?void 0:d.power)||(null==(e=window.bookConfig)?void 0:null==(f=e.power_info)?void 0:f.power)||(null==(g=window.userInfo)?void 0:g.power)||null},l=function(r){if(checkPermission(a,r))return specialHandlers[a]?specialHandlers[a]():b;if("appLogoIcon"===a&&(r=String(window.bookConfig&&window.bookConfig.appLogoIcon||window.tmpBookConfig&&window.tmpBookConfig.appLogoIcon|| ("undefined"!==typeof b?b:"")).trim(),/(^|[\\\/])booklogo\.png(\?.*)?(#.*)?$/i.test(r)))return""},m,k,n,p,q;if((null==(m=window.tmpBookConfig)?0:null==(k=m.power_info)?0:k.power)||(null==(n=window.bookConfig)?0:null==(p=n.power_info)?0:p.power)||(null==(q=window.userInfo)?0:q.power)||!window.eventEmitter||"function"!==typeof window.eventEmitter.on)return l(h());window.eventEmitter.on("loadUserInfo",function(r){return l(h())})};(function(){for(var a=0,b=["webkit","moz"],c=0;c

");$("body").append(this.$text)},text:function(a){this.$text.find("span").html(a);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))}}); function QR8bitByte(a){this.mode=QRMode.MODE_8BIT_BYTE;this.data=a}QR8bitByte.prototype={getLength:function(a){return this.data.length},write:function(a){for(var b=0;ba||this.moduleCount<=a||0>b||this.moduleCount<=b)throw Error(a+","+b);return this.modules[a][b]},getModuleCount:function(){return this.moduleCount},make:function(){if(1>this.typeNumber){var a;for(a=1;40>a;a++){for(var b=QRRSBlock.getRSBlocks(a,this.errorCorrectLevel),c=new QRBitBuffer,d=0,e=0;e=c;c++)if(!(-1>=a+c||this.moduleCount<=a+c))for(var d=-1;7>=d;d++)-1>=b+d||this.moduleCount<=b+d||(this.modules[a+c][b+d]=0<=c&&6>=c&&(0==d||6==d)||0<=d&&6>= d&&(0==c||6==c)||2<=c&&4>=c&&2<=d&&4>=d?!0:!1)},getBestMaskPattern:function(){for(var a=0,b=0,c=0;8>c;c++){this.makeImpl(!0,c);var d=QRUtil.getLostPoint(this);if(0==c||a>d)a=d,b=c}return b},createMovieClip:function(a,b,c){a=a.createEmptyMovieClip(b,c);this.make();for(b=0;b=f;f++)for(var g=-2;2>=g;g++)this.modules[d+f][e+g]=-2==f||2==f||-2==g||2==g||0==f&&0==g?!0:!1}},setupTypeNumber:function(a){for(var b= QRUtil.getBCHTypeNumber(this.typeNumber),c=0;18>c;c++){var d=!a&&1==(b>>c&1);this.modules[Math.floor(c/3)][c%3+this.moduleCount-8-3]=d}for(c=0;18>c;c++)d=!a&&1==(b>>c&1),this.modules[c%3+this.moduleCount-8-3][Math.floor(c/3)]=d},setupTypeInfo:function(a,b){b=QRUtil.getBCHTypeInfo(this.errorCorrectLevel<<3|b);for(var c=0;15>c;c++){var d=!a&&1==(b>>c&1);6>c?this.modules[c][8]=d:8>c?this.modules[c+1][8]=d:this.modules[this.moduleCount-15+c][8]=d}for(c=0;15>c;c++)d=!a&&1==(b>>c&1),8>c?this.modules[8][this.moduleCount- c-1]=d:9>c?this.modules[8][15-c-1+1]=d:this.modules[8][15-c-1]=d;this.modules[this.moduleCount-8][8]=!a},mapData:function(a,b){for(var c=-1,d=this.moduleCount-1,e=7,f=0,g=this.moduleCount-1;0h;h++)if(null==this.modules[d][g-h]){var l=!1;f>>e&1));QRUtil.getMask(b,d,g-h)&&(l=!l);this.modules[d][g-h]=l;e--;-1==e&&(f++,e=7)}d+=c;if(0>d||this.moduleCount<=d){d-=c;c=-c;break}}}};QRCode.PAD0=236;QRCode.PAD1=17; QRCode.createData=function(a,b,c){b=QRRSBlock.getRSBlocks(a,b);for(var d=new QRBitBuffer,e=0;e8*a)throw Error("code length overflow. ("+d.getLengthInBits()+">"+8*a+")");for(d.getLengthInBits()+4<=8*a&&d.put(0,4);0!=d.getLengthInBits()%8;)d.putBit(!1);for(;!(d.getLengthInBits()>=8*a);){d.put(QRCode.PAD0,8);if(d.getLengthInBits()>= 8*a)break;d.put(QRCode.PAD1,8)}return QRCode.createBytes(d,b)}; QRCode.createBytes=function(a,b){for(var c=0,d=0,e=0,f=Array(b.length),g=Array(b.length),h=0;h>>=1;return b},getPatternPosition:function(a){return QRUtil.PATTERN_POSITION_TABLE[a-1]},getMask:function(a,b,c){switch(a){case QRMaskPattern.PATTERN000:return 0==(b+c)% 2;case QRMaskPattern.PATTERN001:return 0==b%2;case QRMaskPattern.PATTERN010:return 0==c%3;case QRMaskPattern.PATTERN011:return 0==(b+c)%3;case QRMaskPattern.PATTERN100:return 0==(Math.floor(b/2)+Math.floor(c/3))%2;case QRMaskPattern.PATTERN101:return 0==b*c%2+b*c%3;case QRMaskPattern.PATTERN110:return 0==(b*c%2+b*c%3)%2;case QRMaskPattern.PATTERN111:return 0==(b*c%3+(b+c)%2)%2;default:throw Error("bad maskPattern:"+a);}},getErrorCorrectPolynomial:function(a){for(var b=new QRPolynomial([1],0),c=0;c< a;c++)b=b.multiply(new QRPolynomial([1,QRMath.gexp(c)],0));return b},getLengthInBits:function(a,b){if(1<=b&&10>b)switch(a){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:"+a);}else if(27>b)switch(a){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:"+a);}else if(41>b)switch(a){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:"+a);}else throw Error("type:"+b);},getLostPoint:function(a){for(var b=a.getModuleCount(),c=0,d=0;d=h;h++)if(!(0>d+h||b<=d+h))for(var l=-1;1>=l;l++)0>e+l||b<=e+l||(0!=h||0!=l)&&g==a.isDark(d+h,e+l)&&f++;5a)throw Error("glog("+ a+")");return QRMath.LOG_TABLE[a]},gexp:function(a){for(;0>a;)a+=255;for(;256<=a;)a-=255;return QRMath.EXP_TABLE[a]},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(a,b){if(void 0==a.length)throw Error(a.length+"/"+b);for(var c=0;cthis.getLength()-a.getLength())return this;for(var b=QRMath.glog(this.get(0))-QRMath.glog(a.get(0)),c=Array(this.getLength()),d=0;d>>7-a%8&1)},put:function(a,b){for(var c=0;c>>b-c-1&1))},getLengthInBits:function(){return this.length},putBit:function(a){var b=Math.floor(this.length/8);this.buffer.length<=b&&this.buffer.push(0);a&&(this.buffer[b]|=128>>>this.length%8);this.length++}}; (function(a){a.fn.qrcode=function(b){"string"===typeof b&&(b={text:b});b=a.extend({},{render:"canvas",width:256,height:256,typeNumber:-1,correctLevel:QRErrorCorrectLevel.H,background:"#ffffff",foreground:"#000000"},b);var c=function(){var d=new QRCode(b.typeNumber,b.correctLevel);d.addData(b.text);d.make();var e=document.createElement("canvas");e.width=b.width;e.height=b.height;for(var f=e.getContext("2d"),g=b.width/d.getModuleCount(),h=b.height/d.getModuleCount(),l=0;l").css("width",b.width+"px").css("height",b.height+"px").css("border","0px").css("border-collapse", "collapse").css("background-color",b.background),f=b.width/d.getModuleCount(),g=b.height/d.getModuleCount(),h=0;h").css("height",g+"px").appendTo(e),m=0;m").css("width",f+"px").css("background-color",d.isDark(h,m)?b.foreground:b.background).appendTo(l);d=e}else d=c(),e=new Image,e.src=d.toDataURL("image/png"),d=e;else d=c();jQuery(d).appendTo(this)})}})(jQuery); var phoneIconInfo={width:600,height:1E3,iconInfo:[{id:"next",position:{x:96,y:193},width:48,height:48},{id:"prev",position:{x:10,y:193},width:48,height:48},{id:"search",position:{x:178,y:18},width:48,height:48},{id:"searchButton",position:{x:540,y:630},width:35,height:35},{id:"tableOfContent",position:{x:255,y:21},width:48,height:48},{id:"ZoomIn",position:{x:19,y:106},width:48,height:48},{id:"addBookmark",position:{x:542,y:17},width:48,height:48},{id:"bookmark",position:{x:483,y:17},width:48,height:48}, {id:"miBookmark",position:{x:552,y:284},width:32,height:32},{id:"miBookmark_close",position:{x:402,y:429},width:40,height:40},{id:"miBookmark_close_enter",position:{x:462,y:429},width:40,height:40},{id:"thumbnails",position:{x:19,y:18},width:48,height:48},{id:"moreBar",position:{x:97,y:19},width:48,height:48},{id:"miSearch",position:{x:20,y:284},width:32,height:32},{id:"miTableOfContent",position:{x:373,y:284},width:32,height:32},{id:"sharethis",position:{x:87,y:284},width:32,height:32},{id:"home", position:{x:495,y:284},width:32,height:32},{id:"facebook",position:{x:20,y:412},width:65,height:65},{id:"twitter",position:{x:92,y:412},width:65,height:65},{id:"google",position:{x:164,y:412},width:65,height:65},{id:"addthis",position:{x:309,y:412},width:65,height:65},{id:"linkedin",position:{x:236,y:412},width:65,height:65},{id:"share_more",position:{x:308,y:412},width:65,height:65},{id:"reddit",position:{x:192,y:610},width:65,height:65},{id:"digg",position:{x:265,y:610},width:65,height:65},{id:"email", position:{x:340,y:610},width:65,height:65},{id:"collapsed",position:{x:406,y:348},width:24,height:24},{id:"expanded",position:{x:449,y:351},width:24,height:24},{id:"download",position:{x:158,y:284},width:32,height:32},{id:"print",position:{x:305,y:283},width:32,height:32},{id:"autoPlay",position:{x:184,y:104},width:48,height:48},{id:"stopAutoPlay",position:{x:258,y:104},width:48,height:48},{id:"shoppingCart",position:{x:407,y:104},width:48,height:48},{id:"instructions",position:{x:419,y:620},width:48, height:48},{id:"annotation",position:{x:482,y:620},width:48,height:48},{id:"goBtn",position:{x:338,y:110},width:48,height:48},{id:"forward",position:{x:482,y:620},width:48,height:48},{id:"backward",position:{x:482,y:620},width:48,height:48},{id:"languageChange",position:{x:232,y:284},width:32,height:32},{id:"setting",position:{x:437,y:282},width:32,height:32},{id:"soundOn",position:{x:197,y:535},width:45,height:45},{id:"soundOff",position:{x:197,y:535},width:45,height:45},{id:"First",position:{x:194, y:194},width:45,height:45},{id:"prev",position:{x:291,y:194},width:45,height:45},{id:"next",position:{x:383,y:194},width:45,height:45},{id:"Last",position:{x:475,y:194},width:45,height:45},{id:"choosed",position:{x:356,y:346},width:28,height:28},{id:"unchoosed",position:{x:297,y:346},width:28,height:28},{id:"gotoPage",position:{x:414,y:20},width:48,height:48},{id:"ZoomOut",position:{x:101,y:107},width:48,height:48},{id:"passward",position:{x:8,y:547},width:170,height:170},{id:"fullScreen",position:{x:482, y:104},width:48,height:48},{id:"exitFullScreen",position:{x:540,y:104},width:48,height:48},{id:"firstBtn",position:{x:194,y:190},width:45,height:45},{id:"prevBtn",position:{x:291,y:190},width:45,height:45},{id:"nextBtn",position:{x:383,y:190},width:45,height:45},{id:"lastBtn",position:{x:475,y:190},width:45,height:45},{id:"backwardBtn",position:{x:494,y:344},width:45,height:45},{id:"forwardBtn",position:{x:548,y:344},width:45,height:45}]},catalogIconInfo={width:520,height:220,iconInfo:[{id:"background", position:{x:3,y:9},width:420,height:50},{id:"thumb",position:{x:144,y:143},width:38,height:38},{id:"thumb_down",position:{x:144,y:179},width:38,height:38},{id:"share",position:{x:213,y:143},width:38,height:38},{id:"share_down",position:{x:213,y:179},width:38,height:38},{id:"search",position:{x:179,y:143},width:38,height:38},{id:"search_down",position:{x:179,y:179},width:38,height:38},{id:"more",position:{x:252,y:143},width:38,height:38},{id:"more_down",position:{x:252,y:179},width:38,height:38},{id:"prev", position:{x:240,y:66},width:38,height:38},{id:"next",position:{x:288,y:66},width:38,height:38},{id:"prev_down",position:{x:240,y:106},width:38,height:38},{id:"next_down",position:{x:288,y:106},width:38,height:38},{id:"fullScreen",position:{x:290,y:143},width:38,height:38},{id:"fullScreen_down",position:{x:290,y:179},width:38,height:38},{id:"exitFullScreen",position:{x:328,y:143},width:38,height:38},{id:"exitFullScreen_down",position:{x:328,y:179},width:38,height:38}]}; jQuery.fn.loading=function(a,b){this.initLoadingHtml=function(c){this.loadingDom=$('
');this.append(this.loadingDom)}.bind(this);this.createLoading=function(c){this.initLoadingHtml(c)}.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(a)}; (function(a){var b=function(){return Hammer.HAS_TOUCHEVENTS&&navigator.userAgent.match(Hammer.MOBILE_REGEX)};bdor[3]="f";var c=function(k){this.theButton=k;this.eventSource=k[0];b()?(k.bind("touchstart",this.mouseDown.bind(this)),k.bind("touchend",this.mouseUp.bind(this))):(k.bind("mouseenter",this.mouseEnter.bind(this)),k.bind("mouseleave",this.mouseLeave.bind(this)),k.bind("blur",this.mouseLeave.bind(this)),k.bind("mousedown",this.mouseDown.bind(this)),k.bind("mouseup",this.mouseUp.bind(this)))}; c.prototype.mouseEnter=function(){this.setAlpha(80)};c.prototype.mouseLeave=function(){this.setAlpha(100)};c.prototype.mouseDown=function(){this.setAlpha(60)};c.prototype.mouseUp=function(){this.setAlpha(80)};c.prototype.setAlpha=function(k){0>k&&(k=0);100<=k&&(k=100);this.theButton.css("opacity",k/100)};a.fn.asButton=function(){new c(this);return this};bdor[4]="h";var d=function(k,n){this.eventSource=k[0];this.origPicture=k[0].src;var p=this.origPicture.lastIndexOf("."),q=this.origPicture.substr(0, p);p=this.origPicture.substring(p);this.pictureDown=n?n:q+"_down"+p;b()?(k.bind("touchstart",this.mouseOver.bind(this)),k.bind("touchend",this.mouseLeave.bind(this))):(k.bind("mouseenter",this.mouseOver.bind(this)),k.bind("mousedown",this.mouseDown.bind(this)),k.bind("mouseup",this.mouseUp.bind(this)),k.bind("mouseleave",this.mouseLeave.bind(this)),k.bind("blur",this.mouseLeave.bind(this)))};d.prototype.mouseOver=function(){this.eventSource.src=this.pictureDown};d.prototype.mouseDown=function(){a(this.eventSource).css("opacity", .8)};d.prototype.mouseUp=function(){a(this.eventSource).css("opacity",1)};d.prototype.mouseLeave=function(){this.eventSource.src=this.origPicture};a.fn.asImageButton=function(k){new d(this,k);return this};var e=function(k,n){this.eventSource=k[0];this.origPicture=k[0].src;var p=this.origPicture.lastIndexOf("."),q=this.origPicture.substr(0,p);p=this.origPicture.substring(p);this.pictureDown=n?n:q+"_down"+p;b()?(k.bind("touchstart",this.mouseOver.bind(this)),k.bind("touchend",this.mouseUp.bind(this))): (k.bind("mouseenter",this.mouseOver.bind(this)),k.bind("mousedown",this.mouseDown.bind(this)),k.bind("mouseup",this.mouseUp.bind(this)),k.bind("mouseleave",this.mouseUp.bind(this)))};bdor[10]="l";e.prototype.mouseOver=function(){this.eventSource.src=this.pictureDown};e.prototype.mouseDown=function(){this.eventSource.src=this.pictureDown};e.prototype.mouseUp=function(){var k=this;window.setTimeout(function(){k.eventSource.src=k.origPicture},100)};a.fn.asImageChangeButton=function(){new e(this);return this}; var f=function(k){this.theButton=k;this.eventSource=k[0];var n=this.theButton.css("top");this.iOrigTop=parseInt(n.replace("px",""));this.iJumpTop=this.iOrigTop-5;k.bind("mouseenter",this.MouseEnter.bind(this));k.bind("mouseleave",this.MouseLeave.bind(this))};f.prototype.MouseEnter=function(){this.theButton.animate({top:this.iJumpTop},50)};f.prototype.MouseLeave=function(){this.theButton.animate({top:this.iOrigTop},50)};a.fn.mouseEnterJump=function(){new f(this);return this};a.fn.mouseOverCursor=function(){new g(this); return this};var g=function(k){k.bind("mouseover",function(){k.css({cursor:"pointer"})})},h=function(k){this.theButton=k;this.eventSource=k[0];var n=this.theButton.css("top");this.iOrigTop=parseInt(n.replace("px",""));n=this.theButton.css("left");this.iOrigLeft=parseInt(n.replace("px",""));this.iZoomTop=this.iOrigTop-3;this.iZoomLeft=this.iOrigLeft-1;k.bind("mouseenter",this.MouseEnter.bind(this));k.bind("mouseleave",this.MouseLeave.bind(this))};h.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)"})};h.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)"})};h.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 l=function(k){this.theButton=k;this.eventSource=k[0];var n=this.theButton.css("top");this.iOrigTop=parseInt(n.replace("px",""));n=this.theButton.css("left");this.iOrigLeft=parseInt(n.replace("px",""));this.iZoomTop=this.iOrigTop-1;this.iZoomLeft=this.iOrigLeft-1;k.bind("mouseenter",this.MouseEnter.bind(this));k.bind("mouseleave",this.MouseLeave.bind(this))}; l.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)"})};l.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)"})};a.fn.mouseEnterZoom=function(){new l(this);return this};a.fn.mouseEnterUp=function(){new m(this);return this};var m= function(k){this.theButton=k;this.eventSource=k[0];var n=this.theButton.css("bottom");this.iOrigTop=parseInt(n.replace("px",""));n=this.theButton.css("left");this.iOrigLeft=parseInt(n.replace("px",""));this.iZoomTop=this.iOrigTop-1;this.iZoomLeft=this.iOrigLeft-1;k.bind("mouseenter",this.MouseEnter.bind(this));k.bind("mouseleave",this.MouseLeave.bind(this))};m.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)"})};m.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)"})};a.fn.mouseZoomUp=function(){new h(this);return this};a.fn.mouseEnterLight=function(k){k||(k="#EEEEEE");var n=this;this.bind(_event._enter,function(){n.css({background:k})});this.bind(_event._down,function(){n.css({background:k})}); b()?this.bind(_event._end,function(){n.css({background:"transparent"})}):this.bind(_event._end,function(){n.css({background:k})});this.bind(_event._leave,function(){n.css({background:"transparent"})});return this};a.fn.mouseEnterShine=function(k,n,p){var q=this,r=colorDiv(k,10);this.bind(_event._enter,function(){q.css({background:r});q.css({border:""});q.css({"border-left":"1px solid "+p,"border-top":"1px solid "+p});q.css({"border-right":"1px solid "+n,"border-bottom":"1px solid "+n})});this.bind(_event._down, function(){q.css({background:r});q.css({border:""});q.css({"border-left":"1px solid "+n,"border-top":"1px solid "+n});q.css({"border-right":"1px solid "+p,"border-bottom":"1px solid "+p})});b()?this.bind(_event._end,function(){q.css({background:"transparent"});q.css({border:""})}):this.bind(_event._end,function(){q.css({background:r});q.css({border:""});q.css({"border-left":"1px solid "+p,"border-top":"1px solid "+p});q.css({"border-right":"1px solid "+n,"border-bottom":"1px solid "+n})});this.bind(_event._leave, function(){q.css({background:"transparent"});q.css({border:""})});return this};a.fn.mouseEnterGradient=function(k,n,p){var q=this,r=colorAdd(k,75),t="-webkit-gradient(linear,left top,left bottom,color-stop(0,"+r+"),color-stop(0.19,"+colorAdd(r,2)+"),color-stop(0.35,"+colorAdd(r,28)+"),color-stop(0.55, "+colorAdd(r,6)+"),color-stop(0.75,"+colorAdd(r,4)+"),color-stop(0.85,"+colorAdd(r,2)+"),color-stop(1, "+r+"))";this.bind(_event._enter,function(){q.css("background",t);q.css({border:""});q.css({"border-left":"1px solid "+ p,"border-top":"1px solid "+p});q.css({"border-right":"1px solid "+n,"border-bottom":"1px solid "+n})});this.bind(_event._down,function(){q.setGradient(r,!1);q.css({border:""});q.css({"border-left":"1px solid "+n,"border-top":"1px solid "+n});q.css({"border-right":"1px solid "+p,"border-bottom":"1px solid "+p})});b()?this.bind(_event._end,function(){q.css({background:"transparent"});q.css({border:""})}):this.bind(_event._end,function(){q.css("background",t);q[0].style.removeAttribute&&q[0].style.removeAttribute("filter"); q.css({border:""});q.css({"border-left":"1px solid "+p,"border-top":"1px solid "+p});q.css({"border-right":"1px solid "+n,"border-bottom":"1px solid "+n})});this.bind(_event._leave,function(){q[0].style.removeAttribute&&q[0].style.removeAttribute("filter");q.css({background:"transparent"});q.css({border:""})});return this};a.fn.dragToMove=function(k,n,p){var q=!1,r=0,t=0,u=0,x=0;a(this).bind(_event._down,function(v){var w=a(this)[0];w.setCapture?w.setCapture():window.captureEvents(Event.MOUSEMOVE| Event.MOUSEUP);v=isTouch?v.originalEvent.changedTouches:[v];q=!0;r=v[0].pageX;t=v[0].pageY;u=a(k).offset().left;x=a(k).offset().top});a(this).bind(_event._end,function(v){v=a(this)[0];v.releaseCapture?v.releaseCapture():window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);q=!1});a(this).bind(_event._move,function(v){v=isTouch?v.originalEvent.touches:[v];if(q){var w=u+(v[0].pageX-r);v=x+(v[0].pageY-t);void 0!=n&&(w=Math.max(n.x,w),w=Math.min(n.y,w));void 0!=p&&(v=Math.max(p.x,v),v=Math.min(p.y,v)); a(k).css({left:w+"px",top:v+"px"})}});a(this).bind("mouseleave",function(){return q=!1})};a.fn.slideFlipButtonShine=function(k){a(this).bind(_event._over,function(){a(this).css({cursor:"pointer"})});a(this).bind(_event._enter,function(){a(this).css({background:"#000000"})});a(this).bind(_event._leave,function(){a(this).css({background:"#888888"})})};bdor[31]=function(k,n){return bdor[k]-bdor[n]};a.fn.slideZoomButtonShine=function(k){a(this).bind(_event._enter,function(){a(this).css({cursor:"pointer"}); a(this).css({background:"#555555"})});a(this).bind(_event._leave,function(){a(this).css({background:""})})};a.fn.mouseEnterChange=function(k,n,p){var q=this;this.bind(_event._enter,function(){var r=a("");q.empty().append(r);q.css({background:n});q.changeButtonColor(k)});this.bind(_event._end,function(){var r=a("");q.empty().append(r);q.css({background:"transparent"});q.changeButtonColor(n)});this.bind(_event._leave,function(){var r=a("");q.empty().append(r); q.css({background:"transparent"});q.changeButtonColor(n)});return this};a.fn.clickExceptMove=function(k){var n=!1,p=!1,q=new Point(0,0);this.bind(_event._down,function(r){r=isTouch?r.originalEvent.touches:[r];n=!0;p=!1;q.x=r[0].pageX;q.y=r[0].pageY;1=Math.abs(r[0].pageX-q.x)&&1>=Math.abs(r[0].pageY-q.y)?!1:!0});this.bind(_event._end,function(r){n&&!p&&k();p=n=!1})};a.fn.enterToChange=function(k,n,p,q, r){var t=this.children();this.bind(_event._down,function(u){t.cssSprite(k,n+"_down",p,q,r)});this.bind(_event._enter,function(u){t.cssSprite(k,n+"_down",p,q,r)});this.bind(_event._leave,function(u){t.cssSprite(k,n,p,q,r)})};a.fn.addCssSprite=function(k,n,p,q,r){var t=a("
");t.cssSprite(k,n,p,q,r);this.append(t)};a.fn.changeCssSprite=function(k,n,p,q,r){this.children().cssSprite(k,n,p,q,r)};a.fn.cssSprite=function(k,n,p,q,r){if(r.iconInfo){for(var t=0,u=0;ue?-50:50),e=this.getEffectiveLength(e), this.moveTo(e),d.stopPropagation(),!1}}.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(d){var e=this.getCurrentLength();d=this.getEffectiveLength(d);var f=function(g,h,l){l=(0,$.easing["easeOut"+ l])(null,g,e,d-e,h);gm)m=r,k=r+e[p].length,g=f.substring(k),0==p&&(h=r),p==e.length-1&&(l=r+q);else{n=!1;break}}else{n=!1;break}}n&& (m=[],k=getHighlightRealPageIndex(b),0>k||(m.search_page=k+1,k="page "+(k+1),m.search_title=k,k=f.substring(0,h),k=k.lastIndexOf("."),-1==k?k=0:k++,f=f.substring(l),n=f.indexOf(". "),n=-1==n?l+f.length:l+n+1,f=c.substring(k,n),m.search_text=f,d.push(m)))}}else for(b=b.trim(),e=b.toLowerCase(),b=0;bk||(m.search_page=k+1,k="page "+(k+1), m.search_title=k,l=h+e.length,k=f.substring(0,h),k=k.lastIndexOf("."),-1==k?k=0:k++,f=f.substring(l),n=f.indexOf(". "),n=-1==n?l+f.length:l+n+1,f=c.substring(k,n),-1===f.toLowerCase().indexOf(e)&&(f=c.substring(Math.max(0,h-50),Math.min(c.length,l+50))),m.search_text=f,d.push(m)));return d}function getSearchRealPageIndex(a){if(!window.search_pages||void 0==search_pages[a-1])return a;var b;(a=search_pages[a-1])&&(b=parseInt(a.index));return isNaN(b)||-1==b?-1:b+1} function getHighlightRealPageIndex(a){if(!window.search_pages)return a;for(var b=-1,c=0;c=a?a-1:this.next(b.substring(0,a));this.__times=0;this.__index=-1};bdor[10]="l"; KMP.prototype.next=function(a){for(var b=Math.ceil(a.length/2);0"+f+"");d.push(h)}""!==a&&d.push(a);return d.join("")},isHTML:function(a){return a?!!a.match(/^(<\w+>?).*((<\/\w+>)|(\/>))$/g):!1},toText:function(a){return"string"!=typeof a?"":a.replace(/<\/?\w+>/g,"")},toLabel:function(a){a= a.replaceAll("<","<");return a.replaceAll(">",">")}},LanguageTool={isEnglish:function(a){return/[\x00-\xff]/.test(a)},isChinese:function(a){return/[\u4E00-\u9FBF]/.test(a)},isArabic:function(a){return/[\u0600-\u06FF]|[\u0750-\u077F]/.test(a)},isUrdu:function(a){return this.isArabic(a)||/[\uFE70-\uFEFF]/.test(a)},isHebrew:function(a){return/[\u0590-\u05FF]|[\uFB00-\uFB4F]/.test(a)},isFarsi:function(a){return this.isUrdu(a)},isTai:function(a){return/[\u0E00-\u0E7F]/.test(a)},isHindi:function(a){return/[\u0900-\u097F]/.test(a)}, isTamil:function(a){return/[\u0B80-\u0BFF]/.test(a)},isHimalayaRahm:function(a){return/[\u0D00-\u0D7F]/.test(a)},isRightToLeft:function(a){return this.isArabic(a)||this.isUrdu(a)||this.isHebrew(a)||this.isFarsi(a)||this.isHindi(a)||this.isHimalayaRahm(a)}}; 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 FormElements=Class({rightToLeft:!1,create:function(a){this.rightToLeft=global.rightToLeft},initElements:virtual_function,initEvent:virtual_function,pickElements:virtual_function,changeLanguage:virtual_function}),PhoneFormFrame=Class({create:function(a){this._super(a);this.closeUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAATCAYAAABGKffQAAAA20lEQVQokYXSoUqEQRQG0CvioqBiWNGiotGgRcTgCwha7Ps0FrvF4BsYfIGFNZgsGw02EYOLWDSI4DF4F2T5Z/6BgQnnY5jvTiCwj06eiztw6m/dYqkNr+MpA0Os1nBgAw8ZeMRWDQe6uM/AC3ZqODCPfgbecVjDka1cZ+ATxzUcmMZlBr7Rq+HxPsvAD/bacAd3GGGtBhf+PfYVMyW43FRjE5wc0GapjW08JxxipdTzAd4SDrA4eev4cISPhDeYbXpL4ARfCa9yIMVfd5HwHFO13gNz2G0ZTiB+ASa3n9W0/5wmAAAAAElFTkSuQmCC"; this.stage=$("
");this.title=$("

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

");this.close=$("
"+phoneSvgIcons.formClose+"
");this.rightToLeft&&this.stage.addClass("rightToLeft");this.close.onTap(this.hide.bind(this));this.stage.css({visibility:"hidden"});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":Color(this.mainColor).rgba(this.formOpacity),color:this.fontColor,overflow:"hidden"})},getPosition:function(a){a=a.originalEvent&&a.originalEvent.changedTouches?a.originalEvent.changedTouches:a.changedTouches?a.changedTouches:[a];return{x:(a[0].pageX||a[0].clientX)+(document.documentElement.scrollLeft||document.body.scrollLeft), y:(a[0].pageY||a[0].clientY)+(document.documentElement.scrollTop||document.body.scrollTop)}},firstTimeMove:function(a){this.firstTime=!0;this.dragEnd=this.getPosition(a);a=this.dragEnd.x-this.dragStart.x;var b=this.dragEnd.y-this.dragStart.y;0==a&&0!=b&&(this.noSwipeRight=!0);0!=a&&0==b&&(this.noSwipeRight=!1);0==a&&0==b&&(this.noSwipeRight=!0);1.01>=Math.abs(a/b)&&(this.noSwipeRight=!0)},firstTimeMoveOnY:function(a){this.firstTime=!0;this.dragEnd=this.getPosition(a);a=this.dragEnd.y-this.dragStart.y; var b=this.dragEnd.x-this.dragStart.x;0==a&&0!=b&&(this.noSwipeRight=!0);0!=a&&0==b&&(this.noSwipeRight=!1);0==a&&0==b&&(this.noSwipeRight=!0);1.01>=Math.abs(a/b)&&(this.noSwipeRight=!0)},initScrollEvent:function(){bookConfig.upsideOnMobile()?this.initScrollEventOnY():this.initScrollEventOnX()},initScrollEventOnX:function(){this.dragStart={};this.dragEnd={};this.stage.bind(_event._down,function(a){a.stopPropagation();this.formTouching=!0;this.firstTime=this.dragMove=this.noSwipeRight=!1;this.dragEnd= this.dragStart=this.getPosition(a);this.endTime=this.startTime=(new Date).getTime()}.bind(this));this.stage.bind(_event._move,function(a){a.stopPropagation();this.dragMove=!0;this.firstTime||this.firstTimeMove(a);if(this.formTouching){this.dragEnd=this.getPosition(a);var b=this.dragEnd.x-this.dragStart.x;this.noSwipeRight||(a.preventDefault(),0=b&&this.stage.css({transform:"translate3d("+-windowWidth+"px,0,0)"}),b>=windowWidth&&this.stage.css({transform:"translate3d(0px,0,0)"})))}}.bind(this));this.stage.bind(_event._up,function(a){a.stopPropagation();if(this.dragEnd&&void 0!=this.dragEnd.x&&(a=this.dragEnd.x-this.dragStart.x,this.endTime=(new Date).getTime(),this.formTouching&&!this.noSwipeRight&&this.dragMove&&!(0>a))){this.formTouching=!1;var b=(this.endTime-this.startTime)/1E3;0=b&&a>.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))},initScrollEventOnY:function(){this.dragStart={};this.dragEnd={};this.stage.bind(_event._down,function(a){a.stopPropagation();this.formTouching=!0;this.firstTime=this.dragMove=this.noSwipeRight=!1;this.dragEnd=this.dragStart=this.getPosition(a);this.endTime=this.startTime=(new Date).getTime()}.bind(this));this.stage.bind(_event._move,function(a){a.stopPropagation(); this.dragMove=!0;this.firstTime||this.firstTimeMoveOnY(a);if(this.formTouching){this.dragEnd=this.getPosition(a);var b=this.dragEnd.y-this.dragStart.y;this.noSwipeRight||(a.preventDefault(),0=b&&this.stage.css({transform:"translate3d("+-windowWidth+"px,0,0)"}),b>=windowWidth&&this.stage.css({transform:"translate3d(0px,0,0)"})))}}.bind(this)); this.stage.bind(_event._up,function(a){a.stopPropagation();if(this.dragEnd&&void 0!=this.dragEnd.y&&(a=this.dragEnd.y-this.dragStart.y,this.endTime=(new Date).getTime(),this.formTouching&&!this.noSwipeRight&&this.dragMove&&!(0>a))){this.formTouching=!1;var b=(this.endTime-this.startTime)/1E3;0=b&&a>.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(){var a=this;if(!this.visible&&(this.stage.css({visibility:"visible"}),this.visible=!0,this.mask||(this.mask=$("
"),this.mask.click(function(){a.animating||a.hide()}),this.parent.append(this.mask)),this.mask&&this.mask.show(),this.animate(-this.width),BookInfo.getBook().addSearchHighlight(),this.onShow))this.onShow()},hide:function(){if(this.visible&&(this.beforeHide&&this.beforeHide(),this.visible=!1,this.dragEnd={},this.animate(0),this.mask&&this.mask.hide(), $(tmpContainer).removeAttr("tabindex"),isPhone()||isPad()||BookInfo.getBook().clearSearchHighlight(),this.onHide))this.onHide()},animate:function(a){this.animating=!0;var b=transformCSS({tran:{x:a,y:0}});animateOnce(this.stage,b,.2,function(){this.animating=!1;0==a?this.stage.css({visibility:"hidden"}):this.setA11yAndFocus()}.bind(this));animateOnce(this.parent,b,.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 a=this.visible?transformCSS({tran:{x:-this.width,y:0}}):transformCSS({tran:{x:0,y:0}});this.stage.css(a);this.parent.css(a)},showOrHide:function(){!0===this.visible?this.hide():this.show(-this.width)}}).extend(FormFrame),PhoneBottomFormFrame=Class({create:function(a){this._super(a);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.stage.css({visibility:"hidden"});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":Color(colorDiv(this.mainColor,20)).rgba(this.formOpacity),color:this.fontColor,overflow:"hidden"})},show:function(){this.visible||(this.visible=!0,this.stage.css({visibility:"visible"}),this.animate(this.height),this.mask||(this.mask=$("
"),this.mask.bind(_event._click,this.hide.bind(this)),this.mask.insertBefore(this.parent)),this.mask&& this.mask.show(),this.setA11y(),this.stage.attr("tabindex",-1),this.stage.focus(),BookInfo.getBook().addSearchHighlight())},hide:function(){this.visible&&(this.visible=!1,this.animate(0),this.mask&&this.mask.hide(),isPhone()||isPad()||BookInfo.getBook().clearSearchHighlight(),this.stage.removeAttr("tabindex"),this.onHide())},animate:function(a){this.animating=!0;var b=transformCSS({tran:{x:0,y:-a}});animateOnce(this.stage,b,.2,function(){this.animating=!1;0==a&&this.stage.css({visibility:"hidden"})}.bind(this)); window.setTimeout(function(){if(this.onShow)this.onShow()}.bind(this),200)},onResize:function(){this.width=windowWidth;this.height=272;this.stage.css({bottom:-this.height+"px",width:this.width+"px",height:this.height+"px"});var a=this.visible?transformCSS({tran:{x:0,y:-this.height}}):transformCSS({tran:{x:0,y:0}});this.stage.css(a);this.parent.css(a)},showOrHide:function(){!0===this.visible?this.hide():this.show(this.width)},onHide:function(){},changeLanguage:function(){this._super();this.close.html(getLanguage("lblCancel", "Cancel"));this.title.html(FormInfo.getFormTitle(this.formType))}}).extend(FormFrame),SlideForm=Class({create:function(a){this._super(a);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=$("favicon"));this.close=$("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(a){a.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(){this.setA11yAndFocus()}.bind(this));this.onShow()},hide:function(){this.visible=!1;this.stage.animate({left:2*-this.width},400,function(){this.stage.attr("tabindex",-1);this.onHide()}.bind(this))},onHide:function(){}}).extend(FormFrame), SlideLeftForm=Class({create:function(a,b){this._super(a);a=b?FormInfo.getFormCssClassName(this.formType,!1):FormInfo.getFormCssClassName(this.formType,!0)+" phone_bottom phone";this.stage=$("
");this.title=$("

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

");this.rightToLeft&&this.stage.addClass("rightToLeft");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.stage.css({visibility:"visible"}),this.animate(this.width),this.mask||(this.mask=$("
"),this.mask.bind(_event._click,this.hide.bind(this)),this.parent.append(this.mask)),this.mask&&this.mask.show())},hide:function(){this.visible&&(this.visible=!1,this.animate(0), this.mask&&this.mask.hide())},animate:function(a){this.animating=!0;var b=transformCSS({tran:{x:a,y:0}});animateOnce(this.stage,b,.2,function(){this.animating=!1;0==a?(this.stage.css({visibility:"hidden"}),this.stage.removeAttr("tabindex")):this.setA11yAndFocus()}.bind(this))},onResize:function(){this.width=272;this.height=windowHeight;this.stage.css({bottom:-this.height+"px",width:this.width+"px",height:this.height+"px"});var a=this.visible?transformCSS({tran:{x:-this.width,y:0}}):transformCSS({tran:{x:0, y:0}});this.stage.css(a);this.parent.css(a)},showOrHide:function(){!0===this.visible?this.hide():this.show(this.width)}}).extend(FormFrame),SlideRightForm=Class({create:function(a){this._super(a);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=$("favicon"));this.close=$("close");this.rightToLeft&&this.stage.addClass("rightToLeft");this.stage.css({visibility:"hidden",right:"-100%"});this.initHtml();this.initEvent();this.onCreate()},onCreate:function(){this.parent.append(this.stage);this.title&&this.title.css({cursor:"default"})},onResize:function(){var a= windowHeight;this.width=250;this.height=a-24},initEvent:function(){this.stage.bind(_event._down,function(a){a.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.css({visibility:"visible"}); this.stage.animate({right:0},400,function(){this.setA11yAndFocus()}.bind(this));this.onShow()},hide:function(){this.visible=!1;this.stage.animate({right:2*-this.width},400,function(){this.onHide();this.stage.css({visibility:"hidden"});this.stage.removeAttr("tabindex")}.bind(this))}}).extend(FormFrame),PcBottomForm=Class({create:function(a){this._super(a);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(a){a.stopPropagation()});this.stage.bind("click",this.hide.bind(this))},initHtml:virtual_function,onHide:function(){}}).extend(FormFrame); (function(a){Class("Switch",{BODY:"__switch",id:"",props:null,value:0,$parent:null,$body:null,get radius(){return Math.round(1.833*this.props.size)},get height(){return Math.round(this.props.size/1.66)},get max_x(){return this.props.size/2-this.props.size/10},create:function(b,c){c=void 0===c?{}:c;this.id="__"+Math.random().toString(32).substring(2);this.$parent=b;this.props=Object.assign({},{class:"",size:30,color:"#fff",onStatusColor:"#60D273",OffStatusColor:"#E9E9EA",defaultValue:0,onChange:function(d, e){}},c);this.value=this.props.defaultValue;this.init()},init:function(){this.initHtml();this.initCss();this.initEvent()},initCss:function(){var b={};updateStyleSheetBatch((b["."+this.BODY]={display:"flex",transition:"background-color 0.3s","align-items":"center","border-radius":this.radius+"px"},b["."+this.BODY+"Block"]={transition:"transform 0.3s",margin:"0 1px","border-radius":"100%",width:this.height-2+"px",height:this.height-2+"px"},b["."+this.BODY+"[data-id="+this.id+"]"]={"background-color":this.value? this.props.onStatusColor:this.props.OffStatusColor,width:this.props.size+"px",height:this.height+"px"},b["."+this.BODY+"[data-id="+this.id+"] ."+this.BODY+"Block"]={"background-color":""+this.props.color,transform:"translateX("+(this.value?this.max_x:0)+"px)"},b))},initHtml:function(){var b=_get(this.props,"class","");""===b?b=this.BODY:Array.isArray(b)?b=this.BODY+" "+b.join(" "):"string"===typeof b&&(b=this.BODY+" "+b);this.$body=$('
');this.$block= $('
');this.$parent.append(this.$body);this.$body.append(this.$block)},initEvent:function(){var b=this;this.$body.on("click",function(){b.setValue(!b.value,!0)})},setValue:function(b,c){b=b?1:0;if(void 0===c||!c||!1!==this.onChange(b)){c=b?this.max_x:0;var d={};updateStyleSheetBatch((d["."+this.BODY+"[data-id="+this.id+"]"]={"background-color":b?this.props.onStatusColor:this.props.OffStatusColor},d["."+this.BODY+"[data-id="+this.id+"] ."+this.BODY+ "Block"]={transform:"translateX("+c+"px)"},d));this.value=b}},onChange:function(b){return this.props.onChange(!!b,this)}})})(window); var SettingElements=Class({themeColor:"#0076fe",enabledMusic:!0,create:function(a){this._super(a);this.initElements();this.pickElements(a)},get hasBgSound(){return!(!bookConfig.BackgroundSoundButtonVisible||!bookConfig.BackgroundSoundURL)},hasMulmedia:function(){var a;return null==(a=window.mulEditorInfo)?void 0:a.hasMusic},initElements:function(){this.scrollBox=$("
");this.renderFlipSoundBtn();this.hasBgSound&&this.renderBgSoundBtn()},renderFlipSoundBtn:function(){var a= this;this.flipSoundBtn=$("
\n
"+getLanguage("closeFlipSound","Chinese"==UserGroups?"\u7ffb\u9875\u97f3\u6548":"Page-flipping Sound")+"
\n
");this.$flipSoundSwitch=new Switch(this.flipSoundBtn,{size:isPad()?39:30,name:"flipSound",defaultValue:global.flipSoundIsPlaying,onStatusColor:this.themeColor,onChange:function(b){return a.onChangeFlipSound(b)}});this.scrollBox.append(this.flipSoundBtn)},onChangeFlipSound:function(a){(global.flipSoundIsPlaying= a)&&playFlipSound();a=a?getLanguage("tmpl_Flipsoundon","Open Flip Sound"):getLanguage("tmpl_Flipsoundoff","Close Flip Sound");BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"flip sound",a]);this.changeBackgroundSoundButtonState()},changeFlipSoundBtnCase:function(){this.$flipSoundSwitch&&this.$flipSoundSwitch.setValue(global.flipSoundIsPlaying)},renderBgSoundBtn:function(){var a=this;this.hasBgSound&&!this.backgroundSoundBtn&&(this.backgroundSoundBtn=$("
\n
"+ getLanguage("closeBackgroundSound","Chinese"==UserGroups?"\u80cc\u666f\u97f3\u4e50":"Background Sound")+"
\n
"),this.$bgSoundSwitch=new Switch(this.backgroundSoundBtn,{size:isPad()?39:30,name:"backgroundSound",defaultValue:this.hasBgSound,onStatusColor:this.themeColor,onChange:function(b){return a.onChangeBgSound(b)}}),this.scrollBox.append(this.backgroundSoundBtn))},onChangeBgSound:function(a){window.bgSound&&(a?bgSound.play():bgSound.pause());a=a?getLanguage("tmpl_Backgoundsoundoff", "Close Background Sound"):getLanguage("tmpl_Backgoundsoundon","Open Background Sound");BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"background sound",a])},changeBackgroundBtnCase:function(a){this.$bgSoundSwitch&&this.$bgSoundSwitch.setValue(null!=a?a:global.isPlaying)},renderMultimediaSound:function(){var a=this;this.hasMulmedia()&&!this.mulEditorSoundBtn&&(this.mulEditorSoundBtn=$("
\n
"+getLanguage("settingMultimediaSoundTitle", "Chinese"==UserGroups?"\u97f3\u4e50":"Music")+"
\n
"),this.$mediaSoundSwitch=new Switch(this.mulEditorSoundBtn,{size:isPad()?39:30,name:"mulEditorSound",defaultValue:!0,onStatusColor:this.themeColor,onChange:function(b){return a.onChangeMultimediaSound(b)}}),this.scrollBox.append(this.mulEditorSoundBtn))},hasCurrentMusic:function(){var a,b=null==(a=window.mulEditorInfo)?void 0:a.pageHasMusic;return b&&"function"===typeof b?(a=BookInfo.getCurrentPages(),b(a)):!1},onChangeMultimediaSound:function(a){if(!this.hasCurrentMusic()){var b= "\u5f53\u524d\u5b58\u5728\u65e0\u97f3\u4e50\u7684\u9875\u9762\uff0c\u5f00\u542f\u97f3\u4e50\u540e\uff0c\u4ec5\u5728\u6709\u97f3\u4e50\u7684\u9875\u9762\u64ad\u653e\u3002",c="\u5173\u95ed\u97f3\u4e50\u540e\uff0c\u6709\u97f3\u4e50\u7684\u9875\u9762\u5c06\u4e0d\u518d\u64ad\u653e\u3002";"Chinese"!==UserGroups&&(b="There are pages without music currently. Once music is enabled, it will only play on pages with music.",c="After music is disabled, pages with music will no longer play.");b=a?getLanguage("settingMultimediaSoundPlayTips", b):getLanguage("settingMultimediaSoundPauseTips",c);c=new TipsBox({opacity:1,duration:3E3},$("body"));c.background.css({"z-index":9999,"max-width":"80%",width:"100%",left:"50%",right:"initial",transform:"translate(-50%)",padding:"10px 12px","box-shadow":"0px 6px 40px 0px rgba(3,8,26,0.1)","border-radius":"8px",textAlign:"start"});c.setCaption(b);c.showTipsBox()}window.mulEditorInfo.handleMusic({method:a?"play":"pause"});this.setEnabledMusic(a);a=window.mulEditorInfo.isPlaying?getLanguage("multimediaSoundOff", "Multimedia sound off"):getLanguage("multimediaSoundOn","Multimedia sound on");BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"multimedia sound",a])},changeMultimediaSoundBtnCase:function(a){this.$mediaSoundSwitch&&this.$mediaSoundSwitch.setValue(a)},changeBackgroundSoundButtonState:function(){global.isPlaying||global.flipSoundIsPlaying?StateSynchronous.instance().findButtons("PhoneBackgroundSoundButton").each(function(a){a.setAsSoundOn();a.executeCallback()}):StateSynchronous.instance().findButtons("PhoneBackgroundSoundButton").each(function(a){a.setAsSoundOff(); a.executeCallback()})},reset:function(){this.backgroundSoundBtn||this.renderBgSoundBtn();this.resetMultimediaSound()},resetMultimediaSound:function(){this.hasMulmedia()?this.mulEditorSoundBtn||this.renderMultimediaSound():this.mulEditorSoundBtn&&this.mulEditorSoundBtn.remove()},onResize:function(){console.log("onResize")},initEvent:function(){},setEnabledMusic:function(a){this.enabledMusic=a;window.mulEditorInfo.enabledMusic=a},pickElements:function(a){a.scrollBox=this.scrollBox;a.flipSoundBtn=this.flipSoundBtn; a.backgroundSoundBtn=this.backgroundSoundBtn;a.mulEditorSoundBtn=this.mulEditorSoundBtn;a.$bgSoundSwitch=this.$bgSoundSwitch;a.$mediaSoundSwitch=this.$mediaSoundSwitch;a.changeFlipSoundBtnCase=this.changeFlipSoundBtnCase;a.changeBackgroundBtnCase=this.changeBackgroundBtnCase;a.changeMultimediaSoundBtnCase=this.changeMultimediaSoundBtnCase;a.renderBgSoundBtn=this.renderBgSoundBtn;a.renderMultimediaSound=this.renderMultimediaSound;a.onChangeMultimediaSound=this.onChangeMultimediaSound;a.hasBgSound= this.hasBgSound;a.hasMulmedia=this.hasMulmedia;a.reset=this.reset;a.resetMultimediaSound=this.resetMultimediaSound;a.themeColor=this.themeColor;a.hasCurrentMusic=this.hasCurrentMusic;a.enabledMusic=this.enabledMusic;a.setEnabledMusic=this.setEnabledMusic},changeLanguage:function(){var a=getLanguage("closeFlipSound","Chinese"==UserGroups?"\u7ffb\u9875\u97f3\u6548":"Page-flipping Sound");this.flipSoundBtn.find(".title").html(a);this.backgroundSoundBtn&&(a=getLanguage("closeBackgroundSound","Chinese"== UserGroups?"\u80cc\u666f\u97f3\u4e50":"Background Sound"),this.backgroundSoundBtn.find(".title").html(a));this.mulEditorSoundBtn&&(a=getLanguage("settingMultimediaSoundTitle","Chinese"==UserGroups?"\u97f3\u4e50":"Music"),this.mulEditorSoundBtn.find(".title").html(a))}}).extend(FormElements),PhoneSettingForm=Class({create:function(a){this.elements=new SettingElements(this);this._super(a)},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({enabledMusic:!0,create:function(a){this._super(a)},onCreate:function(){this.stage.css({"background-color":"transparent",width:"auto"});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 a=global.flipSoundIsPlaying?getLanguage("tmpl_Flipsoundon","Open Flip Sound"):getLanguage("tmpl_Flipsoundoff","Close Flip Sound"),b=global.flipSoundIsPlaying?this.flipSoundOnImage:this.flipSoundOffImage,c=bookConfig.BackgroundSoundURL?getLanguage("tmpl_Backgoundsoundon","Open Background Sound"):getLanguage("tmpl_Backgoundsoundoff","Close Background Sound"); this.backgroundSoundBtn=$("

"+c+"

");this.flipSoundBtn=$("

"+a+"

");bookConfig.BackgroundSoundURL&&this.stage.append(this.backgroundSoundBtn);this.stage.append(this.flipSoundBtn);this.renderMultimediaSound()},renderMultimediaSound:function(){if(this.hasMulmedia()&&!this.mulEditorSoundBtn){this.multimediaOnImage= uiBaseURL+"multimediaOn.png";this.multimediaOffImage=uiBaseURL+"multimediaOff.png";var a=getLanguage("multimediaSoundOn","Music on");this.mulEditorSoundBtn=$('

'+a+"

");this.stage.prepend(this.mulEditorSoundBtn);this.mulEditorSoundBtn.bind(_event._end,this.onChangeMultimediaSound.bind(this))}},hasCurrentMusic:function(){var a,b=null==(a=window.mulEditorInfo)?void 0:a.pageHasMusic;return b&&"function"=== typeof b?(a=BookInfo.getCurrentPages(),b(a)):!1},onChangeMultimediaSound:function(){var a=this.getMultimediaSoundPlayState();if(!this.hasCurrentMusic()){var b="\u5f53\u524d\u5b58\u5728\u65e0\u97f3\u4e50\u7684\u9875\u9762\uff0c\u5f00\u542f\u97f3\u4e50\u540e\uff0c\u4ec5\u5728\u6709\u97f3\u4e50\u7684\u9875\u9762\u64ad\u653e\u3002",c="\u5173\u95ed\u97f3\u4e50\u540e\uff0c\u6709\u97f3\u4e50\u7684\u9875\u9762\u5c06\u4e0d\u518d\u64ad\u653e\u3002";"Chinese"!==UserGroups&&(b="There are pages without music currently. Once music is enabled, it will only play on pages with music.", c="After music is disabled, pages with music will no longer play.");b=a?getLanguage("settingMultimediaSoundPauseTips",c):getLanguage("settingMultimediaSoundPlayTips",b);c=new TipsBox({opacity:1,duration:3E3},$("body"));c.background.css({"z-index":9999,background:"rgba(205,226,250,0.35)",left:"50%",right:"initial",transform:"translate(-50%)",padding:"10px 12px","box-shadow":"0px 6px 40px 0px rgba(3,8,26,0.1)","border-radius":"8px",width:"auto"});c.setCaption(b);c.showTipsBox()}b=a?"pause":"play";window.mulEditorInfo.handleMusic({method:b}); this.setEnabledMusic(!a);this.changeMultimediaSoundBtnCase();a="play"===b?getLanguage("multimediaSoundOn","Music on"):getLanguage("multimediaSoundOff","Music off");BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"multimedia sound",a])},changeMultimediaSoundBtnCase:function(a){"undefined"===typeof a&&(a=this.getMultimediaSoundPlayState());var b=a?this.multimediaOnImage:this.multimediaOffImage;a=a?getLanguage("multimediaSoundOn","Music on"):getLanguage("multimediaSoundOff","Music off"); this.mulEditorSoundBtn.find("img").attr("src",b);this.mulEditorSoundBtn.find(".title").html(a)},hideMultimediaSoundBtn:function(){this.mulEditorSoundBtn&&this.mulEditorSoundBtn.hide()},initEvent:function(a){this.flipSoundBtn.bind(_event._end,function(){global.flipSoundIsPlaying=!global.flipSoundIsPlaying;this.changeFlipSoundBtnCase()}.bind(this));this.backgroundSoundBtn.bind(_event._end,function(){window.bgSound&&bgSound.playOrPause();this.changeBackgroundBtnCase()}.bind(this))},changeFlipSoundBtnCase:function(){global.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()):(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")]));this.changeBackgroundSoundButtonState()},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")]))},changeBackgroundSoundButtonState:function(){isPlaying||global.flipSoundIsPlaying?StateSynchronous.instance().findButtons("BackgroundSoundButton").each(function(a){a.setAsSoundOn();a.executeCallback()}):StateSynchronous.instance().findButtons("BackgroundSoundButton").each(function(a){a.setAsSoundOff(); a.executeCallback()})},onShow:function(){},changeLanguage:function(){global.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")); this.getMultimediaSoundPlayState()?this.mulEditorSoundBtn&&this.mulEditorSoundBtn.find(".title").html(getLanguage("multimediaSoundOn","Multimedia sound on")):this.mulEditorSoundBtn&&this.mulEditorSoundBtn.find(".title").html(getLanguage("multimediaSoundOff","Multimedia sound off"))},reset:function(){this.resetMultimediaSound()},hasMulmedia:function(){var a;return null==(a=window.mulEditorInfo)?void 0:a.hasMusic},getMultimediaSoundPlayState:function(){return this.enabledMusic},setEnabledMusic:function(a){this.enabledMusic= a;window.mulEditorInfo.enabledMusic=a},resetMultimediaSound:function(){this.hasMulmedia()?this.mulEditorSoundBtn?this.changeMultimediaSoundBtnCase():this.renderMultimediaSound():this.mulEditorSoundBtn&&this.mulEditorSoundBtn.remove()}}).extend(FadeOutFadeForm); Class("AutoFlip",{create:function(){this.duration=bookConfig.autoPlayDuration;this.loopCount=bookConfig.autoPlayLoopCount;this.loopNumber=0;bookConfig.autoPlayAutoStart&&bookConfig.AutoPlayButtonVisible&&this.start.delay(this,300)},isPlaying:function(){return this.interval?this.interval.isRunning():!1},start:function(){this.isPlaying()||(this.interval?this.interval.start():this.interval=this.flipPage.interval(this,1E3*this.duration),StateSynchronous.instance().findButtons("AutoPlayButton",!0).each(function(a){a.setAsStop(); a.executeCallback()}))},stop:function(){this.isPlaying()&&(this.interval&&this.interval.stop(),this.loopNumber=0,StateSynchronous.instance().findButtons("AutoPlayButton",!0).each(function(a){a.setAsStart();a.executeCallback()}))},flipPage:function(){var a=bookConfig.totalPageCount;bookConfig.SingleModeBanFlipToLastPage&&bookType==BookType.single_book&&(a=Math.max(1,bookConfig.totalPageCount-1));-1=this.loopNumber? firstPageFun("auto flip"):this.stop()):nextPageFun("auto flip")}}); var SliderShowAd=Class({create:function(a,b){this.parent=a;this.slides=b.data;this.interval=b.interval||3E3;this.timer=null;this.index=0;this.adPosition=parseInt(_get(b,"adPosition",1));this.imgWidth=parseInt(_get(b,"width",60));this.imgHeight=parseInt(_get(b,"height",60));this.closeBtn=$("
");3==this.adPosition?(this.tableBox=$("
"), this.closeBtn.css({right:"0px",top:"22px"})):this.tableBox=$("
");this.closeUrl=uiBaseURL+"ad_close.png";this.closeIcon=$("");this.closeBtn.append(this.closeIcon);this.closeBtn.bind("click",this.hide.bind(this));(isPhone()||isPad())&&3==this.adPosition?this.parent.append(this.closeBtn):window.staticAd.bgColor?this.parent.append(this.closeBtn): (this.tableBox.css("position","relative"),this.tableBox.append(this.closeBtn));this.parent.append(this.tableBox);this.initSwiperHtml();this.setSwiperInterval(b)},initSwiperHtml:function(){for(var a=0;a"):$("");this.swiperImg=$("");this.swiperImg.attr("src", this.slides[a].src);switch(this.adPosition){case 1:case 2:this.swiperImg.css({margin:"0 auto",width:"auto",height:"60px"});break;case 3:this.swiper.css({width:"100%",height:"100%"}),this.swiperImg.css({width:"100%",height:"100%","object-fit":"contain"})}this.swiper.append(this.swiperImg);0=windowWidth/this.imgHeight&&$(this).css({width:"100%",height:"auto"})})}},getCorrectUrl:function(a){return getRealURL(a)}, setSwiperInterval:function(){this.timer=setInterval(function(){this.index++;this.index=this.index==this.slides.length?0:this.index;this.tableBox.find("a").eq(this.index).show().siblings("a").hide()}.bind(this),this.interval)},hide:function(){this.parent.animate({bottom:-85},1E3,function(){this.destroy()}.bind(this))},destroy:function(){this.parent.remove();this.timer=null}}),PhoneSliderShow=Class({create:function(a,b){this.parent=a;this.slides=b.data;this.timer=null;this.index=0;this.tableBox=$("
"); this.closeBtn=$("
\u5173\u95ed
");this.closeBtn.bind("click",this.hide.bind(this));this.parent.append(this.closeBtn);this.parent.append(this.tableBox);this.initSwiperHtml();this.setSwiperInterval(b)},initSwiperHtml:function(){for(var a=0;a"):$(""),this.swiperImg=$(""),this.swiperImg.attr("src",this.slides[a].src),this.swiper.append(this.swiperImg),this.tableBox.append(this.swiper)},getCorrectUrl:function(a){return getRealURL(a)},setSwiperInterval:function(a){this.timer=setInterval(function(){this.index++;this.index=this.index== this.slides.length?0:this.index;this.tableBox.find("a").eq(this.index).show().siblings("a").hide()}.bind(this),a.interval)},hide:function(){this.parent.animate({bottom:-85},1E3,function(){this.destroy()}.bind(this))},destroy:function(){this.parent.remove();this.timer=null}}); Class("MediaBuffer",{contentType:"",type:"",$media:null,currentBytes:-1,url:"",fileSize:0,hasPlayed:!1,endedCallback:null,create:function(a,b,c){c=void 0===c?!1:c;try{this.url=a,this.type=b,"undefined"!==typeof MediaSource&&MediaSource.isTypeSupported("audio/mpeg")&&"file:"!=location.protocol&&0>this.url.indexOf("ogg")&&!c?(this.initMedia(),this.init()):this.requestFullData()}catch(d){}},initMedia:function(){this.type&&(this.mediaSource=new MediaSource,this.$media=document.createElement(this.type), this.$media.src=URL.createObjectURL(this.mediaSource))},init:function(){if(this.url){var a=new XMLHttpRequest;a.open("HEAD",this.url,!0);a.onreadystatechange=function(){if(4===a.readyState&&(200===a.status||304===a.status))try{(this.fileSize=a.getResponseHeader("Content-Length"))?(this.setMediaContentType(a.getResponseHeader("Content-Type")),this.setMediaType(),this.initMedia(),this.initMediaSource()):this.requestFullData()}catch(b){}}.bind(this);a.send()}},setMediaContentType:function(a){this.contentType= a=a.toLowerCase();0<=a.indexOf("mp3")&&(this.contentType="audio/mpeg");0<=a.indexOf("wav")&&(this.contentType="audio/wav");0<=a.indexOf("mp4")&&(this.contentType="video/mp4");0<=a.indexOf("webm")&&(this.contentType="video/webm")},setMediaType:function(){0<=this.contentType.indexOf("audio")&&(this.type="audio");0<=this.contentType.indexOf("video")&&(this.type="video")},initMediaSource:function(){this.mediaSource.addEventListener("sourceopen",function(){this.sourceBuffer=this.mediaSource.addSourceBuffer(this.contentType); this.preloadData();this.initEvent()}.bind(this))},preloadData:function(){var a=this.currentBytes+1,b=999999;this.fileSize-1-a<=1.5*b&&(b=this.fileSize-1-a);this.requestDataByRange(a,Math.min(a+b,this.fileSize-1))},initEvent:function(){this.$media.addEventListener("timeupdate",function(){this.requesting||.8<=this.getPlaybackProgress()&&this.preloadData()}.bind(this));this.sourceBuffer.addEventListener("updateend",function(){this.requesting=!1;this.currentBytes==this.fileSize-1&&(this.mediaSource.endOfStream(), $(this.$media).bind("ended",function(){this.endedCallback&&this.endedCallback()}.bind(this)))}.bind(this))},requestDataByRange:function(a,b){if(!(isNaN(a)||isNaN(b)||a<=this.currentBytes||b<=this.currentBytes||a>=this.fileSize||b>=this.fileSize||b");this.iconBox=$("");$(a).append(this.background);$(this.background).asButton();this.background.css({position:"absolute",width:this.width+"px",height:this.height+"px","-webkit-border-radius":"2px","-moz-border-radius":"2px","border-radius":"2px",cursor:"pointer"});void 0!=this.config.mainColor&&(this.mainColor=this.config.mainColor,this.background.css({"background-color":this.config.mainColor}));this.buttonType!= buttonType.icon_button&&(this.caption=this.config.caption,this.captionBox=new label(this.caption,this.background),this.setPosition());this.buttonType!=buttonType.caption_button&&(this.iconBox.attr("src",this.iconURL),this.asImgButton&&$(this.iconBox).asImageButton(),$(this.background).append(this.iconBox),this.iconBox.on("load",function(){this.setPosition()}.bind(this)))},setPosition:function(){if(this.buttonType==buttonType.double_button){var a=this.captionBox.getWidth(),b=this.captionBox.getHeight(), c=this.iconBox.width(),d=this.iconBox.height();switch(this.config.align){case buttonAlign.icon_left:this.width=a+c+12;this.height=Math.max(d,b)+6;$(this.iconBox).css({top:(this.height-d)/2+"px",left:"4px"});this.captionBox.setLabelPosition((this.height-b)/2,4,["top","right"]);break;case buttonAlign.icon_top:this.width=Math.max(c,a)+6;this.height=b+d+8;this.iconBox.css({top:"2px",left:(this.width-c)/2+"px"});this.captionBox.setLabelPosition((this.width-a)/2,2,["left","bottom"]);break;case buttonAlign.icon_right:this.width= a+c+12;this.height=Math.max(d,b)+6;$(this.iconBox).css({top:(this.height-d)/2+"px",right:"4px"});this.captionBox.setLabelPosition((this.height-b)/2,4,["top","left"]);break;case buttonAlign.icon_bottom:this.width=Math.max(c,a)+6,this.height=b+d+8,$(this.iconBox).css({bottom:"2px",left:(this.width-c)/2+"px"}),this.captionBox.setLabelPosition(2,(this.width-a)/2,["top","left"])}}else if(this.buttonType==buttonType.caption_button)this.width=this.captionBox.getWidth()+10,this.height=this.captionBox.getHeight()+ 10,this.captionBox.setLabelPosition(5,2);else if(this.buttonType==buttonType.icon_button)this.iconBox.on("load",function(){this.width=$(this.iconBox).width();this.height=$(this.iconBox).height()}.bind(this));$(this.background).css({width:this.width,height:this.height+"px"})},resize:function(a,b){this.onResize(a,b)},onResize:function(a,b){this.width=a;this.height=b;$(this.background).css({width:a+"px",height:b+"px"})},getWidth:function(){return this.width},getHeight:function(){return this.height}, setCSS:function(a){$(this.background).css(a)},setButtonPosition:function(a,b,c){void 0==c&&(c=["left","top"]);this.background.css(c[0],a+"px");this.background.css(c[1],b+"px")},setVisible:function(a){$(this.background).css({display:a?"block":"none"})},changeIcon:function(a){this.iconURL=a;$(this.iconBox).attr("src",this.iconURL);1==this.iconBox[0].colorChanged&&(this.iconBox[0].colorChanged=!1);this.setPosition()},changeCaption:function(a){this.captionBox.setCaption(a);this.setPosition()},getCaptionWidth:function(a){return this.captionBox.getWidth()}, setIconPosition:function(a,b){this.iconBox.css({left:a+"px",top:b+"px"})},setColor:function(a,b){this.mainColor=a;$(this.iconBox).changeButtonColor(a);this.buttonType!=buttonType.icon_button&&(this.captionBox.setFont("12px",b?b:a,"Tahoma"),$(this.background).css({"text-shadow":"1px 1px #666666"}))},onMouseDown:function(a,b){this.background.bind(_event._down,function(c){b.call(a,c);return!1})},onMouseUp:function(a,b){_agent_.browser.msie?this.background.bind("click",function(c){b.call(a,c);return!1}): this.background.bind(_event._end,function(c){b.call(a);return!1})},onMouseOver:function(a,b){this.background.bind(_event._move,function(c){b.call(a);return!1})},mouseEnterShine:function(a,b){this.background.mouseEnterShine(a,b)},mouseEnterJump:function(){this.background.mouseEnterJump()},mouseEnterLight:function(a){this.background.css({"border-radius":"5px"});this.background.bind(_event._enter,function(b){$(this).css({background:a})});this.background.bind(_event._leave,function(b){$(this).css({background:""})})}, onMouseOut:function(a,b){},onMouseLeave:function(a,b){},onMouseMove:function(a,b){},remove:function(){this.background.remove()}}); eval(function(a,b,c,d,e,f){e=function(g){return(62>g?"":e(parseInt(g/62)))+(35<(g%=62)?String.fromCharCode(g+29):g.toString(36))};if(0=="0".replace(0,e)){for(;c--;)f[e(c)]=d[c];d=[function(g){return f[g]||g}];e=function(){return"([2-46-9b-su-wA-Z]|1\\w)"};c=1}for(;c--;)d[c]&&(a=a.replace(new RegExp("\\b"+e(c)+"\\b","g"),d[c]));return a}("6 2;6 initDemoBar=b(){q(B.indexOf(\"C.D\")==-1){B+=\"C.D\"}q(!4.j||!4.j.E()||!4.c||!4.c.E())$(\"r\").F(\"\");6 s=4.c;2=$(\"\");2.3({u:'305px',l:'70px',m:'n','background-G':'#cccccc','H':0.5,'z-I':J,'-moz-v-w':'o','-webkit-v-w':'o','v-w':'o'});6 d=$(\"\");d.3({m:'n',e:'L',f:'o',\"M-u\":\"53px\",\"M-l\":\"N\"});6 g=$(\"\");g.3({m:'n',e:'13px',f:'65px'});6 demoLogo=$(\"\");6 h=$(\"\"+4.j+\"\");6 8=$(\"\"+s+\"\");8.3({m:'n',e:'25px',f:'0px'});h.3({'font-size':'15px',G:'#333333'});$(\"r\").i(2);2.i(g);g.i(h);bdor[18]=\"t\";g.i(8);$.fn.extend(2,{V:b(){2.3({e:0,f:0,W:0,X:0,O:\"auto\"})},Y:b(){d.on(\"load\",b(){2.i(d)});d.Z({P:Q+'R.S'})}});2.Y();2.V();window.setInterval(b(){q(!2||2.3(\"display\")==\"none\"||2.3(\"visibility\")==\"p\"||2.A(':p')||!2.parent()[0]||10(2.3(\"H\"))<=0||10(2.3(\"z-I\"))