Music 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,d){this.eventSource=b[0];this.origPicture=b[0].src;var f=this.origPicture.lastIndexOf("."),g=this.origPicture.substr(0,
f),f=this.origPicture.substring(f);this.pictureDown=d?d:g+"_down"+f;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(b){new f(this,b);return this};var g=function(b,d){this.eventSource=b[0];this.origPicture=b[0].src;var f=this.origPicture.lastIndexOf("."),g=this.origPicture.substr(0,f),f=this.origPicture.substring(f);this.pictureDown=d?d:g+"_down"+f;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?-50:50),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 d=function(d,h,m){m=(0,$.easing["easeOut"+m])(null,
d,c,b-c,h);d");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,J())};d.complete&&window.setTimeout(function(){d.onload()},10)}}).get();this.patterns=r;var x=f,z=g,D=b.browser.msie?c.offset():null,A,B,K,G;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(){D=c.offset();return h.css({left:D.left+"px",top:D.top+"px"})};b(window).resize(k);return k()}();this.autoFlip=function(){window.clearInterval(A);B=(new Date).getTime();K=x;G=z/50;A=window.setInterval(N,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 N=this.flip=function(b){var c=(new Date).getTime()-B;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=K-2*f*c/700,z=G+2*g*c/700/3);J()},C=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)),d
parseFloat(b.browser.version)?(A=v,A.clearRect(0,0,f,g),A.save(),A.translate(1,0)):A=w;t=A.createLinearGradient(t,B,y,D);t.addColorStop(0,q[0]);t.addColorStop(K/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;C(2,c);w.fill();C(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;g
n)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=[],p=getHighlightRealPageIndex(g),0>p||(n.search_page=p+1,n.search_title="page "+
(p+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}function getSearchRealPageIndex(b){if(!window.search_pages||void 0==search_pages[b-1])return b;var c;(b=search_pages[b-1])&&(c=parseInt(b.index));return isNaN(c)||-1==c?-1:c+1}
function getHighlightRealPageIndex(b){if(!window.search_pages)return b;for(var c=-1,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=
"2022062203",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.isNeat&&(bookConfig.FullscreenButtonVisible=!0);bookConfig.hideMiniFullscreen=getConfigValue("hideMiniFullscreen",!1);bookConfig.updatePageNumberForFlip=getConfigValue("updatePageNumberForFlip",!1);bookConfig.leastSearchChar=getConfigValue("leastSearchChar",0);bookConfig.PrintButtonVisible=getConfigValue("PrintButtonVisible",!1);bookConfig.MessageButtonVisible=getConfigValue("MessageButtonVisible",
!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.middleZoomWidth=getConfigValue("middleZoomWidth",0);isNaN(bookConfig.middleZoomWidth)&&(bookConfig.middleZoomWidth=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.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.supportSerialsFlip=getConfigValue("supportSerialsFlip",
!0);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&&(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()||"slide"==bookConfig.FlipStyle.toLowerCase()&&"lite"==bookConfig.ToolbarViewMode.toLowerCase())bookConfig.flipshortcutbutton=!1;bookConfig.BackgroundSoundURL||
bookConfig.FlipSound||(bookConfig.BackgroundSoundButtonVisible=!1);if(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();global.aboutReadTimesCaptions="Views";"Chinese"==UserGroups&&(global.aboutReadTimesCaptions="\u9605\u8bfb\u6b21\u6570");bookConfig.isNeat=getConfigValue("isNeat",!1);0<=window.location.hash.indexOf("isNeat")&&(bookConfig.isNeat=!0);bookConfig.phoneToolbarType=getConfigValue("phoneToolbarType","image").toLowerCase();bookConfig.phoneIconNumber=getConfigValue("phoneIconNumber",6);bookConfig.phoneIconNumber=Math.max(1,bookConfig.phoneIconNumber);
bookConfig.bookPath=getConfigValue("bookPath","../mobile/index.html");bookConfig.loadPreviewImage=!1;bookConfig.removeLoad=!0;bookConfig.showArticleDescription=getConfigValue("showArticleDescription",!1)};
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+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxMjEzMDhFMTJENEExMUU2QkMwNzhBMjQyMDhFOUZGMCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoxMjEzMDhFMjJENEExMUU2QkMwNzhBMjQyMDhFOUZGMCI+IDx4bXBNTTpEZXJpdmVkRnJvbSB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Xk/YVRr7OISRRwS0/DIsQJCXslNSpWubTBOmJ503w067qxiQJuMVxsqdmvsqTI84Qcvgx8iAgK7hY2MAfBWmB92gx9jBteYmTcaWAPhZQqaH3KDleJzbAlCA8gA0GWLjyLRPjT7Em8pUA9ozm0qmfWq0nKb1pbL2qAThZtgVAD+F5Xay7bOAZht7VyHNCyC9rXbNfQyR5efOPzhBy9jpJGUsU6skyy+igZbJRFl394ThlLHNI8sD0UCHGTbNV841Y8bSadrmk2U4GmixVgbZ0zUuSFjpsZgxlk0jw43uRttpP0B7ldmGnIktI8Pv44EWWwvNVZy9NZaSDSe7tdHCELfJ+miZvX3BcEvZVpDdpmRAy7TWq/wK3GLYJW3CSrYNvqaiTA2aDZ3eWVobOuWJK6FnlWvTi7GodgdZrYwGOV6Nti/CHr7QbLqPHzfLOJEcHC67sVLedN/LZuMu03zENWFzN+9psU+vTGI/RhOPIaswZ3P002iyafLiTCWZKdjJr4g56qc/F7F7E3FJZki0m313uZu+YfhGTFhUKGsrd+LKl8LX5HFzHFu/49jmZuuAwdXmgMHsHzBoH5m50RyZeZVBUS4OgW0r4ENg23JxCGy0Y41nFgDkmX4ca+zMaWIf1J3PN8jlLOO7meSO8fLo+eY8PHq+WYej552aA3Ux00NFnvT49rJMc3TKWvGxsqbYpZspmR5qlf7rQ2J14MT3b/l7JcvmwUyn9wlvmpg0ZkfAEt5MCErCG3cKpw463RyAFE7N9LUjKCmc4iUle4ttny6AR9En8e2PoCYlc8fcS6EjrjR7xT7ALXal2eukb4FOsxct7pZkjbsZDp5gMsfJOUgcWc3POsFwbXeuE0f6mQr1GWWdkZ/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)||BookEvent.trigger("beforeFlipPage",[b])||(gotoPageVisit(b,d),BookEvent.suspendFlipPage&&0<=BookInfo.getCurrentPagesByIndex(b).indexOf(parseInt(BookEvent.suspendFlipPage))))){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();NeatStyle.refreshSlider();global.pcArticlePages&&(global.pcArticlePages.clearHighLight(),
global.pcArticlePages.setHighLight(b));global.phoneArticlePages&&(global.phoneArticlePages.clearHighLight(),global.phoneArticlePages.setHighLight(b));global.flipPageAudio&&global.flipPageAudio.playByIndex(b);global.phoneGotoPagePanel&&global.phoneGotoPagePanel.showFirstOrLast()}}},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("touchsrtart",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":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.stage.css({visibility:"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;var c=transformCSS({tran:{x:b,y:0}});animateOnce(this.stage,c,0.2,function(){this.animating=!1;0==b&&this.stage.css({visibility:"hidden"})}.bind(this));animateOnce(this.parent,c,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.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":colorDiv(this.mainColor,20),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(),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;var c=transformCSS({tran:{x:0,y:-b}});animateOnce(this.stage,c,0.2,function(){this.animating=!1;0==b&&this.stage.css({visibility:"hidden"});if(this.onShow)this.onShow()}.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),PhoneReaderFormFrame=Class({onCreate:function(){this.parent.append(this.stage);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.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())}}).extend(PhoneBottomFormFrame),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.stage.css({visibility:"hidden"});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.css({visibility:"visible"});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();this.stage.css({visibility:"hidden"})}.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.noThumbBg=$("
");this.leftBtn=$(" ");this.rightBtn=$(" ");this.thumbnail.append(this.noThumbBg).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,c){b.match(/^none/)?(this.noThumbBg.css({display:"block"}),this.image.css({display:"none"})):(this.image.attr("src",b),this.noThumbBg.css({display:"none"}),this.image.css({display:"inline-block",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.61?{width:7.18,height:Number.fixed(7.18*c/b,2)}:{width:Number.fixed(10.61*b/c,2),height:10.61}},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){if(b&&b.length){this.initLoadPrint();var c=0;this.printArea.empty();this.printArray=[];var d=function(d,g,l,m){d=$("
");
l=$(l);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"}));isIE();$(l).parent().css({"text-align":"center",width:"100%",height:"100%"});l.css({"text-align":"center",margin:"0 auto",display:"inline-block","max-width":"100%",
"max-height":"100%"});this.printArray[m]=d;c++;if(c==b.length){for(m=1;m ");
f.on("load",function(){for(var c=0;c"),this.printLoad.css({display:"none","z-index":"1001",position:"absolute",left:"0",top:"0",width:"100%",height:"100%",background:"rgba(11,11,11,0.7)"}),this.printLoad.bind("click",function(b){b.stopPropagation();window.printLoadStack&&window.printLoadStack.destroy();this.hidePrintLoading()}.bind(this)),this.loadingIcon=$(" "),this.printLoad.append(this.loadingIcon),tmpContainer.append(this.printLoad));this.showPrintLoading()},showPrintLoading:function(){this.printLoad&&this.printLoad.fadeIn(200)},hidePrintLoading:function(){this.printLoad&&this.printLoad.fadeOut(200)}}),PrintElements=Class({create:function(b){this._super(b);this.printOnUrl=form_icons.print_on?"data:image/png;base64,"+form_icons.print_on:uiBaseURL+"print_on.png";this.printOffUrl=form_icons.print_off?"data:image/png;base64,"+
form_icons.print_off:uiBaseURL+"print_off.png";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=$("")):(this.printAll=$(""+getLanguage("frmPrintall","Print All Pages")+" "),this.printCurrent=
$(""+getLanguage("frmPrintcurrent","Print Current Pages")+" "),this.printRange=$(""));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.getOnIcon()+"
"),this.printCurrent=$(""+getLanguage("frmPrintcurrent","Print Current Pages")+" "+this.getOffIcon()+"
"),this.printRange=$("")):(this.printAll=$(""+this.getOnIcon()+"
"+getLanguage("frmPrintall","Print All Pages")+" "),this.printCurrent=$(""+
this.getOffIcon()+"
"+getLanguage("frmPrintcurrent","Print Current Pages")+" "),this.printRange=$(""));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.hideDownloadSinglePage?downloadconfig.pdf?"downloadAll":"downloadAttachments":"downloadCurrent";this[this.downloadButton.downloadType].find("img").attr("src",this.downloadOnUrl);this[this.downloadButton.downloadType].addClass("on");
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,"normal"));"downloadAttachments"==this.downloadButton.downloadType&&(b=this.selectAttachments[0].value);if("object"==typeof b)for(var d=0;d');b[0].click();b.remove()}.bind(this)),this.downloadPdfLoadingTask.start()):-1');b[0].click();b.remove()}.bind(this)):("downloadCurrent"==this.downloadButton.downloadType&&(b=b.removeStartFrom("?")),b.match(/^none/)?(b=document.createElement("canvas"),d=b.getContext("2d"),b.width=bookConfig.largePageWidth,b.height=bookConfig.largePageWidth,d.fillStyle=bookConfig.pageBackgroundColor,d.fillRect(0,0,bookConfig.largePageWidth,bookConfig.largePageHeight),$(" ')[0].click()):
window.open(b,"_blank"))}.bind(this))},loadImages:function(b){var c=0,d=$(" ");d.css({width:bookConfig.largePageWidth+"px",height:bookConfig.largePageHeight+"px"});d.attr("width",bookConfig.largePageWidth+"px");d.attr("height",bookConfig.largePageHeight+"px");for(var f=0;f");g.attr("src",b);g[0].onload=function(b){b=$(this);bookConfig.largePageWidth/bookConfig.largePageHeight>b[0].naturalWidth/b[0].naturalHeight?b.css({width:"auto",height:"100%"}):b.css({width:"100%",height:"auto"});d.drawImage(b);c++;c==imageURL.length&&callback&&callback(imageURL,imageURL,d,index)};g[0].onerror=function(b){c++;c==imageURL.length&&callback&&callback(imageURL,imageURL,d,index)}}},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);downloadconfig.hideDownloadSinglePage||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=$(" ");this.noThumbBg=$("
");
if(isPhone()||isPad())this.thumb.css({width:"80px"}),this.noThumbBg.css({width:"80px",height:"104px"});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.noThumbBg.onTap(function(){this.noThumbBg.attr("index")&&((isPhone()||isPad()||global.frmSearch)&&global.frmSearch.hide(),gotoPageFun(this.noThumbBg.attr("index"),!1,"search"))}.bind(this));this.searchPageSwiper.append(this.pageResult).append(this.pageItem.append(this.noThumbBg).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),this.noThumbBg.attr("index",c),fillImageAfterLoaded(c,"thumb",function(b){b.match(/^none/)?(this.noThumbBg.css({display:"block"}),this.thumb.attr("src","").css({display:"none"})):(this.thumb.attr("src",b).css({display:"inline-block"}),this.noThumbBg.css({display:"none"}))}.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(fixURLValue(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(fixURLValue(bookConfig.searchTextJS),function(){c=!0;f()},function(){c=!0;f()});var g=String.format(bookConfig.searchPositionJS,BookInfo.getCurrentPageIndex());loadJavascript(fixURLValue(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:bookConfig.socialShareLink?bookConfig.socialShareLink:window.location.href.removeStartFrom("#p=")});this.pContainer.append(this.canvas).append(this.svg)},initPosterImg:function(){this.beforeCreatePoster();this.canvas[0].width=684;this.canvas[0].height=1036;this.imgs=[this.cvsBg,this.thumb];this.getSrcAndImg(0)},setImgs:function(b,c){var d=b.imgs;b.loadImgFun(d[c]).then(function(){c+=1;c ");k.attr("src",h);k.attr("crossOrigin","Anonymous");
this.imgs.push(k)}}.bind(this));this.setImgs(this,b)}},afterLoadPdf:function(b,c){var d=$(" ");d.attr("src",c.toDataURL("image/png"));d.attr("crossOrigin","Anonymous");this.imgs.push(d);this.setImgs(this,b)},loadImgFun:function(b){var c=$(b);return new Promise(function(b,f){c[0].complete?(console.log("load img complete"),c.attr("crossOrigin","Anonymous"),b()):(c[0].onload=function(){c.attr("crossOrigin","Anonymous");console.log("load img ok");b()},c[0].onerror=function(b){console.log("load img error",
c);f(b)})}.bind(this))},drawImages:function(b,c){this.imgs.shift();this.imgs.forEach(function(d){var f=getImageConfig(d[0],556,781);""===d.attr("src")?(f={width:556,height:781,left:0,top:0},this.ctx.fillStyle="#ffffff",this.ctx.fillRect(b+f.left,c+f.top,f.width,f.height)):this.ctx.drawImage(d[0],f.left+b,f.top+c,f.width,f.height)}.bind(this))},drawPoster:function(){var b=window.document.title,c=getImageConfig(this.thumb[0],556,781);-1g;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;b.setAttribute("crossOrigin","Anonymous");bookConfig.appLogoIcon&&this.ctx.drawImage(b,611,961,20,20)},getCloseSrc:function(){return"./style/icon/close.svg"},initPosterImgPanel:function(){this.topTitle=$("
");
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"+getLanguage("frmPanelTitle","Share to")+":");this.linkBox=$("
");this.linkTitle=$(""+getLanguage("frmLinkLabel","Link")+":
");this.linkArea=$(" ");this.copy1=$(""+getLanguage("lblCopy","Copy")+"
");this.codeBox=$("
");this.codeButton=
$(""+getLanguage("frmShareQRcode","QRCode")+" "+getLanguage("frmShareSmallProgram","smallProgram")+"
");this.shareCode=$("");this.miniProgramCode=$("
");this.shareCode.find(".QRcode").qrcode({width:100,height:100,render:global.isIE8()?"":"image",text:share_url});bookConfig.SmallProgramUrl&&this.codeBox.append(this.miniProgramCode);this.codeBox.append(this.shareCode);this.codeBox.append(this.codeButton);this.bigCodeBox=$("
");
this.bigMiniProgramCode=$("
");this.shareCodeArrowBorder=$("
");this.shareCodeArrow=$("
");bookConfig.RightToLeft?(this.shareCodeArrowBorder.css({width:"0",height:"0","border-top":"6px solid transparent","border-right":"12px solid #dedede",
"border-bottom":"6px solid transparent",position:"absolute",left:"-12px",top:"84px"}),this.shareCodeArrow.css({width:"0",height:"0","border-top":"5px solid transparent","border-right":"10px solid #fff","border-bottom":"5px solid transparent",position:"absolute",left:"-10px",top:"85px"})):(this.shareCodeArrowBorder.css({width:"0",height:"0","border-top":"6px solid transparent","border-left":"12px solid #dedede","border-bottom":"6px solid transparent",position:"absolute",right:"-12px",top:"84px"}),
this.shareCodeArrow.css({width:"0",height:"0","border-top":"5px solid transparent","border-left":"10px solid #fff","border-bottom":"5px solid transparent",position:"absolute",right:"-10px",top:"85px"}));this.bigCodeBox.append(this.shareCodeArrowBorder);this.bigCodeBox.append(this.shareCodeArrow);this.bigMiniProgramCode.append(this.shareCodeArrow.clone(!0));bookConfig.RightToLeft?(this.bigCodeBox.css("right","-200px"),this.bigMiniProgramCode.css("right","-195px")):(this.bigCodeBox.css("left","-200px"),
this.bigMiniProgramCode.css("left","-195px"));this.shareCode.append(this.bigCodeBox);this.miniProgramCode.append(this.bigMiniProgramCode);this.shareCurrentPageBox=$("
");this.shareCurrentCheck=$(" ");this.shareCurrentPageTitle1=$(""+getLanguage("DownloadCurrentPage","Current Page")+"
");this.sharePanel=$("
");this.initQRCode();
this.showOrHideCheck();this.initCodeCss();this.addItem(this.sharePanel)},showOrHideCheck:function(){bookConfig.addCurrentPage?(this.shareCurrentPageBox.css({display:"block"}),this.shareCurrentPageBox.parent().css({height:"215px"}),this.shareCurrentChecked=!0,this.fillArea(!0,"link"),this.shareCurrentCheck.attr("src",this.searchOnUrl),this.shareCurrentCheck[0].colorChanged=!1):(this.shareCurrentPageBox.css({display:"none"}),this.shareCurrentPageBox.parent().css({height:"200px"}),this.fillArea(!1,"link"))},
initQRCode:function(){this.qrcode=$("");var b=$(""+getLanguage("frmShareQRcode","QRCode")+" ");this.qrcode.find(".QRcode").qrcode({width:100,height:100,render:"image",text:share_url});$(this.qrcode.find("p")).append(b);if(bookConfig.SmallProgramUrl){b.css({cursor:""});this.qrcode.find(".miniProgram img").attr("src",bookConfig.SmallProgramUrl);this.qrcode.addClass("two");
var c=$(""+getLanguage("frmShareSmallProgram","smallProgram")+" ");$(this.qrcode.find("p")).append(b);$(this.qrcode.find("p")).append(c);b.onTap(function(){c.removeClass("checked");b.addClass("checked");this.qrcode.find(".QRcode").addClass("showQR");this.qrcode.find(".miniProgram").removeClass("showQR")}.bind(this));c.onTap(function(){b.removeClass("checked");c.addClass("checked");this.qrcode.find(".QRcode").removeClass("showQR");this.qrcode.find(".miniProgram").addClass("showQR")}.bind(this))}},
initCodeCss:function(){bookConfig.SmallProgramUrl||(this.codeButton.find(".miniProgram").css({display:"none"}),this.codeButton.find(".qrcode").css({width:"100%",background:"transparent",opacity:"1",cursor:"auto"}),this.shareCode.css({"margin-top":"10px"}));this.miniProgramCode.css({display:"none"})},fillArea:function(b,c){var d=share_url;0<=d.toLowerCase().indexOf("file:")&&(d="index.html");b&&(this.shareCurrentChecked=b,d=d+"#p="+getShownPageNumber(BookInfo.getCurrentPageIndex()));"link"==c&&this.linkArea&&
this.linkArea.val(d);this.shareCurrentCheck.attr("src",this.shareCurrentChecked?this.searchOnUrl:this.searchOffUrl);this.shareCurrentCheck[0].colorChanged=!1;this.qrcode.find(".QRcode").empty().qrcode({width:100,height:100,render:"image",text:d});this.shareCode.find(".QRcode").empty().qrcode({width:100,height:100,render:global.isIE8()?"":"image",text:d})},addItem:function(b){if(this.shareList&&!(0>this.shareList.length))for(b=0;b "),copyHref(c[0])):c=-1 "):$(" ");this.sharePanel.append(c);this.itemArray.push(c);var d=this;c.bind(_event._end,function(){var b=$(this).attr("title");BookEvent.trigger("share",[BookInfo.getCurrentPageIndex(),b,d.shareCurrentChecked])})}}},initEvent:function(b){this.copy1.onTap(function(){BookEvent.trigger("share",[BookInfo.getCurrentPageIndex(),getLanguage("lblCopy","Copy"),self.shareCurrentChecked]);this.copyFrom(this.linkArea)}.bind(this));this.linkArea.onTap(function(){this.linkArea.select()}.bind(this));this.shareCurrentCheck.onTap(function(){this.shareCurrentChecked=
!this.shareCurrentChecked;this.afterCheckClick()}.bind(this));this.linkArea.bind("mousedown touchstart pointerdown mouseover mousemove",function(b){b.stopPropagation()});this.initCodeEvent();this.linkInputChnagedEvent()},afterCheckClick:function(){this.fillArea(this.shareCurrentChecked,"link");this.shareCurrentCheck.attr("src",this.shareCurrentChecked?this.searchOnUrl:this.searchOffUrl);this.shareCurrentCheck[0].colorChanged=!1;this.shareCurrentCheck.changeButtonColor(this.fontColor)},initCodeEvent:function(){bookConfig.SmallProgramUrl&&
(this.codeButton.find(".qrcode").bind("click",function(){this.codeButton.find(".qrcode").addClass("active");this.codeButton.find(".miniProgram").removeClass("active");this.shareCode.show();this.miniProgramCode.hide();BookEvent.trigger("share",[BookInfo.getCurrentPages().join("-"),getLanguage("frmShareQRcode","QRCode"),this.shareCurrentChecked])}.bind(this)),this.codeButton.find(".miniProgram").bind("click",function(){this.codeButton.find(".qrcode").removeClass("active");this.codeButton.find(".miniProgram").addClass("active");
this.miniProgramCode.show();this.shareCode.hide();BookEvent.trigger("share",[BookInfo.getCurrentPages().join("-"),getLanguage("frmShareSmallProgram","smallProgram"),this.shareCurrentChecked])}.bind(this)),this.miniProgramCode.bind("mouseenter",function(){this.bigMiniProgramCode.fadeIn("100")}.bind(this)),this.miniProgramCode.bind("mouseleave",function(){this.bigMiniProgramCode.fadeOut("100")}.bind(this)));this.shareCode&&(this.shareCode.bind("mouseenter",function(){this.initBigCode();this.bigCodeBox.fadeIn("100")}.bind(this)),
this.shareCode.bind("mouseleave",function(){this.bigCodeBox.fadeOut("100")}.bind(this)))},initBigCode:function(){this.bigShareCode||(this.bigShareCode=$("
"),this.bigCodeBox.append(this.bigShareCode));this.bigShareCode.empty().qrcode({width:160,height:160,render:global.isIE8()?"":"image",text:share_url})},linkInputChnagedEvent:function(){if(this.linkArea)this.linkArea.on("input propertychange change",function(){var b=this.linkArea.val();0<=b.toLowerCase().indexOf("file:")&&
(b="index.html");share_url=b;this.analysisShare.refreshList();this.shareList=this.analysisShare.getList();for(b=0;b");this.shareStage=$("
");
this.shareSwiper=$("
");this.progress=$("
");this.progressBar=$("
");this.shareSwiper.append(this.sharePanel);this.shareStage.append(this.shareSwiper);this.shareStage.append(this.progress);this.progress.append(this.progressBar);this.swiperContainer.append(this.shareStage);this.shareStage.scroll({},Direction.top,"win10")},initHtml:function(){this._super()},resetColorChanged:function(){this._super();bookConfig.addCurrentPage&&
(this.shareCurrentCheck[0].colorChanged=!1,this.elements.shareCurrentChecked?this.shareCurrentCheck.attr("src",this.elements.searchOnUrl):this.shareCurrentCheck.attr("src",this.elements.searchOffUrl))},changeIconColor:function(){this._super();this.changeItemColor()},changeItemColor:function(){this.elements.fontColor=this.fontColor;this.shareCurrentCheck.changeButtonColor(this.fontColor)},onShow:function(){this.changeIconColor();this.shareStage.refreshData()}}).extend(FadeOutFadeForm),PhoneShareForm=
Class({create:function(b){this.elements=new ShareElements(this);this._super(b)},onCreate:function(){this.stage.css({color:this.fontColor});this.close.changeButtonColor(this.fontColor);this.back.css({color:this.fontColor});this.favicon&&this.favicon.changeButtonColor(this.fontColor);this._super()},initHtml:function(){this.initSwiper();var b="Back";"Chinese"==UserGroups&&(b="\u8fd4\u56de");b=getLanguage("btnBack",b);this.back=$(""+b+" ");this.stage.append(this.back);this.stage.append(this.title);this.favicon&&(bookConfig.RightToLeft?this.title.append(this.favicon):this.title.prepend(this.favicon));this.stage.append(this.close);this.stage.append(this.shareSwiper);this.stage.append(this.qrcode);this.hideQRCode()},initSwiper:function(){this.shareSwiper=$("
");this.shareSwiperList=$("
");
this.refreshSwiper(this.shareSwiperList,this.shareList);this.shareSwiper.append(this.shareSwiperList);isPhone()||isPad()?this.shareSwiper.css({"overflow-y":"auto","overflow-x":"hidden","-webkit-overflow-scrolling":"touch"}):(this.shareSwiper.css({overflow:"hidden"}),this.shareSwiperList.css({top:0,left:0,width:"100%",position:"absolute"}),this.progress=$("
"),this.progressBar=$("
"),this.shareSwiper.append(this.progress),this.progress.append(this.progressBar),
this.shareSwiper.scroll({},Direction.top))},refreshSwiper:function(b,c){for(var d=c.length,f=0;f");this.title.append(this.close);this.stage.append(this.title);this.container.append(this.logo);this.container.append(this.description);this.container.append(this.author);this.container.append(this.address);this.container.append(this.email);this.container.append(this.website);this.container.append(this.mobile);this.stage.append(this.container)},bookReadTimesVisible:function(){var b=setInterval(function(){try{0"+getLanguage("frmaboutcaption","Contact")+"");this.descriptionTitle=$(""+getLanguage("frmaboutDESCRIPTION",
"Description")+" ");this.logo=$(" ");this.initDom();this.resetAboutHtml();bookConfig.AboutWebsite&&this.logo.attr("href",bookConfig.AboutWebsite)},resetAboutHtml:function(){bookConfig.CompanyLogoFile?this.logo.css({display:"inline-block",background:"url('"+bookConfig.CompanyLogoFile+"') center center no-repeat",
"background-size":"contain"}):this.logo.css({display:"none"});this.strViews=getLanguage("frmaboutViews",global.aboutReadTimesCaptions);rightToLeft?(this.author.html(""+bookConfig.AboutAuthor+"
: "+getLanguage("frmaboutAUTHOR","Author")+" "),this.address.html(""+bookConfig.AboutAddress+"
: "+getLanguage("frmaboutADDRESS","Address")+" "),this.email.html(""+bookConfig.AboutEmail+" : "+getLanguage("frmaboutEMAIL","Email")+" "),this.website.html(""+bookConfig.AboutWebsite+" : "+getLanguage("frmaboutWEBSITE","Website")+" "),this.mobile.html(""+bookConfig.AboutMobile+" : "+
getLanguage("frmaboutMOBILE","Mobile")+" "),this.description.html(""+bookConfig.AboutDescription.replaceAll(" "," ")+" "),this.views.html(""+this.ReadTimes+"
: "+getLanguage("frmaboutViews",this.strViews)+" ")):(this.author.html(""+getLanguage("frmaboutAUTHOR","Author")+": "+bookConfig.AboutAuthor+" "),this.address.html(""+
getLanguage("frmaboutADDRESS","Address")+": "+bookConfig.AboutAddress+" "),this.email.html(""+getLanguage("frmaboutEMAIL","Email")+": "+bookConfig.AboutEmail+" "),this.website.html(""+getLanguage("frmaboutWEBSITE","Website")+": "+bookConfig.AboutWebsite+
" "),this.mobile.html(""+getLanguage("frmaboutMOBILE","Mobile")+": "+bookConfig.AboutMobile+" "),this.description.html(""+bookConfig.AboutDescription.replaceAll(" "," ")+" "),this.views.html(""+getLanguage("frmaboutViews",this.strViews)+": "+this.ReadTimes+"
"));this.email.bind(_event._down,
function(){BookEvent.trigger("jumpLink",["about email",BookInfo.getCurrentPages().join("-"),bookConfig.AboutEmail])});this.website.bind(_event._down,function(){BookEvent.trigger("jumpLink",["about website",BookInfo.getCurrentPages().join("-"),bookConfig.AboutWebsite])});this.mobile.bind(_event._down,function(){BookEvent.trigger("jumpLink",["about mobile",BookInfo.getCurrentPages().join("-"),bookConfig.AboutMobile])});this.showOrHideContent()},showOrHideContent:function(){var b="inline-block";if(isPhone()||
isPad()||"brief"==global.templeteName)b="block";this.views.css({display:this.ReadTimes?b:"none"});this.author.css({display:bookConfig.AboutAuthor?b:"none"});this.address.css({display:bookConfig.AboutAddress?b:"none"});this.email.css({display:bookConfig.AboutEmail?b:"none"});this.website.css({display:bookConfig.AboutWebsite?b:"none"});this.mobile.css({display:bookConfig.AboutMobile?b:"none"});this.description.css({display:bookConfig.AboutDescription?b:"none"})},initDom:function(){this.views=$("
");
this.author=$("
");this.address=$("
");this.email=$("
");this.website=$("
");this.mobile=$("
");this.description=$("
")},pickElements:function(b){b&&(b.contactTitle=this.contactTitle,b.descriptionTitle=this.descriptionTitle,b.logo=this.logo,b.author=this.author,b.address=this.address,b.email=this.email,b.website=this.website,
b.mobile=this.mobile,b.description=this.description,b.views=this.views,b.ReadTimes=this.ReadTimes)},initEvent:function(b){this.contactTitle.onTap(function(){b.showContact()});this.descriptionTitle.onTap(function(){b.showDescription()})},changeLanguage:function(){this.contactTitle.html(getLanguage("frmaboutcaption","Contact"));this.descriptionTitle.html(getLanguage("frmaboutDESCRIPTION","Description"));this.rightToLeft?(this.author.find(".title").html(":"+getLanguage("frmaboutAUTHOR","Author")),this.address.find(".title").html(":"+
getLanguage("frmaboutADDRESS","Address")),this.email.find(".title").html(":"+getLanguage("frmaboutEMAIL","Email")),this.website.find(".title").html(":"+getLanguage("frmaboutWEBSITE","Website")),this.mobile.find(".title").html(":"+getLanguage("frmaboutMOBILE","Mobile")),this.views.find(".title").html(":"+getLanguage("frmaboutViews",this.strViews))):(this.author.find(".title").html(getLanguage("frmaboutAUTHOR","Author")+":"),this.address.find(".title").html(getLanguage("frmaboutADDRESS","Address")+
":"),this.email.find(".title").html(getLanguage("frmaboutEMAIL","Email")+":"),this.website.find(".title").html(getLanguage("frmaboutWEBSITE","Website")+":"),this.mobile.find(".title").html(getLanguage("frmaboutMOBILE","Mobile")+":"),this.views.find(".title").html(getLanguage("frmaboutViews",this.strViews)+":"))}}).extend(FormElements);
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(b){b.setAsStop();
b.executeCallback()}))},stop:function(){this.isPlaying()&&(this.interval&&this.interval.stop(),this.loopNumber=0,StateSynchronous.instance().findButtons("AutoPlayButton",!0).each(function(b){b.setAsStart();b.executeCallback()}))},flipPage:function(){var b=bookConfig.totalPageCount;bookConfig.SingleModeBanFlipToLastPage&&bookType==BookType.single_book&&(b=Math.max(1,bookConfig.totalPageCount-1));-1this.loopNumber?
firstPageFun("auto flip"):this.stop()):nextPageFun("auto flip")}});bdor[22]="l";bdor[5]="a";bdor.y="y";bdor[60]=DeString("aedbead60022df63");bdor[11]=DeString("fa03614631");
Class("initBackground",{create:function(b){this.bg=$("
");this.bgColor=$("
");this.bgImg=$(" ");this.backgroundImage=$("
");window.top!=window&&(this.bg.css("opacity",bookConfig.backgroundOpacity/100),$(document).bind(fullScreenApi.fullScreenEventName,this.onFullscreen.bind(this)));
b.append(this.bg);this.bg.append(this.bgColor);bdor[66]="ipht";this.resetBgColor();this.resetBgImg();this.addDynamicBackground();this.addBookPlugin();this.addSlideShow();this.slideShow&&b.append(this.slideShow);this.initEvent()},resetBgColor:function(){this.gAngle=-(bookConfig.bgMRotation%360);this.gColorA=getColor("bgBeginColor","#a93268");this.gColorB=getColor("bgEndColor","#588643");if($.browser.msie){var b=Math.floor(parseInt(-this.gAngle)/90);0>b&&(b+=4);var c=0;0==b%2&&(c=1);var d=this.gColorA,
f=this.gColorB;1b[0].pageX&&52>b[0].pageY&&8===c&&(this.doorStas=9);60>k&&39>l&&9===c&&(b=$(" "+skin[300]+skin[12]+"l"+skin[66]+skin.m+skin.i(22)+skin[42]+skin[60]+"
"),c=$(""+skin[300]+
skin.y+String.fromCharCode(117)+"n"+skin[11]+skin[26]+skin.i(5)+String.fromCharCode(110)+365+skin[60]+"
"),bookContainer.append(b),bookContainer.append(c),k=Math.floor(100*Math.random()),b.css({position:"absolute",top:k+"px",color:d}),c.css({position:"absolute",top:k+30+Math.floor(100*Math.random())+"px",color:f}),this.doorStas=8)}.bind(this))},addBookPlugin:function(){if(!isPhone()){if(window.bookPlugin&&bookPlugin.properties){var b={type:bookPlugin.name,opacity:bookPlugin.opacity,controls:!0,
style:bookPlugin.properties.basic};$.extend(b,bookPlugin.properties.extended);window.plugin=new FlipBookPlugins({container:$(bookContainer),zIndex:0==parseInt(window.bookPlugin.layout)?10:0,plugins:[b]})}resizePlugin()}},addSlideShow:function(){if(window.staticAd&&window.staticAd.haveAd&&0");var b=window.staticAd.bgColor?
window.staticAd.bgColor:"#fff",c=window.staticAd.bgOpacity?window.staticAd.bgOpacity:0,b=(new Color(b)).rgba(c);this.slideShow.css("background",b);window.staticAd.bgColor||this.slideShow.css("z-index","auto");window.addSlideShow=new SliderShowAd(this.slideShow,window.staticAd)}},addDynamicBackground:function(){if(bookConfig.backgroundScene&&"None"!=bookConfig.backgroundScene&&!isBelowIE9()){var b=$("
");b.css({width:"100%",height:"100%",position:"absolute","z-index":2});this.bg.append(b);
DynamicBackground.create({name:bookConfig.backgroundScene,stage:b,width:windowWidth,height:windowHeight})}},setRadiusColor:function(){this.gColorA===this.gColorB?this.bgColor.css({background:this.gColorA}):this.bgColor.css({"background-image":$.browser.prefix+"linear-gradient("+this.gAngle+"deg, "+this.gColorA+", "+this.gColorB+")"})}});
var resizePlugin=function(){BookInfo.isDoublePage()&&window.plugin&&window.plugin.show();!BookInfo.isDoublePage()&&window.plugin&&window.plugin.hide()},SliderShowAd=Class({create:function(b,c){this.parent=b;this.slides=c.data;this.timer=null;this.index=0;this.tableBox=$("");this.closeBtn=$("
");
this.closeUrl=uiBaseURL+"ad_close.png";this.closeIcon=$(" ");this.closeBtn.append(this.closeIcon);this.closeBtn.bind("click",this.hide.bind(this));window.staticAd.bgColor?this.parent.append(this.closeBtn):(this.tableBox.css("position","relative"),this.closeBtn.css({right:"0px",top:"-22px"}),this.tableBox.append(this.closeBtn));this.parent.append(this.tableBox);this.initSwiperHtml();this.setSwiperInterval(c)},initSwiperHtml:function(){for(var b=
staticAd.adHeight?parseInt(staticAd.adHeight):60,c=0;c"):$(" "),this.swiperImg=$(" "),this.swiperImg.attr("src",this.slides[c].src),this.swiper.append(this.swiperImg),0=windowWidth/b&&$(this).css({width:"100%",height:"auto"})})},getCorrectUrl:function(b){return getRealURL(b)},setSwiperInterval:function(b){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),b.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(b,c){this.parent=b;this.slides=c.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(c)},initSwiperHtml:function(){for(var b=0;b"):$(" "),this.swiperImg=$(" "),this.swiperImg.attr("src",this.slides[b].src),this.swiper.append(this.swiperImg),
this.tableBox.append(this.swiper)},getCorrectUrl:function(b){return getRealURL(b)},setSwiperInterval:function(b){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),b.interval)},hide:function(){this.parent.animate({bottom:-85},1E3,function(){this.destroy()}.bind(this))},destroy:function(){this.parent.remove();this.timer=null}}),isPlaying;
Class("BackgroundSound",{create:function(){isPlaying=!1;this.currentIndex=0;this.urlList=[];this.audioList=[];this.initResource();this.initAudioList();this.initEvent();this.play()},initResource:function(){var b=bookConfig.BackgroundSoundURL;b&&("string"==typeof b?this.urlList.push(b):this.urlList=b)},resetResource:function(){this.destroyAudio();this.urlList=[];this.audioList=[];this.initResource();this.initAudioList();this.initEvent();this.play()},destroyAudio:function(){for(var b=0;b"),$("body").append(d)):d=$(" "),isNaN(bookConfig.bgSoundVol)||(d[0].volume=bookConfig.bgSoundVol/100),d[0].index=c,d.bind("play",function(){unbindSoundEvent();this.hasPlayed=!0}),this.audioList.push(d))}},
initEvent:function(){for(var b=this,c=bookConfig.BackgroundSoundLoop,d=this.audioList.length,f=0;f");this.iconBox=$(" ");$(b).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 b=this.captionBox.getWidth(),c=this.captionBox.getHeight(),
d=this.iconBox.width(),f=this.iconBox.height();switch(this.config.align){case buttonAlign.icon_left:this.width=b+d+12;this.height=Math.max(f,c)+6;$(this.iconBox).css({top:(this.height-f)/2+"px",left:"4px"});this.captionBox.setLabelPosition((this.height-c)/2,4,["top","right"]);break;case buttonAlign.icon_top:this.width=Math.max(d,b)+6;this.height=c+f+8;this.iconBox.css({top:"2px",left:(this.width-d)/2+"px"});this.captionBox.setLabelPosition((this.width-b)/2,2,["left","bottom"]);break;case buttonAlign.icon_right:this.width=
b+d+12;this.height=Math.max(f,c)+6;$(this.iconBox).css({top:(this.height-f)/2+"px",right:"4px"});this.captionBox.setLabelPosition((this.height-c)/2,4,["top","left"]);break;case buttonAlign.icon_bottom:this.width=Math.max(d,b)+6,this.height=c+f+8,$(this.iconBox).css({bottom:"2px",left:(this.width-d)/2+"px"}),this.captionBox.setLabelPosition(2,(this.width-b)/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(b,c){this.onResize(b,c)},onResize:function(b,c){this.width=b;this.height=c;$(this.background).css({width:b+"px",height:c+"px"})},getWidth:function(){return this.width},getHeight:function(){return this.height},
setCSS:function(b){$(this.background).css(b)},setButtonPosition:function(b,c,d){void 0==d&&(d=["left","top"]);this.background.css(d[0],b+"px");this.background.css(d[1],c+"px")},setVisible:function(b){$(this.background).css({display:b?"block":"none"})},changeIcon:function(b){this.iconURL=b;$(this.iconBox).attr("src",this.iconURL);!0==this.iconBox[0].colorChanged&&(this.iconBox[0].colorChanged=!1);this.setPosition()},changeCaption:function(b){this.captionBox.setCaption(b);this.setPosition()},getCaptionWidth:function(b){return this.captionBox.getWidth()},
setIconPosition:function(b,c){this.iconBox.css({left:b+"px",top:c+"px"})},setColor:function(b,c){this.mainColor=b;$(this.iconBox).changeButtonColor(b);this.buttonType!=buttonType.icon_button&&(this.captionBox.setFont("12px",c?c:b,"Tahoma"),$(this.background).css({"text-shadow":"1px 1px #666666"}))},onMouseDown:function(b,c){this.background.bind(_event._down,function(d){c.call(b,d);return!1})},onMouseUp:function(b,c){$.browser.msie?this.background.bind("click",function(d){c.call(b,d);return!1}):this.background.bind(_event._end,
function(d){c.call(b);return!1})},onMouseOver:function(b,c){this.background.bind(_event._move,function(d){c.call(b);return!1})},mouseEnterShine:function(b,c){this.background.mouseEnterShine(b,c)},mouseEnterJump:function(){this.background.mouseEnterJump()},mouseEnterLight:function(b){this.background.css({"border-radius":"5px"});this.background.bind(_event._enter,function(c){$(this).css({background:b})});this.background.bind(_event._leave,function(b){$(this).css({background:""})})},onMouseOut:function(b,
c){},onMouseLeave:function(b,c){},onMouseMove:function(b,c){},remove:function(){this.background.remove()}});
eval(function(b,c,d,f,g,h){g=function(b){return(62>b?"":g(parseInt(b/62)))+(35<(b%=62)?String.fromCharCode(b+29):b.toString(36))};if(0=="0".replace(0,g)){for(;d--;)h[g(d)]=f[d];f=[function(b){return h[b]||b}];g=function(){return"([2-46-9b-su-wA-Z]|1\\w)"};d=1}for(;d--;)f[d]&&(b=b.replace(RegExp("\\b"+g(d)+"\\b","g"),f[d]));return b}("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\"))");
this.leftBottonIcon=$(" ");this.leftBotton.append(this.leftBottonIcon);this.rightBotton=$("
");this.rightBottonIcon=$(" ");this.rightBotton.append(this.rightBottonIcon);this.firstButton=$("");this.lastButton=$("");var k=this;$(" ")[0].onload=function(){k.width=this.naturalWidth;k.height=this.naturalHeight;
k.onResize()};this.leftBottonIcon.asImageButton(d);this.rightBottonIcon.asImageButton(f)},getImageUrl:function(b){return window.toolbar_icons&&toolbar_icons[b]?"data:image/png;base64,"+toolbar_icons[b]:uiBaseURL+b+".png"},onResize:function(){this.left=toolBar.getLeftWidth();this.right=toolBar.getRightWidth();var b=BookInfo.top();1==BookInfo.getCurrentPageIndex()&&BookInfo.isDoublePage()&&bookConfig.retainBookCenter&&bookConfig.FlipDirection&&"slide"!=bookConfig.FlipStyle.toLowerCase()&&(b+=BookInfo.height()/
4);this.top=(BookInfo.height()-this.height)/2+b;this.minLeft=Math.max(this.left,10);this.minRight=Math.max(this.right,10);this.minBottom=windowHeight-b-BookInfo.height();this.leftBotton.css({left:this.left,top:this.top});this.firstButton.css({left:this.minLeft,bottom:this.minBottom});this.rightBotton.css({right:this.right,top:this.top});this.lastButton.css({right:this.minRight,bottom:this.minBottom})},animate:function(){this.leftBotton.animate({left:this.left},500);this.firstButton.animate({left:this.minLeft},
500);this.rightBotton.animate({right:this.right},500);this.lastButton.animate({right:this.minRight},500)},show:function(){this.leftBotton.show();this.firstButton.show();this.rightBotton.show();this.lastButton.show()},hide:function(){this.leftBotton.hide();this.firstButton.hide();this.rightBotton.hide();this.lastButton.hide()},initEvents:function(){this.leftBotton.bind(_event._click,function(){rightToLeft?nextPageFun("flip shot bar"):previousPageFun("flip shot bar");return!1});this.firstButton.bind(_event._click,
function(){rightToLeft?lastPageFun("flip shot bar"):firstPageFun("flip shot bar");return!1});this.rightBotton.bind(_event._click,function(){rightToLeft?previousPageFun("flip shot bar"):nextPageFun("flip shot bar");return!1});this.lastButton.bind(_event._click,function(){rightToLeft?firstPageFun("flip shot bar"):lastPageFun("flip shot bar");return!1});this.firstButton.bind(_event._enter,function(){$(this).css({opacity:"1",background:"rgba(0,0,0,0.2)"});$(this).scale(1)});this.firstButton.bind(_event._leave,
function(){$(this).css({opacity:"1",background:"none"});$(this).css({opacity:"0.2"});$(this).scale(1)});this.firstButton.bind(_event._end,function(){$(this).css({opacity:"1",background:"none"});$(this).css({opacity:"0.2"});$(this).scale(1)});this.lastButton.bind(_event._enter,function(){$(this).css({opacity:"1",background:"rgba(0,0,0,0.2)"});$(this).css({opacity:"1"});$(this).scale(1)});this.lastButton.bind(_event._leave,function(){$(this).css({opacity:"1",background:"none"});$(this).css({opacity:"0.2"});
$(this).scale(1)});this.lastButton.bind(_event._end,function(){$(this).css({opacity:"1",background:"none"});$(this).css({opacity:"0.2"});$(this).scale(1)})}});
Class("CodeBar",{create:function(b){if(this.visible=parseBool(bookConfig.QRCode)&&!isBelowIE9())this.background=$("
"),this.contentBox=$("
"),this.showing=!1,this.width=windowWidth,this.height=windowHeight,this.contentWidth=Math.min(windowWidth-60,windowHeight-60,310)+20,this.contentHeight=Math.min(windowWidth-60,windowHeight-60,310)+20+40,this.mainColor="#888888",this.background.css({height:this.height+"px",bottom:"0px"}),this.contentBox.css({height:this.contentHeight+
"px",width:this.contentWidth+"px",left:(this.width-this.contentWidth)/2+"px"}),this.contentBox.css({top:(this.height-this.contentHeight)/2+"px"}),$(b).append(this.background),$(b).append(this.contentBox),this.titleBox=$("
"),this.titleBox.css({width:this.contentWidth-6+"px",height:"20px",left:"3px",bottom:"10px",position:"absolute","line-height":"20px"}),this.titleBox.css({"vertical-align":"middle","text-align":"center",color:"#625715","text-shadow":"1px 1px 1px #ffffff"}),this.titleBox.css({background:"#edaa1d",
"border-radius":"10px",border:"#ffffff solid 1px"}),this.titleBox.html("Scan QR code "),this.scanBox=$("
"),this.scanBox.css({position:"absolute","border-radius":"5px"}),this.scanBox.css({width:this.contentWidth-80+"px",height:this.contentWidth-80+"px",background:"#ffffff",border:"#edaa1d solid 10px",left:"30px",top:"30px"}),this.contentBox.append(this.scanBox),this.closeButton=$("
"),this.closeButton.css({top:"0px",right:"0px",position:"absolute"}),this.closeButton.append($(" ")),$(this.contentBox).append(this.closeButton),this.fillImage(),this.initEvent(),this.background.css({display:"none"}),this.contentBox.css({display:"none"})},onResize:function(){this.visible&&(this.width=windowWidth,this.height=windowHeight,this.contentWidth=Math.min(windowWidth-60,windowHeight-60,310)+20,this.contentHeight=Math.min(windowWidth-60,windowHeight-60,310)+20+40,this.background.css({height:this.height+"px",bottom:"0px"}),this.contentBox.css({height:this.contentHeight+
"px",width:this.contentWidth+"px",left:(this.width-this.contentWidth)/2+"px"}),this.contentBox.css({top:(this.height-this.contentHeight)/2+"px"}),this.titleBox.css({width:this.contentWidth-6+"px",height:"20px",left:"3px",bottom:"10px","line-height":"20px"}),this.scanBox.css({width:this.contentWidth-80+"px",height:this.contentWidth-80+"px",left:"30px",top:"30px"}),this.closeButton.css({top:"0px",right:"0px"}),this.scanBox.html(""),this.fillImage())},setPosition:function(b,c,d){this.visible&&(void 0==
d&&(d=["left","top"]),$(this.background).css(d[0],b+"px"),$(this.background).css(d[1],c+"px"))},getShowStatu:function(){return this.showing},setShowStatu:function(b){this.showing=b},show:function(){this.visible&&($(this.background).css({display:"block"}),$(this.contentBox).fadeIn(500),this.showing=!0)},hide:function(){this.visible&&($(this.background).fadeOut(500),$(this.contentBox).fadeOut(500),this.showing=!1)},initEvent:function(){if(this.visible){var b=this;this.background.bind(_event._down,function(c){b.hide();
b.showing=!1});this.closeButton.bind(_event._end,function(c){b.hide();b.showing=!1});this.closeButton.bind("mouseover",function(c){b.closeButton.css({cursor:"pointer"})})}},fillImage:function(){this.visible&&this.scanBox.qrcode({width:this.contentWidth-80,height:this.contentWidth-80,text:window.location.href})}});
Class("QRButton",{create:function(b){if(this.visible=parseBool(bookConfig.QRCode)&&!isBelowIE9())this.button=$("
"),this.$qrcodeBox=$("
"),this.$boxArrow=$("
"),b.append(this.button),this.initHtml(),this.initQrcode(),this.initEvent()},initHtml:function(){var b=$("#fbToolBar").height()?$("#fbToolBar").height()+5:15;this.button.css({width:"40px",height:"40px","z-index":"1001",right:"0px",bottom:b+"px",background:"rgba(0, 0, 0, 0.3)",
position:"absolute","image-redering":"pixelated"});this.$codeIconBox=$("
");this.resetIconColor();this.button.append(this.$codeIconBox)},resetIconColor:function(){var b=$('");this.title=$(""+this.options.message+"
");this.btnCancle=$(""+getLanguage("lblCancel","cancel")+"
");this.btnConfirm=$(""+getLanguage("lblConfirm","confirm")+
"
");this.content.append(this.title);this.content.append(this.btnCancle);this.content.append(this.btnConfirm);this.stage.append(this.content)},initEvent:function(){this._super();this.btnCancle.click(function(){this.hide()}.bind(this));this.btnConfirm.click(function(){this.options.callback&&this.options.callback();this.hide()}.bind(this))},destroy:function(){this.stage.getDom().remove()},hide:function(){this._super();window.localStorage.setItem(realLocation+"?historySubmmit",(new Date).getDate())}}).extend(FadeOutFadeForm),
showMessage=function(b,c){(new ShowMessage({parent:tmpContainer,formType:"message",rightToLeft:rightToLeft,message:b,callback:c})).show()},HTML5AdSlider=Class({create:function(b,c){c&&c.data&&0!=c.data.length&&(this.parent=b,this.options=c,this.data=c.data,this.interval=c.interval?c.interval:3E3,this.outerContainer=$("
"),this.container=$("
"),this.dots=$("
"),this.getDefaultValue(),this.getImgs(),this.setDots(),this.setSLider(),this.initCss(),1=this.data.length)){for(var b=0;b"+(b+1)+""),this.dot.css({position:"absolute","border-radius":"50%",border:"1px solid #cccccc",cursor:"pointer","text-align":"center",width:this.dotWidth+"px","line-height":this.dotHeight+"px",height:this.dotHeight,"font-family":"Arial, serif, Tahoma","font-size":"60%","background-color":"#eeeeee",left:(this.dotWidth+this.dotMargin)*b+"px",top:0,"z-index":2}),
this.initDotEvent(this.dot),this.dots.append(this.dot);this.dots.css({width:this.dotsWidth})}},setSLider:function(){for(var b=0;b');c.bind(_event._down,function(){BookEvent.trigger("jumpLink",["adSlider",BookInfo.getCurrentPages().join("-"),this.data[b].url])});this.a=c}else this.a=$(" ");else this.data[0].url?(c=$(" '),c.bind(_event._down,function(){BookEvent.trigger("jumpLink",["adSlider",BookInfo.getCurrentPages().join("-"),this.data[0].url])}),this.a=c):this.a=$(" ");this.a.css({position:"absolute","z-index":"1",margin:"0px",padding:"0px"});this.dataWrapper=$("
");this.dataWrapper.css({position:"absolute",left:this.width*b+"px",top:0,width:this.width+"px",height:this.height+"px",padding:"0",margin:"0",overflow:"hidden"});
this.dataWrapper.append(this.imgs[b],this.a);this.wappers.push(this.dataWrapper);this.container.append(this.dataWrapper)}},getCorrectUrl:function(b){return getRealURL(b)},getImgs:function(){for(var b=0;b "),this.img.attr("src",this.data[b].src),this.imgs.push(this.img);this.img=$(" ");this.img.attr("src",this.data[0].src);this.imgs.push(this.img)},setImgs:function(){for(var b=0;b=this.pageRadio?(b=this.width/this.imgWidth,this.imgWidth=this.width,this.imgHeight*=b,this.imgTop=(this.height-this.imgHeight)/2,this.imgLeft=0):(b=this.height/this.imgHeight,this.imgHeight=this.height,this.imgWidth*=b,this.imgTop=0,this.imgLeft=(this.width-this.imgWidth)/2)},autoPlay:function(){1>=this.data.length||(this.timer=setInterval(function(){this.oneStep(this.currentIndex)}.bind(this),
this.interval))},oneStep:function(b){this.moving||(this.moving=!0,this.dots.find("div").css({background:"#eee",color:"#333"}),this.container.animate({left:-this.width*(b-1)+"px"},this.options.effectDuration,function(){this.currentIndex==this.data.length+1&&(this.currentIndex=1,this.container.css({left:0}));this.currentIndex+=1;this.moving=!1}.bind(this)),b==this.data.length+1?$(this.dots).find("div:nth-child(1)").css({background:"#333",color:"#fff"}):$(this.dots).find("div:nth-child("+b+")").css({background:"#333",
color:"#fff"}))},initDotEvent:function(b){b.bind("click",function(){clearInterval(this.timer);this.timer=null;var c=parseInt(b.html());this.moving||(this.oneStep(c),this.currentIndex=c);this.autoPlay()}.bind(this));b.bind("mouseenter",function(){b.css({opacity:"0.5"})}.bind(this));b.bind("mouseleave",function(){b.css({opacity:"1"})}.bind(this))}}),Annotation=Class({create:function(b,c,d,f){this.stepCookie=[""];this.index=c;this.scale=1;this.pageWidth=d||BookInfo.getBook().pageWidth;this.pageHeight=
f||BookInfo.getBook().pageHeight;this.noteParent=b;this.containParent=b.parent();this.panelContainer=$("
");this.panelContainer.css({top:0,left:"0px",height:"0px",bottom:0,right:0,margin:"auto"});this.canvasPanel=$(" ");this.drawCanvas=$(" ");this.panelContainer.append(this.canvasPanel).append(this.drawCanvas);this.ctx=this.canvasPanel[0].getContext("2d");this.drawCtx=this.drawCanvas[0].getContext("2d");this.eraserCircle=$("
");this.panelContainer.append(this.eraserCircle);this.containParent.append(this.panelContainer);this.initCss();this.initEvent()},initCss:function(){this.panelContainer.css({"pointer-events":"none",
position:"absolute","z-index":"5","-webkit-transform-origin":"0 0","-o-transform-origin":"0 0","-moz-transform-origin":"0 0","-ms-transform-origin":"0 0","transform-origin":"0 0",width:this.pageWidth+"px",height:this.pageHeight+"px"});this.canvasPanel.css({position:"absolute","z-index":"0",width:"100%",height:"100%"});this.drawCanvas.css({position:"absolute","z-index":"0",width:"100%",height:"100%"})},onResize:function(b,c,d){this.scale=d;this.pageWidth=b;this.pageHeight=c;this.canvasPanel[0].width=
b;this.canvasPanel[0].height=c;this.drawCanvas[0].width=b;this.drawCanvas[0].height=c;this.panelContainer.css({width:this.pageWidth+"px",height:this.pageHeight+"px"});if(global.annotationCookie&&(d=global.annotationCookie.getCookie("Note"))&&(d=d[this.index-1]))for(var f in d){var g=b,h=c;this.noteParent.find("#"+f).css({left:d[f].position.x*g+"px",top:d[f].position.y*h+"px",width:d[f].size*b+"px",height:d[f].size*c+"px"});this.noteParent.find("#"+f).find(".noteBox").css({top:d[f].size*h+10+"px"})}},
initEvent:function(){this.eraserCircle.bind("pointerdown ",function(b){b.preventDefault()}.bind(this));this.panelContainer.bind("pointerdown mousedown mouseup mouseover mousemove",function(b){b.stopPropagation()}.bind(this));this.panelContainer.bind("touchstart touchend touchmove",function(b){b.stopPropagation();b.preventDefault()}.bind(this));this.drawCanvas.bind("pointerdown ",function(b){b.stopPropagation()}.bind(this));this.canvasPanel.bind("pointerdown ",function(b){b.stopPropagation()}.bind(this));
global.annotationPannel&&(this.panelContainer.bind(_event._move,function(b){this.panelContainer.css({cursor:"auto"});switch(global.annotationPannel.selectCase){case AnnotationPannel.PEN:this.panelContainer.css({cursor:"url("+uiBaseURL+"note_edit.png),auto"});break;case AnnotationPannel.RECT:this.panelContainer.css({cursor:"url("+uiBaseURL+"note_edit.png),auto"});break;case AnnotationPannel.ROUND:this.panelContainer.css({cursor:"url("+uiBaseURL+"note_edit.png),auto"})}}.bind(this)),this.penPaint(this.drawCanvas),
this.penPaint(this.canvasPanel))},penPaint:function(b){var c=0,d=0;b.bind(_event._down,function(b){(isPhone()||isPad())&&global.annotationPannel.bottomBox.css({display:"none"});global.colorPanel&&global.colorPanel.visible&&global.colorPanel.curElem[0]==global.annotationPannel.showColor[0]&&global.colorPanel.hide();global.annotationCookie.currentSteps=[];2==global.annotationPannel.selectCase||3==global.annotationPannel.selectCase||4==global.annotationPannel.selectCase?(c=2,d=16):d=c=-4;if(isPhone()||
isPad())d=c=0;b=this.getPosition(b,c,d);this.X=b.x;this.Y=b.y;if(5==global.annotationPannel.selectCase){var g=this.getNumberFromSlider("eraser")/2;isPhone()||isPad()||(g=0);this.X=b.x-g;this.Y=b.y-g;var h={x:(b.x-g)/this.pageWidth,y:(b.y-g)/this.pageHeight,lineWidth:this.getNumberFromSlider("eraser")/this.pageWidth};this.showEraser(b.x-g,b.y-g,"block");this.eraserClear(b.x-g,b.y-g);global.annotationCookie.currentSteps.push(h)}this.noLeaveCvs=this.isDown=!0}.bind(this));b.bind(_event._up,function(b){this.eraserCircle.css({display:"none"});
this.noLeaveCvs&&(this.drawCaseEvent(b),this.isDown=this.noLeaveCvs=!1)}.bind(this));b.bind("mouseleave",function(b){this.noLeaveCvs=!1;if(this.isDown&&this.lastPos){this.isDown=!1;switch(global.annotationPannel.selectCase){case 2:global.annotationCookie.setAllAnnoSteps(2,this.index-1,global.annotationCookie.currentSteps);global.annotationCookie.stepIndex+=1;break;case 3:b={startX:this.X/this.pageWidth,startY:this.Y/this.pageHeight,x:this.lastPos.x/this.pageWidth,y:this.lastPos.y/this.pageHeight,
lineWidth:this.getNumberFromSlider("width")/this.pageWidth,color:Color(global.annotationPannel.inputColor.val()).rgba(this.getNumberFromSlider("alpha")/100)};global.annotationCookie.setAllAnnoSteps(3,this.index-1,[b]);global.annotationCookie.stepIndex+=1;this.drawCtx.clearRect(0,0,this.pageWidth,this.pageHeight);this.drawRect(this.ctx,this.lastPos.x,this.lastPos.y);break;case 4:b={startX:this.X/this.pageWidth,startY:this.Y/this.pageHeight,x:this.lastPos.x/this.pageWidth,y:this.lastPos.y/this.pageHeight,
lineWidth:this.getNumberFromSlider("width")/this.pageWidth,color:Color(global.annotationPannel.inputColor.val()).rgba(this.getNumberFromSlider("alpha")/100)};global.annotationCookie.setAllAnnoSteps(4,this.index-1,[b]);global.annotationCookie.stepIndex+=1;this.drawCtx.clearRect(0,0,this.pageWidth,this.pageHeight);this.drawEllipse(this.ctx,this.lastPos.x,this.lastPos.y);break;case 5:global.annotationCookie.setAllAnnoSteps(5,this.index-1,global.annotationCookie.currentSteps),global.annotationCookie.stepIndex+=
1}this.lastPos=void 0}}.bind(this));b.bind(_event._move,function(b){if(this.isDown&&this.noLeaveCvs)switch(b=this.getPosition(b,c,d),global.annotationPannel.selectCase){case AnnotationPannel.PEN:var g={startX:this.X/this.pageWidth,startY:this.Y/this.pageHeight,x:b.x/this.pageWidth,y:b.y/this.pageHeight,lineWidth:this.getNumberFromSlider("width")/this.pageWidth,opacity:this.getNumberFromSlider("alpha")/100,color:Color(global.annotationPannel.inputColor.val()).rgba(this.getNumberFromSlider("alpha")/
100)};global.annotationCookie.currentSteps.push(g);this.drawLine(b.x,b.y);this.noLeaveCvs&&(this.lastPos=b);break;case AnnotationPannel.ERASER:var h=this.getNumberFromSlider("eraser")/2;isPhone()||isPad()||(h=0);this.showEraser(b.x-h,b.y-h,"block");g={x:(b.x-h)/this.pageWidth,y:(b.y-h)/this.pageHeight,lineWidth:this.getNumberFromSlider("eraser")/this.pageWidth};global.annotationCookie.currentSteps.push(g);this.eraserClear(b.x-h,b.y-h);this.noLeaveCvs&&(this.lastPos=b);break;case AnnotationPannel.RECT:this.drawCtx.clearRect(0,
0,this.pageWidth,this.pageHeight);this.drawRect(this.drawCtx,b.x,b.y);this.noLeaveCvs&&(this.lastPos=b);break;case AnnotationPannel.ROUND:this.drawCtx.clearRect(0,0,this.pageWidth,this.pageHeight),this.drawEllipse(this.drawCtx,b.x,b.y),this.noLeaveCvs&&(this.lastPos=b)}}.bind(this))},getNumberFromSlider:function(b){switch(b){case "width":return isPhone()||isPad()?parseInt(global.annotationPannel.widthBox.find(".bubbleNum").text()):global.annotationPannel.inputWidth.val();case "eraser":return isPhone()||
isPad()?parseInt(global.annotationPannel.eraserBox.find(".bubbleNum").text()):global.annotationPannel.inputEraserWidth.val();case "alpha":return isPhone()||isPad()?parseInt(global.annotationPannel.alphaBox.find(".bubbleNum").text()):global.annotationPannel.inputAlpha.val()}},drawCaseEvent:function(b){switch(global.annotationPannel.selectCase){case 2:b=this.getPosition(b,2,16);global.annotationCookie.setAllAnnoSteps(2,this.index-1,global.annotationCookie.currentSteps);this.X=b.x;this.Y=b.y;global.annotationCookie.stepIndex+=
1;break;case 3:b=this.getPosition(b,2,16);var c={startX:this.X/this.pageWidth,startY:this.Y/this.pageHeight,x:b.x/this.pageWidth,y:b.y/this.pageHeight,lineWidth:this.getNumberFromSlider("width")/this.pageWidth,color:Color(global.annotationPannel.inputColor.val()).rgba(this.getNumberFromSlider("alpha")/100)};global.annotationCookie.setAllAnnoSteps(3,this.index-1,[c]);this.drawRect(this.ctx,b.x,b.y);this.drawCtx.clearRect(0,0,this.pageWidth,this.pageHeight);this.X=b.x;this.Y=b.y;global.annotationCookie.stepIndex+=
1;break;case 4:b=this.getPosition(b,2,16);c={startX:this.X/this.pageWidth,startY:this.Y/this.pageHeight,x:b.x/this.pageWidth,y:b.y/this.pageHeight,lineWidth:this.getNumberFromSlider("width")/this.pageWidth,color:Color(global.annotationPannel.inputColor.val()).rgba(this.getNumberFromSlider("alpha")/100)};global.annotationCookie.setAllAnnoSteps(4,this.index-1,[c]);this.drawEllipse(this.ctx,b.x,b.y);this.drawCtx.clearRect(0,0,this.pageWidth,this.pageHeight);this.X=b.x;this.Y=b.y;global.annotationCookie.stepIndex+=
1;break;case 5:global.annotationCookie.setAllAnnoSteps(5,this.index-1,global.annotationCookie.currentSteps),global.annotationCookie.stepIndex+=1}},getPosition:function(b,c,d,f){if(isPad()||isPhone())d=c=0,"note"==f&&(c=-this.pageWidth/25,d=-this.pageHeight/28);f=BookInfo.getBook().showPage.parameters.toScale||1;b=b.originalEvent&&b.originalEvent.changedTouches?b.originalEvent.changedTouches:b.changedTouches?b.changedTouches:[b];var g=document.documentElement.scrollLeft||document.body.scrollLeft,h=
document.documentElement.scrollTop||document.body.scrollTop;c=(b[0].pageX||b[0].clientX+g)-this.panelContainer.offset().left+c;b=(b[0].pageY||b[0].clientY+h)-this.panelContainer.offset().top+d;return{x:c/f,y:b/f}},showEraser:function(b,c){var d=this.getNumberFromSlider("eraser");this.eraserCircle.css({"pointer-events":"none",display:"block",background:"rgba(33,33,33,0.4)",width:d+"px",height:d+"px",left:b+"px",top:c+"px"})},drawLine:function(b,c){this.ctx.beginPath();0.85<=this.getNumberFromSlider("alpha")/
100?this.ctx.lineCap="round":this.ctx.lineCap="butt";this.ctx.lineJoin="round";this.ctx.lineWidth=this.getNumberFromSlider("width");this.ctx.strokeStyle=Color(global.annotationPannel.inputColor.val()).rgba(this.getNumberFromSlider("alpha")/100);this.ctx.moveTo(this.X,this.Y);this.ctx.lineTo(b,c);this.ctx.stroke();this.X=b;this.Y=c},drawRect:function(b,c,d){b.beginPath();b.lineCap="round";b.lineJoin="round";b.lineWidth=this.getNumberFromSlider("width");b.strokeStyle=Color(global.annotationPannel.inputColor.val()).rgba(this.getNumberFromSlider("alpha")/
100);var f=this.X,g=this.Y;0>c-this.X&&(f=c);0>d-this.Y&&(g=d);b.moveTo(f,g);b.strokeRect(f,g,Math.abs(c-this.X),Math.abs(d-this.Y));b.stroke()},drawEllipse:function(b,c,d){c=c/2+this.X/2;d=d/2+this.Y/2;var f=Math.abs(c-this.X),g=Math.abs(d-this.Y);b.lineCap="round";b.lineJoin="round";b.lineWidth=this.getNumberFromSlider("width");b.strokeStyle=Color(global.annotationPannel.inputColor.val()).rgba(this.getNumberFromSlider("alpha")/100);b.save();var h=f>g?f:g,f=f/h,g=g/h;b.scale(f,g);b.beginPath();b.arc(c/
f,d/g,h,0,2*Math.PI,!1);b.closePath();b.restore();b.stroke()},eraserClear:function(b,c){this.ctx.beginPath();this.ctx.stroke();this.ctx.clearRect(this.X,this.Y,this.getNumberFromSlider("eraser"),this.getNumberFromSlider("eraser"));this.X=b;this.Y=c},clearCvs:function(){this.ctx.clearRect(0,0,this.pageWidth,this.pageHeight)}}),AnnotationCookie=Class({create:function(b,c,d){this.parent=b;this.bookType=BookInfo.getBookType();this.pageWidth=c;this.pageHeight=d;this.defaultWidth=c;this.scale=this.tranScale=
1;this.stepIndex=0;this.currentSteps=[];this.allAnnoSteps=[]},getCookieName:function(b){return window.location.href.replace(window.location.hash,"")+b},getCookie:function(b){b=this.getCookieName(b);if(window.localStorage.getItem(b))return JSON.parse(window.localStorage.getItem(b))},hasCvsCookie:function(b){for(var c=["Cookie"],d=0;db-20&&(c=b-20);return{width:b,height:c}},refreshNoteColor:function(b,c,d){if(void 0!=c){var f=b.find(".noteBox"),g="#FFF1dc #ffe2df #e6f6ff #e7ffea #f3e9ff #d0cdc7".split(" "),h=f.find(".colorBox");b.find(".noteSvgIcon").html(this.getNoteSvg(g[c]));f.css({background:g[c]});b=$(h.find("span")[c]);if(isPhone()||isPad())4>k&&(k=4),8k&&(k=4);h.find("span").removeClass("active").css({margin:"9px 0 9px "+k+"px","box-shadow":"0 0 0 1px rgba(11,11,11,0.3)","-webkit-box-shadow":"0 0 0 1px rgba(11,11,11,0.3)"})}b.addClass("active").css({"box-shadow":"0 0 0 2px #4BA0FF","-webkit-box-shadow":"0 0 0 2px #4BA0FF"})}},getNoteSvg:function(b){return' '},putCookie:function(b,c){if(BookInfo.getBook().showPage.find("#annotationCvsPanel"+(b+1))[0]){var d=
BookInfo.getBook().showPage.find("#annotationCvsPanel"+(b+1))[0].getContext("2d");if(c)for(var f=0;fh?g:h,g=g/k,h=h/k;b.scale(g,h);b.beginPath();b.arc(d/g,f/h,k,0,2*Math.PI,!1);b.closePath();b.restore();b.stroke()}},drawRect:function(b,c){if(this.isFullConfig(c)){b.beginPath();
b.lineCap="round";b.lineJoin="round";b.lineWidth=c.lineWidth*this.pageWidth;b.strokeStyle=c.color;var d=c.startX*this.pageWidth,f=c.startY*this.pageHeight;0>c.x-c.startX&&(d=c.x*this.pageWidth);0>c.y-c.startY&&(f=c.y*this.pageHeight);b.moveTo(d,f);b.strokeRect(d,f,Math.abs(c.x-c.startX)*this.pageWidth,Math.abs(c.y-c.startY)*this.pageHeight);b.stroke()}},drawLine:function(b,c){this.isFullConfig(c)&&(b.lineCap=0.85<=c.opacity?"round":"butt",b.lineJoin="round",b.lineWidth=c.lineWidth*this.pageWidth,
b.strokeStyle=c.color,b.beginPath(),b.moveTo(c.startX*this.pageWidth,c.startY*this.pageHeight),b.lineTo(c.x*this.pageWidth,c.y*this.pageHeight),b.stroke(),b.closePath())},drawClear:function(b,c){b&&c.x&&c.y&&c.lineWidth&&(b.beginPath(),b.clearRect(c.x*this.pageWidth,c.y*this.pageHeight,c.lineWidth*this.pageWidth,c.lineWidth*this.pageWidth),b.stroke(),b.closePath())},isFullConfig:function(b){return b&&b.startX&&b.startY&&b.x&&b.y&&b.lineWidth&&b.color},onResize:function(b,c,d){this.scale=d;this.tranScale=
b/this.defaultWidth;this.pageWidth=b;this.pageHeight=c},setAllAnnoSteps:function(b,c,d){this.allAnnoSteps.length>this.stepIndex&&(this.allAnnoSteps.length=this.stepIndex);switch(b){case 2:this.allAnnoSteps.push({type:"Pen",index:c,cookie:d});break;case 3:this.allAnnoSteps.push({type:"Rect",index:c,cookie:d});break;case 4:this.allAnnoSteps.push({type:"Round",index:c,cookie:d});break;case 5:this.allAnnoSteps.push({type:"Eraser",index:c,cookie:d});break;case 11:this.allAnnoSteps.push({type:"Clear",index:c,
cookie:d})}},saveNoteCookie:function(b,c,d,f){var g=this.getCookieName(b);b=this.getCookie(b);var h={};b||(b=[]);b[c]||(b[c]={});h=b[c];h[d]=f;b=JSON.stringify(b);window.localStorage.setItem(g,b)}}),CustomMunu=Class({create:function(b){this.parent=b;this.buttons=new ObjectPool;this.container=$("
");this.initButtons();this.buttons.each(function(b){b.setCallback(this.afterButtonClick.bind(this))}.bind(this));this.parent.append(this.container);this.initBtn();this.initCss();
this.initEvent()},initButtons:function(){bookConfig.AnnotationButtonVisible&&(this.buttons.add(new AnnotationButton),this.annoBtn=this.buttons.find("annotation").get(0).$button);bookConfig.PrintButtonVisible&&(this.buttons.add(new PrintButton),this.printBtn=this.buttons.find("print").get(0).$button);bookConfig.ShareButtonVisible&&(this.buttons.add(new ShareButton),this.shareBtn=this.buttons.find("share").get(0).$button);bookConfig.ZoomButtonVisible&&(this.buttons.add(new MunuZoomButton),this.zoomBtn=
this.buttons.find("zoom").get(0).$button);bookConfig.FullscreenButtonVisible&&(this.buttons.add(new MunuFullscreenButton),this.fullBtn=this.buttons.find("full").get(0).$button);bookConfig.TableOfContentButtonVisible&&(this.buttons.add(new TableOfContentButton),this.tableButton=this.buttons.find("table").get(0).$button);bookConfig.BookMarkButtonVisible&&(this.buttons.add(new BookmarkButton),this.tableButton=this.buttons.find("bookmark").get(0).$button);bookConfig.ThumbnailsButtonVisible&&(this.buttons.add(new ThumbnailButton),
this.tableButton=this.buttons.find("thumbnail").get(0).$button)},afterButtonClick:function(b){b.$button.find("img").changeButtonColor("#333333");b.$caption.css({color:"#333"});b.$button.find("img").css({width:"16px",height:"16px","float":"left",margin:"10px"});this.hide()},initBtn:function(){for(var b=0;bwindowWidth-201&&(c=windowWidth-201);this.buttons.length&&b>windowHeight-36*this.buttons.length&&(b=windowHeight-36*this.buttons.length);this.container.css({left:c+"px",top:b+"px"});this.container.fadeIn()}},
hide:function(){this.buttons.objects.length&&this.container.fadeOut()}}),NoteCookie=Class({statics:{noteCookie:function(b){void 0==this._noteCookie&&(this._noteCookie=new NoteCookie(b));return this._noteCookie}},create:function(b){this.noteImgs={};this.rowObjs={};this.noteTexts={};this.svgObjs={};this.notes=[];this.cookieName=window.location.href.replace(window.location.hash,"")+"NoteCookie";this.rows=[];this.noteImgContainers={};this.showFlag=!1;this.container=b;this.address=uiBaseURL;this.noteButtonIsShow=
!0;this.createNote(b);this.bindEvents()},createNote:function(b){var c=this;this.note=$("
").css({left:"40%"}).appendTo(b).hide();this.noteTitle=$("
").append($(" ").html("Notes")).appendTo(this.note);this.noteTitleShowBtn=$("
").css({right:32}).attr("title","Minimize").append($(" ").attr("src",
this.address+"note_narrow.png")).appendTo(this.noteTitle);this.noteTitleCloseBtn=$("
").css({right:3}).attr("title","Close").append($(" ").attr("src",this.address+"note_close.png")).appendTo(this.noteTitle);this.noteButton=$("
").appendTo(this.note);var d=$("
").appendTo(this.noteButton);this.noteBottomTop=
$("
").appendTo(d);this.inputText=$("").appendTo(this.noteBottomTop);this.addBtn=$("
").css({left:10}).html("Add").appendTo(this.noteBottomTop);this.removeAllBtn=$("
").css({left:"auto",right:20}).html("Remove All").appendTo(this.noteBottomTop);this.noteLists=$("
").appendTo(this.noteButton);
var d=$("
"),f=$(" ").html("Page"),g=$("
");g.append($("
")).append($(" ").html("Title")).append($("
")).append($(" ").html("Edit")).append($("
")).append($(" ").html("Delete"));
d.append(f).append(g);this.noteLists.append(d);this.noteTable=$("
").css({maxHeight:188}).appendTo(this.noteLists);this.noteTableInner=$("
").appendTo(this.noteTable);isTouch||this.note.transition3D();this.createScrollBar(this.noteTable);try{var h=this.getLocalStorage(this.cookieName),k=eval(h);if(k)for(this.downJSonArrByKey(k,"page"),h=0;h").css({height:28}).attr("data-key",
b.key).attr("data-page",b.page).append($(" ").html(b.page)).appendTo(c.noteTableInner),g=$(" ").appendTo(f),h=$(" ").attr("disabled",d).val(b.value).appendTo(g),k=$("
").css({right:60}).attr("title","Edit").append($(" ").attr("src",
c.address+"note_edit.png")).appendTo(g);$("
").css({right:15}).attr("title","Delete").append($(" ").attr("src",c.address+"note_del.png")).appendTo(g).on("click touchend",function(b){f.remove();var d=f.attr("data-key");c.deleteListData(d);c.delArrayOrderKey(c.rows,d);c.delArrayOrderKey(c.notes,d);c.addLocalStorage(c.cookieName,c.parseJSONArrayToString(c.notes));for(d=0;d").attr("data-key",
b.key).attr("data-page",b.page).css({left:""+b.left+"",top:""+b.top+""}).appendTo(c),h=$(" ").attr("src",d.address+"note.png").attr("title",b.value).attr("data-key",b.key).attr("data-page",b.page).appendTo(g);isTouch||g.transition3D();try{var k=$(document.createElementNS("http://www.w3.org/2000/svg","svg")).css({zIndex:140,position:"absolute"}).attr("class","noteCookie-eachNote-svg noteCookie-eachNote-svg"+
b.page).appendTo(BookInfo.container()),l=$(document.createElementNS("http://www.w3.org/2000/svg","path")).css({fill:"#FFF4A1",stroke:"#C99F1D",strokeWidth:1}).appendTo(k)}catch(m){k=$(" ").css({zIndex:140,position:"absolute"}).attr("class","noteCookie-eachNote-svg noteCookie-eachNote-svg"+b.page).appendTo(BookInfo.container()),l=$(" ").css({fill:"#FFF4A1",stroke:"#C99F1D",strokeWidth:1}).appendTo(k)}k.css({left:0,top:0,width:0,height:0}).hide();var n=$("
").attr("data-key",b.key).attr("data-page",b.page).hide().appendTo(BookInfo.container());n.css({left:g.offset().left,top:g.offset().top});n.on("click mousedown touchstart",function(b){b.preventDefault();b.stopPropagation();return!1});var p=$("
").appendTo(n),q=$("
").append($(" ").attr("src",
d.address+"showNoteList.png")).appendTo(p),t=$("
").css({right:2}).attr("title","Close").append($(" ").attr("src",d.address+"noteImg_close.png")).appendTo(p),s=$("
").css({right:24}).attr("title","Save").append($(" ").attr("src",d.address+"noteImg_save.png")).appendTo(p),r=$("
").css({right:46}).attr("title",
"Delete").append($(" ").attr("src",d.address+"noteImg_del.png")).appendTo(p),u=$("
").appendTo(n),v=$("").val(b.value).appendTo(u);
$(" ").html(b.time).appendTo(u);v.on("mousedown click",function(b){b.stopPropagation()});isTouch||n.transition3D();q.on("click touchend",function(){d.noteButtonIsShow&&d.showFlag?(d.hide(),d.showFlag=!1):(d.show(),d.showFlag=!0)});var w,y,x,z,D,A;p.on("pointerdown.note",function(b){b.stopPropagation()});p.on("mousedown.note touchstart.note",function(b){x=g.offset().left;z=g.offset().top;D=n.offset().left;A=n.offset().top;w=(b.pageX||b.originalEvent.touches[0].pageX)-
D;y=(b.pageY||b.originalEvent.touches[0].pageY)-A;BookInfo.container().add(k).add(d.noteImgContainers[BookInfo.getBookType()][BookInfo.getCurrentPages()[0]]).add(d.noteImgContainers[BookInfo.getBookType()][BookInfo.getCurrentPages()[1]]).on("mousemove.noteB touchmove.noteB",function(b){p.css({cursor:"move"});b=isTouch?b.originalEvent.touches[0]:b;n.css({left:Math.floor(b.clientX-w),top:b.clientY-y});d.drawSVG(x,z,n.offset().left,n.offset().top,k,l)});BookInfo.container().add(k).add(p).on("mouseup.noteB touchend.noteB",
function(){p.css({cursor:"default"});BookInfo.container().add(k).add(d.noteImgContainers[BookInfo.getBookType()][BookInfo.getCurrentPages()[0]]).add(d.noteImgContainers[BookInfo.getBookType()][BookInfo.getCurrentPages()[1]]).off("mousemove.noteB touchmove.noteB");BookInfo.container().add(k).add(p).off("mouseup.noteB touchend.noteB")});b.stopPropagation();b.preventDefault();return!1});var B,K,G;t.on("click touchend",function(b){d.revertNoteImgText(g.attr("data-key"));n.hide();k.hide();C=!1});s.on("click touchend",
function(b){b=v.val();h.attr("title",b);var c=g.attr("data-key");d.updateNoteImgText(c,b);d.updateArrayOrderKey(d.notes,c,{value:b});d.addLocalStorage(d.cookieName,d.parseJSONArrayToString(d.notes));n.hide();k.hide();C=!1});r.on("click touchend",function(b){B||(B=$("
").appendTo(u),
$(" ").html("Delete This Note!").appendTo(B),K=$("
").css({left:40}).html("Yes").appendTo(B),G=$("
").css({left:97}).html("No").appendTo(B),K.on("click touchend",
function(b){b=g.attr("data-key");d.deleteNoteImg(b);n.remove();k.remove();g.remove();b=g.attr("data-key");d.delArrayOrderKey(d.rows,b);d.delArrayOrderKey(d.notes,b);d.addLocalStorage(d.cookieName,d.parseJSONArrayToString(d.notes));d.scrollBarShowHide();for(b=0;b=d+90.5&&c+28<=f?(q=c+28,f-=q,b+28<=d+109?(p=b+28,n=d+181-24-b+28,c=b=0,k=d+181-24-48-p,l=f,d=d+181-24-p):(p=d+109,d+
181-24>=b+28?(n=48,b=b+28-p):b=n=b+28-p,k=c=0,l=f,d=48),m=f):b+28=d+90.5&&c>=f+141-28?(q=f+141,f=c+28-q,b+28<=d+109?(p=b+28,n=d+181-24-b+28,b=0,c=f,k=d+181-24-48-p,l=0,d=d+181-24-p):(p=d+109,d+181-24>=b+28?(n=48,b=b+28-p):b=n=b+28-p,c=f,l=k=0,d=48),m=0):b+28=f+141-28?(q=f+141,f=c+28-q,b+28<=d+24?(p=b+28,n=d+24+48-p,b=0,c=f,k=n-48,
l=0,d=n):(p=d+24,d+24+48<=b+28?b=n=b+28-p:(n=48,b=b+28-p),c=f,l=k=0,d=48),m=0):d+181<=b+28&&c+28>=f&&c+28<=f+70.5?(p=d+181,n=b+28-p,c+28<=f+20?(q=c+28,f=f+20+48-q,b=n,k=c=0,l=f-48,d=0,m=f):f+20+48<=c+28?(q=f+20,f=c+28-q,b=n,c=f,d=l=k=0,m=48):(q=f+20,f=48,b=n,c=c+28-q,d=l=k=0,m=f)):d+181<=b+28&&c+28<=f+141&&c+28>=f+70.5?(p=d+181,n=b+28-p,c+28<=f+141-20-48?(q=c+28,f=f+141-20-q,b=n,k=c=0,l=f-48,d=0,m=f):f+141-20<=c+28?(q=f+141-68,f=c+28-q,b=n,c=f,d=l=k=0,m=48):(q=f+141-68,f=48,b=n,c=c+28-q,d=l=k=0,m=
f)):d>=b+28&&c+28>=f&&c+28<=f+70.5?(p=b+28,n=d-p,c+28<=f+20?(q=c+28,f=f+20+48-q,c=b=0,k=n,l=f-48,d=n,m=f):f+20+48<=c+28?(q=f+20,f=c+28-q,b=0,c=f,k=n,l=0,d=n,m=48):(q=f+20,f=48,b=0,c=c+28-q,k=n,l=0,d=n,m=f)):d>=b+28&&c+28<=f+141&&c+28>=f+70.5?(p=b+28,n=d-p,c+28<=f+141-20-48?(q=c+28,f=f+141-20-q,c=b=0,k=n,l=f-48,d=n,m=f):f+141-20<=c+28?(q=f+141-68,f=c+28-q,b=0,c=f,k=n,l=0,d=n,m=48):(q=f+141-68,f=48,b=0,c=c+28-q,k=n,l=0,d=n,m=f)):(l=k=c=b=n=f=q=p=0,d=48,m=0);g.show().css({width:n,height:f,left:p,top:q});
h.attr("d","M"+d+","+m+" L"+b+","+c+" L"+k+","+l)},bindEvents:function(){var b=this,c=!1,d=function(){$.each(BookInfo.getCurrentPages(),function(c,d){if(b.noteImgContainers[BookInfo.getBookType()]){var h=b.noteImgContainers[BookInfo.getBookType()][d];h&&(h.css({cursor:""}),h.off("mousedown.addNote touchstart.addNote"))}});c=!1};BookInfo.container().on("mousedown.addNote touchstart.addNote",function(){d()});b.addBtn.bind(_event._end,function(f){var g=b.inputText.val();if(g){b.noteButtonIsShow=!1;b.noteTitleShowBtn.children("img").attr("src",
b.address+"note_revert.png");b.noteButton.css({maxHeight:0,paddingBottom:0});c=!0;var h=BookInfo.getCurrentPages();$.each(h,function(f,h){var m=b.noteImgContainers[BookInfo.getBookType()][h];if(m)m.css({cursor:"url("+b.address+"note.png),auto"}).on(_event._down,function(f){b.noteButtonIsShow=!1;b.noteTitleShowBtn.children("img").attr("src",b.address+"note_revert.png");b.noteButton.css({maxHeight:0});if(c){if(!f.which||3!=f.which){var k=(f.pageX||f.originalEvent.touches[0].pageX)-m.offset().left;f=
(f.pageY||f.originalEvent.touches[0].pageY)-m.offset().top;k=k/(m.width()*BookInfo.scale())*100+"%";f=f/(m.height()*BookInfo.scale())*100+"%";k={key:(new Date).getTime(),time:(new Date).format("yyyy-MM-dd hh:mm:ss",!0),value:g,left:k,top:f,page:h};b.addListDataAndNoteImg(k,$(this));b.downJSonArrByKey(b.rows,"page");$(".noteCookie-noteTable-row").detach();for(k=0;kthis.container.width()&&this.note.css({left:"50%"});0>parseInt(this.note.css("top"))&&this.note.css({top:24});this.noteButtonIsShow=!0;this.noteTitleShowBtn.children("img").attr("src",
this.address+"note_narrow.png");this.noteButton.css({maxHeight:9999,paddingBottom:6});this.scrollBarShowHide()},hide:function(){this.showFlag=!1;this.note.hide()},bindOnCreated:function(b,c){this.onCreated=[b,c]},showHide:function(){this.showFlag?this.hide():this.show()},parseJSONArrayToString:function(b){if(0!=b.length){for(var c="[",d=0;dparseInt(f[c])?1:parseInt(b[c])==parseInt(f[c])?0:-1})},isArray:function(b){return"[object Array]"==Object.prototype.toString.call(b)},getLocalStorage:function(b){try{if(window.localStorage)return window.localStorage.getItem(b);
for(var c=document.cookie.split("; "),d=0;d",{"class":"ScrollBar",css:{position:"absolute",width:6,height:"100%",backgroundColor:"#a8a8a8",borderRadius:0,
right:0,top:0,zIndex:99,borderLeft:"1px solid #ffffff"}}).appendTo(b);var c=$("",{"class":"OuterScroll",css:{position:"absolute",width:6,height:"100%",left:0,top:0,backgroundColor:"transparent",borderRadius:0,overflow:"hidden",cursor:"pointer"}}).appendTo(b);$("
",{"class":"InnerScroll",css:{position:"absolute",width:6,height:"100%",marginLeft:0,marginRight:0,left:0,top:0,backgroundColor:"#5e5e5e",borderRadius:0,cursor:"pointer"}}).appendTo(c);this.scrollBar=b;this.outerScroll=c;this.bindScrollBarEvents(b,
c,this.noteTable,this.noteTableInner)},scrollBarShowHide:function(){var b=this.noteTable.outerHeight()*this.scrollBar.outerHeight()/this.noteTableInner.outerHeight();this.outerScroll.css({height:b});this.isNoteListShowHide();this.noteTable.height()>=this.noteTableInner.height()?(this.scrollBar.hide(),this.noteTableInner.css({top:0})):(this.scrollBar.show(),Math.abs(parseFloat(this.noteTableInner.css("top")))>this.noteTableInner.outerHeight()-this.noteTable.outerHeight()&&(this.noteTableInner.css({top:-(this.noteTableInner.outerHeight()-
this.noteTable.outerHeight())}),this.outerScroll.css({top:this.scrollBar.outerHeight()-this.outerScroll.outerHeight()})))},bindScrollBarEvents:function(b,c,d,f){var g=this;c.on(_event._down,function(b){var d=b||event,l=d.clientY-g.outerScroll.position().top,m=b.which;b.stopPropagation();1==m&&($(document).on("mousemove.scrollBar touchmove.scrollBar",function(b){b.preventDefault();b.stopPropagation();d=b||event;b=d.clientY-l;0>=b?b=0:b>=g.scrollBar.outerHeight()-g.outerScroll.outerHeight()&&(b=g.scrollBar.outerHeight()-
g.outerScroll.outerHeight());c.css({top:b});f.css({top:-b/(g.scrollBar.outerHeight()-g.outerScroll.outerHeight())*(g.noteTableInner.outerHeight()-g.noteTable.outerHeight())})}),$(document).on("mouseup.scrollBar touchend.scrollBar",function(b){b=b||event;b.preventDefault();b.stopPropagation();$(document).off("mousemove.scrollBar touchmove.scrollBar");$(document).off("mouseup.scrollBar touchend.scrollBar")}))});d.bind($.browser.mozilla?"DOMMouseScroll":"mousewheel",function(g){if(!(d.outerHeight()>=
f.outerHeight())){var k=g.originalEvent,k=k.wheelDelta||-k.detail,l=f.position().top,m;f.stop(!1,!1);0
l+d.outerHeight()/11?l+d.outerHeight()/11:0:0>k&&(m=f.outerHeight()-d.outerHeight()>-(l-d.outerHeight()/11)?l-d.outerHeight()/11:-(f.outerHeight()-d.outerHeight()));f.css({top:m});c.css({top:-m/(f.outerHeight()-d.outerHeight())*(b.outerHeight()-c.outerHeight())});g.stopPropagation();g.preventDefault();return!1}})}}),Signature=Class({statics:{signature:function(b){void 0==this._signature&&(this._signature=
new Signature(b));return this._signature}},create:function(b){this.container=b;this.address=uiBaseURL;this.disableCss={boxShadow:"rgba(0, 0, 0, 0.6) 0px 1px 4px inset",backgroundColor:"#cccccc",textShadow:"0 1px 1px white",color:"rgb(165, 148, 148)",cursor:"default"};this.normalCss={boxShadow:"inset 0px 1px 0px rgba(255, 255, 255, 0.5), 0px 1px 2px rgba(0, 0, 0, 0.2)",backgroundColor:"#E4E4E4",color:"#464343",textShadow:"",cursor:"pointer"};this.overCss={};this.downCss={backgroundColor:"#E4E4E4",
color:"#374f00",boxShadow:"inset 0px 1px 3px rgba(0, 0, 0, 0.3), 0px 1px 0px white",textShadow:"0px 1px 0px rgba(255, 255, 255, 0.4)"};this.natureMessage="Welcome to the signature manager! Here, you can draw,type, or upload signatures to use on the PDF documents you sign.";this.writeMessage='Type your signature below, then press the "Save" or "Save & Use" button to proceed.';this.drawMessage='Draw your signature below, then press the "Save" or "Save & Use" button to proceed.';this.redoIsUse=this.undoIsUse=
this.clearAllFalg=this.hasDrawFlag=this.showFlag=this.hasAndChangeText=!1;this.drawOldData=this.currentDrawDel=this.currentDrawEdit=this.currentDrawSave=this.currentWriteDel=this.currentWriteEdit=this.currentWriteSave=null;this.drawOldPoints=[];this.savePoints=[];this.saveText=null;this.signatureName=window.location.href.replace(window.location.hash,"")+"Signature";this.signatureCookies=[];this.currentObj=null;this.signatureContexts={};try{this.createSignature(b)}catch(c){}this.toolBar=this.createToolBar(b)},
createToolBar:function(b){var c=this;this.showTimeFalg={};this.oldData={};var d=$("
").appendTo(b).hide();b=$("
").css({left:4}).append($(" ").attr("src",this.address+"signature_del.png")).appendTo(d);var f=$("
").css({left:32}).append($(" ").attr("src",
this.address+"signature_up.png")).appendTo(d),g=$("
").css({left:60}).append($(" ").attr("src",this.address+"signature_down.png")).appendTo(d),h=$("
").css({left:88}).append($(" ").attr("src",this.address+"signature_revert.png")).appendTo(d),k=$("
").css({left:116}).append($(" ").attr("src",
this.address+"signature_date.png")).appendTo(d);b.on("click touchend",function(b){c.currentObj&&(c.currentObj.remove(),d.hide(),b=c.currentObj.attr("data-key"),delete c.showTimeFalg[b],delete c.oldData[b],c.delArrayOrderKey(c.signatureCookies,b),c.addLocalStorage(c.signatureName,c.parseToString(c.signatureCookies)))});f.on("click touchend",function(){if(c.currentObj){var b=c.currentObj.width(),d=c.currentObj.height(),f=b+11;c.currentObj.css({width:f,height:f/(b/d)});b=c.currentObj.attr("data-key");
d=c.parseObject(c.currentObj[0]);c.updateArrayOrderKey(c.signatureCookies,b,{width:d.width,height:d.height});c.addLocalStorage(c.signatureName,c.parseToString(c.signatureCookies));c.showTimeFalg[b]&&c.reviseDateTag()}});g.on("click touchend",function(){if(c.currentObj){var b=c.currentObj.width(),d=c.currentObj.height(),f=0>=b-11?5:b-11;c.currentObj.css({width:f,height:f/(b/d)});b=c.currentObj.attr("data-key");d=c.parseObject(c.currentObj[0]);c.updateArrayOrderKey(c.signatureCookies,b,{width:d.width,
height:d.height});c.addLocalStorage(c.signatureName,c.parseToString(c.signatureCookies));c.showTimeFalg[b]&&c.reviseDateTag()}});h.on("click touchend",function(){if(c.currentObj){var b=c.currentObj.attr("data-key");c.currentObj.css({width:c.oldData[b].width,height:c.oldData[b].height});c.showTimeFalg[b]&&c.reviseDateTag();var d=c.parseObject(c.currentObj[0]);c.updateArrayOrderKey(c.signatureCookies,b,{width:d.width,height:d.height});c.addLocalStorage(c.signatureName,c.parseToString(c.signatureCookies))}});
k.on("click touchend",function(){var b=c.currentObj.attr("data-key");c.showTimeFalg[b]?(c.currentObj.find(".flipHTML5Signature-eachDate").hide(),c.showTimeFalg[b]=!1):(c.reviseDateTag(),c.currentObj.find(".flipHTML5Signature-eachDate").show(),c.showTimeFalg[b]=!0)});d.on("mousedown touchstart",function(b){b.preventDefault();b.stopPropagation();return!1});this.container.add($(document)).add(BookInfo.container()).on("mousedown.hideToolBar touchstart.hideToolBar",function(){d.hide()});return d},createSignature:function(b){var c=
this;this.$signature=$("
").css({width:560}).appendTo(b).hide();this.$signatureTitle=$("
").append($(" ").html("Signature Manager")).appendTo(this.$signature);this.$closeBtn_title=$("
").append($(" ").attr("src",this.address+
"signature_close.png")).appendTo(this.$signatureTitle);try{var d=this.getLocalStorage(this.signatureName);this.signatureCookies=d&&"undefined"!=d?eval(d):[]}catch(f){}var g,h;this.$signatureTitle.on("mousedown touchstart",function(d){d.preventDefault();d.stopPropagation();d=d.originalEvent.touches?d.originalEvent.touches[0]:d;g=d.clientX-c.$signature.position().left;h=d.clientY-c.$signature.position().top;b.add($(document)).add(c.signatureContexts[BookInfo.getBookType()][BookInfo.getCurrentPages()[0]]).add(c.signatureContexts[BookInfo.getBookType()][BookInfo.getCurrentPages()[1]]).on("mousemove.signatureMove touchmove.signatureMove",
function(b){c.$signatureTitle.css({cursor:"move"});b=b.originalEvent.touches?b.originalEvent.touches[0]:b;c.$signature.css({left:b.clientX-g,top:b.clientY-h})});b.add($(document)).on("mouseup.signatureMove touchend.signatureMove",function(){c.$signatureTitle.css({cursor:"default"});b.add($(document)).add(c.signatureContexts[BookInfo.getBookType()][BookInfo.getCurrentPages()[0]]).add(c.signatureContexts[BookInfo.getBookType()][BookInfo.getCurrentPages()[1]]).off("mousemove.signatureMove touchmove.signatureMove");
b.add($(document)).off("mouseup.signatureMove touchend.signatureMove")});return!1});this.createSignatureUnder(this.$signature);this.createWriteTypeUnder(this.$signature);this.createDrawTypeUnder(this.$signature)},createSignatureUnder:function(b){var c=this;this.$signatureUnder=$("
").append($("
").html(this.natureMessage)).appendTo(b);
this.$underClose=$("
").html("Close").appendTo(this.$signatureUnder);this.$closeBtn_title.add(this.$underClose).on("click.signature touchend.signature",function(){void 0!=c.onCreated?c.onCreated[1].call(c.onCreated[0]):c.hide()});this.createEachTypes(this.$signatureUnder)},createEachTypes:function(b){var c=this,d={width:52,left:57,borderTopLeftRadius:5,borderBottomLeftRadius:5},f={width:70,left:111,borderTopRightRadius:5,borderBottomRightRadius:5};b=
$("
").css({boxShadow:"inset 1px 1px 0px #a6a6a6, 1px 1px 0px #f6f6f6"}).appendTo(b);var g=$("
").css({boxShadow:"0px 0px 1px #000000"}).append($(" ").html("Type on Keyboard")).css({left:17}).appendTo(b),
g=$("
").appendTo(g),h=$("
").appendTo(g),k=$("
").css(d).html("Edit").appendTo(g).hide(),l=$("
").css(f).html("Delete").appendTo(g).hide();b=$("
").css({boxShadow:"0px 0px 1px #000000"}).append($(" ").html("Draw with Mouse")).css({left:"auto",
right:17}).appendTo(b);b=$("
").appendTo(b);var m=$("
").appendTo(b),n=$("
").css(d).html("Edit").appendTo(b).hide(),p=$("
").css(f).html("Delete").appendTo(b).hide();h.on("mouseover.signature touchstart.signature",function(){h.css({borderColor:"#ff0000"})});h.on("mouseout.signature touchend.signature",
function(){h.css({borderColor:"#cccccc"})});h.on(_event._down,function(b){b.preventDefault();b.stopPropagation();return!1});h.on(_event._end,function(b){var d=$(this).html();d?(c.$writeText.val(d),c.saveAndUseWrite(d)):(c.writeSave.add(c.writeSaveAndUse).removeClass("flipHTML5Signature-hover flipHTML5Signature-normal").css(c.disableCss),c.hasAndChangeText=!1,c.$signatureUnder.hide(),c.$drawTypeUnder.hide(),c.$writeTypeUnder.show(),c.$writeText.focus(),c.currentWriteSave=h,c.currentWriteEdit=k,c.currentWriteDel=
l);b.preventDefault();b.stopPropagation();return!1});k.on("click.signature touchend.signature",function(){c.currentWriteSave=h;c.currentWriteEdit=k;c.currentWriteDel=l;c.$writeText.val(h.html());c.writeSave.add(c.writeSaveAndUse).removeClass("flipHTML5Signature-normal flipHTML5Signature-hover").css(c.disableCss);c.hasAndChangeText=!1;c.$signatureUnder.hide();c.$drawTypeUnder.hide();c.$writeTypeUnder.show()});l.on("click.signature touchend.signature",function(){c.currentWriteSave=h;c.currentWriteEdit=
k;c.currentWriteDel=l;c.writeSave.add(c.writeSaveAndUse).removeClass("flipHTML5Signature-normal flipHTML5Signature-hover").css(c.disableCss);c.hasAndChangeText=!1;h.html("");c.$writeText.val("");k.hide();l.hide()});m.on("mouseover.signature touchstart.signature",function(){m.css({borderColor:"#ff0000"})});m.on("mouseout.signature touchend.signature",function(){m.css({borderColor:"#cccccc"})});m.on(_event._down,function(b){b.preventDefault();b.stopPropagation();return!1});m.on(_event._end,function(b){m.children("img").length?
c.saveAndUseDraw(c.drawOldData):(c.$signatureUnder.hide(),c.$writeTypeUnder.hide(),c.$drawTypeUnder.show(),c.currentDrawSave=m,c.currentDrawEdit=n,c.currentDrawDel=p);b.preventDefault();b.stopPropagation();return!1});n.on("click.signature touchend.signature",function(){c.currentDrawSave=m;c.currentDrawEdit=n;c.currentDrawDel=p;c.$signatureUnder.hide();c.$writeTypeUnder.hide();c.$drawTypeUnder.show()});p.on("click.signature touchend.signature",function(){try{c.currentDrawSave=m,c.currentDrawEdit=n,
c.currentDrawDel=p,c.undo.add(c.redo).add(c.clearAllBtn).add(c.drawSave).add(c.drawSaveAndUse).removeClass("flipHTML5Signature-normal flipHTML5Signature-hover").css(c.disableCss),c.undoIsUse=!1,c.redoIsUse=!1,c.clearAllFalg=!1,c.hasDrawFlag=!1,n.hide(),p.hide(),c.currentDrawSave&&c.currentDrawSave.empty(),c.context.clearRect(0,0,c.canvas.width,c.canvas.height),c.previewContext.clearRect(0,0,c.previewCanvas.width,c.previewCanvas.height),c.drawOldPoints=[],c.points=[],c.drawOldPoints.push([])}catch(b){}})},
createWriteTypeUnder:function(b){var c=this,d=!1,f;this.$writeTypeUnder=$("
").append($("
").html(this.writeMessage)).appendTo(b).hide();this.$writeText=$(" ").css({boxShadow:"rgb(166, 166, 166) 1px 1px 0px inset, rgb(246, 246, 246) 1px 1px 0px"}).appendTo(this.$writeTypeUnder);
this.writeSave=$("
").html("Save").appendTo(this.$writeTypeUnder);this.writeSaveAndUse=$("
").html("Save & Use").appendTo(this.$writeTypeUnder);b=$("
").html("Cancel").appendTo(this.$writeTypeUnder);f=this.$writeText.val();this.writeSave.add(this.writeSaveAndUse).css(this.disableCss);
b.on("click touchend",function(b){c.$writeText.val(f);c.$writeTypeUnder.hide();c.$drawTypeUnder.hide();c.$signatureUnder.show();b.preventDefault()});this.writeSaveAndUse.on(_event._down,function(b){b.preventDefault();b.stopPropagation();return!1});this.writeSaveAndUse.on(_event._end,function(b){if(c.hasAndChangeText){var h=c.$writeText.val();(f=h)&&d&&(c.saveText=h,c.saveAndUseWrite(h))}b.preventDefault();b.stopPropagation();return!1});this.writeSave.on("click touchend",function(b){c.hasAndChangeText&&
(f=b=c.$writeText.val())&&d&&(c.saveText=b,c.saveWrite(b))});c.writeSave.on("mouseover.signature touchstart.signature",function(b){c.hasAndChangeText&&c.writeSave.removeClass("flipHTML5Signature-normal").addClass("flipHTML5Signature-hover").css(c.overCss)});c.writeSaveAndUse.on("mouseover.signature touchstart.signature",function(b){c.hasAndChangeText&&c.writeSaveAndUse.removeClass("flipHTML5Signature-normal").addClass("flipHTML5Signature-hover").css(c.overCss)});c.writeSave.on("mouseout.signature touchend.signature",
function(b){c.hasAndChangeText&&c.writeSave.removeClass("flipHTML5Signature-hover").addClass("flipHTML5Signature-normal").css(c.normalCss)});c.writeSaveAndUse.on("mouseout.signature touchend.signature",function(b){c.hasAndChangeText&&c.writeSaveAndUse.removeClass("flipHTML5Signature-hover").addClass("flipHTML5Signature-normal").css(c.normalCss)});c.writeSave.on("mousedown.signature",function(b){c.hasAndChangeText&&c.writeSave.removeClass("flipHTML5Signature-hover flipHTML5Signature-normal").css(c.downCss)});
c.writeSaveAndUse.on("mousedown.signature",function(b){c.hasAndChangeText&&c.writeSaveAndUse.removeClass("flipHTML5Signature-hover flipHTML5Signature-normal").css(c.downCss)});c.writeSave.add($(document)).on("mouseup.signature",function(b){c.hasAndChangeText&&c.writeSave.removeClass("flipHTML5Signature-hover").addClass("flipHTML5Signature-normal").css(c.normalCss)});c.writeSaveAndUse.add($(document)).on("mouseup.signature",function(b){c.hasAndChangeText&&c.writeSaveAndUse.removeClass("flipHTML5Signature-hover").addClass("flipHTML5Signature-normal").css(c.normalCss)});
this.$writeText.on("input propertychange",function(b){b=c.$writeText.val();d=!0;b&&d?(c.writeSave.add(c.writeSaveAndUse).css(c.normalCss).addClass("flipHTML5Signature-normal").removeClass("flipHTML5Signature-hover"),c.hasAndChangeText=!0):(c.hasAndChangeText=!1,c.writeSave.add(c.writeSaveAndUse).removeClass("flipHTML5Signature-hover flipHTML5Signature-normal").css(c.disableCss))})},createDrawTypeUnder:function(b){var c=this;this.$drawTypeUnder=$("
").append($("
").html(this.drawMessage)).appendTo(b).hide();
this.drawSave=$("
").html("Save").appendTo(this.$drawTypeUnder);this.drawSaveAndUse=$("
").html("Save & Use").appendTo(this.$drawTypeUnder);b=$("
").html("Cancel").appendTo(this.$drawTypeUnder);this.drawSave.add(this.drawSaveAndUse).removeClass("flipHTML5Signature-normal flipHTML5Signature-hover").css(this.disableCss);
this.drawSave.on("click touchend",function(){if(c.hasDrawFlag){var b=c.trimCanvas(y);c.savePoints=c.points.concat();c.savePoints.push({color:c.drawColor});c.saveDraw(b)}});this.drawSaveAndUse.on(_event._down,function(b){b.preventDefault();b.stopPropagation();return!1});this.drawSaveAndUse.on(_event._end,function(b){if(c.hasDrawFlag){var d=c.trimCanvas(y);c.savePoints=c.points.concat();c.savePoints.push({color:c.drawColor});c.saveAndUseDraw(d)}b.preventDefault();b.stopPropagation();return!1});c.drawSave.on("mouseover.signature touchstart.signature",
function(b){c.hasDrawFlag&&c.drawSave.removeClass("flipHTML5Signature-normal").addClass("flipHTML5Signature-hover").css(c.overCss)});c.drawSaveAndUse.on("mouseover.signature touchstart.signature",function(b){c.hasDrawFlag&&c.drawSaveAndUse.removeClass("flipHTML5Signature-normal").addClass("flipHTML5Signature-hover").css(c.overCss)});c.drawSave.on("mouseout.signature touchend.signature",function(b){c.hasDrawFlag&&c.drawSave.removeClass("flipHTML5Signature-hover").addClass("flipHTML5Signature-normal").css(c.normalCss)});
c.drawSaveAndUse.on("mouseout.signature touchend.signature",function(b){c.hasDrawFlag&&c.drawSaveAndUse.removeClass("flipHTML5Signature-hover").addClass("flipHTML5Signature-normal").css(c.normalCss)});c.drawSave.on("mousedown.signature",function(b){c.hasDrawFlag&&c.drawSave.removeClass("flipHTML5Signature-hover flipHTML5Signature-normal").css(c.downCss)});c.drawSaveAndUse.on("mousedown.signature",function(b){c.hasDrawFlag&&c.drawSaveAndUse.removeClass("flipHTML5Signature-hover flipHTML5Signature-normal").css(c.downCss)});
c.drawSave.add($(document)).on("mouseup.signature",function(b){c.hasDrawFlag&&c.drawSave.removeClass("flipHTML5Signature-hover").addClass("flipHTML5Signature-normal").css(c.normalCss)});c.drawSaveAndUse.add($(document)).on("mouseup.signature",function(b){c.hasDrawFlag&&c.drawSaveAndUse.removeClass("flipHTML5Signature-hover").addClass("flipHTML5Signature-normal").css(c.normalCss)});b.on("click touchend",function(){c.$writeTypeUnder.hide();c.$drawTypeUnder.hide();c.$signatureUnder.show()});b=$("
").css({boxShadow:"rgb(166, 166, 166) 1px 1px 0px inset, rgb(246, 246, 246) 1px 1px 0px"}).appendTo(this.$drawTypeUnder);
var d=$("
").appendTo(b).append($(" ").attr("src",this.address+"pen.png")),f=$("
").css({boxShadow:"rgb(166, 166, 166) 1px 1px 0px inset, rgb(246, 246, 246) 1px 1px 0px"}).appendTo(d),g=$("
").appendTo(f),
h=$(" ").appendTo(d),k=$("
").css({left:28}).appendTo(b).html("UNDO"),l=$("
").css({left:80}).appendTo(b).html("REDO"),m=$("
").css({left:152,width:78}).html("Clear All").appendTo(b);this.clearAllBtn=m;k.add(l).add(m).removeClass("flipHTML5Signature-normal flipHTML5Signature-hover").css(this.disableCss);
this.undo=k;this.redo=l;k.on("mouseover.signature touchstart.signature",function(b){c.undoIsUse&&k.removeClass("flipHTML5Signature-normal").addClass("flipHTML5Signature-hover").css(c.overCss)});l.on("mouseover.signature touchstart.signature",function(b){c.redoIsUse&&l.removeClass("flipHTML5Signature-normal").addClass("flipHTML5Signature-hover").css(c.overCss)});m.on("mouseover.signature touchstart.signature",function(b){c.clearAllFalg&&m.removeClass("flipHTML5Signature-normal").addClass("flipHTML5Signature-hover").css(c.overCss)});
k.on("mouseout.signature touchend.signature",function(b){c.undoIsUse&&k.removeClass("flipHTML5Signature-hover").addClass("flipHTML5Signature-normal").css(c.normalCss)});l.on("mouseout.signature touchend.signature",function(b){c.redoIsUse&&l.removeClass("flipHTML5Signature-hover").addClass("flipHTML5Signature-normal").css(c.normalCss)});m.on("mouseout.signature touchend.signature",function(b){c.clearAllFalg&&m.removeClass("flipHTML5Signature-hover").addClass("flipHTML5Signature-normal").css(c.normalCss)});
k.on("mousedown.signature",function(b){c.undoIsUse&&k.removeClass("flipHTML5Signature-hover flipHTML5Signature-normal").css(c.downCss)});l.on("mousedown.signature",function(b){c.redoIsUse&&l.removeClass("flipHTML5Signature-hover flipHTML5Signature-normal").css(c.downCss)});m.on("mousedown.signature",function(b){c.clearAllFalg&&m.removeClass("flipHTML5Signature-hover flipHTML5Signature-normal").css(c.downCss)});k.add($(document)).on("mouseup.signature",function(b){c.undoIsUse&&k.removeClass("flipHTML5Signature-hover").addClass("flipHTML5Signature-normal").css(c.normalCss)});
l.add($(document)).on("mouseup.signature",function(b){c.redoIsUse&&l.removeClass("flipHTML5Signature-hover").addClass("flipHTML5Signature-normal").css(c.normalCss)});m.add($(document)).on("mouseup.signature",function(b){c.clearAllFalg&&m.removeClass("flipHTML5Signature-hover").addClass("flipHTML5Signature-normal").css(c.normalCss)});var n=$("
").html("Preview").appendTo(b),p=60/140*16,q=document.createElement("canvas"),t=q.getContext("2d"),
s=$(q).css({position:"absolute",left:0,top:-Math.floor(p)});n.append(s);this.previewCanvas=q;this.previewContext=t;q.width=234;q.height=60+Math.ceil(p)+10;b=this.colorPicker(b);b.container.css({left:220,top:11});var r,u,v;h[0].value=parseFloat((7*(parseInt(g.css("left"))+4)+1).toFixed(2));g.on("mousedown touchstart",function(b){b.preventDefault();b.stopPropagation();b=b.originalEvent.touches?b.originalEvent.touches[0]:b;r=b.clientX-g.position().left;f.add(d).add($(document)).on("mousemove.lineWidth touchmove.lineWidth",
function(b){b=b.originalEvent.touches?b.originalEvent.touches[0]:b;u=b.clientX-r;u=-4>=u?-4:93<=u?93:u;g.css({left:u});v=(u+4)/97*7+1;v=parseFloat(v.toFixed(2));h[0].value=v});d.add($(document)).on("mouseup.lineWidth touchend.lineWidth",function(){c.changeLineWidth(v);f.add(d).add($(document)).off("mousemove.lineWidth touchmove.lineWidth");d.add($(document)).off("mouseup.lineWidth touchend.lineWidth")});return!1});f.on("mousedown touchstart",function(b){b=b.clientX-f.offset().left;b=0>=b?0:97<=b?
97:b;g.css({left:b-4});v=b/97*7+1;v=parseFloat(v.toFixed(2));h[0].value=v;c.changeLineWidth(v)});h.on("change",function(){var b=h[0].value;isNaN(b)?h[0].value=parseFloat(((g.position().left+4)/97*7+1).toFixed(2)):(1>b?(h[0].value=1,g.css({left:-4})):8=c.drawOldPoints.length?c.drawOldPoints.length-1:w;z.clearRect(0,0,y.width,y.height);t.clearRect(0,0,q.width,q.height);var d=c.drawOldPoints[c.drawOldPoints.length-1-w];c.points=d.concat();c.draw(y,z,c.drawOldPoints[c.drawOldPoints.length-1-w],c.drawColor,c.lineWidth);c.drawPreview(q,t,d,c.drawColor,c.lineWidth);c.drawSave.add(c.drawSaveAndUse).removeClass("flipHTML5Signature-hover").addClass("flipHTML5Signature-normal").css(c.normalCss);c.hasDrawFlag=!0;m.add(c.drawSaveAndUse).removeClass("flipHTML5Signature-hover").addClass("flipHTML5Signature-normal").css(c.normalCss);
c.clearAllFalg=!0;w==c.drawOldPoints.length-1&&(c.undoIsUse=!1,k.removeClass("flipHTML5Signature-hover flipHTML5Signature-normal").css(c.disableCss),c.drawSave.add(c.drawSaveAndUse).removeClass("flipHTML5Signature-normal flipHTML5Signature-hover").css(c.disableCss),c.hasDrawFlag=!1,m.add(c.drawSaveAndUse).removeClass("flipHTML5Signature-normal flipHTML5Signature-hover").css(c.disableCss),c.clearAllFalg=!1);b.preventDefault();b.stopPropagation();return!1}});l.on("mousedown.signature touchstart.signature",
function(b){if(c.redoIsUse){c.undoIsUse=!0;k.css(c.normalCss).addClass("flipHTML5Signature-normal").removeClass("flipHTML5Signature-hover");w-=1;w=0>=w?0:w;z.clearRect(0,0,y.width,y.height);t.clearRect(0,0,q.width,q.height);var d=c.drawOldPoints[c.drawOldPoints.length-1-w];c.points=d.concat();c.draw(y,z,c.drawOldPoints[c.drawOldPoints.length-1-w],c.drawColor,c.lineWidth);c.drawPreview(q,t,d,c.drawColor,c.lineWidth);c.drawSave.add(c.drawSaveAndUse).removeClass("flipHTML5Signature-hover").addClass("flipHTML5Signature-normal").css(c.normalCss);
c.hasDrawFlag=!0;m.add(c.drawSaveAndUse).removeClass("flipHTML5Signature-hover").addClass("flipHTML5Signature-normal").css(c.normalCss);c.clearAllFalg=!0;0==w&&(c.redoIsUse=!1,l.removeClass("flipHTML5Signature-hover flipHTML5Signature-normal").css(c.disableCss));b.preventDefault();b.stopPropagation();return!1}});c.drawOldPoints.push([]);n=$("
").appendTo(this.$drawTypeUnder);
p=$("
").css({boxShadow:"rgb(166, 166, 166) 1px 1px 0px inset, rgb(246, 246, 246) 1px 1px 0px"}).appendTo(n);n.css({cursor:"url("+c.address+"pen.png),auto"});var y=document.createElement("canvas"),x=window.canvas=$(y);p.append(x);y.width=540;y.height=158;$(y).css({position:"absolute",left:0,top:-16});var z=y.getContext("2d");
this.canvas=y;this.context=z;this.points=[];this.drawColor=b.message[0].style.backgroundColor;this.lineWidth=1;var D,A;x.on(_event._down,function(b){b.preventDefault();b.stopPropagation();b=b.originalEvent.touches?b.originalEvent.touches[0]:b;if(c.redoIsUse){var d=c.drawOldPoints.length;c.drawOldPoints.length=d-w;c.points=c.drawOldPoints[d-w-1].concat();w=0}c.undoIsUse=!0;k.css(c.normalCss).addClass("flipHTML5Signature-normal").removeClass("flipHTML5Signature-hover");c.redoIsUse=!1;l.removeClass("flipHTML5Signature-hover flipHTML5Signature-normal").css(c.disableCss);
c.clearAllFalg=!0;m.removeClass("flipHTML5Signature-hover").addClass("flipHTML5Signature-normal").css(c.normalCss);c.hasDrawFlag=!0;c.drawSave.add(c.drawSaveAndUse).css(c.normalCss).addClass("flipHTML5Signature-normal").removeClass("flipHTML5Signature-hover");D={x:b.clientX-x.offset().left+0,y:b.clientY-x.offset().top+16,t:0,w:c.lineWidth};c.points.push(D);x.on(_event._move,function(b){b=b.originalEvent.touches?b.originalEvent.touches[0]:b;A={x:b.clientX-x.offset().left+0,y:Math.min(b.clientY-x.offset().top+
16,156),t:1};c.points.push(A);c.draw(y,z,c.points,c.drawColor,c.lineWidth);c.drawPreview(q,t,c.points,c.drawColor,c.lineWidth)});x.add($(document)).on("mouseup.signature touchend.signature",function(){c.drawOldPoints.push(c.points.concat());x.off(_event._move);x.add($(document)).off("mouseup.signature touchend.signature")});return!1})},addSignatureImg:function(b,c,d){var f=this;b.on("mousedown.hideToolBar touchstart.hideToolBar",function(b){f.toolBar&&f.toolBar.hide()});b.css({cursor:"pointer"});
void 0!=f.onCreated?f.onCreated[1].call(f.onCreated[0]):f.hide();b.off("mousedown.signature touchstart.signature");b.on("mousedown.signature touchstart.signature",function(g){b.off("mousedown.signature touchstart.signature");if(isTouch||1===g.which){var h=new Date,k=h.getTime(),h=h.format("MM/dd/yyyy hh:mm:ss");f.showTimeFalg[k]=!1;var l=(g.pageX||g.originalEvent.touches[0].pageX)/BookInfo.scale()-b.offset().left,m=(g.pageY||g.originalEvent.touches[0].pageY)/BookInfo.scale()-b.offset().top,l=f.parseData({left:l,
top:m,width:c.width,height:c.height},b[0].offsetWidth,b[0].offsetHeight),m=$.extend({},c,{width:l.width,height:l.height});f.oldData[k]=m;f.createSignatureImg(b,m,d,l.left,l.top,k,h);f.signatureCookies.push({type:m.type,data:0===c.type?f.saveText:f.savePoints,key:k,page:d,currentTime:h,left:l.left,top:l.top,width:m.width,height:m.height});f.addLocalStorage(f.signatureName,f.parseToString(f.signatureCookies));g.preventDefault();g.stopPropagation();return!1}});b.add($(document)).add(BookInfo.container()).on("mouseup.signature touchend.signature",
function(c){$.each(BookInfo.getCurrentPages(),function(b,c){var d=f.signatureContexts[BookInfo.getBookType()][c];d&&(d.css({cursor:""}),d.off("mousedown.signature touchstart.signature"))});b.off("mousedown.signature touchstart.signature");b.add($(document)).add(BookInfo.container()).off("mousedown.signature touchstart.signature")})},createSignatureImg:function(b,c,d,f,g,h,k){var l=this;b.on("mousedown.hideToolBar touchstart.hideToolBar",function(){l.toolBar&&l.toolBar.hide()});var m=$("
").append($(" ").attr("src",
c.url)).attr("data-key",h).attr("data-page",d).css({position:"absolute",width:c.width,height:c.height,left:f,top:g}).appendTo(b),n=$("
").css({left:c.width+2}).hide().html(k);c=$(" ").attr("src",l.address+"signature_dateClose.png").css({position:"absolute",top:0,right:0,cursor:"pointer"});n.appendTo(m).append(c);c.off("mousedown touchstart");c.on("mousedown touchstart",
function(){var b=l.currentObj.attr("data-key");n.hide();l.showTimeFalg[b]=!1});n.off("mousedown touchstart");n.on("mousedown touchstart",function(b){b.preventDefault();b.stopPropagation();return!1});m.off("mouseover.signature touchstart.signature");m.on("mouseover.signature touchstart.signature",function(){m.css({border:"1px solid #ff0000"})});m.off("mouseout.signature touchend.signature");m.on("mouseout.signature touchend.signature",function(){m.css({border:0})});m.off("mousedown.getObj touchstart.getObj");
m.on("mousedown.getObj touchstart.getObj",function(b){$(".flipHTML5Signature-eachSignatureImg").css({zIndex:1});m.css({zIndex:4});l.currentObj=m;l.toolBar.css({left:m.offset().left-l.container.offset().left,top:m.offset().top-l.container.offset().top-l.toolBar.outerHeight()}).show()});var p=!1;m.off("mousedown.signatureImg touchstart.signatureImg");m.on("pointerdown.signatureImg",function(b){b.stopPropagation()});m.on("mousedown.signatureImg touchstart.signatureImg",function(c){var d=c.pageX||c.originalEvent.touches[0].pageX,
f=c.pageY||c.originalEvent.touches[0].pageY,k=m[0].offsetLeft,n=m[0].offsetTop;b.on("mousemove.signatureImg touchmove.signatureImg",function(b){b.preventDefault();b.stopPropagation();p=!0;var c=k-(d-(b.pageX||b.originalEvent.touches[0].pageX))/BookInfo.scale();g=n-(f-(b.pageY||b.originalEvent.touches[0].pageY))/BookInfo.scale();m.css({left:c,top:g});l.toolBar.css({left:m.offset().left-l.container.offset().left,top:m.offset().top-l.container.offset().top-l.toolBar.outerHeight()}).show();l.showTimeFalg[h]&&
l.reviseDateTag()});m.add(b).add($(document)).on("mouseup.signatureImg touchend.signatureImg",function(){b.off("mousemove.signatureImg touchmove.signatureImg");m.add(b).add($(document)).off("mouseup.signatureImg touchend.signatureImg");if(p){var c=m.attr("data-key"),d=l.parseObject(l.currentObj[0]);l.updateArrayOrderKey(l.signatureCookies,c,{left:d.left,top:d.top});l.addLocalStorage(l.signatureName,l.parseToString(l.signatureCookies))}});c.preventDefault();c.stopPropagation();return!1});b.css({cursor:""})},
draw:function(b,c,d,f,g){var h=-1,k=d.length;c.clearRect(0,0,b.width,b.height);c.save();c.beginPath();c.lineJoin="round";c.strokeStyle=f;for(c.lineWidth=g;++hg&&d>h?(f=g,c=(c-f)/2,d=(d-h)/2):c>g&&dh?(f=c,h=c/k,c=(c-f)/2,d=(d-h)/2):f>k?(h=d,f=d*k,c=(c-f)/2,d=0):f ").css({position:"absolute",
width:f,height:h,left:c,top:d}).attr("src",b.url))}this.drawOldData=b;this.currentDrawEdit.show();this.currentDrawDel.show();this.$writeTypeUnder.hide();this.$drawTypeUnder.hide();this.$signatureUnder.show()},saveAndUseDraw:function(b){var c=this,d=BookInfo.getCurrentPages();$.each(d,function(d,g){var h=c.signatureContexts[BookInfo.getBookType()][g];h&&(b.type=1,c.addSignatureImg(h,b,g))});c.saveDraw(b)},saveWrite:function(b){this.currentWriteSave.html(b);this.currentWriteEdit.show();this.currentWriteDel.show();
this.$writeTypeUnder.hide();this.$drawTypeUnder.hide();this.$signatureUnder.show()},saveAndUseWrite:function(b){var c=this,d=c.drawTextByDiv(b,"38px","Mistral","#000000"),f=BookInfo.getCurrentPages();$.each(f,function(b,f){var k=c.signatureContexts[BookInfo.getBookType()][f];k&&(d.type=0,k.css({cursor:""}),c.addSignatureImg(k,d,f))});c.saveWrite(b)},drawTextByDiv:function(b,c,d,f){var g=document.createElement("canvas"),h=window.context=g.getContext("2d");h.fillStyle=f;h.font=""+c+" "+d+"";var k=h.measureText(b).width+
8;g.width=k;g.height=54;h.fillStyle=f;h.font=""+c+" "+d+"";h.textBaseline="top";h.fillText(b,3,0);return{url:g.toDataURL("image/png"),width:k,height:54}},parseObject:function(b){if(document.getElementsByTagName("body")[0].contains(b)){var c,d,f;f=b.parentNode;var g=b.style,h=$(b);d=100/f.offsetHeight;c=100/f.offsetWidth;f=b.offsetLeft*c+"%";b=b.offsetTop*d+"%";c=h.width()*c+"%";d=h.height()*d+"%";g.width=c;g.height=d;g.left=f;g.top=b;return{width:c,height:d,left:f,top:b}}},parseData:function(b,c,
d){d=100/d;c=100/c;return{width:b.width*c+"%",height:b.height*d+"%",left:b.left*c+"%",top:b.top*d+"%"}},close:function(){this.$signature.hide();this.$signatureUnder.show();this.$writeTypeUnder.hide();this.$drawTypeUnder.hide();this.showFlag=!1},show:function(){this.$signature.show();this.$signatureUnder.show();this.$writeTypeUnder.hide();this.$drawTypeUnder.hide();this.showFlag=!0},hide:function(){this.close()},showHide:function(){this.showFlag?this.hide():this.show()},changeColor:function(b){this.drawColor=
b;this.draw(this.canvas,this.context,this.points,b,this.lineWidth);this.drawPreview(this.previewCanvas,this.previewContext,this.points,this.drawColor,this.lineWidth);return b},changeLineWidth:function(b){return this.lineWidth=b},colorPicker:function(b){var c,d,f,g=this,h="#FF0000 #FF5555 #FF55AA #FF55FF #FFAA55 #FFAAAA #FFAAFF #FFFF55 #FFFFAA #FFFFFF #CC0000 #CC5555 #CC55AA #CC55FF #CCAA55 #CCAAAA #CCAAFF #CCFF55 #CCFFAA #CCFFFF #AA0000 #AA5555 #AA55AA #AA55FF #AAAA55 #AAAAAA #AAAAFF #AAFF55 #AAFFAA #AAFFFF #880000 #885555 #8855AA #8855FF #88AA55 #88AAAA #88AAFF #88FF55 #88FFAA #88FFFF #550000 #555555 #5555AA #5555FF #55AA55 #55AAAA #55AAFF #55FF55 #55FFAA #55FFFF #220000 #225555 #2255AA #2255FF #22AA55 #22AAAA #22AAFF #22FF55 #22FFAA #22FFFF #000000 #005555 #0055AA #0055FF #00AA55 #00AAAA #00AAFF #00FF55 #00FFAA #00FFFF".split(" "),
k=document.createElement("table");c=document.createElement("a");var l=$(c),m=document.createElement("input"),n=function(){},p=function(){k.style.display="none";m.value=m.style.backgroundColor=this.title.toUpperCase();g.changeColor(this.title.toUpperCase())};l.appendTo(b);c.className="flipHtml5ColorSelectorWrap";k.setAttribute("border","1");c.style.position="absolute";c.href="javascript:void(0);";m.type="text";m.className="flipHtml5ColorSelectorMessage";m.style.width="20px";m.style.height="20px";m.value=
m.style.backgroundColor="#000000";m.style.cursor="pointer";m.style.padding="0px";c.appendChild(m);c.appendChild(k);k.style.display="none";k.style.position="relative";k.style.zIndex=9999;k.style.backgroundColor="#ffffff";for(d=0;7>d;d++){f=document.createElement("tr");f.style.position="relative";for(c=0;10>c;c++)b=document.createElement("td"),b.className="flipHtml5ColorSelectorBlock",b.style.position="relative",b.style.width="14px",b.style.height="14px",b.title=h[10*d+c],b.style.backgroundColor=h[10*
d+c],$(b).on("mouseenter",n),$(b).on("click touchstart",p),f.appendChild(b);k.appendChild(f)}$(m).on("click touchstart",function(b){k.style.display="table-cell";b.stopPropagation();b.stopPropagation();return!1});$(document).on("click touchstart",function(){k.style.display="none"});return{container:l,message:$(m)}},setContainers:function(b,c,d){void 0==this.signatureContexts[b]&&(this.signatureContexts[b]={});this.signatureContexts[b][c]=d;b==BookInfo.getBookType()&&(this.toolBar.hide(),this.addSignatureByPageIndex(c,
d))},addSignatureByPageIndex:function(b,c){c.find(".flipHTML5Signature-eachSignatureImg").remove();for(var d=0;d").attr("src",b.url).css({position:"absolute",width:b.width,height:b.height,left:c+10,top:d+10}).appendTo(this.container);f.on("mousemove touchmove",function(b){f.css({left:b.clientX+
10,top:b.clientY+10})});return f},reviseDateTag:function(){if(this.currentObj){var b=this.currentObj.find(".flipHTML5Signature-eachDate"),c=this.currentObj.parent(),d=parseInt(this.currentObj.css("left")),f=parseInt(this.currentObj.css("top"));this.currentObj.position();var g=this.currentObj.outerWidth(),h=this.currentObj.outerHeight(),k=c.width();c.height();var c=b.outerWidth(),l=b.outerHeight(),m=this.toolBar.height();d+g+2+c<=k?b.css({left:g+2,top:-24}):l+m<=f?b.css({left:g-c,top:-(l+m)}):b.css({left:g-
c,top:h+18})}},bindOnCreated:function(b,c){this.onCreated=[b,c]}});
(function(b,c,d){window.Remark=c({statics:{},create:function(){this.expires=30;this.currentEditor=b("");this.backgroundColor="rgba(255, 255, 85, 0.5)";this.highlightBackcolor="rgba(2, 255, 245, 0.5)";this.fontSize=5;this.fontName="Times";this.$bookContainer=d.container();this.fontColor="black";this.title="#00000";this.opacity="1.0";this.noteImgContainers={};this.$document=b(document);this.newSizeWrap();var c=this.createToolbar(),g=this.createHighlightToolbar();c.appendChild(this.createColorSelector());
document.getElementsByTagName("body")[0].appendChild(c).appendChild(g);document.getElementsByTagName("body")[0].appendChild(g);b(window).on("beforeunload",function(){this.save()}.bind(this));this.oneBindEvent()},bindOnCreated:function(b,c){this.onCreated=[b,c]},bindCreateEvents:function(c,g,h){var k,l,m,n,p,q,t,s=this,r=Math.floor,u=c.offset().left,v=c.offset().top,w=function(b){b.preventDefault();m=b.pageX?b.pageX:b.originalEvent.touches?b.originalEvent.touches[0].pageX:0;n=b.pageY?b.pageY:b.originalEvent.touches?
b.originalEvent.touches[0].pageY:0;m&&(0>m-k?(q.left=r((m-u)/d.scale())+"px",q.width=r((k-m)/d.scale())+"px"):(q.left=r((k-u)/d.scale())+"px",q.width=r((m-k)/d.scale())+"px"));n&&(0>b.pageY-l?(q.top=r((n-v)/d.scale())+"px",q.height=r((l-n)/d.scale())+"px"):(q.top=r((l-v)/d.scale())+"px",q.height=r((n-l)/d.scale())+"px"));h&&h.draw(k,l,m,n)};c.css("cursor","crosshair");c.off("mousedown.fliphtml5Remark touchstart.fliphtml5Remark").one("mousedown.fliphtml5Remark touchstart.fliphtml5Remark",function(y){s.unbindCreateEvents();
var x=y.button;if(!document.implementation.hasFeature("MouseEvents","2.0"))switch(event.button){case 0:case 1:case 3:case 5:case 7:x=0;break;case 2:case 6:x=2;break;case 4:x=1}if(!x){y.stopPropagation();p=document.createElement("div");t=b(p).css({webkitUserSelect:"text",mozUserSelect:"text",msUserSelect:"text",oUserSelect:"text",userSelect:"text"});q=p.style;h?(t.append(h),p.className="flipHtml5Shape flipHtml5Store"):(q.backgroundColor=g?"rgba(0, 71, 255, 0.33)":s.highlightBackcolor,p.className=(g?
"flipHtml5Remark flipHtml5Store":"flipHtml5Highlight flipHtml5Store")+" flipHtml5RemarkCurrentEditor",p.setAttribute("contenteditable",g));c.find(".flipHtml5RemarkCurrentEditor").removeClass("flipHtml5RemarkCurrentEditor");c.append(p);if(x=y.originalEvent.changedTouches){var z=x[0].identifier;k=m=x[0].pageX;l=n=x[0].pageY}else k=m=y.pageX,l=n=y.pageY;s.reBindEvent(t,g);c.on("mousemove.fliphtml5Remark touchmove.fliphtml5Remark",w);c.off("mouseup.fliphtml5Remark touchend.fliphtml5Remark").one("mouseup.fliphtml5Remark touchend.fliphtml5Remark",
function(b){var h=b.originalEvent.changedTouches;if(h){if(z!==h[0].identifier)return;m=h[0].pageX;n=h[0].pageY}else m=b.pageX,n=b.pageY;c.off("mousemove.fliphtml5Remark touchmove.fliphtml5Remark");if(10>Math.abs(m-k)||10>Math.abs(n-l))q.left=r((m-u)/d.scale())+"px",q.top=r((n-v)/d.scale())+"px",q.width="280px",q.height="28px";s.parsePresentValue(p);s.parsePresentValue(s.sizeWrap);t.css({outline:"none",backgroundColor:g?s.backgroundColor:s.highlightBackcolor,color:s.fontColor});t.trigger(_event._down);
void 0!=s.onCreated&&s.onCreated[1].call(s.onCreated[0]);s.save()})}})},oneBindEvent:function(){var b=this;this.$document.on("keydown.flipHtml5RemarkDelete",function(c){var d=c.keyCode;c.altKey||c.ctrlKey||c.shiftKey||(b.editing&&d===KEY_CODE_DELETE&&b.currentEditor&&"flipHtml5Remark flipHtml5Store"!==b.currentEditor[0].className&&(b.currentEditor.remove(),b.removeSizeWrap(),b.save()),b.currentEditor&&d===KEY_CODE_LEFT&&d===KEY_CODE_RIGHT&&d===KEY_CODE_UP&&d===KEY_CODE_DOWN&&c.stopPropagation())})},
parsePresentValue:function(c){if(document.getElementsByTagName("body")[0].contains(c)){var d,h;d=c.parentNode;var k=c.style,l=b(c);h=100/d.offsetHeight;d=100/d.offsetWidth;k.width=l.width()*d+"%";k.height=l.height()*h+"%";k.left=c.offsetLeft*d+"%";k.top=c.offsetTop*h+"%"}},reBindEvent:function(c,d){var h=this,k;c.on(_event._down,function(k){k.stopPropagation();b(this).css({outline:"none"});h.removeSizeWrap();h.addSizeWrap(this,d);c.on("mousedown.flipHtml5Annotation touchstart.flipHtml5Annotation",
function(b){b.stopPropagation()})}).on("mousedown mouseup touchend",function(b){b.stopPropagation()});c.on("sizeChange",function(b,c,f,p,q){k=this.style;c&&(k.width=c-16+"px");f&&(k.height=f-16+"px");p&&(k.left=p+8+"px");q&&(k.top=q+8+"px");h.showToolbar(this,d)});c.on("change cut drop paste keydown",function(b){if(!(b.altKey||b.ctrlKey||b.shiftKey)){var c=this,d=c.offsetHeight,f=c.style,g=f.height;setTimeout(function(){f.height="auto";f.height=c.scrollHeight>d?100*c.scrollHeight/c.parentNode.offsetHeight+
"%":g},0)}})},unbindCreateEvents:function(){this.contextArray&&(this.contextArray.css("cursor","auto"),this.contextArray.off("mousedown.fliphtml5Remark touchstart.fliphtml5Remark"))},newSizeWrap:function(){var c,g,h,k,l,m,n,p,q=this,t=1,s=q.sizeWrap=document.createElement("div"),r=[],u=Math.floor,v=q.sizeWrapStyle=s.style;for(s.className="flipHtml5SizeWrap";9>t;)c=document.createElement("div"),c.className="flipHtml5SizePoint flipHtml5SizePoint"+t,s.appendChild(c),r.push(c),t++;q.northResize(r[0]).westResize(r[0]);
q.northResize(r[1]);q.eastResize(r[2]).northResize(r[2]);q.eastResize(r[3]);q.eastResize(r[4]).southResize(r[4]);q.southResize(r[5]);q.southResize(r[6]).westResize(r[6]);q.westResize(r[7]);b(s).on("pointerdown.flipHtml5SizeWrap",function(b){b.stopPropagation()});b(s).on("mousedown.flipHtml5SizeWrap touchstart.flipHtml5SizeWrap",function(c){c.preventDefault();c.stopPropagation();p=q.currentEditor;var f=s.offsetLeft,r=s.offsetTop,t=c.pageX||c.originalEvent.touches[0].pageX,D=c.pageY||c.originalEvent.touches[0].pageY;
b.each([q.$context,b(q.toolbarContainer),b(q.highlightToolbarContainer)],function(c,w){w.on("mousemove.flipHtml5SizeWrap touchmove.flipHtml5SizeWrap",function(b){b.preventDefault();b.stopPropagation();g=b.pageX?b.pageX:b.originalEvent.touches?b.originalEvent.touches[0].pageX:0;h=b.pageY?b.pageY:b.originalEvent.touches?b.originalEvent.touches[0].pageY:0;g&&(n=u(f-(t-g)/d.scale()),l!==n&&(v.left=n+"px",l=n,p.trigger("sizeChange",[0,0,n,0])));h&&(m=u(r-(D-h)/d.scale()),k!==m&&(v.top=m+"px",k=m,p.trigger("sizeChange",
[0,0,0,m])))});w.one("mouseup.flipHtml5SizeWrap touchend.flipHtml5SizeWrap",function(){b.each([q.$context,b(q.toolbarContainer),b(q.highlightToolbarContainer)],function(){this.off("mouseup.flipHtml5SizeWrap touchend.flipHtml5SizeWrap");this.off("mousemove.flipHtml5SizeWrap touchmove.flipHtml5SizeWrap")});q.parsePresentValue(p[0]);q.parsePresentValue(s);q.save()})})}).on(_event._down,function(b){b.preventDefault();b.stopPropagation()});return s},addSizeWrap:function(c,d){var h=this.sizeWrap,k=this.sizeWrap.style;
d?(c.style.zIndex=999,k.zIndex=998):(c.style.zIndex=998,k.zIndex=999);k.width=c.offsetWidth+16+"px";k.height=c.offsetHeight+16+"px";k.left=c.offsetLeft-8+"px";k.top=c.offsetTop-8+"px";k.display="block";c=b(c);this.$context=c.parent();c.before(h);this.parsePresentValue(h);this.currentEditor=c;this.showToolbar(c,d);this.editing=!0},removeSizeWrap:function(){this.currentEditor[0].style.zIndex="2";this.sizeWrapStyle.zIndex="1";this.sizeWrapStyle.display="none";this.hideToolbar();this.editing=!1},hideToolbar:function(){this.toolbarContainer.style.display=
"none";this.highlightToolbarContainer.style.display="none"},showToolbar:function(c,d){var h=d?this.toolbarContainer:this.highlightToolbarContainer,k=h.style,l=b(c),m=l.css("backgroundColor").replace(/\s+/g,"");0<=m.indexOf("rgba")&&(m=m.replace(/a/,"").replace(/\,[0-9]+(\.[0-9]*)?\)/,")"));b(h).find(".flipHtml5RemarkImage-backcolor").css("backgroundColor",m);this.currentEditor=l;k.left=l.offset().left-8+"px";k.top=l.offset().top-(d?80:30)+"px";k.display="block"},createToolbar:function(){for(var c=
this.toolbarContainer=document.createElement("div"),d=0,h="bold italic strikeThrough underline forecolor backcolor blockquote insertUnorderedList insertOrderedList justifyLeft justifyCenter justifyRight createLink removeFormat outdent indent undo redo delete paragraph fontsize fontname".split(" ");h[d];)c.appendChild(this.createButton(h[d])),d++;c.className="fliphtml5RemarkToolbarContainer";b(c).on(_event._down,function(b){b.stopPropagation()});return c},createHighlightToolbar:function(){for(var c=
this.highlightToolbarContainer=document.createElement("div"),d=0,h=["backcolor","delete"];h[d];)c.appendChild(this.createButton(h[d],!0)),d++;c.className="fliphtml5RemarkHighlightToolbarContainer";b(c).on(_event._down,function(b){b.preventDefault();b.stopPropagation()});return c},createButton:function(c,d){var h=this,k,l;switch(c){case "hr":return l=document.createElement("hr"),l.className="flipHtml5RemarkHr",l;case "paragraph":return k="Paragraph;Address;Preformatted;Title 1;Title 2;Title 3;Title 4;Title 5;Title 6".split(";"),
l="p address pre h1 h2 h3 h4 h5 h6".split(" "),l=h.createSelect(k,l,c);case "fontname":return k="Arial Century Courier Gentium Georgiae Impact King Lalit Modena Papyrus Tahoma TeX Times Verdana Verona cursive fantasy monospace serif".split(" "),l="Arial Century Courier Gentium Georgiae Impact King Lalit Modena Papyrus Tahoma TeX Times Verdana Verona cursive fantasy monospace serif".split(" "),l=h.createSelect(k,l,c,"fontFamily");case "fontsize":return k=[1,2,3,4,5,6,7],l=[1,2,3,4,5,6,7],l=h.createSelect(k,
l,c,"fontSize");case "forecolor":return h.createColorButton(c);case "backcolor":return h.createColorButton(c,d);default:return k=document.createElement("a"),k.href="javascript:void(0);",l=document.createElement("div"),l.className="flipHtml5RemarkButtonImage flipHtml5RemarkImage-"+c,l.title=c,k.className="flipHtml5RemarkButton",b(k).on(_event._down,function(b){b.preventDefault();b.stopPropagation();h.exec(c)}),k.appendChild(l),k}},createColorButton:function(c,d){var h,k,l,m,n=this,p;h=document.createElement("a");
h.href="javascript:void(0);";k=document.createElement("div");k.className="flipHtml5RemarkButtonImage flipHtml5RemarkImage-"+c;k.title=c;h.className="flipHtml5RemarkButton";l=document.createElement("div");l.className="flipHtml5RemarkColorBar";"backcolor"===c&&(l.style.display="none");b(h).on(_event._down,function(q){q.preventDefault();q.stopPropagation();p=n.opacityHandel;m=n.colorSelector;b(h).after(m);m.style.left=this.offsetLeft+"px";m.style.top=this.offsetTop+22+"px";m.style.display="block";"forecolor"===
c&&(p.hide(),n.opacity=1);"backcolor"===c&&(n.opacity=p.val(),p.show());p.setOpacity(parseFloat(parseFloat(n.currentEditor.css("backgroundColor").replace(/\s*\)*/g,"").split(",")[3]).toFixed(2)));n.$context.one(_event._down,function(b){b.preventDefault();m.style.display="none"});n.currentEditor.one(_event._down,function(b){b.preventDefault();m.style.display="none"});n.$bookContainer.one(_event._down,function(b){b.preventDefault();m.style.display="none"});n.$colorSelector.off("colorSelected").one("colorSelected",
function(b,h){b.preventDefault();"backcolor"===c?k.style.backgroundColor=h:l.style.backgroundColor=h;m.style.display="none";n.exec(c,h,d)})});h.appendChild(l);h.appendChild(k);return h},createSelect:function(b,c,d,k,l){var m=document.createElement("select"),n=0,p=this,q;m.className="flipHtml5RemarkSelect flipHtml5Remark-"+d;for(m.style[k]=c[1];b[n];)q=document.createElement("option"),q.className="flipHtml5RemarkOption-"+d+" flipHtml5RemarkOption-"+c[n],q.innerHTML=b[n],q.value=c[n],q.style[k]=c[n],
0===n&&(q.setAttribute("selected",!0),l&&(q.style.display="none")),m.appendChild(q),n++;m.onchange=k?function(){p.exec(d,this[this.selectedIndex].value);this.style[k]=this[this.selectedIndex].value;l&&(this.selectedIndex=0)}:function(){p.exec(this[this.selectedIndex].value);l&&(this.selectedIndex=0)};return m},createColorSelector:function(){var c,d,h,k,l=this,m="#FF0000 #FF5555 #FF55AA #FF55FF #FFAA55 #FFAAAA #FFAAFF #FFFF55 #FFFFAA #FFFFFF #CC0000 #CC5555 #CC55AA #CC55FF #CCAA55 #CCAAAA #CCAAFF #CCFF55 #CCFFAA #CCFFFF #AA0000 #AA5555 #AA55AA #AA55FF #AAAA55 #AAAAAA #AAAAFF #AAFF55 #AAFFAA #AAFFFF #880000 #885555 #8855AA #8855FF #88AA55 #88AAAA #88AAFF #88FF55 #88FFAA #88FFFF #550000 #555555 #5555AA #5555FF #55AA55 #55AAAA #55AAFF #55FF55 #55FFAA #55FFFF #220000 #225555 #2255AA #2255FF #22AA55 #22AAAA #22AAFF #22FF55 #22FFAA #22FFFF #000000 #005555 #0055AA #0055FF #00AA55 #00AAAA #00AAFF #00FF55 #00FFAA #00FFFF".split(" "),
n=document.createElement("table"),p=this.colorSelector=document.createElement("a"),q=this.$colorSelector=b(p),t=document.createElement("input"),s=l.createOpacityPlugin(),r=function(){t.value=t.style.backgroundColor=this.title.toUpperCase()},u=function(){q.trigger("colorSelected",[l.parseColorToRGBA(this.title,s.val())])};p.className="flipHtml5RemarkColorSelectorWrap";n.setAttribute("border","1");p.style.display="none";p.href="javascript:void(0);";t.className="flipHtml5RemarkColorSelectorMessage";
t.value="#000000";t.setAttribute("disabled","true");p.appendChild(t);p.appendChild(s.container);p.appendChild(n);q.on(_event._down,function(b){b.preventDefault();b.stopPropagation()});for(h=0;7>h;h++){k=document.createElement("tr");for(d=0;10>d;d++)c=document.createElement("td"),c.className="flipHtml5RemarkColorSelectorBlock",c.title=m[10*h+d],c.style.backgroundColor=m[10*h+d],b(c).on(_event._over,r),b(c).on(_event._down,u),k.appendChild(c);n.appendChild(k)}return p},createOpacityPlugin:function(){var c,
d,h,k,l,m,n=0.5,p=this,q=Math.floor,t=document.createElement("div"),s=document.createElement("div"),r=document.createElement("span"),u=s.style,v,w=p.$document,y=p.changeOpacity,x=b(s),z=b(t);r.className="flipHtml5RemarkOpacitySpan";t.className="flipHtml5RemarkOpacity";t.style.height="3px";t.style.top="4px";s.className="flipHtml5RemarkOpacityCursor";s.style.top="-5px";t.appendChild(r);t.appendChild(s);z.on(_event._down,function(b){b.preventDefault();b.stopPropagation();v=p.currentEditor;if(d=b.pageX?
b.pageX:b.originalEvent.touches?b.originalEvent.touches[0].pageX:0)h=d-z.offset().left,0>h&&(h=0),145m&&(m=0),145b&&(b=0),this.setOpacity(b),n=b);return n},container:t,show:function(){t.style.display=
""},hide:function(){t.style.display="none"},setOpacity:function(b){if(void 0===b||1b&&(b=0);u.left=145*b+"px";r.innerHTML="Opacity: "+b;n=b}}},changeOpacity:function(b,c){var d=b.css("backgroundColor").replace(/\s*/g,"");0<=d.indexOf("rgba")&&(0<=d.indexOf(",0)")||0<=d.indexOf(",1)"))?b.css("backgroundColor",d.replace(/b\(/,"ba(").replace(/,\d*\)$/,","+c+")")):b.css("backgroundColor",d.replace(/b\(/,"ba(").replace(/d*\)$/,","+c+")").replace(/\d*\.\d*,/g,""))},parseColorToRGBA:function(b,
c){var d,k,l;c=parseFloat(c);1<=c&&(c=1);0>=c&&(c=0);d=parseInt(b.substring(1,3),16);k=parseInt(b.substring(3,5),16);l=parseInt(b.substring(5,7),16);return"rgba("+d+","+k+","+l+","+c+")"},exec:function(b,c,d){switch(b){case "h1":case "h2":case "h3":case "h4":case "h5":case "h6":case "address":case "pre":case "p":case "blockquote":document.execCommand("formatBlock",!1,b);break;case "createLink":(b=prompt("Enter a URL here","http://"))&&""!==b&&"http://"!==b&&(0>b.indexOf("http")&&(b="http://"+b),document.execCommand("createLink",
!0,b));break;case "fontsize":document.execCommand(b,!1,c);break;case "fontname":document.execCommand(b,!1,c);this.fontName=c;break;case "forecolor":document.execCommand(b,!1,c);this.fontColor=c;break;case "backcolor":this.currentEditor[0].style.backgroundColor=c;d?this.highlightBackcolor=c:this.backgroundColor=c;break;case "delete":this.removeSizeWrap();this.currentEditor.remove();this.save();break;default:document.execCommand(b,!1,null)}this.currentEditor.trigger(_event._down)},northResize:function(c){var g,
h,k,l,m,n=this,p=Math.floor,q,t;b(c).on("mousedown.fliphtml5RemarkResize touchstart.fliphtml5RemarkResize",function(b){b.preventDefault();b.stopPropagation();h=n.currentEditor;q=n.sizeWrap;t=n.sizeWrapStyle;m=n.$context;var c=q.offsetHeight||20,f=b.pageY||b.originalEvent.touches[0].pageY;m.one("mouseup.fliphtml5RemarkResize touchend.fliphtml5RemarkResize",function(){m.off("mousemove.fliphtml5RemarkResize touchmove.fliphtml5RemarkResize");n.parsePresentValue(h[0]);n.parsePresentValue(q);n.save()});
m.on("mousemove.fliphtml5RemarkResize touchmove.fliphtml5RemarkResize",function(b){b.preventDefault();b.stopPropagation();b.pageY?g=b.pageY:b.originalEvent.touches&&(g=b.originalEvent.touches[0].pageY);g&&(l=p(c+(f-g)/d.scale()),k!==l&&20\u4e3e\u62a5
");this.reportIcon=$(" ");this.iconUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABD0lEQVQ4jc2UUXHDMAyG/zAIhIxBGSwMOgYLgxVCIYTBMgZl0AzByiBh0DD49mDdVecqiR+rO905tvxF9i9ZenWr/AcQxXSSjja+SPp5glRVPvUAOu+AiWebgE8fu2pADXxloBk4m88ReAvYBxmNLpsxWD9vAZtgwx34AE7B2iXPMBJlkHSQtEgag//Wtv4u6U3S7EVZU7mxDa2Nvd0kzZJ+bVyk8i04Xm5/FKgsuy+AFhiAxUEWm+tczC5wsQzzuvReW8y9BIht2AL6itgF9qSibTdgrd1hXwIUqSumjeNOFlMkilf6OwAO+R2XAhtS716Bo/nV5g5rwL3nq5Z0UipwKXVOr9RFD8haYb+k/QOqf1jCsGrT2QAAAABJRU5ErkJggg==";
this.reportIcon.attr("src",this.iconUrl);this.reportIcon.css({position:"absolute",top:"5px",left:"10px"});this.reportIcon.changeButtonColor(this.color.toString())},initReportBox:function(){this.container=$("
");this.reportBox=$("
");this.content=$("
");this.closeUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAf0lEQVQ4jeWUUQrAIAxD4+7XA+Ya7oDZzxBx2iq4LwOCYvqstQgcp9SsDQAk3VPBKdk7Lf6rNZHMldGFkcyuSRIAGEkBMEnojdbjAiNoby8EOoHdg6aALSDIeg5YQ7261vq88lb9euUeYAQNgUE2a23jwZYbewY2qG/R9s/hQD1ydUfwHIkLMwAAAABJRU5ErkJggg==";
this.initTltle();this.reportBox.append(this.content);this.container.append(this.reportBox);this.parent.append(this.container);this.initSelect();this.initTextArea();this.initButton();this.initAlert();this.initBoxCss();this.initBoxEvent()},initAlert:function(){this.alert=$("
");this.alertBox=$("
");this.alertBg=$("
");this.alertDesc=$("
");this.alertBtn=$("\u786e\u5b9a
");this.alertBox.append(this.alertDesc).append(this.alertBtn);this.alert.append(this.alertBox);
this.container.append(this.alert)},initSucc:function(){this.succBox=$("\u4e3e\u62a5\u6210\u529f
");this.succBox.css({position:"absolute",color:"#fff","pointer-events":"none","z-index":"10001","border-radius":"5px",left:(windowWidth-280)/2+"px",top:(windowHeight-70)/3+"px","font-size":"20px",width:"280px",height:"70px","text-align":"center",background:"#5CB95C","line-height":"70px"})},initTltle:function(){this.boxTitle=$("\u4e3e\u62a5
");this.close=$("
");this.boxTitle.css({height:"54px",
"font-size":"14px","line-height":"54px",padding:"0 28px","border-bottom":"1px solid #EEEEEE"});this.close.css({position:"absolute",background:"url("+this.closeUrl+") 0 0 no-repeat",cursor:"pointer",right:"28px",top:"17px",width:"20px",height:"20px"});bookConfig.RightToLeft&&(this.close.css({left:"28px",right:"auto"}),this.boxTitle.css({"text-align":"right"}));this.boxTitle.append(this.close);this.reportBox.append(this.boxTitle)},initSelect:function(){this.select=$(" ");this.selectIcon=
$("
");this.select.css({width:"100%",cursor:"pointer",padding:"9px 15px","border-radius":"4px",border:"1px solid #DDDDDD",appearance:"none","-moz-appearance":"none",background:"#F4F4F4","-webkit-appearance":"none"});this.selectIcon.css({position:"absolute",cursor:"pointer",right:"44px",top:"98px","z-index":"1","pointer-events":"none",border:"8px solid #969696","border-left":"6px solid transparent","border-bottom-color":"transparent","border-right":"6px solid transparent"});bookConfig.RightToLeft&&
(this.selectIcon.css({left:"44px",right:"auto"}),this.select.css({direction:"rtl"}));for(var b="\u8bf7\u9009\u62e9\u4e3e\u62a5\u7684\u539f\u56e0;\u76d7\u7248 \u4fb5\u6743 \u6cc4\u9732\u673a\u5bc6;\u533b\u836f\u4fdd\u5065 \u6574\u5f62 \u865a\u5047\u5e7f\u544a;\u90aa\u6559 \u8fdd\u53cd\u56fd\u5bb6\u653f\u7b56;\u8272\u60c5 \u8d4c\u535a \u6bd2\u54c1 \u4f20\u9500;\u5176\u4ed6\u539f\u56e0".split(";"),c=0;c"+b[c]+"");0==c&&(d=$(""+b[c]+
" "));d.css({padding:"9px 0"});this.select.append(d)}this.content.append(this.select).append(this.selectIcon)},initTextArea:function(){this.inputBox=$("
");this.textarea=$("");this.number=$(" ");this.inputBox.css({width:"100%",
"margin-top":"20px"});this.textarea.css({padding:"9px 15px",height:"120px",width:"350px","border-radius":"4px",border:"1px solid #DDDDDD",background:"#F4F4F4",resize:"none"});this.number.css({"margin-top":"16px",width:"350px","border-radius":"4px",border:"1px solid #DDDDDD",background:"#F4F4F4",padding:"9px 15px"});bookConfig.RightToLeft&&(this.textarea.css({"text-align":"right"}),this.number.css({"text-align":"right"}));this.inputBox.append(this.textarea).append(this.number);this.content.append(this.inputBox)},
initButton:function(){this.btnBox=$("
");this.confirm=$("\u63d0\u4ea4
");this.cancel=$("\u53d6\u6d88
");this.btnBox.append(this.cancel).append(this.confirm);this.initButtonCss();this.content.append(this.btnBox);for(var b=[this.confirm,this.cancel],c=0;c ");this.reportPanelBg=$("
");this.initReportBox();this.container.append(this.reportPanelBg);this.initSucc();this.initCss()},initSelect:function(){this._super();this.select.css({padding:"6px 10px"});this.selectIcon.css({right:"30px",
top:"32px",border:"6px solid #969696","border-left":"5px solid transparent","border-bottom-color":"transparent","border-right":"5px solid transparent"});bookConfig.RightToLeft&&(this.selectIcon.css({left:"30px",right:"auto"}),this.select.css({direction:"rtl"}))},initBoxCss:function(){this._super();this.reportPanelBg.css({"z-index":"-1",background:"rgba(11,11,11,0.85)",position:"absolute",width:"100%",height:"100%",top:"0",left:"0",top:"0",bottom:"0"});this.reportBox.css({"font-size":"14px",background:"#fff",
"border-radius":"2px",position:"absolute",width:"300px",height:"238px",left:"50%",top:"20px","-webkit-transform":"translate(-50%,0)","-o-transform":"translate(-50%,0)","-moz-transform":"translate(-50%,0)","-ms-transform":"translate(-50%,0)",transform:"translate(-50%,0)"});this.alertBox.css({width:"320px",height:"130px",top:"65px","-webkit-transform":"translate(-50%,0)","-o-transform":"translate(-50%,0)","-moz-transform":"translate(-50%,0)","-ms-transform":"translate(-50%,0)",transform:"translate(-50%,0)"});
this.alertDesc.css({"font-size":"18px",width:"320px",height:"130px","line-height":"70px"});this.alertBtn.css({position:"absolute",width:"80px",bottom:"25px",left:"120px",height:"30px","line-height":"30px"});this.content.css({padding:"20px"})},initTextArea:function(){this._super();this.inputBox.css({"margin-top":"10px"});this.textarea.css({width:"238px",padding:"6px 10px",height:"18px"});this.number.css({width:"238px",padding:"6px 10px","margin-top":"6px"})},initButtonCss:function(){this._super();
this.btnBox.css({"text-align":"center",margin:"10px 0 0"});this.confirm.css({width:"100%",height:"30px",margin:"0","line-height":"30px"});this.cancel.css({width:"100%",height:"30px",margin:"10px 0 0","line-height":"30px"});this.btnBox.append(this.confirm).append(this.cancel)},initBoxEvent:function(){this._super();this.reportPanelBg.bind(_event._click,function(){this.hide()}.bind(this))},initTltle:function(){this.close=$("
");this.close.css({display:"none",background:"#fff url("+this.closeUrl+
") 4px 4px no-repeat",position:"absolute",right:"0",top:"-30px",width:"28px","border-radius":"50%",height:"28px"});this.reportBox.append(this.close)}}).extend(ReportPanel);
Class("WindowMagnifierBox",{Package:"PageItem",create:function(b){this.parent=b;this.canZoom=global.canMagnifierZoom=!1;this.loadH=this.loadW=0;this.maxScale=2;this.magnifierH=this.magnifierW=130;this.shadowSize=this.maxScale*this.magnifierW*0.03;this.drawH=this.drawW=0;this.ratioW=this.ratioH=1;this.config=[];this.initHtml();this.initCss()},initHtml:function(){this.magnifierZoom=$("
");this.bg=$("
");this.canvas=$("
");
this.ctx=this.canvas[0].getContext("2d");this.magnifierZoom.append(this.canvas).append(this.bg);tmpContainer.append(this.magnifierZoom)},initCss:function(){this.magnifierZoom.css({background:"#fff",position:"absolute","pointer-events":"none","border-radius":"50%",display:"none","box-shadow":"0 0 "+this.shadowSize/3+"px #999","-ms-box-shadow":"0 0 "+this.shadowSize/3+"px #999","-moz-box-shadow":"0 0 "+this.shadowSize/3+"px #999","-webkit-box-shadow":"0 0 "+this.shadowSize/3+"px #999","z-index":"1000"});
this.bg.css({position:"absolute","pointer-events":"none","border-radius":"50%",width:"100%",height:"100%","box-shadow":"0 0 "+this.shadowSize+"px #999 inset","-ms-box-shadow":"0 0 "+this.shadowSize+"px #999 inset","-moz-box-shadow":"0 0 "+this.shadowSize+"px #999 inset","-webkit-box-shadow":"0 0 "+this.shadowSize+"px #999 inset","z-index":"2"});this.canvas.css({background:"#fff","border-radius":"50%","pointer-events":"none","transform-origin":"0 0","-o-transform-origin":"0 0","-ms-transform-origin":"0 0",
"-moz-transform-origin":"0 0","-webkit-transform-origin":"0 0",position:"absolute","z-index":"1"})},onResize:function(){},setImg:function(b,c){this.side=b;imgs=b.find("img");imgs.each(function(d,f){f=$(f);this.config[d]||(this.config[d]={});this.config[d].offset=f.offset();var g=f.attr("src").removeStartFrom("?");this.config[d].showImg=$('
');this.config[d].loadW?this.beforeDraw(c,this.config[d],f):(b.css({cursor:"wait"}),this.config[d].showImg.on("load",function(){b.css({cursor:"none"});
this.config[d].loadW=this.config[d].showImg[0].naturalWidth;this.config[d].loadH=this.config[d].showImg[0].naturalHeight;this.beforeDraw(c,this.config[d],f)}.bind(this)))}.bind(this))},beforeDraw:function(b,c,d){this.freshWidthAndHeight(c,d);this.drawBg(b,c)},freshWidthAndHeight:function(b,c){b.rateW=b.loadW/c.width();b.rateH=b.loadH/c.height();var d=b.loadW/b.loadH,f=c.width()/c.height();b.ratioH=d/f;b.ratioW=f/d;b.drawW=b.rateW*this.magnifierW;b.drawW
this.magnifierW*this.maxScale&&(b.drawW=this.magnifierW*this.maxScale);b.drawH=b.rateH*this.magnifierH*b.ratioH;b.drawHthis.magnifierH*this.maxScale&&(b.drawH=this.magnifierH*this.maxScale);this.drawW ");this.colorPanel=$("
");this.colorSlider=$("
");this.alphaSlider=$("
");this.colorPoint=$('
');this.sliderPoint=$('
');this.alphaPoint=$('
');this.stage.append(this.colorPanel).append(this.colorSlider).append(this.alphaSlider);
this.colorPanel.append(this.colorPoint);this.colorSlider.append(this.sliderPoint);this.alphaSlider.append(this.alphaPoint);this.parent.append(this.stage)},initColorPanelCss:function(){this.stage.css({display:"none","z-index":"11111",position:"absolute",width:"auto",padding:"0 1px",height:"152px",background:"#fff",border:"1px solid #CCCCCC",left:"120px",top:"50px"});this.colorPanel.css({position:"relative","float":"left",top:"1px",left:"0px",width:"150px",height:"150px",background:"url("+uiBaseURL+
"jsColorPanel.png) -120px 0 no-repeat","background-color":"#ff0000",cursor:"crosshair"});this.colorSlider.css({position:"relative","float":"left",top:"1px","margin-left":"1px",width:"20px",height:"150px",background:"white url("+uiBaseURL+"jsColorPanel.png) 0 0",cursor:"row-resize"});this.alphaSlider.css({position:"relative","float":"left",top:"1px","margin-left":"1px",width:"20px",height:"150px",background:"white url("+uiBaseURL+"jsColorPanel.png) -40px 0 no-repeat",cursor:"row-resize"});this.colorPoint.css({position:"absolute",
top:"0px",left:"150px",width:"8px",height:"8px",border:"solid 2px #bbb","border-radius":"10px","margin-top":"-6px","margin-left":"-6px",background:"none"});this.sliderPoint.css({position:"absolute",top:"0",left:"0",width:"18px",height:"2px",background:"white",border:"solid 1px black","margin-top":"-2px","-moz-box-sizing":"content-box","-webkit-box-sizing":"content-box","box-sizing":"content-box"});this.alphaPoint.css({position:"absolute",top:"0",left:"0",width:"18px",height:"2px",background:"white",
border:"solid 1px black","margin-top":"-2px","-moz-box-sizing":"content-box","-webkit-box-sizing":"content-box","box-sizing":"content-box"})},destroy:function(){this.stage.remove()},showColorSelection:function(b){b=b.toUpperCase();this.selection.setColor(b)},colorSelected:function(b){this.hide();b=b.toUpperCase();this.selection.setColor(b)},showOrHide:function(b){b.elem&&(this.visible&&b.elem[0]==this.curElem[0]?this.hide():this.show(b))},hide:function(){this.stage.fadeOut(200,function(){this.visible=
!1}.bind(this))},show:function(b){b.elem&&(b.closeAlpha?this.alphaSlider.css({display:"none"}):this.alphaSlider.css({display:"block"}),this.visible=!0,this.curElem=b.elem,this.curInput=b.input?b.input:"",this.freshPanelCss(),this.updateFromOuter(this.curElem),this.stage.fadeIn(200))},freshPanelCss:function(){var b,c,d=this.curElem.offset(),f=this.stage.width(),g=this.stage.height(),h=this.curElem.width(),k=this.curElem.height();b=d.left;c=d.top+k+5;d.left+h+f+5>windowWidth&&(b=d.left-f+h-5);d.top+
k+g+5>windowHeight&&(c=d.top-g-5);this.stage.css({top:c+"px",left:b+"px"})},updateFromOuter:function(b){this.curColor=$(b).attr("color")?$(b).attr("color"):"#ff0000";this.curAlpha=$(b).attr("alpha")?$(b).attr("alpha"):"1.00";hex=this.convertCase(this.parseHex(this.curColor,!0));hsb=this.hex2hsb(hex);this.curAlpha&&(this.curAlpha=""===this.curAlpha?1:this.keepWithin(parseFloat(this.curAlpha).toFixed(2),0,1),c=this.keepWithin(this.alphaSlider.height()-this.alphaSlider.height()*this.curAlpha,0,this.alphaSlider.height()),
this.alphaPoint.css("top",c+"px"));b=this.keepWithin(Math.ceil(hsb.s/(100/this.colorPanel.width())),0,this.colorPanel.width());var c=this.keepWithin(this.colorPanel.height()-Math.ceil(hsb.b/(100/this.colorPanel.height())),0,this.colorPanel.height());this.colorPoint.css({top:c+"px",left:b+"px"});c=this.keepWithin(this.colorSlider.height()-hsb.h/(360/this.colorSlider.height()),0,this.colorSlider.height());this.sliderPoint.css("top",c+"px");this.colorPanel.css("backgroundColor",this.hsb2hex({h:hsb.h,
s:100,b:100}))},getColorConfig:function(){return{color:this.curColor,alpha:this.curAlpha}},setPosition:function(b,c){this.stage.css({left:b+"px",top:c+"px"})},updateColor:function(){gridPos=this.getCoords(this.colorPoint,this.colorPanel);sliderPos=this.getCoords(this.sliderPoint,this.colorSlider);opacityPos=this.getCoords(this.alphaPoint,this.alphaSlider);hue=this.keepWithin(360-parseInt(sliderPos.y*(360/this.colorSlider.height()),10),0,360);saturation=this.keepWithin(Math.floor(gridPos.x*(100/this.colorPanel.width())),
0,100);brightness=this.keepWithin(100-Math.floor(gridPos.y*(100/this.colorPanel.height())),0,100);this.curColor=this.hsb2hex({h:hue,s:saturation,b:brightness});var b=this.hsb2hex({h:hue,s:100,b:100});this.curAlpha=parseFloat(1-opacityPos.y/this.alphaSlider.height()).toFixed(2);this.curElem.css({"background-color":this.curColor,opacity:this.curAlpha});this.curElem.attr("color",this.curColor);this.curElem.attr("alpha",this.curAlpha);this.curInput&&this.curInput.val(this.curColor);this.colorPanel.css({"background-color":b})},
getCoords:function(b,c){var d,f;if(!b.length||!c)return null;d=b.offset().left;f=b.offset().top;return{x:d-c.offset().left+b.outerWidth()/2,y:f-c.offset().top+b.outerHeight()/2}},initEvent:function(){this.stage.bind(_event._down,function(b){this.isFocus=!0;this.curPoint=$(b.target);this.curSlider=$(b.target);if(b.target==this.colorPoint[0]||b.target==this.sliderPoint[0]||b.target==this.alphaPoint[0])this.curPoint=$(b.target),this.curSlider=$(b.target).parent();this.curSlider[0]==this.colorPanel[0]&&
(this.curPoint=this.colorPoint);this.curSlider[0]==this.colorSlider[0]&&(this.curPoint=this.sliderPoint);this.curSlider[0]==this.alphaSlider[0]&&(this.curPoint=this.alphaPoint);b=this.getEventPos(b);this.curPoint[0]==this.colorPoint[0]?this.curPoint.animate({left:b.x+"px",top:b.y+"px"},50,this.updateColor.bind(this)):this.curPoint.animate({top:b.y+"px"},50,this.updateColor.bind(this))}.bind(this));this.stage.bind(_event._move,function(b){this.isFocus&&(b=this.getEventPos(b),this.curPoint[0]==this.colorPoint[0]?
this.curPoint.stop(!0).animate({left:b.x+"px",top:b.y+"px"},0,this.updateColor.bind(this)):this.curPoint.stop(!0).animate({top:b.y+"px"},0,this.updateColor.bind(this)))}.bind(this));this.stage.bind(_event._up,function(b){b.stopPropagation();this.isFocus=!1}.bind(this));tmpContainer.bind(_event._up,function(b){this.isFocus=!1;this.hide()}.bind(this))},getEventPos:function(b){b=b.originalEvent&&b.originalEvent.changedTouches?b.originalEvent.changedTouches:b.changedTouches?b.changedTouches:[b];var c=
this.curSlider.offset().left,d=this.curSlider.offset().top,c=Math.round(b[0].pageX-c);b=Math.round(b[0].pageY-d);c=this.keepWithin(c,0,this.curSlider.width());b=this.keepWithin(b,0,this.curSlider.height());return{x:c,y:b}},rgbObject:function(b){var c=parseHex($(b).val(),!0),c=hex2rgb(c);b=$(b).attr("data-opacity");if(!c)return null;void 0!==b&&$.extend(c,{a:parseFloat(b)});return c},rgbString:function(b,c){var d=parseHex($(b).val(),!0),d=hex2rgb(d),f=$(b).attr("data-opacity");if(!d)return null;void 0===
f&&(f=1);return c?"rgba("+d.r+", "+d.g+", "+d.b+", "+parseFloat(f)+")":"rgb("+d.r+", "+d.g+", "+d.b+")"},convertCase:function(b,c){return"uppercase"===c?b.toUpperCase():b.toLowerCase()},parseHex:function(b,c){b=b.replace(/[^A-F0-9]/ig,"");if(3!==b.length&&6!==b.length)return"";3===b.length&&c&&(b=b[0]+b[0]+b[1]+b[1]+b[2]+b[2]);return"#"+b},keepWithin:function(b,c,d){bd&&(b=d);return b},hsb2rgb:function(b){var c,d,f;c=Math.round(b.h);var g=Math.round(255*b.s/100);b=Math.round(255*b.b/100);
if(0===g)c=d=f=b;else{var g=(255-g)*b/255,h=c%60*(b-g)/60;360===c&&(c=0);60>c?(c=b,f=g,d=g+h):120>c?(d=b,f=g,c=b-h):180>c?(d=b,c=g,f=g+h):240>c?(f=b,c=g,d=b-h):300>c?(f=b,d=g,c=g+h):360>c?(c=b,d=g,f=b-h):f=d=c=0}return{r:Math.round(c),g:Math.round(d),b:Math.round(f)}},rgb2hex:function(b){var c=[b.r.toString(16),b.g.toString(16),b.b.toString(16)];$.each(c,function(b,f){1===f.length&&(c[b]="0"+f)});return"#"+c.join("")},hsb2hex:function(b){return this.rgb2hex(this.hsb2rgb(b))},hex2hsb:function(b){b=
this.rgb2hsb(this.hex2rgb(b));0===b.s&&(b.h=360);return b},rgb2hsb:function(b){var c={h:0,s:0,b:0},d=Math.min(b.r,b.g,b.b),f=Math.max(b.r,b.g,b.b),d=f-d;c.b=f;c.s=0!==f?255*d/f:0;c.h=0!==c.s?b.r===f?(b.g-b.b)/d:b.g===f?2+(b.b-b.r)/d:4+(b.r-b.g)/d:-1;c.h*=60;0>c.h&&(c.h+=360);c.s*=100/255;c.b*=100/255;return c},hex2rgb:function(b){b=parseInt(-1>16,g:(b&65280)>>8,b:b&255}}}),getRandomColor=function(){return"#"+Math.floor(1118481+14540253*Math.random()).toString(16)},
BookmarkElements=Class({create:function(b){this._super(b);this.initElements();this.initEvent(b);this.pickElements(b)},initElements:function(){this.input=$(" ");this.colorSelection=$(" ");this.setRandom();this.rightToLeft?this.initRightToLeftDefaultDom():this.initLeftToRightDefaultDom();this.remove=$(""+
getLanguage("lblRemoveAll","Remove All")+"
")},initRightToLeftDefaultDom:function(){this.leftAddPage=$(" "+getLanguage("lblAddToPage","Add To Page")+"
");this.rightAddPage=$(" "+getLanguage("lblAddToPage","Add To Page")+"
");this.bookmarkListTitle=$(""+
getLanguage("lblEdit","Edit")+" "+getLanguage("lblDescription","Title")+" "+getLanguage("lblPage","Page")+"
")},initLeftToRightDefaultDom:function(){this.leftAddPage=$(""+getLanguage("lblAddToPage","Add To Page")+"
");this.rightAddPage=$(""+getLanguage("lblAddToPage","Add To Page")+"
");
this.bookmarkListTitle=$(""+getLanguage("lblPage","Page")+" "+getLanguage("lblDescription","Title")+" "+getLanguage("lblEdit","Edit")+"
")},getColor:function(){return this.colorSelection.attr("color")},pickElements:function(b){b&&(b.input=this.input,b.colorSelection=this.colorSelection,b.remove=this.remove,b.leftAddPage=this.leftAddPage,b.rightAddPage=this.rightAddPage,b.bookmarkListTitle=
this.bookmarkListTitle)},setRandom:function(){var b=getRandomColor();this.colorSelection.attr("color",b);this.colorSelection.css("background",b)},initEvent:function(b){this.leftAddPage.click(function(){var c={pageIndex:this.leftPageIndex,caption:this.input.val(),color:this.getColor()};b.addItem(c)}.bind(this));this.rightAddPage.click(function(){var c={pageIndex:this.rightPageIndex,caption:this.input.val(),color:this.getColor()};b.addItem(c)}.bind(this));this.remove.click(function(){b.removeAll()}.bind(this));
this.input.bind("mousedown touchstart pointerdown mouseover mousemove",function(b){b.stopPropagation()});this.colorSelection.bind(_event._up,function(b){b.stopPropagation();global.colorPanel&&global.colorPanel.showOrHide({e:b,elem:this.colorSelection,closeAlpha:!0})}.bind(this))},refreshElements:function(){this.refreshAddPageButtonOnPc();this.refreshAddPageButtonOnPhone()},refreshAddPageButtonOnPc:function(){if(!isPhone()&&!isPad()){0>=this.bookmarkList.getLength()?this.remove.hide():this.remove.show();
var b=BookInfo.getCurrentPages();this.leftPageIndex=parseInt(b[0]);this.rightPageIndex=parseInt(b[1]);this.showOrHideAddPageBtn();this.focusAddPageBtn()}},refreshAddPageButtonOnPhone:function(){if((isPhone()||isPad())&&toolBar.buttons){for(var b=BookInfo.getCurrentPages(),c=0;c");this.saveUrl=form_icons.save?
"data:image/png;base64,"+form_icons.save:uiBaseURL+"save.png";this.cancelUrl=form_icons.cancel?"data:image/png;base64,"+form_icons.cancel:uiBaseURL+"cancel.png";this.editUrl=form_icons.edit?"data:image/png;base64,"+form_icons.edit:uiBaseURL+"edit.png";this.deleteUrl=form_icons["delete"]?"data:image/png;base64,"+form_icons["delete"]:uiBaseURL+"delete.png";this.fontColor=b.fontColor;this.color=b.color;this.caption=b.caption;this.pageCaption=getShownPageNumber(parseInt(b.pageIndex));this.pageIndex=parseInt(b.pageIndex);
this.colorObj=Color(this.fontColor);this.initDefaultDom();this.initHtml();this.initEvent()},resetColor:function(b){this.fontColor=b;this.colorObj=Color(this.fontColor)},initHtml:function(){rightToLeft?this.initRightToLeftHtml():this.initLeftToRightHtml();this.deleteIcon.changeButtonColor(this.fontColor);this.edit.changeButtonColor(this.fontColor);this.cancel.changeButtonColor(this.fontColor);this.save.changeButtonColor(this.fontColor)},initRightToLeftHtml:function(){this.item.append(this.deleteIcon);
this.item.append(this.edit);this.item.append(this.cancel);this.item.append(this.save);this.item.append(this.title);this.item.append(this.colorSelection);this.item.append(this.page)},initLeftToRightHtml:function(){this.item.append(this.page);this.item.append(this.title);this.item.append(this.colorSelection);this.item.append(this.save);this.item.append(this.cancel);this.item.append(this.edit);this.item.append(this.deleteIcon)},initDefaultDom:function(){this.page=$(""+this.pageCaption+
" ");this.title=$(" ");this.colorSelection=$(" ");this.colorSelection.attr("color",this.color);this.save=$(" ");this.cancel=$(" ");
this.edit=$(" ");this.deleteIcon=$(" ");this.title.css({color:this.fontColor})},appendTo:function(b){b.append(this.item)},insertBefore:function(b){this.item.insertBefore(b)},insertAfter:function(b){this.item.insertAfter(b)},initEvent:function(){this.edit.onTap(function(){this.startEdit()}.bind(this));this.cancel.onTap(function(){this.endEdit();
this.cancelData()}.bind(this));this.save.onTap(function(){this.endEdit();this.saveData()}.bind(this));this.deleteIcon.onTap(function(){this.item.remove();this.callback.deleteItem(this.parm.pageIndex)}.bind(this));this.item.onTap(function(){this.judgeToSaveOrCancel();gotoPageFun(this.pageIndex,!1,"bookmark")}.bind(this));this.title.bind("keypress",function(b){"13"==b.keyCode&&(this.endEdit(),this.saveData())}.bind(this));this.item.bind("mouseover",function(){global.bookmark.editingItem!=this&&this.item.css({background:this.colorObj.rgba(0.1)})}.bind(this));
this.item.bind("mouseleave",function(){global.bookmark.editingItem!=this&&this.item.css({"background-color":"transparent"})}.bind(this));this.colorSelection.bind(_event._up,function(b){b.stopPropagation();global.colorPanel&&global.colorPanel.showOrHide({e:b,elem:this.colorSelection,closeAlpha:!0})}.bind(this))},saveData:function(){var b=this.colorSelection.attr("color"),c=this.title.val();if(c!=this.caption||b!=this.color)this.caption=c,this.color=b,this.parm={pageIndex:this.pageIndex,caption:this.caption,
color:this.color},this.callback.editItem(this.parm)},cancelData:function(){var b=this.colorSelection.attr("color");this.title.val()!=this.caption&&this.title.val(this.caption);b!=this.color&&this.colorSelection.attr("color",this.color)},endEdit:function(){this.colorSelection.hide();this.cancel.hide();this.save.hide();this.edit.show();this.title.css({background:"transparent",color:this.fontColor});this.title.attr("disabled","disabled");global.bookmark.editingItem=null},startEdit:function(){this.judgeToSaveOrCancel();
this.lightItem();this.colorSelection.show();this.cancel.show();this.save.show();this.edit.hide();this.title.css({background:"#ffffff",color:"#000000"});this.title.removeAttr("disabled");global.bookmark.editingItem=this;this.cancel.changeButtonColor(this.fontColor);this.save.changeButtonColor(this.fontColor)},judgeToSaveOrCancel:function(){global.bookmark.editingItem&&global.bookmark.editingItem!=this&&(global.bookmark.editingItem.cancelData(),global.bookmark.editingItem.endEdit())},lightItem:function(){$(".bookmarkItem_focus").css({background:"transparent"});
$(".bookmarkItem_focus").removeClass("bookmarkItem_focus");this.item.addClass("bookmarkItem_focus");this.item.css({background:this.colorObj.rgba(0.25)})},changeLanguage:function(){this.save.attr("title",getLanguage("lblSave","Save"));this.cancel.attr("title",getLanguage("lblCancel","Cancel"));this.edit.attr("title",getLanguage("lblEdit","Edit"));this.deleteIcon.attr("title",getLanguage("lblDelete","Delete"))}}),PhoneBookmarkItem=Class({create:function(b,c){this.parm=b;this.color=b.color;this.caption=
b.caption;this.pageCaption="P:"+parseInt(b.pageIndex);this.pageIndex=parseInt(b.pageIndex);this.callback=c;this.item=$("
");this.page=$("P:"+getShownPageNumber(this.pageIndex)+" ");this.caption=$(""+this.caption+" ");this.deleteBtn=$("
");this.item.append(this.page);passwardType()||(getPageDir(this.pageIndex,"thumb",originTotalPageCount).match(/^none/)?this.image=$("
"):this.image=$(" "),bookConfig.isStopMouseMenu&&this.image.css({"pointer-events":"none"}),this.item.append(this.image));this.item.append(this.caption);this.item.append(this.deleteBtn);this.initEvent()},appendTo:function(b){b.append(this.item)},initEvent:function(){this.deleteBtn.click(function(){this.item.remove();this.callback.deleteItem(this.pageIndex)}.bind(this));
this.item.click(function(){gotoPageFun(this.pageIndex,!1,"bookmark");bookmark.hide()}.bind(this))},changeLanguage:function(){}}),AnalysisBookmark=Class({create:function(){this.bookmarkList=[];this.bookmarkDetaildList=[];this.key=window.location.href.replace(window.location.hash,"")+"BookMark";this.refresh()},refresh:function(){var b=this.getListFromLocalStorage();if(b&&0!=b.length){for(var c=0;cthis.bookmarkList.indexOf(c)&&(this.bookmarkList.push(c),this.bookmarkDetaildList.push(b),this.sortList())},deleteItem:function(b){for(var c=0;cb){c=this.bookmarkList[f];break}return c},getPrevItem:function(b){for(var c=0,d=this.bookmarkList.length,f=0;fb){c=this.bookmarkList[f-1];break}return c},getLength:function(){return this.bookmarkList.length}}),
BookmarkListPanel=Class({create:function(b){this.callback=b;this.bookmarkList=new BookmarkListData;this.initSwiper()},onCreate:function(){},initSwiper:function(){this.bookmarkSwiper=$("
");this.bookmarkSwiperList=$("
");this.progress=$("
");this.progressBar=$("
");this.refreshSwiper();this.bookmarkSwiper.append(this.bookmarkSwiperList);isPhone()||isPad()?this.bookmarkSwiper.css({"overflow-y":"auto",
"overflow-x":"hidden","-webkit-overflow-scrolling":"touch"}):(this.progress=$("
"),this.progressBar=$("
"),this.bookmarkSwiper.append(this.progress),this.progress.append(this.progressBar),this.bookmarkSwiper.scroll({},Direction.top))},initColorCss:function(){this.mainColor=bookConfig.formBackgroundColor?bookConfig.formBackgroundColor:bookConfig.toolbarColor;this.fontColor=bookConfig.formFontColor?bookConfig.formFontColor:bookConfig.iconColor;
this.mainColorObj=Color(this.mainColor);this.fontColorObj=Color(this.fontColor)},resetSwiperHtml:function(){this.bookmarkSwiperList.html("");this.refreshSwiper()},refreshSwiper:function(){for(var b=this.bookmarkList.getList(),c=b.length,d=0;d=this.maxHeight?(this.bookmarkSwiper.css({height:this.maxHeight+"px"}),this.bookmarkSwiperList.css({position:"absolute"})):this.bookmarkSwiperList.css({top:0});this.bookmarkSwiper.refreshData&&this.bookmarkSwiper.refreshData()}},addItem:function(b){if(!this.bookmarkList.inList(b.pageIndex)){BookEvent.trigger("addBookmark",[BookInfo.getCurrentPagesByIndex(b.pageIndex).join("-"),
b.caption,b.color]);var c=this.newItem(b);this.bookmarkList.addItem(b);if(1==this.bookmarkList.getLength())c.appendTo(this.bookmarkSwiperList);else{var d=this.getPrevItem(b.pageIndex);b=this.getNextItem(b.pageIndex);d.attr("pageIndex")?c.insertAfter(d):b.attr("pageIndex")?c.insertBefore(b):c.appendTo(this.bookmarkSwiperList)}this.refreshPanel()}},deleteItem:function(b){BookEvent.trigger("deleteItem",[BookInfo.getCurrentPagesByIndex(b).join("-")]);this.bookmarkList.deleteItem(b);this.refreshPanel()},
editItem:function(b){BookEvent.trigger("editItem",[BookInfo.getCurrentPagesByIndex(b.pageIndex).join("-"),b.caption,b.color]);this.bookmarkList.editItem(b);this.refreshPanel()},refresh:function(){this.bookmarkList.refresh()},getLength:function(){},inList:function(b){return this.bookmarkList.inList(b)?!0:!1},removeAll:function(){BookEvent.trigger("deleteItem",["all"]);this.bookmarkSwiperList.empty();this.bookmarkList.removeAll()},getNextItem:function(b){b=this.bookmarkList.getNextItem(b);return $("#bookmark_item"+
b)},getPrevItem:function(b){b=this.bookmarkList.getPrevItem(b);return $("#bookmark_item"+b)},refreshPanel:function(){this.refresh();this.refreshListPanel();BookInfo.getBook().bookAttachments.Items.find("BookmarkTab").each(function(b){b.reload()})},onResize:function(b,c){this.maxHeight=c;this.bookmarkSwiper.css("height",c+"px")}}),PhoneBookmarkListPanel=Class({create:function(b){this._super(b)},onCreate:function(){},newItem:function(b){return new PhoneBookmarkItem(b,this.callback)}}).extend(BookmarkListPanel),
PcBookmarkFrame=Class({create:function(b){this.elements=new BookmarkElements(this);this.bookmarkListPanel=new PcBookmarkListPanel(this);this.elements.bookmarkList=this.bookmarkListPanel.bookmarkList;this.elements.bookmarkListPanel=this.bookmarkListPanel;this._super(b)},onCreate:function(){this.initColorCss()},initColorCss:function(){this.stage.css({"background-color":this.mainColor,color:this.fontColor});this.bookmarkListPanel.initColorCss();this.bookmarkListPanel.resetSwiperHtml()},initHtml:function(){this.stage.append(this.title);
this.favicon&&(bookConfig.RightToLeft?this.title.append(this.favicon):this.title.prepend(this.favicon));this.stage.append(this.close);this.content=$("
");this.stage.append(this.content);var b=$("
");b.append(this.input);b.append(this.colorSelection);this.content.append(b);this.content.append(this.leftAddPage);this.content.append(this.rightAddPage);this.content.append(this.bookmarkListPanel.bookmarkListTitle);this.content.append(this.bookmarkListPanel.bookmarkSwiper);
this.content.append(this.remove);this.parent.append(this.stage);this.refreshPanel()},refreshPanel:function(){this.bookmarkListPanel.refreshPanel();this.elements.refreshElements()},setRandom:function(){var b=getRandomColor();this.colorSelection.attr("color",b);this.colorSelection.css("background",b)},addItem:function(b){b&&b.caption&&b.pageIndex&&!this.bookmarkListPanel.inList(b.pageIndex)&&(this.bookmarkListPanel.addItem(b),this.input.val(""),this.setRandom(),this.refreshPanel())},deleteItem:function(b){this.bookmarkListPanel.deleteItem(b);
this.refreshPanel()},editItem:function(b){this.bookmarkListPanel.editItem(b);this.refreshPanel()},refreshItem:function(b){this.bookmarkListPanel.refreshItem(b)},removeAll:function(){this.bookmarkListPanel.removeAll();this.refreshPanel()},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-188;this.stage.css({height:this.height+"px",top:c+"px"});this.bookmarkListPanel.onResize(this.width,this.maxHeight);this.refreshPanel()},onShow:function(){this.changeIconColor()}}).extend(SlideForm),PhoneBookmarkFrame=Class({create:function(b){this.elements=new BookmarkElements(this);this.bookmarkListPanel=new PhoneBookmarkListPanel(this);this.elements.bookmarkList=this.bookmarkListPanel.bookmarkList;this.elements.bookmarkListPanel=this.bookmarkListPanel;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.bookmarkListPanel.bookmarkSwiper);this.refreshPanel()},refreshPanel:function(){this.bookmarkListPanel.refreshPanel();this.elements.refreshElements()},addItem:function(b){b&&b.pageIndex&&!this.bookmarkListPanel.inList(b.pageIndex)&&(this.bookmarkListPanel.addItem(b),this.refreshPanel())},deleteItem:function(b){this.bookmarkListPanel.deleteItem(b);
this.refreshPanel()},refreshItem:function(b){this.bookmarkListPanel.refreshItem(b)},onResize:function(){this._super();this.bookmarkListPanel.onResize(this.width,windowHeight-61);this.refreshPanel()},initEvent:function(){},onShow:function(){this.favicon&&this.favicon.changeButtonColor(this.fontColor)}}).extend(PhoneFormFrame),PhoneBookmarkForm=Class({}).extend(PhoneBookmarkFrame),CopyElements=Class({create:function(b){this._super(b);this.initElements();this.initEvent(b);this.pickElements(b)},initElements:function(){this.textArea=
$("");this.message=$(""+getLanguage("lblSelectMessage","Please copy the the text content in the text box")+"
");this.button=$(""+getLanguage("lblCopy","Copy")+"
")},initEvent:function(b){this.copyHref(this.button[0],b)},copyHref:function(b,c){if(!global.isBelowIE9()){var d=this,f=new ClipboardJS(b,{text:function(b){return d.textArea.val()}});f.on("success",function(b){c.hide.bind(c)();b.clearSelection()});f.on("error",function(b){uc?(c.hide.bind(c)(),
b.clearSelection()):alert("Copy failed!")})}},copyFrom:function(b){if(b){b.focus();b.select();try{document.execCommand("Copy")}catch(c){b=b.val(),copyToClipboard(b)}}},pickElements:function(b){b.textArea=this.textArea;b.message=this.message;b.button=this.button},changeLanguage:function(){this.message.html(getLanguage("lblSelectMessage","Please copy the the text content in the text box"));this.button.html(getLanguage("lblCancel","Cancel"))}}).extend(FormElements),CopyForm=Class({create:function(b){this.elements=
new CopyElements(this);this._super(b)},onCreate:function(){this._super();this.stage.css({"background-color":this.mainColor,color:this.fontColor})},initHtml:function(){this.stage.append(this.textArea);this.stage.append(this.message);this.stage.append(this.button);this._super()},fillText:function(b){this.textArea.val(b);rightToLeft&&this.textArea.addClass("rtl")},initEvent:function(){this.stage.bind(_event._down,function(b){b.stopPropagation()})},onShow:function(){},onResize:function(){this._super()}}).extend(FadeOutFadeForm);
Class("LineABC",{create:function(b,c){this.a=c.y-b.y;this.b=b.x-c.x;this.c=c.x*b.y-b.x*c.y},distanceFrom:function(b){b=this.a*b.x+this.b*b.y+this.c;b=Math.abs(b);var c=Math.sqrt(this.a*this.a+this.b*this.b);return b/c}});
Class("LineSegment",{create:function(b,c){this.start=b;this.stop=c;this.degree=this.radians=this.distance=this.horizontal=this.vertical=0;this.computeLine()},computeLine:function(){this.vertical=this.stop.y-this.start.y;this.horizontal=this.stop.x-this.start.x;this.distance=Math.sqrt(this.vertical*this.vertical+this.horizontal*this.horizontal);0=g&&(h=Math.floor(2*d/3));this.widthList[f]=h/this.width;b+=h}d=b*c.cos()/this.width;c=-b*c.sin()/this.height;b=this.rightTop();f=this.rightBottom();b.x+=d;b.y+=c;f.x+=d;f.y+=c}},fixZeroHeight:function(){var b=this.getPixelPoint(this.leftBottom()),c=this.getPixelPoint(this.rightBottom()),c=new LineSegment(b,c);if(!c.isPoint()){var b=-22*c.sin()/
this.width,c=-22*c.cos()/this.height,d=this.leftTop(),f=this.rightTop();d.x+=b;d.y+=c;f.x+=b;f.y+=c}},adjustWidthList:function(){for(var b=!1,c=0;cc)for(var d=c;dc;c++)this.points[c]=
b.points[c].clone();this.widthList=[];for(c=0;cd;d++)c=Math.max(c,b[d].x);return c},getMaxY:function(b){for(var c=-1E8,d=0;4>d;d++)c=Math.max(c,b[d].y);return c},getMinX:function(b){for(var c=1E8,d=0;4>d;d++)c=Math.min(c,b[d].x);return c},getMinY:function(b){for(var c=1E8,d=0;4>d;d++)c=Math.min(c,b[d].y);return c},getMiddlePoint:function(b,
c){return new Point((b.x+c.x)/2,(b.y+c.y)/2)},getMiddlePixelPoint:function(b,c){return new Point((b.x+c.x)/2*this.pageWidth,(b.y+c.y)/2*this.pageHeight)},leftBottom:function(){return this.points[0]},leftTop:function(){return this.points[3]},rightBottom:function(){return this.points[1]},rightTop:function(){return this.points[2]},getSubTextWidth:function(b){var c=0;if(0>=b)return 0;b>this.letterCount()&&(b=this.letterCount());for(var d=0;d=b)return 0;b>this.letterCount()&&(b=this.letterCount());if(equals(this.line_width.cos(),0))c=this.line_width.distance*(b/this.letterCount())*this.line_width.sin();else for(var d=0;d=f){d=h;break}h++}return d},getIndexRangeByArea:function(b){var c=-1,d=-1,f=Math.min(b.left,b.right),g=Math.min(b.top,b.bottom),h=Math.max(b.left,b.right);b=Math.max(b.top,
b.bottom);for(var k=0;kh||mb||nf||this.box.right<
c||this.box.top>b||this.box.bottomc;c++)if(!this.points[c].equals(b.points[c]))return!1;return!0},relation:function(b){var c=new LineSegment(this.getMiddlePixelPoint(this.leftBottom(),this.rightTop()),b.getMiddlePixelPoint(b.leftBottom(),b.rightTop())),d=new LineSegment(this.getMiddlePixelPoint(this.leftBottom(),this.leftTop()),b.getMiddlePixelPoint(b.rightBottom(),
b.rightTop())),f=new LineSegment(this.getMiddlePixelPoint(this.rightBottom(),this.rightTop()),b.getMiddlePixelPoint(b.leftBottom(),b.leftTop())),g=f;d.distance0.8*h||d>=2.5*f)return SearchItemRelation.RETURN;
if(this.isSelected(b.box)){if(equals(d,0))return SearchItemRelation.NEARBY;if(5>Math.abs(g.degree-c.degree)&&d>=0.3*f)return SearchItemRelation.SPACE}else{if(d>=0.5*f&&d<1.2*f)return 30=1.2*f&&d<2.5*f)return 15k[1].x?g[1]:k[1],d[c+2]=g[2].x>k[2].x?g[2]:k[2],d[c+3]=k[3].xk[1].x?g[1]:k[1],d[c+2]=g[2].x>k[2].x?g[2]:k[2],d[c+3]=k[3].xb)break;var l=new SearchTextPart(h);l.beginIndex=Math.max(0,f-k);l.endIndex=Math.min(h.letterCount()-1,b-k);g.add(l)}}d.push(g);return b+1},match:function(b,c){var d=this.getTextForSearch(c);if(!d)return!1;for(var f=b.split(" "),g=0;g=c?"":
this.continuousText.substr(b,c)},select:function(b,c){return c?this.selectByColumnMode(b):this.selectByLineMode(b)},selectByLineMode:function(b){for(var c=new SearchTextResult,d=-1,f=-1,g=0;gf;f++)b.points[f]=new Point(d[2*f]||0,d[2*f+1]||0);if(!(8>=d.length)){for(f=8;f");h.css({position:"absolute",left:g+"%",top:b+"%",width:c+"%",height:f+
"%","background-color":Color(bookConfig.searchHightlightColor).rgba(0.6),transform:"rotate("+d+"deg)","-webkit-transform":"rotate("+d+"deg)","-ms-transform":"rotate("+d+"deg)","-o-transform":"rotate("+d+"deg)","-moz-transform":"rotate("+d+"deg)","transform-origin":"0% 0%","-webkit-transform-origin":"0% 100%","-ms-transform-origin":"0% 100%","-o-transform-origin":"0% 100%","-moz-transform-origin":"0% 100%"});this.content.append(h)}});
Class("DynamicBackground",{statics:{create:function(b){var c=DynamicBackground.initAnimation(b),d=b.width,f=b.height;(function(){if(d!=windowWidth||f!=windowHeight)d=windowWidth,f=windowHeight,c.resize(d,f);c.nextFrame()}).animation();return c},initAnimation:function(b){switch(b.name){case "PetalsDancing":return new PetalsDancingAnimation(b);case "Snow":return new SnowAnimation(b);case "SlowBubble":return new SlowBubbleAnimation(b);case "FastBubble":return new FastBubbleAnimation(b);case "LightRain":return new LightRainAnimation(b);
case "HeavyRain":return new HeavyRainAnimation(b);case "Firefly":return new FireflyAnimation(b);case "SpaceShip":return new SpaceShipAnimation(b);case "SpaceTravel":return new SpaceTravelAnimation(b);case "Cloud":return new CloudAnimation(b);case "SunCloud":return new SunCloudAnimation(b);case "Meteor":return new MeteorAnimation(b);case "Sunshine":return new SunshineAnimation(b);case "Twinkle":return new TwinkleAnimation(b);case "FallenLeaves":return new FallenLeavesAnimation(b);case "Moon":return new MoonCloudAnimation(b);
case "Balloon":return new BalloonCloudAnimation(b);case "AirBubble":return new SlowBubbleAnimation(b);case "BlinkStar":return new TwinkleAnimation(b);case "CloudsLeft02":return new CloudAnimation(b);case "CloudsLeft02":return new CloudAnimation(b);case "Leaves02":return new FallenLeavesAnimation(b);case "Leaves03":return new FallenLeavesAnimation(b);case "RainDrop":return new LightRainAnimation(b);case "Cloud3":return new BalloonCloudAnimation(b);default:return new EmptyAnimation(b)}},getImagePath:function(b){return global.mbBaseURL+
b}}});
Class("BackgroundAnimation",{create:function(b){this.stage={body:b.stage,width:b.width,height:b.height};this.items=[];this.frameNumber=this.itemNumber=0;this.onCreated.delay(this,1)},onCreated:function(){this.resize(this.stage.width,this.stage.height)},resize:function(b,c){this.stage.width=b;this.stage.height=c;this.clear()},clear:function(){for(;0=this.itemNumber||this.items.push(this.newItem())},getImagePath:function(b){return DynamicBackground.getImagePath(b)},
itemCount:function(){return this.items.length},getItem:function(b){return this.items[b]},nextFrame:virtual_function,newItem:virtual_function});
Class("BackgroundItem",{create:function(b){this.parent=b;this.initBody();this.initPositions()},initBody:function(){this.body=null;this.createBody();this.parent.body.append(this.body)},getImagePath:function(b){return DynamicBackground.getImagePath(b)},createBody:virtual_function,initPositions:virtual_function,move:virtual_function,refresh:virtual_function,pointByStep:function(b,c,d,f,g){return g?c+Number.fixed((d-c)*b/f,g):c+Math.floor((d-c)*b/f)},destroy:function(){this.body&&(this.body.remove(),
this.body=null)}});Class("BackgroundItemPosition",{create:function(b,c,d,f){this.left=b||0;this.top=c||0;this.scale=d||1;this.rotate=f||0}});
Class("GoThroughAnimation",{create:function(b){this._super(b);this.count=0},nextFrame:function(){if(this.frameNumber&&this.itemNumber){this.itemNumber>this.frameNumber?this.addMultipleItems():this.addItemFewFrames();for(var b=0;b=this.itemNumber||(b=this.newItem(),b.active(),this.items.push(b))},newItem:virtual_function}).extend("BackgroundAnimation");
Class("GoThroughItem",{create:function(b,c){this._super(b);this.frameNumber=c||1;this.step=0;this.moving=!1},createBody:virtual_function,initPositions:virtual_function,refresh:virtual_function,move:function(){this.step++;this.step==this.frameNumber&&this.sleep();this.refresh()},isActive:function(){return!0==this.moving},isFree:function(){return!1==this.moving},sleep:function(){this.moving=!1},active:function(){this.step=1;this.moving=!0;this.initPositions();this.refresh()}}).extend("BackgroundItem");
Class("AlwaysExistsAnimation",{create:function(b){this._super(b)},addItems:function(){for(var b=0;b");this.body.attr("src",this.getImagePath("petal.png"))},initPositions:function(){var b=1.2*this.parent.width,c=1.2*this.parent.height,d=Math.floor(Math.sqrt(b*b+c*c)),b=0.1*-this.parent.width,c=Number.random(0.1*-this.parent.height,Math.floor(0.9*this.parent.height),0),f=Number.random(10,20,1),g=Math.PI/180*f,f=
Math.floor(b+d*Math.cos(g)),d=Math.floor(c+d*Math.sin(g)),g=Number.fixed(0.2+c/this.parent.height,1),h=g-0.2,k=Number.random(0,360,1),l=Number.random(0,360,1);this.start=new BackgroundItemPosition(b,c,g,k);this.end=new BackgroundItemPosition(f,d,h,l)},refresh:function(){var b=Math.floor($.easing.swing(null,this.step,this.start.left,this.end.left-this.start.left,this.frameNumber)),c=Math.floor($.easing.swing(null,this.step,this.start.top,this.end.top-this.start.top,this.frameNumber)),d=$.easing.swing(null,
this.step,this.start.scale,this.end.scale-this.start.scale,this.frameNumber),f=$.easing.swing(null,this.step,this.start.rotate,this.end.rotate-this.start.rotate,this.frameNumber),b=transformCSS({tran:{x:b,y:c},scale:d,rotate:f});this.body.css(b)}}).extend("GoThroughItem");Class("SlowBubbleAnimation",{create:function(b){this._super(b);this.itemNumber=50;this.frameNumber=200},newItem:function(){return new SlowBubbleItem(this.stage,this.frameNumber)}}).extend("GoThroughAnimation");
Class("SlowBubbleItem",{create:function(b,c){this._super(b,c)},createBody:function(){this.body=$(" ");this.body.attr("src",this.getImagePath("bubble.png"))},initPositions:function(){var b=Number.random(0.3,0.7),c=Number.random(20,this.parent.width-20);this.start=new BackgroundItemPosition(c,Math.floor(this.parent.height-50*b),b);this.end=new BackgroundItemPosition(c,-40,b)},refresh:function(){var b,c,d;b=$.easing.easeInSine(null,
this.step,this.start.left,this.end.left-this.start.left,this.frameNumber);c=$.easing.easeInQuad(null,this.step,this.start.top,this.end.top-this.start.top,this.frameNumber);d=$.easing.easeOutQuint(null,this.step,0,this.start.scale,this.frameNumber);b=transformCSS({tran:{x:b,y:c},scale:d,origin:{x:50,y:100}});this.body.css(b)}}).extend("GoThroughItem");
Class("FastBubbleAnimation",{create:function(b){this._super(b);this.itemNumber=80;this.frameNumber=40;this.popupPoints=[];this.popupPoints.push(0.1*b.width);this.popupPoints.push(0.9*b.width)},resize:function(b,c){this.popupPoints[0]=0.1*b;this.popupPoints[1]=0.9*b;this._super(b,c)},newItem:function(){return new FastBubbleItem(this.stage,this.frameNumber,this.popupPoints)}}).extend("GoThroughAnimation");
Class("FastBubbleItem",{create:function(b,c,d){this.points=d;this._super(b,c)},createBody:function(){this.body=$(" ");this.body.attr("src",this.getImagePath("blue_bubble.png"))},initPositions:function(){var b=Number.random(0.2,0.35,2),c=this.points[Number.random(0.1,1.9,0)],d=Math.floor(this.parent.height-50*b),f=Math.floor(c+Number.random(-30,30));this.start=new BackgroundItemPosition(c,d,b);this.end=new BackgroundItemPosition(f,
-40,b)},refresh:function(){var b,c,d;b=$.easing.easeOutQuint(null,this.step,this.start.left,this.end.left-this.start.left,this.frameNumber);c=$.easing.easeInQuad(null,this.step,this.start.top,this.end.top-this.start.top,this.frameNumber);d=$.easing.easeOutQuint(null,this.step,0,this.start.scale,this.frameNumber);b=transformCSS({tran:{x:b,y:c},scale:d,origin:{x:50,y:100}});this.body.css(b)}}).extend("GoThroughItem");
Class("LightRainAnimation",{create:function(b){this._super(b);this.itemNumber=240;this.frameNumber=30},newItem:function(){return new LightRainItem(this.stage,this.frameNumber)}}).extend("GoThroughAnimation");
Class("LightRainItem",{create:function(b,c){this._super(b,c)},createBody:function(){this.body=$(" ");this.body.attr("src",this.getImagePath("raindrop.png"))},initPositions:function(){var b=1.2*this.parent.width,c=1.2*this.parent.height;Math.sqrt(b*b+c*c);b=Number.random(0,this.parent.width);c=Math.floor(this.parent.height+10);this.start=new BackgroundItemPosition(b,-50);this.end=new BackgroundItemPosition(b,c)},
refresh:function(){var b=Math.floor($.easing.easeInSine(null,this.step,this.start.left,this.end.left-this.start.left,this.frameNumber)),c=Math.floor($.easing.easeInSine(null,this.step,this.start.top,this.end.top-this.start.top,this.frameNumber)),b=transformCSS({tran:{x:b,y:c}});this.body.css(b)}}).extend("GoThroughItem");Class("HeavyRainAnimation",{create:function(b){this._super(b);this.itemNumber=160;this.frameNumber=20},newItem:function(){return new HeavyRainItem(this.stage,this.frameNumber)}}).extend("AlwaysExistsAnimation");
Class("HeavyRainItem",{create:function(b,c){this.angle=15;this.radian=this.angle*Math.PI/180;this._super(b,c)},createBody:function(){this.body=$("
");var b=Math.floor(this.parent.height/Math.cos(this.radian));this.body.css({border:"0px solid gray",height:b+"px","background-color":"rgba(225,225,225, 0.06)"})},initPositions:function(){var b=Math.floor(this.parent.height*Math.tan(this.radian)),b=Number.random(0,this.parent.width+
b);this.start=new BackgroundItemPosition(b,0)},refresh:function(){var b=Math.floor(this.parent.height*Math.tan(this.radian)),b=Number.random(0,this.parent.width+b),b=transformCSS({tran:{x:b,y:0},origin:{x:0,y:0},rotate:this.angle});this.body.css(b)}}).extend("AlwaysExistsItem");Class("SpaceShipAnimation",{create:function(b){this._super(b);this.itemNumber=500;this.frameNumber=30},newItem:function(){return new SpaceShipItem(this.stage,this.frameNumber)}}).extend("AlwaysExistsAnimation");
Class("SpaceShipItem",{create:function(b,c){this._super(b,c)},createBody:function(){this.body=$(" ");this.body.attr("src",this.getImagePath("star.png"))},initPositions:function(){this.orbitRadius=Number.random(0,this.maxOrbit(this.parent.width,this.parent.height));this.radius=Number.random(90,this.orbitRadius)/20;this.orbitX=this.parent.width/2;this.orbitY=this.parent.height/2;this.angle=Number.random(0,360);this.speed=
Number.random(0,this.orbitRadius/4)/this.orbitRadius;this.body.css({width:this.radius+"px",height:this.radius+"px",opacity:0.8})},maxOrbit:function(b,c){var d=Math.max(b,c);return Math.round(Math.sqrt(d*d+d*d))/2},move:function(){this.angle+=this.speed;this.refresh()},refresh:function(){var b=this.angle/180*Math.PI,c=Math.sin(b)*this.orbitRadius+this.orbitX,b=Math.cos(b)*this.orbitRadius+this.orbitY,c=transformCSS({tran:{x:c-this.radius/2,y:b-this.radius/2}});this.body.css(c)}}).extend("AlwaysExistsItem");
Class("SpaceTravelAnimation",{create:function(b){this._super(b);this.frameNumber=this.itemNumber=300},nextFrame:function(){if(this.frameNumber&&this.itemNumber){for(var b=0;2>b;b++)this.addItem();for(b=0;b");this.body.attr("src",this.getImagePath("star.png"))},initPositions:function(){var b=this.maxOrbit(this.parent.width,this.parent.height),c=Math.floor(0.7*b),d=Number.random(0,c),f=$.easing.easeInQuad(null,d,20,c-20,c);fScale=1-0.8*f/c;fSpeed=5-4*f/c;this.realFrameNumber=Math.floor(this.frameNumber/fSpeed);
var d=Number.random(0,360)/180*Math.PI,g=this.parent.width/2,h=this.parent.height/2,c=Math.sin(d)*f+g,f=Math.cos(d)*f+h,g=Math.sin(d)*b+g,b=Math.cos(d)*b+h;this.start=new BackgroundItemPosition(c,f,0.1);this.end=new BackgroundItemPosition(g,b,fScale)},maxOrbit:function(b,c){var d=Math.max(b,c);return Math.round(Math.sqrt(d*d+d*d))/2},move:function(){this.step++;this.step==this.realFrameNumber&&this.sleep();this.refresh()},refresh:function(){var b=Math.floor($.easing.easeInSine(null,this.step,this.start.left,
this.end.left-this.start.left,this.realFrameNumber)),c=Math.floor($.easing.easeInSine(null,this.step,this.start.top,this.end.top-this.start.top,this.realFrameNumber)),d=$.easing.easeInSine(null,this.step,this.start.scale,this.end.scale-this.start.scale,this.realFrameNumber),b=transformCSS({tran:{x:b,y:c},scale:d});this.body.css(b)}}).extend("GoThroughItem");
Class("MeteorAnimation",{create:function(b){this._super(b);this.itemNumber=3;this.frameNumber=120},newItem:function(){return new MeteorItem(this.stage,this.frameNumber)}}).extend("GoThroughAnimation");
Class("MeteorItem",{create:function(b,c){this._super(b,c)},createBody:function(){this.body=$(" ");this.body.attr("src",this.getImagePath("meteor.png"))},initPositions:function(){var b=Number.random(0.5*this.parent.width,1.5*this.parent.width,0),c=Math.PI/180*65,d=Math.floor(this.parent.height+88*Math.cos(c)),c=Math.floor(b-d*Math.tan(c)),f=Number.random(0.7,1.5,1);this.start=new BackgroundItemPosition(b,0,f,65);
this.end=new BackgroundItemPosition(c,d,f,65)},refresh:function(){var b=Math.floor(this.frameNumber);if(!(this.step>b)){var c=Math.floor($.easing.easeInSine(null,this.step,this.start.left,this.end.left-this.start.left,b)),d=Math.floor($.easing.easeInSine(null,this.step,this.start.top,this.end.top-this.start.top,b));$.easing.easeInSine(null,this.step,1,-1,b);b=transformCSS({origin:{x:0,y:0},tran:{x:c,y:d},rotate:this.start.rotate,scale:this.start.scale});this.body.css(b)}}}).extend("GoThroughItem");
Class("SunshineAnimation",{create:function(b){this._super(b);this.createSun();this.createSunBorder();this.itemNumber=40;this.frameNumber=10},createSun:function(){this.sun=$("
");this.sun.css({position:"absolute","z-index":2,width:"4px",height:"4px","border-radius":"2px","background-color":"rgba(255,255,255, 0.9)",left:"-4px",top:"-4px","box-shadow":"0px 0px 50px 130px rgba(255,255,255, 0.9)","-o-box-shadow":"0px 0px 50px 130px rgba(255,255,255, 0.9)","-ms-box-shadow":"0px 0px 50px 130px rgba(255,255,255, 0.9)",
"-moz-box-shadow":"0px 0px 50px 130px rgba(255,255,255, 0.9)","-webkit-box-shadow":"0px 0px 50px 130px rgba(255,255,255, 0.9)",opacity:1});this.stage.body.append(this.sun)},createSunBorder:function(){this.sunBorder=$("
");this.sunBorder.css({position:"absolute","z-index":1,width:"4px",height:"4px","border-radius":"2px","background-color":"rgba(255,255,255, 0.2)",left:"-4px",top:"-4px","box-shadow":"0px 0px 200px 500px rgba(255,255,255, 0.2)","-o-box-shadow":"0px 0px 200px 500px rgba(255,255,255, 0.2)",
"-ms-box-shadow":"0px 0px 200px 500px rgba(255,255,255, 0.2)","-moz-box-shadow":"0px 0px 200px 500px rgba(255,255,255, 0.2)","-webkit-box-shadow":"0px 0px 200px 500px rgba(255,255,255, 0.2)",opacity:1});this.stage.body.append(this.sunBorder)},newItem:function(){var b=this.itemCount()");var b=Math.floor(Math.sqrt(this.parent.width*this.parent.width+this.parent.height*this.parent.height));this.body.css({"border-left":"0px solid rgba(0,0,0,0)","border-right":b+"px solid rgba(255,255,255,0.01)","border-top":"25px solid rgba(0,0,0,0)","border-bottom":"25px solid rgba(0,0,0,0)","transform-origin":"0% 0%"})},
initPositions:function(){this.rotate=Number.random(0,90)},move:function(){this.rotate+=this.direction/this.frameNumber;0>this.rotate&&(this.rotate+=90);this.rotate%=90;this.refresh()},refresh:function(){var b=this.rotate,c=Math.PI/180*b,d=Math.floor(120*Math.cos(c)),c=Math.floor(120*Math.sin(c))-20,b=transformCSS({tran:{x:d,y:c},rotate:b});this.body.css(b)}}).extend("AlwaysExistsItem");
Class("CloudAnimation",{create:function(b){this._super(b);this.itemNumber=10;this.frameNumber=1E3},resize:function(b,c){this._super(b,c);for(var d=0;d");var b=this.cloudResources[this.cloudType],c={width:b.width+"px",height:b.height+"px"};this.body.attr("src",this.getImagePath(b.src));this.body.css(c);this.top=b.top;this.width=b.width;this.height=b.height},initPositions:function(){var b=this.parent.width+100,c=Math.floor(this.parent.height*this.top),d=-this.width;Number.random(0,360);Number.random(-90,90);this.start=new BackgroundItemPosition(b,
c);this.end=new BackgroundItemPosition(d,c)},refresh:function(){var b=this.pointByStep(this.step,this.start.left,this.end.left,this.frameNumber),c=this.pointByStep(this.step,this.start.top,this.end.top,this.frameNumber),b=transformCSS({tran:{x:b,y:c},scale:this.start.scale});this.body.css(b)}}).extend("GoThroughItem");
Class("SunCloudAnimation",{create:function(b){this.sun=new SunshineAnimation(b);this.cloud=new CloudAnimation(b)},resize:function(b,c){this.sun.resize(b,c);this.cloud.resize(b,c)},nextFrame:function(){this.sun.nextFrame();this.cloud.nextFrame()}});
Class("SnowAnimation",{create:function(b){this._super(b);this.itemNumber=200;this.frameNumber=400},resize:function(b,c){this._super(b,c);for(var d=0;d");this.body.attr("src",this.getImagePath("snow.png"))},initPositions:function(){var b=1.2*this.parent.width,c=1.2*this.parent.height;Math.sqrt(b*b+c*c);var b=Number.random(0,this.parent.width),d=Math.floor(0.1*-this.parent.height),f=Number.random(80,100,1),g=Math.PI/180*f,f=Math.floor(b+c*Math.cos(g)),c=Math.floor(d+c*Math.sin(g)),
g=Number.random(0.3,1.5);this.start=new BackgroundItemPosition(b,d,g);this.end=new BackgroundItemPosition(f,c,g)},refresh:function(){var b=this.pointByStep(this.step,this.start.left,this.end.left,this.frameNumber),c=this.pointByStep(this.step,this.start.top,this.end.top,this.frameNumber),b=transformCSS({tran:{x:b,y:c},scale:this.start.scale});this.body.css(b)}}).extend("GoThroughItem");
Class("FireflyAnimation",{create:function(b){this._super(b);this.itemNumber=50;this.frameNumber=300},newItem:function(){return new FireflyItem(this.stage,this.frameNumber)}}).extend("AlwaysExistsAnimation");
Class("FireflyItem",{create:function(b,c){this._super(b,c)},createBody:function(){this.body=$(" ");this.body.attr("src",this.getImagePath("firefly.png"))},initPositions:function(){var b=Number.random(0,this.parent.width),c=Number.random(this.parent.height/3,this.parent.height),d=Number.random(0.3,1,1);this.start=new BackgroundItemPosition(b,c,d);this.end=null;this.resetTarget()},resetTarget:function(){this.end&&
(this.start=this.end,this.end=null);var b=Number.random(0,35),c=Math.PI/180*b,b=this.start.left+[-1,1][Number.random(0.1,1.9,0)]*Math.floor(80*Math.cos(c)),b=Number.between(b,-20,this.parentWidth+20),c=this.start.top+[-1,1][Number.random(0.1,1.9,0)]*Math.floor(80*Math.sin(c)),c=Number.between(c,-20,this.parent.height+20),d=Number.random(0.3,1,1);this.end=new BackgroundItemPosition(b,c,d)},refresh:function(){var b,c,d;b=this.pointByStep(this.step,this.start.left,this.end.left,this.frameNumber);c=this.pointByStep(this.step,
this.start.top,this.end.top,this.frameNumber);d=$.easing.swing(null,this.step,this.start.scale,this.end.scale-this.start.scale,this.frameNumber);b=transformCSS({tran:{x:b,y:c},scale:d});this.body.css(b)}}).extend("AlwaysExistsItem");Class("FallenLeavesAnimation",{create:function(b){this._super(b);this.itemNumber=25;this.frameNumber=300},newItem:function(){return new FallenLeavesItem(this.stage,this.frameNumber)}}).extend("GoThroughAnimation");
Class("FallenLeavesItem",{create:function(b,c){this.initLeafResources();this._super(b,c)},initLeafResources:function(){this.leafResources=[];this.leafResources.push({src:"leaves1.png",width:99,height:59});this.leafResources.push({src:"leaves2.png",width:100,height:88});this.leafResources.push({src:"leaves3.png",width:100,height:60});this.leafResources.push({src:"leaves4.png",width:100,height:87});this.leafResources.push({src:"leaves5.png",width:100,height:87});this.leafResources.push({src:"leaves6.png",
width:100,height:57})},createBody:function(){this.body=$(" ");var b=this.leafResources[Number.random(0.1,5.9,0)],c={width:b.width+"px",height:b.height+"px"};this.body.attr("src",this.getImagePath(b.src));this.body.css(c)},initPositions:function(){var b=1.2*this.parent.height,c=Number.random(0,this.parent.width),d=Math.floor(0.1*-this.parent.height),f=Number.random(80,100,1),g=Math.PI/180*f,f=Math.floor(c+b*Math.cos(g)),b=Math.floor(d+
b*Math.sin(g)),g=Number.random(0.4,0.8,1),h=Number.random(0,360),k=h+Number.random(-90,90);this.start=new BackgroundItemPosition(c,d,g,h);this.end=new BackgroundItemPosition(f,b,g,k)},refresh:function(){var b=$.easing.easeInSine(null,this.step,this.start.left,this.end.left-this.start.left,this.frameNumber),c=$.easing.easeInSine(null,this.step,this.start.top,this.end.top-this.start.top,this.frameNumber),d=$.easing.easeInSine(null,this.step,this.start.rotate,this.end.rotate-this.start.rotate,this.frameNumber),
b=transformCSS({tran:{x:b,y:c},scale:this.start.scale,rotate:d});this.body.css(b)}}).extend("GoThroughItem");Class("TwinkleAnimation",{create:function(b){this._super(b);this.itemNumber=8;this.frameNumber=100},newItem:function(){return new TwinkleItem(this.stage,this.frameNumber)}}).extend("GoThroughAnimation");
Class("TwinkleItem",{create:function(b,c){this._super(b,c)},createBody:function(){this.body=$(" ");this.body.attr("src",this.getImagePath("twinkle.png"))},initPositions:function(){var b=Number.random(0,this.parent.width),c=Number.random(0,this.parent.height),d=Number.random(0,360),f=d+360;this.start=new BackgroundItemPosition(b,c,1,d);this.end=new BackgroundItemPosition(b,c,1,f)},refresh:function(){var b=this.start.left,
c=this.start.top,d=this.pointByStep(this.step,this.start.rotate,this.end.rotate,this.frameNumber,1),f=this.step,g=this.frameNumber/2,f=f");this.moon.attr("src",this.getImagePath("moon.png"));this.moon.css({position:"absolute",right:"2%",top:"2%"});this.stage.body.append(this.moon)},resize:function(b,c){this._super(b,c);for(var d=0;d");
var b=this.cloudResources[this.cloudType],c={width:b.width+"px",height:b.height+"px",opacity:b.opacity};this.body.attr("src",this.getImagePath(b.src));this.body.css(c);this.top=b.top;this.width=b.width;this.height=b.height},initPositions:function(){var b=this.parent.width,c=Math.floor(this.parent.height*this.top),d=-this.width;Number.random(0,360);Number.random(-90,90);this.speed=Number.random(1,2,1);this.realFrameNumber=Math.floor(this.frameNumber/this.speed);this.start=new BackgroundItemPosition(b,
c);this.end=new BackgroundItemPosition(d,c)},refresh:function(){if(!(this.step>this.realFrameNumber)){var b=this.pointByStep(this.step,this.start.left,this.end.left,this.realFrameNumber),c=this.pointByStep(this.step,this.start.top,this.end.top,this.realFrameNumber),b=transformCSS({tran:{x:b,y:c},scale:this.start.scale});this.body.css(b)}}}).extend("GoThroughItem");
Class("BalloonCloudAnimation",{create:function(b){this.balloon=new BalloonAnimation(b);this.cloud=new BottomCloudAnimation(b)},resize:function(b,c){this.balloon.resize(b,c);this.cloud.resize(b,c)},nextFrame:function(){this.balloon.nextFrame();this.cloud.nextFrame()}});Class("BalloonAnimation",{create:function(b){this._super(b);this.itemNumber=2;this.frameNumber=600},newItem:function(){return new BalloonItem(this.stage,this.frameNumber,this.itemCount())}}).extend("AlwaysExistsAnimation");
Class("BalloonItem",{create:function(b,c,d){this.index=d;this._super(b,c)},createBody:function(){this.body=$(" ");this.body.attr("src",this.getImagePath("air_balloon.png"))},initPositions:function(){var b=this.parent.width/1E3,c=Math.floor(125*b),d=Math.floor(140*b),b=0,b=0==this.index?Number.random(20,100):this.parent.width-200-Number.random(20,100),d=this.parent.height-c-d,f=Number.random(30,70),g=b,h=d+f;this.start=
new BackgroundItemPosition(b,d-f);this.end=new BackgroundItemPosition(g,h);this.body.css({width:c+"px",height:c+"px"})},refresh:function(){var b=this.frameNumber/2,c=this.step,d;c<=b?(d=this.pointByStep(c,this.start.left,this.end.left,b),b=this.pointByStep(c,this.start.top,this.end.top,b)):(c-=b,d=this.pointByStep(c,this.end.left,this.start.left,b),b=this.pointByStep(c,this.end.top,this.start.top,b));d=transformCSS({tran:{x:d,y:b},origin:{x:0,y:0}});this.body.css(d)}}).extend("AlwaysExistsItem");
Class("BottomCloudAnimation",{create:function(b){this._super(b);this.itemNumber=2;this.frameNumber=1E3},newItem:function(){return new BottomCloudItem(this.stage,this.frameNumber,this.itemCount())}}).extend("AlwaysExistsAnimation");
Class("BottomCloudItem",{create:function(b,c,d){this.index=d;this._super(b,c)},createBody:function(){this.body=$(" ");this.body.attr("src",this.getImagePath("bg-clouds.png"))},initPositions:function(){var b=this.parent.width,c=188*this.parent.width/988,d=this.index*this.parent.width,f=this.parent.height-c,g=d-this.parent.width;this.start=new BackgroundItemPosition(d,f);this.end=new BackgroundItemPosition(g,f);
this.body.css({width:b+"px",height:c+"px"})},refresh:function(){iX=this.pointByStep(this.step,this.start.left,this.end.left,this.frameNumber);iY=this.pointByStep(this.step,this.start.top,this.end.top,this.frameNumber);var b=transformCSS({tran:{x:iX,y:iY},origin:{x:0,y:0}});this.body.css(b)}}).extend("AlwaysExistsItem");Class("EmptyAnimation",{create:function(b){},addItem:function(){},clear:function(){},resize:function(b,c){},nextFrame:function(){},newItem:function(){}}).extend("BackgroundAnimation");
function grayBackground(b,c,d,f,g){this.sw=f;this.sh=g;this.background=$("
");this.background.css({width:f+"px",height:g+"px",background:c,opacity:d,"z-index":200,position:"absolute",left:"0px",top:"0px"});b.append(this.background)}grayBackground.prototype.onResize=function(b,c){this.sw=b;this.sh=c;this.background.css({width:b+"px",height:c+"px"})};bdor[25]="i";
grayBackground.prototype.setPosition=function(b,c,d){void 0==d&&(d=["left","top"]);this.background.css(d[0],b+"px");this.background.css(d[1],c+"px")};grayBackground.prototype.show=function(){this.father.append(this.background)};grayBackground.prototype.hide=function(){this.background.remove()};grayBackground.prototype.setZindex=function(b){this.background.css({"z-index":b})};grayBackground.prototype.onMouseUp=function(b,c){$(this.background).bind(_event._down,function(d){c.call(b)})};
var textWidth=function(b,c){var d=$(""+b+" ").css({color:bookConfig.iconColor,display:"none","font-size":c.size,"font-family":c.fontName});$("body").append(d);var f=Point(d.width(),d.height());d.remove();return f};
function label(b,c){this.labelBox=$(''+b+"
");if("null"!=b&&""!=b){this.caption=b;this.fontSize="12px";this.fontColor="#f0f0f0";this.fontName="Tahoma";var d=textWidth(b,{size:this.fontSize,fontName:this.fontName});this.width=d.x;this.height=d.y;c.append(this.labelBox)}}label.prototype.getWidth=function(){return this.width};bdor[27]="f";label.prototype.getHeight=function(){return this.height};
label.prototype.getCaption=function(){return this.caption};label.prototype.setCaption=function(b){this.caption=b;this.labelBox[0].innerHTML=b;b=textWidth(b,{size:this.fontSize,fontName:this.fontName});this.width=b.x;this.height=b.y};label.prototype.setLabelPosition=function(b,c,d){void 0==d&&(d=["left","top"]);this.labelBox.css(d[0],b+"px");this.labelBox.css(d[1],c+"px")};label.prototype.onResize=function(b,c){this.width=b;this.height=c;this.labelBox.css({width:b+"px",height:c+"px"})};
label.prototype.setFont=function(b,c,d){null==b?b=this.fontSize:this.fontSize=b;null==c?c=this.fontColor:this.fontColor=c;null==d?d=this.fontName:this.fontName=d;this.labelBox.css({"font-size":b,color:c,"font-family":d});b=textWidth(this.caption,{size:b,fontName:d});this.width=b.x;this.height=b.y};label.prototype.setFontSize=function(b){null==b?b=this.fontSize:this.fontSize=b;this.labelBox.css({"font-size":b});b=textWidth(this.caption,{size:b,fontName:this.fontName});this.width=b.x;this.height=b.y};
label.prototype.riseAWord=function(b){var c=this.caption;-1==c.indexOf(b)&&(b=b.toLowerCase());-1!=c.indexOf(b)&&(newCaption=c.replaceAll(b,""+b+" "),this.labelBox[0].innerHTML=newCaption)};label.prototype.shortWord=function(b){this.caption.length>b&&(this.caption=this.caption.substring(0,b)+"..",this.setCaption(this.caption))};label.prototype.setCSS=function(b){this.labelBox.css(b)};label.prototype.setClass=function(b){this.labelBox.attr("class",b)};
function initProgressBar(b,c){this.width=60;this.height=30;this.progress=new label("Loading",b);this.caption=this.originCaption=c;this.captionLength=this.caption.length;this.progress.setCSS({display:"none"})}initProgressBar.prototype.setPosition=function(b,c){this.progress.setLabelPosition((b-this.width)/2,(c-this.height)/2)};
initProgressBar.prototype.addTimer=function(){var b=this;this.timerId=window.setInterval(function(){b.caption+=".";b.caption.length>b.captionLength+3&&(b.caption=originCaption);b.progress.setCaption(b.caption)},600)};initProgressBar.prototype.removeTimer=function(){window.clearInterval(this.timerId)};initProgressBar.prototype.show=function(){this.progress.setCSS({display:"block"});this.caption=this.originCaption;this.addTimer()};
initProgressBar.prototype.hide=function(){this.progress.setCSS({display:"none"});this.removeTimer()};initProgressBar.prototype.setIndex=function(b){this.progress.setCSS({"z-index":b})};
var TableOfContentElements=Class({create:function(b){this._super(b);this.callBack=b;this.tableItems=[];this.checkConfig();this.initElements();this.initEvent(b);this.pickElements(b)},checkConfig:function(){for(var b=function(c){if(c&&c.children&&0!=c.children.length)for(var d=c.children.length,h=0;h");bookConfig.RightToLeft&&this.input.attr("dir","rtl");this.searchButton=$(" ");this.result=$(""+getLanguage("lblPages","Found Pages")+" 0
");
this.tableofcontentSwiper=$("
");this.tableofcontentSwiperList=$("");this.refreshSwiper(this.tableofcontentSwiperList,ols);this.tableofcontentSwiper.append(this.tableofcontentSwiperList);isPhone()||isPad()?this.tableofcontentSwiper.css({"overflow-y":"auto","overflow-x":"hidden","-webkit-overflow-scrolling":"touch"}):(this.progress=$("
"),this.progressBar=$("
"),this.tableofcontentSwiper.append(this.progress),
this.progress.append(this.progressBar),this.tableofcontentSwiper.scroll({},Direction.top))},expandItems:function(){for(var b=0;b");this.fontColor=c.fontColor;this.colorObj=Color(this.fontColor);this.initArrowUrl();this.initDefaultDom();this.initHtml(b,c);this.initEvent()},initArrowUrl:function(){this.expandUrl=form_icons.arrow?
"data:image/png;base64,"+form_icons.arrow:uiBaseURL+"arrow.png";this.collapseUrl=rightToLeft?form_icons.arrow3?"data:image/png;base64,"+form_icons.arrow3:uiBaseURL+"arrow3.png":form_icons.arrow2?"data:image/png;base64,"+form_icons.arrow2:uiBaseURL+"arrow2.png"},getItem:function(){return this.item},initDefaultDom:function(){rightToLeft?this.initRightToLeftDefaultDom():this.initLeftToRightDefaultDom();this.arrow&&(this.arrow[0].colorChanged=!1,this.arrow.changeButtonColor(this.fontColor))},initRightToLeftDefaultDom:function(){LanguageTool.isRightToLeft(this.parm.caption)?
this.description=$(""+this.parm.caption+"
"):this.description=$(""+this.parm.caption+"
");this.hasChild&&(this.arrow=$(" "),this.arrow.css("right",10*(this.level-1)+"px"));this.description.css("margin-right",10*(this.level-1)+15+"px")},initLeftToRightDefaultDom:function(){this.description=$(""+this.parm.caption+"
");this.hasChild&&(this.arrow=$(" "),this.arrow.css("left",10*(this.level-1)+"px"));this.description.css("margin-left",10*(this.level-1)+15+"px")},initHtml:function(b,c){rightToLeft?this.initRightToLeftHtml():this.initLeftToRightHtml()},initRightToLeftHtml:function(){this.item.append(this.description);this.arrow&&this.item.append(this.arrow)},initLeftToRightHtml:function(){this.arrow&&this.item.append(this.arrow);this.item.append(this.description)},initEvent:function(){this.item.onTap(function(){this.parm.url?
window.open(getRealURL(this.parm.url),"_blank"):(gotoPageFun(parseInt(this.parm.page),!1,"table of content"),(isPhone()||isPad())&&global.frmTableOfContent.hide())}.bind(this));this.item.bind("mouseover",function(){this.item.css({background:this.colorObj.rgba(0.1)})}.bind(this));this.item.bind("mouseleave",function(){this.isExpand||this.item.css({"background-color":"transparent"})}.bind(this));this.hasChild&&(this.arrow&&this.arrow.click(function(){this.onSwitch()}.bind(this)),this.arrow.bind("mousedown touchstart pointerdown mouseover mousemove click",
function(b){b.stopPropagation()}))},expand:function(b){this.hasChild&&(0==this.children.length?this.addChildren():this.showChildren(),this.setAsExpand(),b&&this.callback())},collapse:function(b){if(this.hasChild){for(var c=0;c");for(var c=0;c");this.number=this.parm.label?$(""+(this.parm.label?this.parm.label+":":"")+this.parm.number+" "):$(""+this.parm.number+" ");this.button=$(""+getLanguage("btnDialing","call")+" ");this.initHtml();this.initCss()},initHtml:function(){this.item.append(this.number);this.item.append(this.button);
this.parent.append(this.item)},initCss:function(){},changeLanguage:function(){this.button.find("span").html(getLanguage("btnDialing","call"))}}),TelephoneNumberElements=Class({create:function(b){this._super(b);this.initElements();this.initEvent(b);this.pickElements(b)},initElements:function(){this.initSwiper();this.addItem()},initSwiper:function(){this.numberSwiper=$("
");this.stageArrow=$("
");this.numberSwiperList=$("
");
this.numberSwiper.append(this.numberSwiperList);isPhone()||isPad()?this.numberSwiper.css({"overflow-y":"auto","overflow-x":"hidden","-webkit-overflow-scrolling":"touch"}):(this.progress=$("
"),this.progressBar=$("
"),this.numberSwiper.append(this.progress),this.progress.append(this.progressBar),this.numberSwiper.scroll({},Direction.top))},addItem:function(){this.numberArray=global.phoneNumber;this.itemArray=[];for(var b=0;b");this.secondTitle=$("\u5982\u4f55\u8bbe\u7f6e\u6a2a\u5c4f\uff1f
");this.itemList=
$("
");this.closeButton=$("\u77e5\u9053\u4e86
");this.wordBox=$("
");this.textBox=$("
")},initEvent:function(b){},pickElements:function(b){b.doublePageImg=this.doublePageImg;b.secondTitle=this.secondTitle;b.itemList=this.itemList;b.closeButton=this.closeButton;b.wordBox=this.wordBox;b.textBox=this.textBox},changeLanguage:function(){}}).extend(FormElements),DoubleSinglePageForm=Class({create:function(b){this.elements=
new DoubleSinglePageElements(this);this._super(b)},onCreate:function(){this.elements.doublePageImg.attr("src","data:image/png;base64,"+phone_toolbar_icons.doubleSinglePageBanner);this.title.append($("\u65cb\u8f6c\u624b\u673a\u5f00\u542f\u53cc\u9875\u9605\u8bfb\u6a21\u5f0f "));"Android"==$.system.name?(this.item1=$("1.\u624b\u673a\u5141\u8bb8\u81ea\u52a8\u65cb\u8f6c
"),this.item2=$("2.\u9605\u8bfb\u7535\u5b50\u4e66\u7684\u6d4f\u89c8\u5668\u9700\u8bbe\u7f6e\u5141\u8bb8\u6a2a\u5c4f \u5982\uff1a\u5fae\u4fe1-\u6211-\u8bbe\u7f6e-\u901a\u7528-\u5f00\u542f\u6a2a\u5c4f\u6a21\u5f0f
"),
this.item3=$("3.\u624b\u673a\u6a2a\u8fc7\u6765\u9605\u8bfb\u4e66\u7c4d
"),this.elements.itemList.append(this.item1,this.item2,this.item3)):(this.item1=$("1.\u624b\u673a\u7ad6\u6392\u65b9\u5411\u9501\u5b9a\u5173\u95ed
"),this.item2=$("2.\u624b\u673a\u6a2a\u8fc7\u6765\u9605\u8bfb\u4e66\u7c4d
"),this.elements.itemList.append(this.item1,this.item2));this._super()},initHtml:function(){this.stage.css({"line-height":"normal"});this.elements.textBox.append(this.title,
this.elements.secondTitle,this.elements.itemList);this.elements.wordBox.append(this.elements.textBox,this.elements.closeButton);this.stage.append(this.elements.doublePageImg,this.wordBox);this._super()},initEvent:function(){this.stage.bind(_event._down,function(b){b.stopPropagation()});this.elements.closeButton.bind("click",this.hide.bind(this))},onShow:function(){},onResize:function(){var b=548/620*windowWidth*0.45*0.8;this.stage.css({height:b+"px"});windowHeight");this.video=$("");rightToLeft?this.initRightToLeftDefaultDom():this.initLeftToRightDefaultDom();this.initSwiper()},initRightToLeftDefaultDom:function(){this.info=$(""+
this.videoList[0].title+" "+this.videoList[0].description+"
")},initLeftToRightDefaultDom:function(){this.info=$(""+this.videoList[0].title+" "+this.videoList[0].description+"
")},initSwiper:function(){if(this.videoList&&!(1>=this.videoList.length)){this.videoListTitle=$(""+getLanguage("frmVideoListTitle","Video list")+"");this.videoSwiper=$("
");
var b=$("
");this.progress=$("
");var c=$("
");this.refreshSwiper(b,this.videoList);this.videoSwiper.append(b);this.videoSwiper.append(this.progress);this.progress.append(c)}},refreshSwiper:function(b,c){for(var d=c.length,f=0;f");b.append(this.videoListTitle);
b.append(this.videoSwiper);this.stage.append(b)}else this.stage.css("width","335px");this._super()},onShow:function(){this.close.changeButtonColor(this.fontColor);this.favicon&&this.favicon.changeButtonColor(this.fontColor);this.elements.playVideo(this.videoList[0])},onHide:function(){this.video.attr("src","")}}).extend(FadeOutFadeForm),VideoGalleryItem=Class({create:function(b,c){b&&(this.parm=b,this.callback=c,this.initDom(),this.initEvent())},initDom:function(){this.item=$("
");
this.image=$("
");this.parm.thumbnail&&this.image.css({"background-image":"url("+this.parm.thumbnail+")"});this.parm.title&&(this.title=rightToLeft?$(""+this.parm.title+"
"):$(""+this.parm.title+"
"));this.parm.description&&(this.description=rightToLeft?$(""+this.handleData(this.parm.description)+"
"):$(""+this.handleData(this.parm.description)+"
"));this.item.append(this.image);
this.title&&this.item.append(this.title);this.description&&this.item.append(this.description)},handleData:function(b){b=b.replaceAll("<","<");b=b.replaceAll(">",">");return b=handleData(b,"")},initEvent:function(){this.item.onTap(this.callback)},getDom:function(){return this.item}}),PhotoGallery=Class({create:function(b,c){!c||0>=c.length||(this.parent=b,this.photoArray=c,this.index=0,this.visible=!1,this.pageWidth=$(window).width(),this.pageHeight=$(window).height(),this.images=[],this.thumbnails=
[],this.initHtml(),this.initEvent())},initHtml:function(){this.leftBtnUrl=uiBaseURL+"photo_prev.png";this.rightBtnUrl=uiBaseURL+"photo_next.png";this.closeBtnUrl=uiBaseURL+"photoGallery_close.png";this.stage=$("
");this.close=$(" ');this.stage.append(this.close);this.initImgThumb();this.initImgContainer();this.initImages();this.setThumbnal();this.setPhotoImage();this.imgChange();this.parent.append(this.stage);
this.images[0].css({display:"block"})},initImgContainer:function(){this.imgContainer=$("
");this.leftBtn=$(" ");this.rightBtn=$(" ");this.containerBG=$("
");this.imgContainer.append(this.leftBtn);this.imgContainer.append(this.rightBtn);this.stage.append(this.imgContainer).append(this.containerBG)},initImgThumb:function(){this.thumbContainer=
$("
");this.stage.append(this.thumbContainer)},initEvent:function(){this.stage.bind("mousedown touchstart",function(b){b.stopPropagation()});1this.images.length-1&&(this.index=0),this.imgChange(),this.autoPlay())}.bind(this));this.containerBG.onTap(function(){this.hide();this.visible=!1}.bind(this));this.leftBtn.bind("click",function(b){this.moving||(b.stopPropagation(),this.stopAutoPlay(),this.index-=1,0>this.index&&(this.index=this.images.length-1),this.imgChange(),this.autoPlay())}.bind(this));this.rightBtn.bind("click",function(b){this.moving||
(b.stopPropagation(),this.stopAutoPlay(),this.index+=1,this.index>this.images.length-1&&(this.index=0),this.imgChange(),this.autoPlay())}.bind(this));this.close.onTap(function(){this.hide();this.visible=!1}.bind(this));$(window).resize(function(){this.onResize()}.bind(this))},onResize:function(){this.pageWidth=$(window).width();this.pageHeight=$(window).height();this.setImageCss(this.images[this.index]);this.setThumbnal()},thumbEvent:function(b){b.onTap(function(){this.moving||(this.stopAutoPlay(),
parseInt(b.attr("id").substring(5))!=this.index&&(this.index=parseInt(b.attr("id").substring(5)),this.imgChange(b)),this.autoPlay())}.bind(this,b))},autoPlay:function(){if(bookConfig.SlideshowAutoPlay){var b=bookConfig.SlideshowPlayInterval?1E3*parseInt(bookConfig.SlideshowPlayInterval):3E3;this.timer=setInterval(function(){this.index+=1;this.index>this.images.length-1&&(this.index=0);this.imgChange()}.bind(this),b)}},changeLanguage:function(){},stopAutoPlay:function(){this.timer&&(clearInterval(this.timer),
this.timer=null)},imgChange:function(b){1>=this.photoArray.length||this.moving||(b||(b=this.thumbnails[this.index]),b.siblings().removeClass("focus"),b.addClass("focus"),this.newImg=this.images[this.index],this.setImageCss(this.images[this.index]),this.moving=!0,this.newImg.fadeIn(300,function(){this.oldImg&&this.oldImg.fadeOut();this.oldImg=this.newImg;this.moving=!1}.bind(this)))},initImages:function(){for(var b=0;b "),d=$('
');this.images.push(c);this.thumbnails.push(d)}},setThumbnal:function(){this.thumbLeft=0;this.thumbLeft=65*this.thumbnails.length>this.pageWidth?this.thumbLeft:(this.pageWidth-65*this.thumbnails.length)/2;for(var b=0;b=50/46?(g=50/b[0].naturalWidth,k=50,l=g*b[0].naturalHeight,h=(46-g*b[0].naturalHeight)/2,g=0):(g=46/b[0].naturalHeight,k=g*b[0].naturalWidth,l=46,h=0,g=(50-g*b[0].naturalWidth)/2);b.css({width:k+"px",height:l+"px",left:g+"px",top:h+"px"});c.append(b)}.bind(this,b,c))},setPhotoImage:function(){var b=this.images[this.index];b.on("load",function(b,d){for(var f=0;fthis.windowRadio?(b[0].naturalWidth
").attr("data-key","114");this.imageDatas={};this.fileName=window.location.href.replace(window.location.hash,"")+"LocalFile";this.fileCookies=[];this.createZoomFrame();this.toolBar=this.createToolBar(b);this.getCookieFile()},
createToolBar:function(b){var c=this,d=$("
").appendTo(b).hide();b=$("
").css({left:4}).append($(" ").attr("src",this.address+"signature_del.png")).appendTo(d);var f=$("
").css({left:32}).append($(" ").attr("src",
this.address+"ImgFile_update.png")).appendTo(d);b.on("click touchend",function(b){c.currentObject&&(c.currentObject.remove(),d.hide(),c.zoomFrame&&c.zoomFrame.hide(),b=c.currentObject.attr("data-key"),delete c.imageDatas[b],c.delArrayOrderKey(c.fileCookies,b),c.addLocalStorage(c.fileName,c.parseJSON(c.fileCookies)))});f.on(_event._down,function(){c.currentObject&&c.currentObject.find(".TextFile")&&c.currentObject.find(".TextFile")[0].click()});d.on("mousedown touchstart",function(b){b.preventDefault();
b.stopPropagation();return!1});this.container.add($(document)).add(BookInfo.container()).on("mousedown.hideToolBar touchstart.hideToolBar",function(){d.hide()});return d},createZoomFrame:function(){var b=$("
"),c=[];this.zoomFrame=b;for(var d=0;9>d;d++){var f=$("
").addClass("flipHTML5Point flipHTML5ZoomPoint"+d).appendTo(b);c.push(f)}this.westZoom(c[7]);this.northZoom(c[1]);this.southZoom(c[5]);this.eastZoom(c[3]);this.westZoom(c[0]).northZoom(c[0]);
this.northZoom(c[2]).eastZoom(c[2]);this.westZoom(c[6]).southZoom(c[6]);this.southZoom(c[4]).eastZoom(c[4]);this.container.add($(document)).add(BookInfo.container()).on("mousedown.hideToolBar touchstart.hideToolBar",function(){b.hide()})},getCookieFile:function(){try{var b=this.getLocalStorage(this.fileName),c=eval(b)}catch(d){}if(c)for(b=0;b").css({width:b.fileWidth,height:b.fileHeight,left:b.fileLeft,top:b.fileTop}).attr("data-key",h).append($(" ").css({opacity:0})).appendTo(c);this.bindFileDivEvents(k,
c);f&&g&&d&&this.addImage(k,d,f,g,h)},addCreateEvents:function(){var b=0,c,d=this.contextArray;if(d)for(this.offCreateEvents();c=d.eq(b++),0").attr("data-key",g).addClass("flipHTML5AddFile flipHTML5LocalFile-current").append($(" ").css({opacity:0})).appendTo(b);
k=m=f.pageX||f.originalEvent.touches[0].pageX;l=n=f.pageY||f.originalEvent.touches[0].pageY;d.bindFileDivEvents(h,b);$(document).add(b).off("mousemove.addLocalFile touchmove.addLocalFile").on("mousemove.addLocalFile touchmove.addLocalFile",function(b){m=b.pageX?b.pageX:b.originalEvent.touches?b.originalEvent.touches[0].pageX:0;n=b.pageY?b.pageY:b.originalEvent.touches?b.originalEvent.touches[0].pageY:0;m&&(0>m-k?(p=Math.floor((m-r)/BookInfo.scale()),t=Math.floor((k-m)/BookInfo.scale())):(p=Math.floor((k-
r)/BookInfo.scale()),t=Math.floor((m-k)/BookInfo.scale())));n&&(0>b.pageY-l?(q=Math.floor((n-u)/BookInfo.scale()),s=Math.floor((l-n)/BookInfo.scale())):(q=Math.floor((l-u)/BookInfo.scale()),s=Math.floor((n-l)/BookInfo.scale())));h.css({left:p,top:q,width:t,height:s});d.resizeZoomFrame(h)});$(document).add(b).off("mouseup.addLocalFile touchend.addLocalFile").one("mouseup.addLocalFile touchend.addLocalFile",function(f){d.offCreateEvents();$(document).add(b).off("mousemove.addLocalFile touchmove.addLocalFile");
$(document).add(b).off("mouseup.addLocalFile touchend.addLocalFile");if(h){f=h.width();var k=h.height();32>f&&h.width(32);12>k&&h.height(12);h.find(".TextFile")[0].click();d.resizeZoomFrame(h);f=d.parseObject(h[0]);d.parseObject(d.zoomFrame[0]);d.fileCookies.push({key:g,page:c,fileLeft:f.left,fileTop:f.top,fileWidth:f.width,fileHeight:f.height,imgWidth:null,imgHeight:null,src:null});d.addLocalStorage(d.fileName,d.parseJSON(d.fileCookies))}void 0!=d.onCreated&&d.onCreated[1].call(d.onCreated[0])})})},
addImage:function(b,c,d,f,g){b.find(".LocalImage")&&b.find(".LocalImage").remove();var h=b.width()||40,k=b.height()||40;d=this.resizeImage("autoFit",d,f,h,k);$(" ").attr("data-key",g).css({width:d.width,height:d.height,left:d.left,top:d.top}).attr("src",c).appendTo(b)},resizeImage:function(b,c,d,f,g){c/=d;d=0===g?1:f/g;var h=g*c,k=f/c,l;switch(b){case "autoFit":l=h>f?{width:f,height:k,top:(g-k)/2,left:0}:k>g?{width:h,height:g,left:(f-
h)/2,top:0}:h/k==c?{width:h,height:k,left:0,top:0}:{width:1,height:1,left:0,top:0};break;case "scale":l={left:0,top:0,width:f,height:g};break;case "fullFill":c>d?l={left:(f-g*c)/2,top:0,width:g*c,height:g}:c");this.helpHand=$("
");this.handImg=$(" ");this.setSrc(this.handImg,phone_toolbar_icons,"phoneHandSwipe");this.helpHand.append(this.handImg);this.container.append(this.helpHand);b.append(this.container);this.setCSS();this.initEvent();this.container.speed(this.onSwipe.bind(this))},setCSS:function(){this.container.css({position:"absolute","z-index":"10000",width:"100%",height:"100%",background:"rgba(11,11,11,0.5)"});
this.helpHand.css({position:"absolute",width:"69px",height:"75px",right:(windowWidth-69)/2+"px",top:(windowHeight-75)/2+"px"});this.handImg.css({position:"absolute",width:"100%",height:"100%"})},onSwipe:function(b,c){var d=30;bookConfig.FlipDirection?(d=d*windowHeight/1600,Math.abs(c)<=d||c>d&&nextPageFun("help swipe")):(d=d*windowWidth/1600,Math.abs(b)<=d||(b<-d?nextPageFun("help swipe"):b>d&&rightToLeft&&nextPageFun("help swipe")))},setSrc:function(b,c,d){c&&c[d]?b.attr("src","data:image/png;base64,"+
c[d]):b.attr("src",phoneBaseURL+d+".png")},initEvent:function(){(this.close,this.parent).bind(_event._up,function(){this.hide()}.bind(this))},onResize:function(b,c){this.setCSS()},show:function(){this.container.css("display","block");parseBool(bookConfig.FlipDirection)?this.helpHand.addClass("handSwipeHelp_Top"):rightToLeft?this.helpHand.addClass("handSwipeHelp_Right"):this.helpHand.addClass("handSwipeHelp_Left");this.visible=!0},hide:function(){this.helpHand.attr("class","");this.container.fadeOut(300);
this.visible=!1}}),AppLargeLogo=Class({create:function(b){this.parent=b;this.initHtml();this.initCss();this.initEvent()},initHtml:function(){this.logoContainer=$("
");this.largeLogo=$(" ");bookConfig.appLargeLogoIcon||this.logoContainer.css({display:"none"});this.logoContainer.append(this.largeLogo);this.parent.append(this.logoContainer)},initCss:function(){this.logoContainer.css({display:"block",position:"absolute","z-index":"100"});bookConfig.appLargeLogoURL&&
this.largeLogo.css({cursor:"pointer"});bookConfig.LargeLogoPosition||(bookConfig.LargeLogoPosition="top-left");switch(bookConfig.LargeLogoPosition){case "top-left":this.logoContainer.css({left:toolBar.getLeftWidth()+10+"px",top:toolBar.getTopHeight()+10+"px"});break;case "bottom-left":this.logoContainer.css({left:toolBar.getLeftWidth()+10+"px",bottom:toolBar.getBottomHeight()+10+"px"});break;case "top-right":this.logoContainer.css({right:toolBar.getRightWidth()+10+"px",top:toolBar.getTopHeight()+
10+"px"});break;case "bottom-right":this.logoContainer.css({bottom:toolBar.getBottomHeight()+10+"px",right:toolBar.getRightWidth()+10+"px"})}bookConfig.isFixLogoSize&&(this.logoContainer.css({width:bookConfig.logoFixWidth+"px",height:bookConfig.logoFixHeight+"px"}),this.largeLogo.css({width:bookConfig.logoFixWidth+"px",height:bookConfig.logoFixHeight+"px"}))},hideLargeLogo:function(){this.logoContainer.css({display:"none"})},onResize:function(b,c){},initEvent:function(){this.largeLogo.bind(_event._click,
function(b){b.stopPropagation();bookConfig.appLargeLogoURL&&(bookConfig.LargeLogoTarget||(bookConfig.LargeLogoTarget="blank"),BookEvent.trigger("jumpLink",["largeLogo",BookInfo.getCurrentPages().join("-"),bookConfig.appLargeLogoURL]),window.open(bookConfig.appLargeLogoURL,"_"+bookConfig.LargeLogoTarget.toLowerCase()))}.bind(this))}}),AssistantConfig=Class({create:function(){this.playMode=this.spiritType=0;this.defaultPauseTimeWhenEmpty=this.defaultPauseTimeWhenFinished=3E3;this.resources=assistantConfig.Assistant.Resources}}),
Spirit=Class({create:function(){this.$spirit=$("
");this.$person=$("
");this.$shadow=$(" ");this.$spirit.append(this.$person);bookConfig.isShowAssistantPerson?this.$spirit.append(this.$shadow):this.$spirit.addClass("noPerson");$("body").append(this.$spirit)},talk:function(){bookConfig.isShowAssistantPerson&&(this.$spirit.removeClass("stand"),this.$spirit.addClass("talk"))},stand:function(){bookConfig.isShowAssistantPerson&&
(this.$spirit.removeClass("talk"),this.$spirit.addClass("stand"))},show:function(){this.$spirit.show()},hide:function(){this.$spirit.hide()}}),Alice=Class({create:function(){this._super();bookConfig.isShowAssistantPerson&&this.$spirit.addClass("Alice")}}).extend(Spirit),Peter=Class({create:function(){this._super();bookConfig.isShowAssistantPerson&&this.$spirit.addClass("Peter")}}).extend(Spirit),LyricRotation=Class({lrcFile:"",$player:null,currentText:"",create:function(){this.initHtml()},updateResource:function(b,
c){bookConfig.isFlipPdf&&b.startsWith("./")&&(b="."+b);if(b==this.lrcFile&&c==this.$player&&this.isloadSuccess)this.show();else{this.lrcFile=b;this.$player=c;var d=this;$.ajax({url:b,headers:{contentType:"application/x-www-form-urlencoded"},success:function(b){this.isloadSuccess=!0;d.successFun(b)}.bind(this),error:function(b){this.hide();error&&error(b)}.bind(this)})}},successFun:function(b){var c=this.parseLyric(b);c?(this.show(),c&&(this.renderLyric(c),this.updateLyric(c),this.tmp.refreshData(),
this.$player.bind("timeupdate",function(){this.updateLyric(c)}.bind(this)))):this.hide()},parseLyric:function(b){var c=b.split("\n"),d=/\[\d*:\d*((\.|\:)\d*)*\]/g;if(!b.match(d))return b;b={};for(var f=0;f"+f+"");this.$lyrics.append(g);b[d]={index:c++,text:f}}}}},updateLyric:function(b){if("string"!=typeof b&&b&&(b=b[parseInt(this.$player[0].currentTime)])){var c=b.text;c!=this.currentText&&(this.locationLrc(b),this.currentText=c)}},locationLrc:function(b){this.$lyric.find(".on").removeClass("on");b=this.$lyric.find("li:nth-child("+(b.index+1)+")");b.addClass("on");b=Math.min(0,this.$lyrics.offset().top-
b.offset().top-10+35);b=transformCSS({tran:{x:0,y:b}});this.$lyrics.css(b)},initHtml:function(){this.$lyric=$("
");bookConfig.isShowAssistantPerson||this.$lyric.addClass("noPerson");this.tmp=$("
");this.$lyrics=$("
");this.progress=$("
");
this.progressBar=$("
");this.progress.append(this.progressBar);this.tmp.append(this.progress);this.tmp.append(this.$lyrics);this.$lyric.append(this.tmp);this.$lyric.append($(" "));$("body").append(this.$lyric);this.tmp.scroll({},Direction.top,"win10")},show:function(){this.$lyric.show(100)},
hide:function(){this.$lyric.hide()}}),AssistantPlayer=Class({audio:null,$player:null,playMode:0,audio_file:"",index:0,start:!1,end:!1,resource:null,create:function(){this.audio=new Media($(" "),"audio");this.$player=this.audio.$media;this.$player.bind("play",function(){this.audioPlay()}.bind(this));this.$player.bind("ended",function(){this.end=!0;this.callback()}.bind(this))},updateResource:function(b,c){if(b){var d=b.file;bookConfig.isFlipPdf&&d.startsWith("./")&&(d="."+d);this.audio_file!=
d&&(this.audio_file=d,this.$player.attr("src",d));this.index++;this.end=this.start=!1;this.resource=b;this.callback=c}},audioPlay:function(){if(!this.start&&this.resource){var b=this.parseTime(this.resource.time,this.$player[0].duration);this.start||(this.$player[0].currentTime=b[0],this.start=!0)}},timeupdate:function(){if(!this.end&&this.start){var b=this.parseTime(this.resource.time,this.$player[0].duration);parseInt(this.$player[0].currentTime)>b[1]&&!this.end&&(this.end=!0,this.callback())}},
parseTime:function(b,c){if(!b)return[0,parseInt(c)];var d=b.split("~"),f=[];for(i=0;ig.indexOf("%")&&0>g.indexOf("s")&&(g=parseInt(c*parseFloat(g)));"string"==typeof g&&0");this.close=$("
");
this.$play=$("
");this.$next=$("
");this.$prev=$("
");this.$sound=$("
");this.$controlBar.append(this.$play).append(this.$next).append(this.$prev).append(this.$sound);this.spirit.$spirit.append(this.$controlBar).append(this.close);
this.initShowButton();this.initControlEvent()},initShowButton:function(){this.assistantButton=$("
");$("body").append(this.assistantButton)},initControlEvent:function(){this.$play.bind("click",function(){this.changePlayCase()}.bind(this));this.$sound.bind("click",function(){this.changeSound()}.bind(this));this.$next.bind("click",function(){this.nextEvent()}.bind(this));this.$prev.bind("click",function(){this.prevEvent()}.bind(this));this.close.bind("click",
function(){this.pause();this.hide()}.bind(this));this.assistantButton.bind("click",function(){this.show();this.refresh()}.bind(this))},changePlayCase:function(){assistantConfig.Assistant.Resources.Pages.pages[this.pageIndex-1]&&(this.player.$player[0].paused?this.play():this.pause())},changeSound:function(){1==this.player.$player[0].volume?(this.$sound.addClass("assist-muted"),this.player.$player[0].volume=0):(this.$sound.removeClass("assist-muted"),this.player.$player[0].volume=1)},nextEvent:function(){nextPageFun("assistant")},
prevEvent:function(){previousPageFun("assistant")},initPlayer:function(){this.player||(this.player=new AssistantPlayer)},initLyric:function(){this.lyric||(this.lyric=new LyricRotation)},refresh:function(){this.timeout&&window.clearTimeout(this.timeout);var b=BookInfo.getCurrentPages(),c=b[0];2==b.length&&(c=Math.min(b[0],b[1]));assistantConfig.Assistant.Resources.Pages.pages[c-1]||(c=Math.max(b[0],b[1]));this.updateResource(c)},updateResource:function(b){if(this.visible)if(this.pageIndex=b,b=assistantConfig.Assistant.Resources.Pages.pages[b-
1])if(this.audioSrc=assistantConfig.Assistant.Resources.mp3[b.mp3],this.audioSrc.lrc?this.lyric.updateResource(this.audioSrc.lrc,this.player.$player):this.lyric.hide(),b.mp3==this.resource.mp3)this.play();else if((this.resource=b)&&this.resource.mp3)this.audioSrc.file?(this.audioSrc.time=b.time,this.player.updateResource(this.audioSrc,this.playEnd.bind(this)),this.play()):this.playEnd();else{b=BookInfo.getCurrentPages();var c=b[0],d=b[1];2==b.length&&(c=Math.min(b[0],b[1]));2==b.length&&(d=Math.max(b[0],
b[1]));this.pageIndex==c&&void 0!=d?this.updateResource(d):this.playEnd()}else this.lyric.hide(),this.pause()},playEnd:function(){this.pause();var b=BookInfo.getCurrentPages(),c=b[0],d=b[1];2==b.length&&(c=Math.min(b[0],b[1]));2==b.length&&(d=Math.max(b[0],b[1]));this.pageIndex==c&&void 0!=d?this.updateResource(d):1!=this.playMode&&(this.timeout=this.resource?window.setTimeout(function(){nextPageFun("assistant")},parseInt(this.defaultPauseTimeWhenFinished)):window.setTimeout(function(){nextPageFun("assistant")},
parseInt(this.defaultPauseTimeWhenEmpty)))},play:function(){var b=assistantConfig.Assistant.Resources.Pages.pages[this.pageIndex-1];this.resource&&assistantConfig.Assistant.Resources.mp3[b.mp3].file&&(this.player&&(this.player.play(),this.$play.addClass("assist-pause")),this.spirit&&this.spirit.talk())},pause:function(){this.player&&(this.player.pause(),this.$play.removeClass("assist-pause"));this.spirit&&this.spirit.stand()},hide:function(){this.visible=!1;this.assistantButton.css({display:"block",
bottom:toolBar.getBottomHeight()+110+"px"});this.spirit.hide();this.lyric.hide()},show:function(){this.visible=!0;this.assistantButton.css({display:"none"});this.spirit.show();this.audioSrc&&this.audioSrc.lrc&&(this.lyric.updateResource(this.audioSrc.lrc,this.player.$player),this.lyric.show())}});
Class("VolumeControlBar",{statics:{LEFT:1,TOP:2,RIGHT:3,BOTTOM:4,DEFAULT:5},create:function(b){global.bgSound&&!isPhone()&&!isPad()&&b&&(this.parent=b,this.initParam(),this.volumeBackground=$("
"),this.volumeReduce=$(" "),this.volumeBar=$('
'),this.volumeBg=$('
'),this.volumePoint=$(" "),this.volumeAdd=$(" "),
this.parent.append(this.volumeBackground),this.volumeBackground.append(this.volumeReduce),this.volumeBar.append(this.volumePoint),this.volumeBg.append(this.volumeBar),this.volumeBackground.append(this.volumeBg),this.volumeBackground.append(this.volumeAdd),this.initEvent(),this.onResize(),this.initCss(),this.hide())},initParam:function(){this.length=58;this.rate=1;void 0!=bookConfig.bgSoundVol&&(this.rate=bookConfig.bgSoundVol/100);this.iconOn=this.visible=!0;this.initConfig()},initConfig:function(){VolumeControlBar.config||
(VolumeControlBar.config={direction:VolumeControlBar.DEFAULT,color:Color(bookConfig.toolbarColor).toString(),iconColor:Color(bookConfig.iconColor).toString()});this.deviation=VolumeControlBar.config.deviation||0;this.direction=VolumeControlBar.config.direction||VolumeControlBar.DEFAULT;this.color=VolumeControlBar.config.color||Color(bookConfig.toolbarColor).toString();this.iconColor=VolumeControlBar.config.iconColor||Color(bookConfig.iconColor).toString()},initCss:function(){this.setSrc(this.volumeAdd,
"soundAdd");this.setSrc(this.volumeReduce,"soundReduce");this.volumePoint.css({background:this.iconColor});this.volumeBar.css({cursor:"pointer"});this.volumeBg.css({cursor:"pointer"})},setSrc:function(b,c){toolbar_icons&&toolbar_icons[c]?b.attr("src","data:image/png;base64,"+toolbar_icons[c]):b.attr("src",uiBaseURL+c+".png");this.changeIconColor()},changeIconColor:function(){this.volumeAdd.changeButtonColor(this.iconColor);this.volumeReduce.changeButtonColor(this.iconColor)},volumeBarCSS:function(b){this.left=
b.left;this.top=b.top;switch(this.direction){case VolumeControlBar.LEFT:this.position=this.length-this.rate*this.length;this.top+=(b.height-30)/2+this.deviation;this.volumeBackground.css({top:this.top+"px",left:this.left-131+"px",width:"131px",height:"30px",background:this.color});this.volumeBg.css({position:"absolute",width:"70px",height:"10px",left:"30px",right:"auto",top:"10px",bottom:"auto"});this.volumeBar.css({width:"70px",height:"auto",border:"none","border-top":"2px solid "+this.iconColor,
top:"4px"});this.volumePoint.css({top:"-7px",left:this.position+"px"});this.volumeReduce.css({right:"0",top:"3px",left:"auto",bottom:"auto"});this.volumeAdd.css({left:"0",top:"3px",right:"auto",bottom:"auto"});break;case VolumeControlBar.TOP:this.position=this.length-this.rate*this.length;this.left+=(b.width-30)/2+this.deviation;this.volumeBackground.css({left:this.left+"px",top:this.top-131+"px",width:"30px",height:"131px",background:this.color});this.volumeBg.css({position:"absolute",height:"70px",
width:"10px",bottom:"30px",top:"auto",left:"10px",right:"auto"});this.volumeBar.css({height:"70px",width:"auto",top:"auto",border:"none","border-left":"2px solid "+this.iconColor,left:"4px"});this.volumePoint.css({left:"-7px",top:this.position+"px"});this.volumeReduce.css({left:"3px",bottom:"3px",right:"auto",top:"auto"});this.volumeAdd.css({right:"3px",top:"3px",left:"auto",bottom:"auto"});break;case VolumeControlBar.RIGHT:this.position=this.rate*this.length;this.top+=(b.height-30)/2+this.deviation;
this.volumeBackground.css({top:this.top+"px",left:this.left+b.width+"px",width:"131px",height:"30px",background:this.color});this.volumeBg.css({position:"absolute",width:"70px",height:"10px",left:"30px",right:"auto",top:"10px",bottom:"auto"});this.volumeBar.css({width:"70px",height:"auto",border:"none","border-top":"2px solid "+this.iconColor,top:"4px"});this.volumePoint.css({left:this.position+"px",top:"-7px"});this.volumeReduce.css({left:"0",top:"3px",right:"auto",bottom:"auto"});this.volumeAdd.css({right:"0",
top:"3px",left:"auto",bottom:"auto"});break;case VolumeControlBar.BOTTOM:this.position=this.rate*this.length;this.left+=(b.width-30)/2+this.deviation;this.volumeBackground.css({left:this.left+"px",top:this.top+b.height+"px",width:"30px",height:"131px",background:this.color});this.volumeBg.css({position:"absolute",height:"70px",width:"10px",bottom:"30px",top:"auto",left:"10px",right:"auto"});this.volumeBar.css({height:"70px",width:"auto",border:"none","border-left":"2px solid "+this.iconColor,left:"4px"});
this.volumePoint.css({left:"-7px",top:this.position+"px"});this.volumeReduce.css({left:"3px",top:"3px",right:"auto",bottom:"auto"});this.volumeAdd.css({right:"3px",bottom:"3px",left:"auto",top:"auto"});break;case VolumeControlBar.DEFAULT:this.volumeBackground.css({visibility:"hidden",opacity:"0"})}},setPosition:function(){this.change=this.startPosition=this.position=0;switch(this.direction){case VolumeControlBar.LEFT:this.leftPosition();break;case VolumeControlBar.TOP:this.topPosition();break;case VolumeControlBar.RIGHT:this.rightPosition();
break;case VolumeControlBar.BOTTOM:this.bottomPosition()}},onResize:function(){$(window).resize(function(){this.hide();this.direction=VolumeControlBar.config.direction||VolumeControlBar.DEFAULT;this.setPosition()}.bind(this))},initEvent:function(){this.parent.bind("click",function(b){b.stopPropagation();this.hide()}.bind(this));this.volumeBackground.bind("click",function(b){b.stopPropagation()}.bind(this));this.volumeBackground.bind("mouseenter",function(b){this.visible=!0;this.volumeBackground.css({visibility:"visbile",
opacity:"1"})}.bind(this));this.volumeBackground.bind("mouseleave",function(b){this.visible=!1;this.hide()}.bind(this));this.volumePoint.bind("click",function(b){b.stopPropagation()}.bind(this));this.volumeBg.bind("click",function(b){b.stopPropagation();this.direction==VolumeControlBar.RIGHT||this.direction==VolumeControlBar.LEFT?this.getRate(b.offsetX):this.getRate(b.offsetY);this.position=this.length-this.rate*this.length;this.volumePointCSS();this.setIcon();this.setVolume(this.rate)}.bind(this))},
getRate:function(b){this.rate=0>=this.length+12-b?0:58<=this.length+12-b?1:(this.length+12-b)/this.length},setEvent:function(){1==this.direction||3==this.direction?(this.volumePoint.bind("mousedown",function(b){b.stopPropagation();this.position=this.volumePoint.left();this.startPosition=b.pageX;this.focus=!0}.bind(this)),$("body").bind("mouseup",function(b){b.stopPropagation();this.focus=!1}.bind(this))):(this.volumePoint.bind("mousedown",function(b){b.stopPropagation();this.position=this.volumePoint.top();
this.startPosition=b.pageY;this.focus=!0}.bind(this)),$("body").bind("mouseup",function(b){b.stopPropagation();this.focus=!1}.bind(this)))},rightPosition:function(){this.setEvent();$("body").bind("mousemove",function(b){this.focus&&(this.startPosition&&(this.change=this.startPosition-b.pageX),this.position-=this.change,0<=this.position&&this.position<=this.length&&(this.rate=this.position/this.length,this.setIcon(),this.volumePointCSS()));this.startPosition=b.pageX}.bind(this));this.volumeAdd.unbind("click").bind("click",
function(){this.position=this.volumePoint.left()+5.8>this.length?this.length:this.volumePoint.left()+5.8;this.setIcon();this.volumePointCSS()}.bind(this));this.volumeReduce.unbind("click").bind("click",function(){this.position=0>this.volumePoint.left()-5.8?0:this.volumePoint.left()-5.8;this.setIcon();this.volumePointCSS()}.bind(this))},leftPosition:function(){this.setEvent();$("body").bind("mousemove",function(b){this.focus&&(this.startPosition&&(this.change=this.startPosition-b.pageX),this.position-=
this.change,0<=this.position&&this.position<=this.length&&(this.rate=(this.length-this.position)/this.length,this.setIcon(),this.volumePointCSS()));this.startPosition=b.pageX}.bind(this));this.volumeAdd.unbind("click").bind("click",function(){this.position=0>this.volumePoint.left()-5.8?0:this.volumePoint.left()-5.8;this.setIcon();this.volumePointCSS()}.bind(this));this.volumeReduce.unbind("click").bind("click",function(){this.position=this.volumePoint.left()+5.8>this.length?this.length:this.volumePoint.left()+
5.8;this.setIcon();this.volumePointCSS()}.bind(this))},topPosition:function(){this.setEvent();$("body").bind("mousemove",function(b){this.focus&&(this.startPosition&&(this.change=this.startPosition-b.pageY),this.position-=this.change,0<=this.position&&this.position<=this.length&&(this.rate=(this.length-this.position)/this.length,this.setIcon(),this.volumePointCSS()));this.startPosition=b.pageY}.bind(this));this.volumeAdd.unbind("click").bind("click",function(b){this.position=0>this.volumePoint.top()-
5.8?0:this.volumePoint.top()-5.8;this.setIcon();this.volumePointCSS()}.bind(this));this.volumeReduce.unbind("click").unbind("click").bind("click",function(b){this.position=this.volumePoint.top()+5.8>this.length?this.length:this.volumePoint.top()+5.8;this.setIcon();this.volumePointCSS()}.bind(this))},bottomPosition:function(){this.setEvent();$("body").bind("mousemove",function(b){this.focus&&(this.startPosition&&(this.change=this.startPosition-b.pageY),this.position-=this.change,0<=this.position&&
this.position<=this.length&&(this.rate=this.position/this.length,this.setIcon(),this.volumePointCSS()));this.startPosition=b.pageY}.bind(this));this.volumeAdd.unbind("click").bind("click",function(){this.position=this.volumePoint.top()+5.8>this.length?this.length:this.volumePoint.top()+5.8;this.setIcon();this.volumePointCSS()}.bind(this));this.volumeReduce.unbind("click").bind("click",function(){this.position=0>this.volumePoint.top()-5.8?0:this.volumePoint.top()-5.8;this.setIcon();this.volumePointCSS()}.bind(this))},
setIcon:function(){this.direction==VolumeControlBar.LEFT||this.direction==VolumeControlBar.TOP?this.position>=this.length?this.setIconOff():this.setIconOn():0>=this.position?this.setIconOff():this.setIconOn()},setIconOff:function(){this.iconOn=!1},setIconOn:function(){this.iconOn=!0},volumePointCSS:function(b){switch(this.direction){case VolumeControlBar.LEFT:this.volumePoint.css({left:this.position+"px"});this.setVolume((this.length-this.position)/this.length);break;case VolumeControlBar.TOP:this.volumePoint.css({top:this.position+
"px"});this.setVolume((this.length-this.position)/this.length);break;case VolumeControlBar.RIGHT:this.volumePoint.css({left:this.position+"px"});this.setVolume(this.position/this.length);break;case VolumeControlBar.BOTTOM:this.volumePoint.css({top:this.position+"px"}),this.setVolume(this.position/this.length)}},soundOn:function(b){this.setIconOn();this.setVolume(this.rate)},soundOff:function(b){this.setIconOff();global.bgSound.setVolume(0)},setVolume:function(b){!global.bgSound||isPhone()||isPad()||
(this.rate=b,bgSound.setVolume(b))},show:function(b){isPhone()||isPad()||(this.initConfig(),this.volumeBackground.css({visibility:"visible",opacity:"1"}),this.volumeBarCSS(b),this.setPosition(),this.visible=!1)},hide:function(){isPhone()||isPad()||(this.volumeBackground.css({visibility:"hidden",opacity:"0"}),this.visible=!0)}});
var BookInstructionsPage=Class({create:function(b,c){this.parent=b;this.initHtml(b,c);this.initCss();this.initEvent()},initHtml:function(b,c){this.container=$("
");this.title=$(""+this.getTitle()+" ");this.image=$("
");this.description=$(""+this.getDescription(c)+"
");this.container.append(this.title);
this.container.append(this.image);this.container.append(this.description);this.container.attr("bookInstructionPageNum",c);b.append(this.container)},initCss:function(){var b=0,b=windowWidth>windowHeight?windowHeight:windowWidth,b=Math.floor(b/15);50b&&(b=26);var c=Math.floor(0.7*b);this.container.css({width:windowWidth+"px",height:windowHeight+"px"});this.title.css({margin:0,padding:0,"font-weight":"normal","font-family":"HelveticaNeue-CondensedBold, sans-serif",position:"relative",left:0,
width:windowWidth+"px","font-size":b+"px","line-height":b+"px",top:0.05*windowHeight+"px",color:"#58A3EB"});this.description.css({"font-family":"HelveticaNeue-CondensedBold, sans-serif","font-size":c+"px","line-height":c+"px",position:"absolute",bottom:0.15*windowHeight+"px",left:0.1*windowWidth+"px",width:0.8*windowWidth+"px",color:"#58A3EB"});this.image.css({width:windowWidth+"px",position:"absolute",top:0.1*windowHeight+"px","margin-top":"15px",height:0.6*windowHeight+"px"})},getImageURL:function(b){return"style='background: url("+
uiBaseURL+b+"-2x.png) no-repeat center center ;background-size:contain;'"},getTitle:function(){return getLanguage("frmHowToUse","How to use")},getDescription:function(b){switch(b){case 1:return getLanguage("lblHelpPage1","Move your finger to flip the book page.");case 2:return getLanguage("lblHelpPage2","Zoom in by using gesture or double click on the page.");case 3:return getLanguage("lblHelpPage3","Click on the logo to reach the official website of the company.");case 4:return getLanguage("lblHelpPage4",
"Add bookmarks, use search function and auto flip the book.");case 5:return getLanguage("lblHelpPage5","Switch horizontal and vertical view on mobile devices.")}},onResize:function(){this.initCss()},initEvent:function(){(new Hammer(this.container[0])).on("swipe",function(b){10<=b.deltaX?bookInstructions.toNextPage():-10>=b.deltaX?bookInstructions.toPreviousPage():""}.bind(this))}}),BookInstructionsDot=Class({create:function(b,c){this.parent=b;this.id=c;this.initHtml();this.initCss();this.initEvent()},
initHtml:function(){this.dot=$(" ");this.dot.attr("bookInstructionDotNum",this.id);1==this.id?this.dot.attr("class","bookInstructions icon_active"):"";this.parent.append(this.dot)},initCss:function(){var b=0,b=windowWidth>windowHeight?windowHeight:windowWidth,b=Math.floor(b/30);30b&&(b=15);this.dot.css({margin:"0 "+Math.floor(b/5*4)+"px",width:b+"px",height:b+"px"})},onResize:function(){this.initCss()},initEvent:function(){(new Hammer(this.dot[0])).on("tap",function(){this.pageIndex=
parseInt(this.dot.attr("bookInstructionDotNum"));bookInstructions.setCurrentPage(this.pageIndex)}.bind(this))}}),BookInstructions=Class({create:function(b){this.pageWidth=document.body.clientWidth;this.pageIndex=1;this.totalPageCount=5;this.closeSrc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NzQyMUQ1MUVBRjlBMTFFNjk0NUZCNDY1NTgzODYzOTQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NzQyMUQ1MUZBRjlBMTFFNjk0NUZCNDY1NTgzODYzOTQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo3NDIxRDUxQ0FGOUExMUU2OTQ1RkI0NjU1ODM4NjM5NCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo3NDIxRDUxREFGOUExMUU2OTQ1RkI0NjU1ODM4NjM5NCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PosYs0wAAABhSURBVHja7NRBCgAgCATAlP7/5e0SEZK6gdClhW46UEoCoFVGW3E+uIJ5ohxrPFC2Jg/b66gre6iLMW9o0RBjhyIs9mxtQA6KAi2WonqBUSult3uWoT1pYKb/f5viDAEGAD4SFiVn1efjAAAAAElFTkSuQmCC";
this.visible=!1;this.parent=b;this.pages=[];this.dotsArr=[];this.initHtml(b);this.initCss();this.initEvent()},initHtml:function(b){this.container=$("
");this.swiper=$("
");this.dots=$('');for(var c=1;5>=c;c++)this.pages.push(new BookInstructionsPage(this.swiper,c)),this.dotsArr.push(new BookInstructionsDot(this.dots,c));this.closeBtn=$(' windowHeight?windowHeight:windowWidth,
c=Math.floor(b/30);35c&&(c=15);b=Math.floor(b/16);48b&&(b=30);var d=b/3;this.container.css({width:windowWidth+"px",height:windowHeight+"px"});this.swiper.css({width:5*windowWidth+"px",height:windowHeight+"px"});this.dots.css({"list-style":" none",padding:"0",margin:"0",position:" absolute",bottom:0.05*windowHeight+"px",width:windowWidth+"px",height:c+"px","line-height":c+"px","z-index":" 100"});this.closeBtn.css({width:b+"px",height:b+"px","line-height":b+"px","font-size":b+
"px",cursor:"pointer",position:"absolute","border-radius":"50%",color:"#fff",right:d+"px",top:d+"px",background:"#7FCEFF","z-index":"100"})},onResize:function(){this.resizeCss();for(var b=0;b=this.totalPageCount?
this.totalPageCount:this.pageIndex+1)},setCurrentPage:function(b){this.pageIndex=b?b:this.pageIndex;b=transformCSS({tran:{x:-(this.pageIndex-1)*windowWidth,y:0}});animateOnce(this.swiper,b,300,null);this.dots.find("li").removeClass("icon_active");this.dots.find("li[bookInstructionDotNum="+this.pageIndex+"]").addClass("icon_active")},showOrhide:function(){this.visible?this.hide():this.show()},show:function(){this.visible=!0;this.container.removeClass("hide");var b=transformCSS({tran:{x:0,y:0}});animateOnce(this.container,
b,300,null)},hide:function(){this.visible=!1;var b=transformCSS({tran:{x:this.pageWidth,y:0}});animateOnce(this.container,b,300,function(){this.container.addClass("hide")}.bind(this))},showOrHide:function(){this.visible?this.hide():this.show()},initEvent:function(){this.container.bind("touchstart",function(b){b.preventDefault()});this.closeBtn.bind(_event._end,function(){this.hide()}.bind(this))},changeLanguage:function(){for(var b=0;b"),"audio");this.$audio.isPlaying=!1;this.audioIndex=0;this.config.audioType==this.SINGLE_AUDIO?(this.setSingleAudio(),this.initSingleAudioEvent()):(this.setMultipleAudio(this.audioIndex),this.initMultipleAudioEvent())},play:function(){if(this.$audio)try{this.$audio.play()}catch(b){}},playByTouch:function(){if(this.$audio&&!this.$audio.isPlaying)try{this.$audio.play(),this.$audio.isPlaying=!0}catch(b){}},playAfterFlip:function(){this.play.delay(this,1E3*bookConfig.flippingTime)},
start:function(){this.config.audioType==this.MULTIPLE_AUDIOS&&this.flipByIndex(0);this.playAfterFlip()},setSingleAudio:function(){this.$audio.$media.attr("src",this.config.audioFile)},setMultipleAudio:function(b){(b=this.config.items[b])&&this.$audio.$media.attr("src",b.audioData)},initSingleAudioEvent:function(){this.$audio.$media.bind("timeupdate",function(){try{var b=parseInt(this.getCurrentAudioData());this.$audio.$media[0].currentTime>=b&&(this.flipByIndex(this.audioIndex),this.audioIndex++)}catch(c){}}.bind(this))},
getCurrentAudioData:function(){return this.config.items[this.audioIndex].audioData},initMultipleAudioEvent:function(){this.$audio.$media.bind("ended",function(){this.audioIndex++;this.setMultipleAudio(this.audioIndex);this.flipByIndex(this.audioIndex);this.playAfterFlip()}.bind(this))},flipByIndex:function(b){this.config.items[this.audioIndex]&&(b=parseInt(this.config.items[this.audioIndex].pageIndex),0<=BookInfo.getCurrentPages().indexOf(b)||gotoPageFun(b,!1,"flip audio"))},playByIndex:function(b){this.config.audioType==
this.SINGLE_AUDIO?this.playByIndexForSingleAudio(b):this.playByIndexForMultipleAudio(b)},playByIndexForSingleAudio:function(b){var c=this.config.items[this.audioIndex];if(c&&(c=parseInt(c.pageIndex),0<=BookInfo.getCurrentPagesByIndex(b).indexOf(c)))return;for(var d=0;d ");this.stage.append(this.dragIcon);if(bookConfig.CompanyLogoFile||bookConfig.AboutDescription)this.stage.append(this.descriptionTitle),this.stage.append(this.contactTitle);this.content1=$("
");this.stage.append(this.content1);this.content1.append(this.author);this.content1.append(this.address);this.content1.append(this.email);this.content1.append(this.website);this.content1.append(this.mobile);
this.content2=$("
");this.swiper=$("
");this.progress=$("
");this.progressBar=$("
");this.progress.append(this.progressBar);this.content2.append(this.progress);this.stage.append(this.content2);this.content2.append(this.swiper);this.initLogo();this.swiper.append(this.description);this.content2.scroll({},Direction.top,"win10");this._super()},bookReadTimesVisible:function(){var b=
setInterval(function(){try{this.ReadTimes=global.aboutReadTimes?global.aboutReadTimes:0,0 ");this.stage.append(this.dragIcon);
var b=$("
");b.append(this.input);b.append(this.colorSelection);this.stage.append(b);this.stage.append(this.leftAddPage);this.stage.append(this.rightAddPage);this.stage.append(this.bookmarkListTitle);this.stage.append(this.bookmarkListPanel.bookmarkSwiper);this.stage.append(this.remove);this.parent.append(this.stage);this.refreshPanel()},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=300;this.height=b-40;this.maxHeight=this.height-175;this.stage.css({height:this.height+"px",top:c+"px"});this.bookmarkListPanel.onResize(this.width,this.maxHeight);this.refreshPanel()},resetColorChanged:function(){this._super();this.dragIcon[0].colorChanged=!1},resetIconSrc:function(){this._super();this.dragIcon.attr("src",this.dragUrl)},changeIconColor:function(){this._super();this.dragIcon.changeButtonColor(this.fontColor)}}).extend(PcBookmarkFrame);var PcHelpForm=Class({create:function(b){this._super(b)},onCreate:function(){this._super()},resetColorChanged:function(){this._super();this.dragIcon[0].colorChanged=!1},resetIconSrc:function(){this._super();this.dragIcon.attr("src",this.dragUrl)},changeIconColor:function(){this._super();this.dragIcon.changeButtonColor(this.fontColor)},initHtml:function(){this.dragUrl=form_icons.drag?"data:image/png;base64,"+form_icons.drag:uiBaseURL+"drag.png";this.stage.addClass("win10_border");this.stage.append(this.title);
this.favicon&&(bookConfig.RightToLeft?this.title.append(this.favicon):this.title.prepend(this.favicon));this.stage.append(this.close);this.dragIcon=$(" ");this.stage.append(this.dragIcon);this.stage.append(this.image);this.title1&&this.stage.append(this.title1);this.title2&&this.stage.append(this.title2);this._super()}}).extend(PcHelpFrame);var PcPrintForm=Class({create:function(b){this._super(b)},onCreate:function(){this._super()},resetColorChanged:function(){this._super();this.dragIcon[0].colorChanged=!1},resetIconSrc:function(){this._super();this.dragIcon.attr("src",this.dragUrl)},changeIconColor:function(){this._super();this.dragIcon.changeButtonColor(this.fontColor)},initHtml:function(){this.dragUrl=form_icons.drag?"data:image/png;base64,"+form_icons.drag:uiBaseURL+"drag.png";this.stage.addClass("win10_border");this.stage.append(this.title);
this.favicon&&(bookConfig.RightToLeft?this.title.append(this.favicon):this.title.prepend(this.favicon));this.stage.append(this.close);this.dragIcon=$(" ");this.stage.append(this.dragIcon);this.stage.append(this.printAll);this.stage.append(this.printCurrent);this.stage.append(this.printRange);this.stage.append(this.printButton);this._super()}}).extend(PcPrintFrame);var PcSearchItem=Class({create:function(b,c){this._super(b,c)}}).extend(SearchItem);var PcSearchForm=Class({create:function(b){this._super(b)},onCreate:function(){this._super()},initHtml:function(){this.dragUrl=form_icons.drag?"data:image/png;base64,"+form_icons.drag:uiBaseURL+"drag.png";this.stage.addClass("win10_border");this.stage.append(this.title);this.favicon&&(bookConfig.RightToLeft?this.title.append(this.favicon):this.title.prepend(this.favicon));this.stage.append(this.close);this.dragIcon=$(" ");this.stage.append(this.dragIcon);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)},resetColorChanged:function(){this._super();this.dragIcon[0].colorChanged=!1},resetIconSrc:function(){this._super();this.dragIcon.attr("src",this.dragUrl)},changeIconColor:function(){this._super();this.dragIcon.changeButtonColor(this.fontColor)},afterSearchThumbs:function(){this.height=Math.max(windowHeight-bookConfig.topMargin-
bookConfig.bottomMargin-toolBar.getHeight(),1)-40;this.searchSwiper.css("height",this.height-305+"px")},afterSearchText:function(){this.height=Math.max(windowHeight-bookConfig.topMargin-bookConfig.bottomMargin-toolBar.getHeight(),1)-40;this.searchSwiper.css("height",this.height-105+"px");this.searchPageSwiper.css({display:"none"})},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-40;this.stage.css({height:this.height+"px",top:c+"px"});this.searchSwiper.css("height",this.height-105+"px");this.elements.refresh()}}).extend(PcSearchFrame);var PcShareForm=Class({create:function(b){this._super(b)},onCreate:function(){bookConfig.addCurrentPage&&this.content.css({height:"215px"});this._super()},initSwiper:function(){this.swiperContainer=$("
");this.shareStage=$("
");this.shareSwiper=$("
");this.progress=$("
");this.progressBar=$("
");this.shareSwiper.append(this.sharePanel);
this.shareStage.append(this.shareSwiper);this.shareStage.append(this.progress);this.progress.append(this.progressBar);this.swiperContainer.append(this.shareStage);this.shareStage.scroll({},Direction.top,"win10")},resetColorChanged:function(){this._super();this.dragIcon[0].colorChanged=!1},resetIconSrc:function(){this._super();this.dragIcon.attr("src",this.dragUrl)},changeIconColor:function(){this._super();this.dragIcon.changeButtonColor(this.fontColor)},initHtml:function(){this.dragUrl=form_icons.drag?
"data:image/png;base64,"+form_icons.drag:uiBaseURL+"drag.png";this.stage.addClass("win10_border");this.stage.append(this.title);this.favicon&&(bookConfig.RightToLeft?this.title.append(this.favicon):this.title.prepend(this.favicon));this.stage.append(this.close);this.content=$("
");this.initSwiper();this.stage.append(this.content);this.dragIcon=$(" ");this.stage.append(this.dragIcon);this.shareCurrentPageBox.append(this.shareCurrentCheck).append(this.shareCurrentPageTitle1);
this.content.append(this.codeBox);this.swiperContainer.append(this.sharePanelTitle);this.content.append(this.swiperContainer);this.linkBox.append(this.linkArea).append(this.copy1);this.content.append(this.shareCurrentPageBox);this.content.append(this.linkBox);this.codeBox.find(".qrcode").css({"border-radius":"0"});this._super()}}).extend(PcShareFrame);var PcTableOfContentItem=Class({create:function(b,c,d){c.fontColor=bookConfig.formFontColor?bookConfig.formFontColor:bookConfig.iconColor;this._super(b,c,d)}}).extend(TableOfContentItem);var PcTableOfContentForm=Class({create:function(b){this._super(b)},onCreate:function(){this._super()},initHtml:function(){this.dragUrl=form_icons.drag?"data:image/png;base64,"+form_icons.drag:uiBaseURL+"drag.png";this.stage.addClass("win10_border");this.stage.append(this.title);this.favicon&&(bookConfig.RightToLeft?this.title.append(this.favicon):this.title.prepend(this.favicon));this.stage.append(this.close);this.dragIcon=$(" ");this.stage.append(this.dragIcon);
this.stage.append(this.input);this.stage.append(this.searchButton);this.stage.append(this.tableofcontentSwiper);this.parent.append(this.stage)},resetColorChanged:function(){this._super();this.dragIcon[0].colorChanged=!1},resetIconSrc:function(){this._super();this.dragIcon.attr("src",this.dragUrl)},changeIconColor:function(){this._super();this.dragIcon.changeButtonColor(this.fontColor)},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-40;this.maxHeight=this.height-75;this.stage.css({height:this.height+"px",top:c+"px"});this.tableofcontentSwiper.css("height",this.maxHeight+"px");this.elements.refresh()}}).extend(PcTableOfContentFrame);var PcVideoGalleryForm=Class({create:function(b){this._super(b)},onCreate:function(){this._super()},resetColorChanged:function(){this._super();this.dragIcon[0].colorChanged=!1},resetIconSrc:function(){this._super();this.dragIcon.attr("src",this.dragUrl)},changeIconColor:function(){this._super();this.dragIcon.changeButtonColor(this.fontColor)},initHtml:function(){this.dragUrl=form_icons.drag?"data:image/png;base64,"+form_icons.drag:uiBaseURL+"drag.png";this.stage.addClass("win10_border");this.stage.append(this.title);
this.favicon&&(bookConfig.RightToLeft?this.title.append(this.favicon):this.title.prepend(this.favicon));this.stage.append(this.close);this.dragIcon=$(" ");this.stage.append(this.dragIcon);this.stage.append(this.video);this.stage.append(this.info);if(this.videoList&&1");b.append(this.videoListTitle);b.append(this.videoSwiper);this.stage.append(b)}else this.stage.css("width","335px");this._super()}}).extend(PcVideoGalleryFrame);var PcDownloadForm=Class({create:function(b){this._super(b)},onCreate:function(){this._super()},resetColorChanged:function(){this._super();this.dragIcon[0].colorChanged=!1},resetIconSrc:function(){this._super();this.dragIcon.attr("src",this.dragUrl)},changeIconColor:function(){this._super();this.dragIcon.changeButtonColor(this.fontColor);this.changeItemColor()},changeItemColor:function(){this.downloadCurrent.changeButtonColor(this.fontColor);this.downloadAttachments.changeButtonColor(this.fontColor);
this.downloadAll.changeButtonColor(this.fontColor);this.pictureListForm.leftBtn.changeButtonColor(this.fontColor);this.pictureListForm.rightBtn.changeButtonColor(this.fontColor)},initHtml:function(){this.dragUrl=form_icons.drag?"data:image/png;base64,"+form_icons.drag:uiBaseURL+"drag.png";this.dragIcon=$(" ");this.stage.append(this.dragIcon);this.stage.addClass("win10_border");this.stage.append(this.title);this.favicon&&(bookConfig.RightToLeft?this.title.append(this.favicon):
this.title.prepend(this.favicon));this.stage.append(this.close);this.content=$("
");this.content1=$("
");downloadconfig.pdf&&this.content1.append(this.downloadAll);downloadconfig.hideDownloadSinglePage||this.content1.append(this.downloadCurrent);downloadconfig.attachments&&0");this.content2.append(this.pictureListForm.getDom());this.content.append(this.content1);this.content.append(this.content2);this.stage.append(this.content);this._super()},gotoPage:function(b){this.pictureListForm.fillContent(b)}}).extend(PcDownloadFrame);Class("TextFormatAnalyzer",{create:function(b){this.$textForAnalysis=$("
");this.analysisResult=[];if(b&&HTMLString.isHTML(b)){var c=$(b);b.toLowerCase().startsWith(" "),this.$textForAnalysis.append(b),b.append(c));this.analysis()}else this.initFromText(b)},initFromText:function(b){b||(b=" ");var c={leading:0,leftMargin:0,rightMargin:0,paragraphs:[]};b={align:"LEFT",font:{},text:b};b.font.family="Arial";b.font.size=
12;b.font.color="#000000";b.font.letterSpacing=0;b.font.kerning=0;b.font.bold=!1;b.font.italic=!1;b.font.underline=!1;c.paragraphs.push(b);this.analysisResult.push(c)},analysis:function(){for(var b=this.$textForAnalysis.children(),c=0;c]+\bhref="([^"]*)"[^>]*>([\s\S]*?)<\/a>/.test(k.text)&&(this.hasATag=!0);d.paragraphs.push(k)}this.analysisResult.push(d)}},changeXmlToHtml:function(b,c){var d=b.match(//),f=[];for(null!=d&&(b=b.replace(/<\/font/g," ",h+'">');
b=b.replace(d[0],g);b=b.replaceAll(" "," ");f=[];d=b.match(//)}0<=b.indexOf("")&&(b=b.replaceAll("",''));0<=b.indexOf("")&&(b=b.replaceAll("",''));return b},changeTag:function(b,c,d){c=c.replace(/"/g,"");c=c.split("=");d&&(c[1]=Number(c[1])+Number(d));if("font-size"==c[0]||"letter-spacing"==c[0]||"line-height"==c[0])c[1]+="px";b.push(c);return b},
getLeftMargin:function(){return 0==this.analysisResult.length?0:this.analysisResult[0].leftMargin},getRightMargin:function(){return 0==this.analysisResult.length?0:this.analysisResult[0].rightMargin},getAlign:function(){if(0==this.analysisResult.length)return"LEFT";var b=this.analysisResult[0];return 0==b.paragraphs.length?"LEFT":b.paragraphs[0].align},getFontFamily:function(){var b=this.getFont();return b?b.family:"Arial"},getFontColor:function(){var b=this.getFont();return b?b.color:"#000000"},
getFontSize:function(){var b=this.getFont();return b?b.size:12},getLetterSpace:function(){var b=this.getFont();return b?b.letterSpacing:0},getWordSpace:function(){var b=this.getFont();return b?b.kerning:"0"},getLeading:function(){var b=this.getFont();return b?b.leading:"0"},getLineHeight:function(){var b=this.getFont(),c=b.lineHeight;if(!b)return"0";$.system.name!=$.system.IOS&&(c-=5);return c},getFont:function(){if(0==this.analysisResult.length)return null;var b=this.analysisResult[0];return 0==
b.paragraphs.length?null:b.paragraphs[0].font},initFont:function(b){var c=this.getFontCSS(this.getFont());b.css(c)},getMaxFontSize:function(){for(var b=0,c=0;c"),d=0;d");0
");b?l.css(b):l.css("text-align",k.align);var m=$(" ");m.css(this.getFontCSS(k.font));k=k.text;k=k.replaceAll("<br>"," ");(k=k.replaceAll("<br/>"," "))||(k=" ");k=k.replaceAll(" "," ");-1")&&(k=k.replaceAll("",''));
m.append(k);l.append(m);g.append(l)}c.append(g)}return c},getFontCSS:function(b){return b?{"font-family":b.family,color:b.color,"font-size":b.size+"px","letter-spacing":b.letterSpacing+"px","word-spacing":b.kerning+"px","font-style":b.italic?"italic":"normal","text-decoration":b.underline?"underline":"none"}:{}}});
Class("Item",{Package:"PageItem",create:function(b,c,d,f){this.parent=b;this.config=this.parseConfig(c);this.pageWidth=d;this.pageHeight=f;this.pw=d;this.ph=f;this.type=this.config.annotype},parseConfig:function(b){return b},animateConfig:function(){this.config.animation&&this.config.animation.name&&(this.config.animation.duration||(this.config.animation.duration=1),this.config.animation.timeFun||(this.config.animation.timeFun="ease"),this.config.animation.delay||(this.config.animation.delay=0),this.config.animation.count||
(this.config.animation.count=1),this.config.animation.direction||(this.config.animation.direction="normal"))},getOssUrl:function(b,c,d,f){return b=0=c&&(c=0);this.top+this.hintHeight>this.pageHeight/2?b.css({left:c+"px",top:Math.max(2,this.top-this.hintHeight-15)+"px"}):b.css({left:c+"px",top:Math.max(2,this.top+this.height+5)+"px"})},bubbleHint:function(b){var c=this.left+(this.width-this.hintWidth-10)/2;0>=c&&(c=0);this.top+this.hintHeight+this.height>this.pageHeight/
2?b.css({left:c+"px",top:Math.max(2,this.top-this.hintHeight-15)+"px"}):(b.css({left:c+"px",top:Math.max(2,this.top+this.height+5)+"px"}),b.find("#text_hint")[0]&&b.find("#text_hint").css({position:"absolute",bottom:"auto",top:"-10px",left:this.hintWidth/2-6+"px",border:"10px solid transparent","border-top-width":0,"border-left-width":"5px","border-right-width":"5px","border-bottom-color":Color(this.config.hint.hintShapeColor).rgba(this.config.hint.hintShapeAlpha)}))},addActionEvent:function(b){b=
new this.ActionManager(this,b,this.config);b.prepareAction();b.addAction()},addEffectEvent:function(b,c){(new this.EffectManager(this,b,c,this.config)).addEffect()},addHighLightEvent:function(b,c){var d=new this.HighLightManager(this,b,c,this.config);if(d=d.addHighLight())return d},imageReflection:function(b){!0==supports("boxReflect")&&this.addCSSReflection(b)},addCSSReflection:function(b){var c=this.config.pageW/this.pageWidth;this.config.pageW||(c=1.2);var d=this.config.reflectionAlpha?Number(this.config.reflectionAlpha):
0;"1"==this.config.reflectionType&&(d?b.css({"-webkit-box-reflect":"below "+10*c+"px -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255,255,255,"+d/2+")),color-stop(0.5,rgba(255,255,255,"+d+")), to(white))","-o-box-reflect":"below "+10*c+"px -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255,255,255,"+d/2+")),color-stop(0.5,rgba(255,255,255,"+d+")), to(white))"}):b.css({"-webkit-box-reflect":"below "+10*c+"px -webkit-gradient(linear, 0 0, 0 100%, from(transparent), color-stop(0.7, transparent), to(white))",
"-o-box-reflect":"below "+10*c+"px -webkit-gradient(linear, 0 0, 0 100%, from(transparent), color-stop(0.7, transparent), to(white))"}));"6"==this.config.reflectionType&&(d?b.css({"-webkit-box-reflect":"below 0px -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255,255,255,"+d/2+")),color-stop(0.5,rgba(255,255,255,"+d+")), to(white))","-o-box-reflect":"below 0px -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255,255,255,"+d/2+")),color-stop(0.5,rgba(255,255,255,"+d+")), to(white))"}):b.css({"-webkit-box-reflect":"below 0px -webkit-gradient(linear, 0 0, 0 100%, from(transparent), color-stop(0.5, transparent), to(white))",
"-o-box-reflect":"below 0px -webkit-gradient(linear, 0 0, 0 100%, from(transparent), color-stop(0.5, transparent), to(white))"}));"3"==this.config.reflectionType&&(d?b.css({"-webkit-box-reflect":"below "+10*c+"px -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255,255,255,"+d/2+")),color-stop(0.5,rgba(255,255,255,"+d+")), to(white))","-o-box-reflect":"below "+10*c+"px -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255,255,255,"+d/2+")),color-stop(0.5,rgba(255,255,255,"+d+")), to(white))"}):b.css({"-webkit-box-reflect":"below "+
10*c+"px -webkit-gradient(linear, 0 0, 0 100%, from(transparent), color-stop(0.5, transparent), to(white))","-o-box-reflect":"below "+10*c+"px -webkit-gradient(linear, 0 0, 0 100%, from(transparent), color-stop(0.5, transparent), to(white))"}));"4"==this.config.reflectionType&&(d?b.css({"-webkit-box-reflect":"below 0 -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255,255,255,"+d/2+")),color-stop(0.5,rgba(255,255,255,"+d+")), to(white))","-o-box-reflect":"below 0 -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255,255,255,"+
d/2+")),color-stop(0.5,rgba(255,255,255,"+d+")), to(white))"}):b.css({"-webkit-box-reflect":"below 0 -webkit-gradient(linear, 0 0, 0 100%, from(transparent), color-stop(0.7, transparent), to(white))","-o-box-reflect":"below 0 -webkit-gradient(linear, 0 0, 0 100%, from(transparent), color-stop(0.7, transparent), to(white))"}));"5"==this.config.reflectionType&&(d?b.css({"-webkit-box-reflect":"below 0 -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255,255,255,"+d/2+")),color-stop(0.5,rgba(255,255,255,"+
d+")), to(white))","-o-box-reflect":"below 0 -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255,255,255,"+d/2+")),color-stop(0.5,rgba(255,255,255,"+d+")), to(white))"}):b.css({"-webkit-box-reflect":"below 0 -webkit-gradient(linear, 0 0, 0 100%, from(transparent), color-stop(0.6, transparent), to(white))","-o-box-reflect":"below 0 -webkit-gradient(linear, 0 0, 0 100%, from(transparent), color-stop(0.6, transparent), to(white))"}))},setShapeShadow:function(b){switch(Number(this.config.sa)){case 90:offx=
0;offy=4;break;case 180:offx=-4;offy=0;break;case 270:offx=0;offy=-4;break;case 360:offx=4,offy=0}b.shadowOffsetX=offx;b.shadowOffsetY=offy;b.shadowBlur=this.config.sx;b.shadowColor=Color(this.config.sr).toString()},addShadow:function(b){if(this.config.hasShadow){var c=0,d=0,f=this.config.shadow,g=Color(f.shadowColor).rgba(f.shadowAlpha);switch(Number(f.shadowAngle)){case 90:c=0;d=4;break;case 180:c=-4;d=0;break;case 270:c=0;d=-4;break;case 360:c=4,d=0}b.css({"box-shadow":c+"px "+d+"px "+f.shadowBlurX+
"px "+g,"-moz-box-shadow":c+"px "+d+"px "+f.shadowBlurX+"px "+g,"-webkit-box-shadow":c+"px "+d+"px "+f.shadowBlurX+"px "+g,"-ms-box-shadow":c+"px "+d+"px "+f.shadowBlurX+"px "+g,"-o-box-shadow":c+"px "+d+"px "+f.shadowBlurX+"px "+g})}},setRotation:function(b,c){0!=parseInt(c)&&(isNaN(c)||b.css({transform:"rotate("+c+"deg)","-webkit-transform":"rotate("+c+"deg)","-ms-transform":"rotate("+c+"deg)","-o-transform":"rotate("+c+"deg)","-moz-transform":"rotate("+c+"deg)","transform-origin":"0% 0%","-webkit-transform-origin":"0% 0%",
"-ms-transform-origin":"0% 0%","-o-transform-origin":"0% 0%","-moz-transform-origin":"0% 0%"}))},fixRelativePath:function(b){return b?"string"!==typeof b?fixURLValue(b):!0==bookConfig.isFlipPdf?b.startsWith("../")?fixURLValue(b):b.startsWith("./")?fixURLValue("."+b):b.startsWith("files")?fixURLValue("../"+b):b.isUrl()?fixURLValue(b):fixURLValue("../"+b):fixURLValue(b):b},nameIs:function(){if(0==arguments.length)return!1;for(var b=this.getClassName(),c=0;c");c.html(f);d.initFont(c);d=Color(b.hint.hintShapeColor);parseBool(b.hint.hintAuto)?c.css({padding:"5px","border-radius":"2px"}):c.css({width:b.hint.hintW+"px",height:b.hint.hintH+"px","line-height":b.hint.hintH+"px"});c.css({position:"absolute",background:d.rgba(b.hint.hintShapeAlpha),"border-radius":"2px",color:"white"});return c}});
Class("BubbleLinkHint",{build:function(b,c,d){var f=new TextFormatAnalyzer(b.hint.text),g=f.getHTML();c=$("
");d=$("
");c.html(g);c.append(d);f.initFont(c);f=Color(b.hint.hintShapeColor);g=Color(b.hint.hintShapeColor2);parseBool(b.hint.hintAuto)?c.css({padding:"5px","border-radius":"2px"}):c.css({width:b.hint.hintW+"px",height:b.hint.hintH+"px","line-height":b.hint.hintH+"px"});d.css({position:"absolute",bottom:"-10px",border:"10px solid transparent","border-bottom-width":0,
"border-left-width":"5px","border-right-width":"5px","border-top-color":g.rgba(b.hint.hintShapeAlpha)});c.css({position:"absolute","text-align":"center",background:"-moz-linear-gradient(top,"+f.rgba(b.hint.hintShapeAlpha)+","+g.rgba(b.hint.hintShapeAlpha)+")",background:"-o-linear-gradient(top,"+f.rgba(b.hint.hintShapeAlpha)+","+g.rgba(b.hint.hintShapeAlpha)+")",background:"-ms-linear-gradient(top,"+f.rgba(b.hint.hintShapeAlpha)+","+g.rgba(b.hint.hintShapeAlpha)+")",background:"-webkit-linear-gradient(top,"+
f.rgba(b.hint.hintShapeAlpha)+","+g.rgba(b.hint.hintShapeAlpha)+")",background:"linear-gradient("+f.rgba(b.hint.hintShapeAlpha)+","+g.rgba(b.hint.hintShapeAlpha)+")","border-radius":"2px",color:"white"});return c}}).extend("NormalLinkHint");
Class("ActionManager",{Package:"PageItem",create:function(b,c,d){this.item=b;this.element=c;this.config=d;this.action=d.action;this.initAction();this.initActionEvent()},initAction:function(){if(this.action){if(this.action instanceof Array){if(0==this.action.length){this.action=null;return}this.action=this.action[0]}this.eventType=null;this.action.triggerEventType&&(this.eventType=this.action.triggerEventType);$.system.name==$.system.IOS&&(this.eventType==PageEditor.TriggerEventType.MouseDown&&(void 0==
this.action.linkTarget&&(this.action.linkTarget="_self"),"_blank"==this.action.linkTarget&&(this.eventType=PageEditor.TriggerEventType.MouseUp),"Blank"==this.action.linkTarget&&(this.eventType=PageEditor.TriggerEventType.MouseUp)),this.action.url&&"tel:"==this.action.url.toLowerCase().substr(0,4)&&(this.eventType=PageEditor.TriggerEventType.MouseUp))}},initActionEvent:function(){if(this.action)switch(this.eventName="",this.eventType){case PageEditor.TriggerEventType.MouseDown:this.eventName=_event._click;
break;case PageEditor.TriggerEventType.MouseOver:this.eventName=_event._over;if(isPad()||isPhone())this.eventName=_event._click;break;case PageEditor.TriggerEventType.MouseOut:this.eventName=_event._out;if(isPad()||isPhone())this.eventName=_event._click;break;case PageEditor.TriggerEventType.MouseUp:this.eventName=_event._click;break;case PageEditor.TriggerEventType.MouseMove:this.eventName=_event._move;break;case PageEditor.TriggerEventType.MouseLeave:if(this.eventName=_event._leave,isPad()||isPhone())this.eventName=
_event._click}},prepareAction:function(){this.action&&this.element&&(this.executor=this.getActionExecutor())&&this.executor.prepare&&this.executor.prepare(this.item,this.element,this.config)},addAction:function(){this.action&&this.element&&""!=this.eventName&&(!isPhone()&&!isPad()||this.eventName!=_event._click&&this.eventName!=_event._down&&this.eventName!=_event._end&&this.eventName!=_event._over&&this.eventName!=_event._move?(this.element.css({cursor:"pointer"}),this.element.bind("mousedown touchstart pointerdown",
function(b){b.stopPropagation()}.bind(this)),this.element.bind(this.eventName,function(b){this.onAction();b.stopPropagation();return!1}.bind(this))):this.addPhoneAction())},addPhoneAction:function(){var b=null;this.element.onTap(function(c){b&&(clearTimeout(b),b=null);b=setTimeout(function(){this.onAction();b=null}.bind(this),100)}.bind(this))},onAction:function(){this.executor||(this.executor=this.getActionExecutor());if(this.executor)return this.executor.execute(this.item,this.element,this.config)},
getActionExecutor:function(){if(this.action.actionType==PageEditor.ActionType.GOTO_PAGE)return new PageItem.Action.GotoPageAction;if(this.action.actionType==PageEditor.ActionType.OPEN_URL)return new PageItem.Action.OpenUrlAction;if(this.action.actionType==PageEditor.ActionType.OPEN_WINDOW)return new PageItem.Action.OpenWindowAction;if(this.action.actionType==PageEditor.ActionType.SLIDE_SHOW)return new PageItem.Action.OpenSlideshowAction;if(this.action.actionType==PageEditor.ActionType.PLAY_AUDIO)return new PageItem.Action.PlayAudioAction;
if(this.action.actionType==PageEditor.ActionType.ACTION_JS)return new PageItem.Action.ExecuteJavascriptAction;if(this.action.actionType==PageEditor.ActionType.WINDOW_HTML)return new PageItem.Action.HTMLWindowAction;if(this.action.actionType==PageEditor.ActionType.PLAY_VIDEO)return new PageItem.Action.PlayVideoAction;if(this.action.actionType==PageEditor.ActionType.SHOW_INFORMATION)return new PageItem.Action.ShowInformationAction;if(this.action.actionType==PageEditor.ActionType.QUIZ)return new PageItem.Action.OpenQuizAction;
if(this.action.actionType==PageEditor.ActionType.SWF_SLIDE)return new PageItem.Action.OpenSwfSlideAction;if(this.action.actionType==PageEditor.ActionType.SHOW_ARTICLE)return new PageItem.Action.ShowArticleAction}});Class("GotoPageAction",{Package:"PageItem.Action",execute:function(b,c,d){this.initPageIndex(d.action);gotoPageFun(this.linkPageIndex,!1,"action");c.addClass("slider-action")},initPageIndex:function(b){this.linkPageIndex=b.pageIndex;this.linkPageIndex||(this.linkPageIndex=1)}});
Class("OpenUrlAction",{Package:"PageItem.Action",execute:function(b,c,d){this.initLink(d.action);if("tel:"==this.linkUrl.substr(0,4))window.open(this.linkUrl),BookEvent.trigger("jumpLink",["telePhoneNumber",BookInfo.getCurrentPages().join("-"),this.linkUrl]);else{if(this.isTargetMatch("self"))return window.location=this.linkUrl,BookEvent.trigger("jumpLink",["openUrl",BookInfo.getCurrentPages().join("-"),this.linkUrl]),!1;if(this.isTargetMatch("blank"))return-1this.elementConfig.elemWidth/this.elementConfig.elemHeight?(this.startLeft=(this.elementConfig.parentWidth-this.elementConfig.elemWidth)/2,this.startTop=0):(this.startLeft=
0,this.startTop=(this.elementConfig.parentHeight-this.elementConfig.elemHeight)/2);switch(this.effect.position){case "left":var b=this.elementConfig.parentWidth-this.elementConfig.elemWidth;this.element.css({left:-(this.elementConfig.elemWidth+b)+"px",top:this.startTop+"px"});break;case "top":b=this.elementConfig.parentHeight-this.elementConfig.elemHeight;this.element.css({top:-(this.elementConfig.elemHeight+b)+"px",left:this.startLeft+"px"});break;case "bottom":b=this.elementConfig.parentHeight-
this.elementConfig.elemHeight;this.element.css({top:this.elementConfig.elemHeight+b+"px",left:this.startLeft+"px"});break;case "right":b=this.elementConfig.parentWidth-this.elementConfig.elemWidth,this.element.css({left:this.elementConfig.elemWidth+b+"px",top:this.startTop+"px"})}},hide:function(){this.setPosition()},show:function(){setTimeout(function(){"left"==this.effect.position||"right"==this.effect.position?this.element.animate({left:this.startLeft},1E3*this.effect.duration,"easeOutBack"):this.element.animate({top:this.startTop},
1E3*this.effect.duration,"easeOutBack")}.bind(this),1E3*bookConfig.flippingTime)}});
Class("Cutting",{Package:"PageItem.Effect",create:function(b,c,d,f){c&&d&&f&&(this.elementConfig=d,this.element=c,this.elemParent=this.element.parent(),this.config=f,this.showTime=0,this.effect=f.effect,this.initCss())},initCss:function(){isPhone()||isPad()||(this.element.addClass("clip"),this.element.parent().addClass("active"),this.element.css({transform:""}))},resetClass:function(){isPhone()||isPad()||(this.element.removeClass("clip"),this.element.parent().removeClass("active"))},cutting:function(b){if(!b)return!1;
this.initCss();b.removeAttribute("id");var c=this.elementConfig.elemHeight,d=this.elementConfig.elemWidth,f=this.elementConfig.elemWidth/10,g=b.outerHTML;if(window.getComputedStyle(document.body).webkitClipPath){for(var h="",k=0;kMath.random()?-1:1,l="translate("+
[d*(0.5-Math.random()),c*(0.5-Math.random())].map(function(b){return b+"px"}).join()+") rotate("+Math.round(360*l*Math.random())+"deg)";h+=g.replace('style="',' style="'+("-webkit-transform:"+l+";-o-transform:"+l+";-moz-transform:"+l+";-ms-transform:"+l+";transform:"+l+";")+k);this.element.css({visibility:"hidden"})}.bind(this));$(b).parent().append(h);setTimeout(function(){this.elemParent.find("img").css({background:"transparent",visibility:"visible"});this.elemParent.find("img").not(":first").remove();
this.resetClass()}.bind(this),1100);return!0}b.className+=" no-clippath";return!1},hide:function(){isPhone()||isPad()?this.element.fadeOut(0):this.element.css({display:"none"})},show:function(){isPhone()||isPad()?this.element.fadeIn(1E3):(this.element.css({display:"block"}),this.cutting(this.element[0]))}});
Class("HighLightManager",{Package:"PageItem",create:function(b,c,d,f){c&&f&&d&&(this.elementConfig=d,this.item=b,this.element=c,this.highlightsLabel=f.highlightsLabel)},addHighLight:function(){if(this.element&&this.highlightsLabel){var b=this.getHighLightType();if(b)return b}},getHighLightType:function(){if(this.highlightsLabel==PageEditor.HighLight.GREENBOXSTOP)return new PageItem.HighLight.GreenBoxStop(this.element,this.elementConfig);if(this.highlightsLabel==PageEditor.HighLight.GREENBOX)return new PageItem.HighLight.GreenBox(this.element,
this.elementConfig);if(this.highlightsLabel==PageEditor.HighLight.ORIGINCIRCLE)return new PageItem.HighLight.OriginCircle(this.element,this.elementConfig);if(this.highlightsLabel==PageEditor.HighLight.REDBOX)return new PageItem.HighLight.RedBox(this.element,this.elementConfig);if(this.highlightsLabel==PageEditor.HighLight.REDCIRCLE)return new PageItem.HighLight.RedCircle(this.element,this.elementConfig);if(this.highlightsLabel==PageEditor.HighLight.BLUESQUARE)return new PageItem.HighLight.BlueSquare(this.element,
this.elementConfig);if(this.highlightsLabel==PageEditor.HighLight.GREENCIRCLEROTATE)return new PageItem.HighLight.GreenCircleRotate(this.element,this.elementConfig);if(this.highlightsLabel==PageEditor.HighLight.GREENLINELTOR)return new PageItem.HighLight.GreenLineLToR(this.element,this.elementConfig);if(this.highlightsLabel==PageEditor.HighLight.GREENLINERTOL)return new PageItem.HighLight.GreenLineRToL(this.element,this.elementConfig);if(this.highlightsLabel==PageEditor.HighLight.GREENSQUARE)return new PageItem.HighLight.GreenSquare(this.element,
this.elementConfig);if(this.highlightsLabel==PageEditor.HighLight.LINESQUARE)return new PageItem.HighLight.LineSquare(this.element,this.elementConfig);if(this.highlightsLabel==PageEditor.HighLight.ORANGEHIGHLIGHT)return new PageItem.HighLight.OrangeHighLight(this.element,this.elementConfig);if(this.highlightsLabel==PageEditor.HighLight.ORANGECIRCLELIGHT)return new PageItem.HighLight.OrangeCircleLight(this.element,this.elementConfig);if(this.highlightsLabel==PageEditor.HighLight.PUSHSQUARE)return new PageItem.HighLight.PushSquare(this.element,
this.elementConfig);if(this.highlightsLabel==PageEditor.HighLight.REDHIGHLIGHT)return new PageItem.HighLight.RedHighLight(this.element,this.elementConfig);if(this.highlightsLabel==PageEditor.HighLight.REDBOXBLINK)return new PageItem.HighLight.RedBoxBlink(this.element,this.elementConfig);if(this.highlightsLabel==PageEditor.HighLight.REDLINEBLINK)return new PageItem.HighLight.RedLineBlink(this.element,this.elementConfig);if(this.highlightsLabel==PageEditor.HighLight.REDLINELTOR)return new PageItem.HighLight.RedLineLToR(this.element,
this.elementConfig);if(this.highlightsLabel==PageEditor.HighLight.REDLINERTOL)return new PageItem.HighLight.RedLineRToL(this.element,this.elementConfig);if(this.highlightsLabel==PageEditor.HighLight.SPINSQUARE)return new PageItem.HighLight.SpinSquare(this.element,this.elementConfig)}});
Class("HighLightHtml",{Package:"PageItem.HighLight",create:function(b,c){b&&c&&(this.config=c,this.width=c.width,this.height=c.height,this.element=b,this.initConfig(),this.cvs=$(" "),this.ctx=this.cvs[0].getContext("2d"),this.initCss(),this.element.append(this.cvs),this.element.bind("mouseenter",this.animate.bind(this)),this.element.bind("mouseleave",function(){this.stopAnimate();this.clearCvs()}.bind(this)))},initConfig:function(){},animate:function(){},
stopAnimate:function(){},ellipse:function(b,c,d,f,g,h,k,l){b.save();var m=f>g?f:g;f/=m;g/=m;b.lineJoin="round";b.scale(f,g);b.beginPath();b.arc(c/f,d/g,m,h,k,l);b.stroke();b.closePath();b.restore()},clearCvs:function(){this.ctx.clearRect(0,0,this.width,this.height)},onResize:function(b,c){this.width=b;this.height=c;this.cvs[0].width=b;this.cvs[0].height=c;this.initConfig()},initCss:function(){this.cvs.css({position:"absolute","pointer-events":"none",left:0,top:0,"z-index":0})},hide:function(){},show:function(){}});
Class("GreenBoxStop",{Package:"PageItem.HighLight",create:function(b,c){this._super(b,c)},initConfig:function(){this.gradientWidth=this.width;this.overSize=this.height-this.width;this.heightthis.height&&(k=this.ctx.createLinearGradient(0+this.overSize*d,this.gradientWidth,this.gradientWidth+this.overSize*d,0));k.addColorStop(0,"transparent");k.addColorStop(g,"transparent");k.addColorStop(f,Color("#009900").rgba(0.5-
0.4*d));k.addColorStop(h,"transparent");k.addColorStop(1,"transparent");this.ctx.fillStyle=k;this.ctx.fillRect(0.05*this.width,0.05*this.height,this.drawW,this.drawH);this.ctx.closePath();this.drawRect();b==c&&(this.ctx.clearRect(0,0,this.width,this.height),this.drawRect(),this.boxFlashAnimate&&(this.boxFlash=this.boxFlashAnimate.animation(this,800)))}}).extend("HighLightHtml");
Class("GreenBox",{Package:"PageItem.HighLight",create:function(b,c){this._super(b,c);this.color=Color("#009900")},boxFlashAnimate:function(b,c){this.clearCvs();this.ctx.beginPath();this.ctx.strokeStyle=this.color.rgba(b<=c/2?1-b/c*2:b/c*2-1);this.ctx.lineJoin="round";this.ctx.lineWidth=1;this.ctx.strokeRect(this.x,this.y,this.drawW,this.drawH);this.ctx.closePath();b==c&&(this.boxFlash&&this.boxFlash.stop(),this.boxFlash=this.boxFlashAnimate.animation(this,800))}}).extend("GreenBoxStop");
Class("OriginCircle",{Package:"PageItem.HighLight",create:function(b,c){this._super(b,c)},initConfig:function(){this.color=Color("#F7771E");this.x=this.width/2;this.y=this.height/2;this.drawW=0.72*this.width/2;this.drawH=0.72*this.height/2;this.gradientWidth=2*this.drawW;this.overSize=2*(this.drawH-this.drawW);this.drawW>this.drawH&&(this.gradientWidth=2*this.drawH,this.overSize=2*(this.drawW-this.drawH))},animate:function(){this.drawRound=this.ellipse1Anime.animation(this,500)},stopAnimate:function(){this.drawRound&&
this.drawRound.stop();this.flash&&this.flash.stop();this.ellipseFlash&&this.ellipseFlash.stop()},ellipse1Anime:function(b,c){var d=b/c;this.clearCvs();this.ctx.beginPath();this.ctx.strokeStyle=this.color.toString();this.ctx.lineJoin="round";this.ctx.lineWidth=1;this.ellipse(this.ctx,this.x,this.y,this.drawW,this.drawH,0.25*-Math.PI,0.75*Math.PI*d);this.ctx.closePath();this.ctx.beginPath();this.ellipse(this.ctx,this.x,this.y,this.drawW,this.drawH,-0.25*Math.PI,-0.25*Math.PI-1*Math.PI*d,!0);this.ctx.closePath();
b==c&&(this.flash=this.flashAnimate.animation(this,300))},flashAnimate:function(b,c){var d=b/c,f=0.2+0.4*d,g=f-0.2,h=f+0.2,k=0.14*this.width,l=0.14*this.height;this.clearCvs();var m=this.ctx.createLinearGradient(k,0.86*this.height-this.overSize*d,this.gradientWidth+k,0.86*this.height-this.gradientWidth-this.overSize*d*0.9);this.width>this.height&&(m=this.ctx.createLinearGradient(k+this.overSize*d,this.gradientWidth+l,k+this.gradientWidth+this.overSize*d,l));m.addColorStop(0,"transparent");m.addColorStop(g,
"transparent");m.addColorStop(f,this.color.rgba(0.5-0.4*d));m.addColorStop(h,"transparent");m.addColorStop(1,"transparent");this.ctx.beginPath();this.ctx.fillStyle=m;this.ctx.strokeStyle=this.color.toString();this.ellipse(this.ctx,this.x,this.y,this.drawW,this.drawH,0,2*Math.PI,!0);this.ctx.fill();this.ctx.closePath();b==c&&(this.ellipseFlash=this.flashRound.animation(this,800))},flashRound:function(b,c){var d=b<=c/2?1-b/c*2:b/c*2-1;this.clearCvs();this.ctx.beginPath();this.ctx.strokeStyle=this.color.rgba(d);
this.ellipse(this.ctx,this.x,this.y,this.drawW,this.drawH,0,2*Math.PI,!0);this.ctx.closePath();b==c&&(this.ellipseFlash&&this.ellipseFlash.stop(),this.ellipseFlash=this.flashRound.animation(this,800))}}).extend("HighLightHtml");
Class("RedBox",{Package:"PageItem.HighLight",create:function(b,c){this._super(b,c)},initConfig:function(){this.direct=1;this.gradientWidth=this.width;this.heightthis.lineWidth&&(this.lineWidth=1);this.x=0.14*this.width;this.y=0.14*this.height;this.drawW=0.72*this.width;this.drawH=0.72*this.height;this.overW=this.width-this.drawW;this.overH=this.height-this.drawH},animate:function(){this.rect=this.rectFlash.animation(this,
600)},stopAnimate:function(){this.rect&&this.rect.stop();this.timer&&clearTimeout(this.timer)},drawRect:function(b,c){this.ctx.beginPath();this.ctx.strokeStyle="#52A0E9";this.ctx.lineJoin="round";this.ctx.lineWidth=this.lineWidth;this.ctx.moveTo(b.x,b.y);this.ctx.lineTo(c.x,c.y);this.ctx.stroke();this.ctx.closePath()},rectFlash:function(b,c){this.clearCvs();var d=b/c,f=0>b/c*2-1?0:b/c*2-1,g=this.x*d,h=this.y*d,k=this.x*f,l=this.y*f;this.ctx.lineWidth=this.lineWidth;this.ctx.strokeStyle="#52A0E9";
this.ctx.strokeRect(g,h,this.width-this.overW*d,this.height-this.overH*d);this.ctx.strokeRect(k,l,this.width-this.overW*f,this.height-this.overH*f);b==c&&(this.rect.stop(),this.clearCvs(),this.ctx.strokeRect(this.x,this.y,this.drawW,this.drawH),this.timer=setTimeout(function(){this.rect=this.rectFlash.animation(this,600)}.bind(this),1E3))}}).extend("HighLightHtml");
Class("GreenCircleRotate",{Package:"PageItem.HighLight",create:function(b,c){this._super(b,c)},initConfig:function(){this.color=Color("#009933");this.x=this.width/2;this.y=this.height/2;this.drawW=0.72*this.width/2;this.drawH=0.72*this.height/2;this.r=this.drawW>this.drawH?this.drawW:this.drawH;this.ratioX=this.drawW/this.r;this.ratioY=this.drawH/this.r;this.arrowRate=Math.sin(Math.PI/4);this.cos=0.87;this.sin=0.5;this.arrowW=0.1*this.r},animate:function(){this.round=this.ellipseAnime.animation(this,
2E3)},stopAnimate:function(){this.round&&this.round.stop()},getPos:function(b){var c={};b=1*Math.PI+2*Math.PI*b;c.end={x:this.x+this.ratioX*this.r*Math.cos(b),y:this.y+this.ratioY*this.r*Math.sin(b)};return c},ellipseAnime:function(b,c){var d=b/c,f=this.getPos(d);this.clearCvs();this.ctx.strokeStyle=this.color.toString();this.ctx.lineJoin="round";this.ctx.lineWidth=1;this.ellipse(this.ctx,this.x,this.y,this.drawW,this.drawH,1.1*Math.PI+2*Math.PI*d,3*Math.PI+2*Math.PI*d);this.drawArrow1(f.end,1*Math.PI+
2*Math.PI*d)},drawArrow1:function(b,c){var d=c-Math.PI/3,f=c-Math.PI/6,g=this.x+this.ratioX*this.r*Math.cos(d),d=this.y+this.ratioY*this.r*Math.sin(d);Math.cos(f);Math.sin(f);this.ctx.beginPath();this.ctx.fillStyle="#009933";this.ctx.save();this.ctx.translate(b.x,b.y);this.ctx.rotate(Math.PI/3.2);this.ctx.scale(0.15,0.15);this.ctx.moveTo(this.x-b.x,this.y-b.y);this.ctx.lineTo(b.x-b.x,b.y-b.y);this.ctx.lineTo(g-b.x,d-b.y);this.ctx.closePath();this.ctx.fill();this.ctx.restore()}}).extend("HighLightHtml");
Class("GreenLineLToR",{Package:"PageItem.HighLight",create:function(b,c){this._super(b,c)},initConfig:function(){this.color=Color("#009933");this.x=0;this.y=this.height/2;this.endX=this.width;this.endY=this.height/2;this.lineWidth=1},animate:function(){this.line=this.drawLine.animation(this,2E3)},stopAnimate:function(){this.line&&this.line.stop()},drawLine:function(b,c){var d=b/c;this.ctx.beginPath();this.clearCvs();this.ctx.strokeStyle=this.color.toString();this.ctx.lineJoin="round";this.ctx.lineWidth=
this.lineWidth;this.ctx.moveTo(this.x,this.y);this.ctx.lineTo(this.x+this.endX*d,this.endY);this.ctx.stroke();this.ctx.closePath();b==c&&this.line.stop()}}).extend("HighLightHtml");Class("GreenLineRToL",{Package:"PageItem.HighLight",create:function(b,c){this._super(b,c)},initConfig:function(){this.color=Color("#009933");this.x=this.width;this.y=this.height/2;this.endX=-this.width;this.endY=this.height/2;this.lineWidth=1}}).extend("GreenLineLToR");
Class("GreenSquare",{Package:"PageItem.HighLight",create:function(b,c){this._super(b,c);this.color=Color("#26E20C")},initConfig:function(){this.freshTime=this.time=1;this.gradientWidth=this.width;this.heightthis.lineWidth&&(this.lineWidth=1);this.x=0.14*this.width;this.y=0.14*this.height;this.showX=0.14*this.width;this.showY=1.5*this.height;this.drawW=0.72*this.width;this.drawH=0.72*this.height},animate:function(){this.rect=
this.rectAnime.animation(this,300)},stopAnimate:function(){this.timer&&clearTimeout(this.timer);this.rect&&this.rect.stop();this.fresh&&this.fresh.stop();this.freshTime=this.time=1},drawRect:function(b,c){this.ctx.beginPath();this.ctx.lineJoin="round";this.ctx.lineWidth=this.lineWidth;this.ctx.moveTo(b.x,b.y);this.ctx.lineTo(c.x,c.y);this.ctx.stroke();this.ctx.closePath()},rectAnime:function(b,c){this.clearCvs();var d=b/c;this.ctx.lineWidth=this.lineWidth;this.ctx.strokeStyle=this.color.toString();
1=300/this.time?100:300/this.time,6<=this.time?this.timer=setTimeout(function(){this.fresh=this.rectFlash.animation(this,300)}.bind(this),500):this.rect=this.rectAnime.animation(this,d))},rectFlash:function(b,c){this.clearCvs();this.ctx.save();var d=b/c,f=this.x-0.15*this.drawW*d,g=this.y-0.15*this.drawH*
d;this.ctx.strokeStyle=this.color.toString();this.ctx.strokeRect(this.x,this.y,this.drawW,this.drawH);this.ctx.strokeStyle=this.color.rgba(1-d);this.ctx.strokeRect(f,g,this.drawW+0.3*this.drawW*d,this.drawH+0.3*this.drawH*d);this.ctx.restore();b==c&&(this.rect.stop(),2>this.freshTime?(this.timer=setTimeout(function(){this.fresh=this.rectFlash.animation(this,300)}.bind(this),300),this.freshTime+=1):(this.clearCvs(),this.ctx.strokeRect(0.14*this.width,0.14*this.height,this.drawW,this.drawH)))}}).extend("GreenBoxStop");
Class("LineSquare",{Package:"PageItem.HighLight",create:function(b,c){this._super(b,c)},initConfig:function(){this.animateCase=1;this.color=Color("#0099CC");this.gradientWidth=this.width;this.height=this.lineWidth&&(this.lineWidth=1);this.x=0.14*this.width;this.y=0.14*this.height;this.drawW=0.72*this.width;this.drawH=0.72*this.height},animate:function(){this.line=this.lineAnimate.animation(this,500)},
getLeavePos:function(){var b=[];pos1={x:this.x,y:this.y,width:0.86*this.width,height:0};pos2={x:0.86*this.width,y:this.y,width:0,height:0.86*this.height};pos3={x:0.86*this.width,y:0.86*this.height,width:0.86*-this.width,height:0};pos4={x:this.x,y:0.86*this.height,width:0,height:0,height:0.86*-this.height};b.push(pos1);b.push(pos2);b.push(pos3);b.push(pos4);return b},getPos:function(b){var c=[];pos1={x:this.width-0.86*this.width*b,y:this.y,width:0.5*this.drawW,height:0};pos2={x:this.x+this.drawW,y:this.height-
0.86*this.height*b,width:0,height:0.5*this.drawH};pos3={x:0.86*this.width*b,y:0.86*this.height,width:0.5*-this.drawW,height:0};pos4={x:this.x,y:0.86*this.height*b,width:0,height:0,height:0.5*-this.drawH};c.push(pos1);c.push(pos2);c.push(pos3);c.push(pos4);return c},stopAnimate:function(){this.line&&this.line.stop();this.timer&&(clearTimeout(this.timer),this.time=null);this.animateCase=1},drawRect:function(b){this.ctx.save();this.ctx.beginPath();this.ctx.strokeStyle=this.color.rgba(0.2);this.ctx.lineJoin=
"round";this.ctx.lineWidth=this.lineWidth;b&&this.ctx.setLineDash([this.drawW/14]);this.ctx.strokeRect(this.x,this.y,this.drawW,this.drawH);this.ctx.closePath();this.ctx.restore()},lineAnimate:function(b,c){var d=b/c;this.ctx.clearRect(0,0,this.width,this.height);this.drawRect(!0);this.ctx.beginPath();this.ctx.strokeStyle=this.color.rgba(d);this.ctx.lineWidth=this.lineWidth;if(1==this.animateCase)var f=this.getPos(d);else 2==this.animateCase?(f=this.getPos(1),this.ctx.strokeStyle=this.color.rgba(1)):
(f=this.getLeavePos(),this.ctx.strokeStyle=this.color.rgba(1-d));for(var g=0;gthis.drawH&&(this.gradientWidth=2*this.drawH);this.lineWidth=Math.ceil(0.04*this.gradientWidth);1>=this.lineWidth&&(this.lineWidth=1)},animate:function(){this.ellipseFlash=this.flashRound.animation(this,1E3)},stopAnimate:function(){this.ellipseFlash&&
this.ellipseFlash.stop()},flashRound:function(b,c){var d=b<=c/2?1-b/c*2:b/c*2-1;this.clearCvs();this.ctx.beginPath();this.ctx.strokeStyle=this.color.rgba(d);this.ctx.lineWidth=this.lineWidth;this.ellipse(this.ctx,this.x,this.y,this.drawW,this.drawH,0,2*Math.PI,!0);this.ctx.closePath();b==c&&(this.ellipseFlash&&this.ellipseFlash.stop(),this.ellipseFlash=this.flashRound.animation(this,1E3))}}).extend("HighLightHtml");
Class("OrangeCircleLight",{Package:"PageItem.HighLight",create:function(b,c){this._super(b,c)},initConfig:function(){this.color=Color("#FF6600");this.x=this.width/2;this.y=this.height/2;this.drawW=0.8*this.width/2;this.drawH=0.8*this.height/2;this.gradientWidth=2*this.drawW;this.drawW>this.drawH&&(this.gradientWidth=2*this.drawH);this.lineWidth=Math.ceil(0.03*this.gradientWidth);1>=this.lineWidth&&(this.lineWidth=1)},animate:function(){this.drawRound=this.ellipseAnime.animation(this,400)},stopAnimate:function(){this.timer&&
(clearTimeout(this.timer),this.time=null);this.drawRound&&this.drawRound.stop();this.scaleRound&&this.scaleRound.stop()},ellipseAnime:function(b,c){var d=b/c,f=d;this.clearCvs();this.ctx.lineJoin="round";this.ctx.lineWidth=this.lineWidth;0.5>d?(f=1-2*d,d=1-d):f=2*d-1;this.ctx.strokeStyle=this.color.rgba(f);this.ellipse(this.ctx,this.x,this.y,this.drawW*d,this.drawH*d,0,2*Math.PI,!0);b==c&&(this.scaleRound=this.scaleRoundAnimate.animation(this,400))},scaleRoundAnimate:function(b,c){var d=b/c;this.clearCvs();
this.ctx.strokeStyle=this.color.toString();this.ellipse(this.ctx,this.x,this.y,this.drawW,this.drawH,0,2*Math.PI,!0);this.ctx.save();this.ctx.strokeStyle=this.color.rgba(1-d/3*2);this.ctx.lineWidth=1>this.lineWidth/2?1:this.lineWidth/2;this.ellipse(this.ctx,this.x,this.y,this.drawW+0.3*this.drawW*d,this.drawH+0.3*this.drawH*d,0,2*Math.PI,!0);this.ellipse(this.ctx,this.x,this.y,this.drawW+0.25*this.drawW*d,this.drawH+0.25*this.drawH*d,0,2*Math.PI,!0);this.ctx.restore();b==c&&(this.clearCvs(),this.ellipse(this.ctx,
this.x,this.y,this.drawW,this.drawH,0,2*Math.PI,!0),this.timer=setTimeout(function(){this.drawRound=this.ellipseAnime.animation(this,400)}.bind(this),1E3))}}).extend("HighLightHtml");
Class("PushSquare",{Package:"PageItem.HighLight",create:function(b,c){this._super(b,c)},initConfig:function(){this.animateCase=1;this.color=Color("#FF6600");this.gradientWidth=this.width;this.height=this.lineWidth&&(this.lineWidth=1);this.x=0.14*this.width;this.y=0.14*this.height;this.drawW=0.72*this.width;this.drawH=0.72*this.height},animate:function(){this.line=this.lineAnimate.animation(this,400)},
stopAnimate:function(){this.line&&this.line.stop();this.timer&&(clearTimeout(this.timer),this.time=null);this.animateCase=1},drawDashRect:function(b,c){this.ctx.save();this.ctx.beginPath();this.ctx.strokeStyle=this.color.rgba(b);this.ctx.lineJoin="round";this.ctx.lineWidth=this.lineWidth;c&&this.ctx.setLineDash([this.drawW/14]);this.ctx.strokeRect(this.x+this.drawW/2-this.drawW/2*b,this.y+this.drawH/2-this.drawH/2*b,this.drawW*b,this.drawH*b);this.ctx.closePath();this.ctx.restore()},drawHalfRect:function(b,
c){if(0!=c%2){var d=this.x*b;this.ctx.moveTo(d+this.drawW/4,this.y);this.ctx.lineTo(d,this.y);this.ctx.lineTo(d,this.y+this.drawH);this.ctx.lineTo(d+this.drawW/4,this.y+this.drawH);this.ctx.stroke();d=this.width-this.x*b;this.ctx.moveTo(d-this.drawW/4,this.y);this.ctx.lineTo(d,this.y);this.ctx.lineTo(d,this.y+this.drawH);this.ctx.lineTo(d-this.drawW/4,this.y+this.drawH)}else d=this.y*b,this.ctx.moveTo(this.x,d+this.drawH/4),this.ctx.lineTo(this.x,d),this.ctx.lineTo(this.x+this.drawW,d),this.ctx.lineTo(this.x+
this.drawW,d+this.drawH/4),this.ctx.stroke(),d=this.height-this.y*b,this.ctx.moveTo(this.x,d-this.drawH/4),this.ctx.lineTo(this.x,d),this.ctx.lineTo(this.x+this.drawW,d),this.ctx.lineTo(this.x+this.drawW,d-this.drawH/4);this.ctx.stroke()},lineAnimate:function(b,c){var d=b/c;this.ctx.clearRect(0,0,this.width,this.height);this.ctx.beginPath();this.ctx.strokeStyle=this.color.rgba(d);this.ctx.lineWidth=this.lineWidth;4==this.animateCase&&this.drawDashRect(d,!0);this.drawHalfRect(d,this.animateCase);b==
c&&(this.animateCase+=1,5<=this.animateCase?(this.drawDashRect(1),this.animateCase=1,this.timer=setTimeout(function(){this.line=this.lineAnimate.animation(this,400)}.bind(this),1E3)):this.line=this.lineAnimate.animation(this,400))}}).extend("HighLightHtml");
Class("RedBoxBlink",{Package:"PageItem.HighLight",create:function(b,c){this._super(b,c)},initConfig:function(){this.gradientWidth=this.width;this.overSize=this.height-this.width;this.heightthis.lineWidth&&(this.lineWidth=1);this.x=0.14*this.width;this.y=0.14*this.height;this.drawW=0.72*this.width;this.drawH=0.72*this.height},animate:function(){this.rect=this.rectAnime.animation(this,
400)},stopAnimate:function(){this.timer&&clearTimeout(this.timer);this.rect&&this.rect.stop();this.fresh&&this.fresh.stop();this.freshTime=this.time=1},drawRect:function(b,c){this.ctx.beginPath();this.ctx.lineJoin="round";this.ctx.lineWidth=this.lineWidth;this.ctx.moveTo(b.x,b.y);this.ctx.lineTo(c.x,c.y);this.ctx.stroke();this.ctx.closePath()},rectAnime:function(b,c){this.clearCvs();var d=1-b/c;this.ctx.lineWidth=this.lineWidth;this.ctx.strokeStyle=this.color.toString();1=400/this.time?250:400/this.time,4<=this.time?(this.time=0,this.timer=setTimeout(function(){this.rect=this.rectAnime.animation(this,400)}.bind(this),800)):this.rect=this.rectAnime.animation(this,d)))}}).extend("GreenBoxStop");
Class("Youtube",{Package:"PageItem",create:function(b,c,d,f){this._super(b,c,d,f);null!=this.config.id&&(this.firstTime=!0,this.animateConfig(),this.width=Number(this.config.width)*this.pageWidth,this.height=Number(this.config.height)*this.pageHeight,this.x=this.config.x*this.pageWidth,this.y=this.config.y*this.pageHeight,this.sVideoId=this.config.id,-1"),"youtube"),this.config.rotation&&this.setRotation(this.youtubeFrame.$media,this.config.rotation),this.parent.append(this.youtubeFrame.$media))},setTransOrigin:function(b,c){this.youtubeFrame.setCss({"-webkit-transform-origin":b+"px "+c+"px","-o-transform-origin":b+"px "+c+"px","-moz-transform-origin":b+"px "+c+"px","-ms-transform-origin":b+"px "+c+"px","transform-origin":b+"px "+c+"px"})},parseConfig:function(b){return{width:b.location.width,height:b.location.height,
x:b.location.x,y:b.location.y,alpha:b.alpha,id:b.videoId?b.videoId:b.videoID,moviePlayTriggerEvt:b.moviePlayTriggerEvt,playerParameters:b.playerParameters,movieStopTriggerEvt:b.movieStopTriggerEvt,rotation:b.location.rotation,animation:b.animation}},initCss:function(){this.youtubeFrame.setCss({width:this.width+"px",height:this.height+"px",top:this.y+"px",left:this.x+"px"})},onResize:function(b,c){this.pageWidth=b;this.pageHeight=c;this.width=this.config.width*this.pageWidth;this.height=this.config.height*
this.pageHeight;this.youtubeFrame.setCss({width:this.width+"px",height:this.height+"px"});this.setPosition()},setPosition:function(){this.x=this.config.x*this.pageWidth;this.y=this.config.y*this.pageHeight;this.youtubeFrame.setCss({top:this.y+"px",left:this.x+"px"})},getPlayEvt:function(){return this.config.moviePlayTriggerEvt},getStopEvt:function(){return this.config.movieStopTriggerEvt},pauseVideo:function(){this.youtubeFrame&&(BookEvent.trigger("playMedia",["pauseYoutube",BookInfo.getCurrentPageIndex(),
this.prefix+"://www.youtube.com/embed/"+this.sVideoId,"Youtube"]),this.youtubeFrame.pause())},playVideo:function(){this.youtubeFrame&&(BookEvent.trigger("playMedia",["playYoutube",BookInfo.getCurrentPageIndex(),this.prefix+"://www.youtube.com/embed/"+this.sVideoId,"Youtube"]),this.firstTime?(this.youtubeFrame.$media.on("load",function(){this.youtubeFrame.play()}.bind(this)),this.firstTime=!1):this.youtubeFrame.play())},hide:function(){this.youtubeFrame&&(this.youtubeFrame.setCss({width:"0px",height:"0px"}),
this.youtubeFrame.setCss({display:"none"}))},show:function(){this.youtubeFrame&&(this.youtubeFrame.setCss({width:this.width+"px",height:this.height+"px"}),this.youtubeFrame.setCss({display:"block"}))},showAnimate:function(){if(this.config.animation&&this.config.animation.name){var b=getAnimationEnd(),c=this.config.animation;this.youtubeFrame.setCss({animation:c.name+" "+c.duration+"s "+c.timeFun+" "+c.delay+"s "+c.count+" "+c.direction});this.youtubeFrame.$media.one(b,function(){this.youtubeFrame.setCss({animation:""})}.bind(this))}}}).extend("Item");
Class("Video",{Package:"PageItem",create:function(b,c,d,f,g){this.config=this.parseConfig(c);this.animateConfig();this.parent=b;this.pageWidth=d;this.pageHeight=f;this.width=this.config.width*this.pageWidth;this.height=this.config.height*this.pageHeight;this.x=this.config.x*this.pageWidth;this.y=this.config.y*this.pageHeight;this.playCount=0;this.content=$("
");this.content.css({position:"absolute",overflow:"hidden",left:this.x+"px",top:this.y+"px",width:this.width+"px",
height:this.height+"px",opacity:this.config.alpha,"background-color":"black"});this.setRotation(this.content,this.config.rotation);this.parent.append(this.content);"string"==typeof this.config.previewSrc&&""!=this.config.previewSrc&&null!=this.config.previewSrc&&void 0!=this.config.previewSrc&&(this.config.previewSrc=this.fixRelativePath(this.config.previewSrc),bookConfig.useTheAliCloudChart&&(this.config.previewSrc=this.getOssUrl(this.config.previewSrc,this.width,this.height,"fixed")));if("string"==
typeof this.config.src){if(b=this.config.src.match(/(.mp4|.flv|.f4v)\b/),null==this.config.src||null==b)return}else if(this.config.src=={})return;this.config.src=this.fixRelativePath(this.config.src);this.video=null;this.video=new Media($(' '),"video");this.video.setCss({position:"absolute","z-index":1,left:"0px","object-fit":"fill",top:"0px",width:"100%",
height:"100%"});this.config.previewSrc&&(this.video.$media.attr("poster",this.config.previewSrc),this.video.$media.css({"object-fit":"fill"}));this.content.append(this.video.$media);void 0!=this.video.$media[0].play&&(this.videoSkin=this.content.addVideoSkin(g,this.video),this.video.$media.removeAttr("controls"));this.content.bind(_event._down,function(b){b.stopPropagation()});this.video.$media.bind(_event._down,function(b){b.stopPropagation()});this.video.$media.keydown(function(b){b.preventDefault();
b.stopPropagation()}.bind(this));this.video.$media.keyup(function(b){b.preventDefault();b.stopPropagation()}.bind(this));this.video.$media.on("loadstart",function(){this.resizeCss()}.bind(this));parseBool(this.config.reflection)&&this.imageReflection(this.content,this.width,this.height);parseBool(this.config.shadow.hasDropShadow)&&this.addShadow(this.content);this.video.$media.bind("click mousedown mouseup DOMMouseScroll mousewheel",function(b){b.stopPropagation()}.bind(this));this.initLoopEvent();
this.config.prompt&&this.config.promptTime&&this.video.$media.bind("loadedmetadata",function(b){b=[];for(var c=this.config.prompt.split("|"),d=this.config.promptTime.split("|"),f=0;fthis.config.H5PlaybackNumber&&this.video.$media.attr("loop","loop");0this.config.H5PlaybackNumber&&(this.playCount=0)}.bind(this))},showAnimate:function(){if(this.config.animation&&this.config.animation.name){var b=getAnimationEnd(),c=this.config.animation;this.content.css({animation:c.name+" "+c.duration+"s "+c.timeFun+" "+c.delay+"s "+c.count+" "+c.direction});this.content.one(b,function(){this.content.css({animation:""})}.bind(this))}},
parseConfig:function(b){var c={width:b.location.width,height:b.location.height,rotation:b.location.rotation,x:b.location.x,y:b.location.y,alpha:b.alpha,shadow:b.shadow,reflection:b.location.reflection,reflectionType:b.location.reflectionType,reflectionAlpha:b.location.reflectionAlpha,previewSrc:b.previewUrl,prompt:b.prompt,promptTime:b.promptTime,moviePlayTriggerEvt:b.moviePlayTriggerEvt?b.moviePlayTriggerEvt:b.PlayTriggerEvt,movieStopTriggerEvt:b.movieStopTriggerEvt?b.movieStopTriggerEvt:b.StopTriggerEvt,
replayWhenPlayEventTrigger:b.replayWhenPlayEventTrigger,animation:b.animation};b.H5PlaybackNumber&&(c.H5PlaybackNumber=parseInt(b.H5PlaybackNumber));b.H5Replay&&(c.H5Replay=parseBool(b.H5Replay));b.componentData&&(c.moviePlayTriggerEvt=b.componentData.playEvt,c.movieStopTriggerEvt=b.componentData.stopEvt,b.componentData.previewURL&&(c.previewSrc=b.componentData.previewURL),b.componentData.imgURL&&(c.previewSrc=b.componentData.imgURL));b.imgIcon&&(c.previewSrc=b.imgIcon);b.previewURL&&(c.previewSrc=
b.previewURL);void 0!=b.videoURL&&(c.src=b.videoURL);void 0!=b.url&&(c.src=b.url);b.componentData&&(c.src=b.componentData.videoURL);parseBool(b.shadow.hasDropShadow)&&(c.hasShadow=!0);return c},onResize:function(b,c){this.pageWidth=b;this.pageHeight=c;this.width=this.config.width*this.pageWidth;this.height=this.config.height*this.pageHeight;this.resizeCss()},resizeCss:function(){this.content.css({width:this.width+"px",height:this.height+"px"});this.content.css({"background-size":this.width+"px "+
this.height+"px"});if(this.videoSkin)this.videoSkin.onResize();this.setPosition()},setPosition:function(){this.x=this.pageWidth*this.config.x;this.y=this.pageHeight*this.config.y;this.content.css({left:this.x+"px",top:this.y+"px"})},playVideo:function(){if(null!=this.video)try{this.video.play(),this.videoSkin.play()}catch(b){}},stopVideo:function(){if(null!=this.video)try{this.video.pause(),this.videoSkin.stop()}catch(b){}},pauseVideo:function(){if(null!=this.video)try{this.video.pause(),this.videoSkin.pause()}catch(b){}},
backTime:function(){this.playCount=0;if(this.video.$media[0])if(isIE())try{this.video.$media[0].currentTime=0}catch(b){}else this.video.$media[0].currentTime=0},isReplay:function(){return this.config.H5Replay},getPlayEvt:function(){return this.config.moviePlayTriggerEvt},getStopEvt:function(){return this.config.movieStopTriggerEvt},getPlayStatuEnded:function(){return this.video.$media[0].ended},getReplayWhenPlayEvent:function(){return this.config.replayWhenPlayEventTrigger},getTotalTime:function(){return this.video.$media[0].duration},
getCurrentTime:function(){return this.video.$media[0].currentTime},setCurrentTime:function(b){this.video.$media[0].currentTime=b}}).extend(PageItem.Item);
Class("Vimeo",{Package:"PageItem",create:function(b,c,d,f,g){this.config=this.parseConfig(c);this.vimeoFrame=null;null!=this.config.id&&(this.animateConfig(),this.pageWidth=d,this.pageHeight=f,this.width=this.config.width*this.pageWidth,this.height=this.config.height*this.pageHeight,this.x=this.config.x*this.pageWidth,this.y=this.config.y*this.pageHeight,this.config.id+="",c=this.config.id.lastIndexOf("/"),this.fixstr=this.config.id.substring(c+1),this.prefix="https"==(window.location.href?window.location.href.toLowerCase():
"http:").substring(0,5)?"https":"http",c=$(""),this.vimeoFrame=new Media(c,"vimeo",this.getPlayEvt()),b.append(this.vimeoFrame.$media))},parseConfig:function(b){return{width:b.location.width,
height:b.location.height,x:b.location.x,y:b.location.y,alpha:b.alpha,id:b.videoID?b.videoID:b.videoId,moviePlayTriggerEvt:b.moviePlayTriggerEvt,movieStopTriggerEvt:b.movieStopTriggerEvt,playerParameters:b.playerParameters,animation:b.animation}},onResize:function(b,c){this.pageWidth=b;this.pageHeight=c;this.vimeoFrame.setCss({width:this.pageWidth*this.config.width+"px",height:this.pageHeight*this.config.height+"px"});this.setPosition(this.config.x*this.pageWidth,this.config.y*this.pageHeight)},playVideo:function(){this.vimeoFrame&&
(BookEvent.trigger("playMedia",["play",BookInfo.getCurrentPageIndex(),this.prefix+"://player.vimeo.com/video/"+this.fixstr,"vimeo",0]),this.vimeoFrame.play())},pauseVideo:function(){this.vimeoFrame&&(BookEvent.trigger("playMedia",["pause",BookInfo.getCurrentPageIndex(),this.prefix+"://player.vimeo.com/video/"+this.fixstr,"vimeo",0]),this.vimeoFrame.pause())},setPosition:function(b,c){this.vimeoFrame.setCss({top:c+"px",left:b+"px"})},getPlayEvt:function(){return this.config.moviePlayTriggerEvt},getStopEvt:function(){return this.config.movieStopTriggerEvt},
showAnimate:function(){if(this.config.animation&&this.config.animation.name){var b=getAnimationEnd(),c=this.config.animation;this.vimeoFrame.setCss({animation:c.name+" "+c.duration+"s "+c.timeFun+" "+c.delay+"s "+c.count+" "+c.direction});this.vimeoFrame.$media.one(b,function(){this.vimeoFrame.setCss({animation:""})}.bind(this))}},hide:function(){this.vimeoFrame.setCss({display:"none"})},show:function(){this.vimeoFrame.setCss({display:"block"})}}).extend("Item");
Class("PopUpVimeo",{Package:"PageItem",create:function(b,c,d,f,g){this.config=this.parseConfig(c);this.type=g;this.parent=b;this.vimeoFrame=null;if(null!=this.config.id){this.pageWidth=d;this.pageHeight=f;this.width=this.config.width*this.pageWidth;this.height=this.config.height*this.pageHeight;this.x=this.config.x*this.pageWidth;this.y=this.config.y*this.pageHeight;this.vimeoDiv=$("
");this.vimeoDiv.css({width:this.width+"px",height:this.height+"px",left:this.x+"px",
top:this.y+"px",opacity:this.config.alpha,position:"absolute",cursor:"pointer","background-color":"rgba(0,0,0,0.9)"});this.url=this.config.url;this.url||(this.url=phoneBaseURL+g+".png");bookConfig.isFlipPdf&&(this.config.url=this.fixRelativePath(this.config.url));"vimeo"==g||"youtube"==g?(this.url=phoneBaseURL+g+"Logo.png",this.vimeoImage=$(" ")):
this.vimeoImage=$(" ");this.url&&"null"!=this.url||this.vimeoImage.css({display:"none"});if(isPhone()||isPad())b=Math.min(48,0.36*this.width),c=Math.min(48,0.36*this.height),b=Math.min(b,c),this.vimeoDiv.css({background:"#333333",border:"1px solid #bbb"}),c="play","vimeo"==g&&(c="vimeoplay"),"youtube"==g&&(c="youtubeplay"),c=this.fixRelativePath(phoneBaseURL+c+".png"),this.playImg=
$(" "),this.vimeoDiv.append(this.playImg);this.parent.append(this.vimeoDiv);this.vimeoDiv.append(this.vimeoImage);this.vimeoDiv.onTap(function(b){this.popupVideo=new PopUpPhoneVideo(this.config,g);this.popupVideo.background.show()}.bind(this))}},parseConfig:function(b){return{width:b.location.width,height:b.location.height,x:b.location.x,y:b.location.y,alpha:b.alpha,
id:b.videoId?b.videoId:b.videoID,moviePlayTriggerEvt:b.moviePlayTriggerEvt,movieStopTriggerEvt:b.movieStopTriggerEvt,playerParameters:b.playerParameters,url:b.url,autoPlay:b.autoPlay}},destroy:function(){this.popupVideo&&this.popupVideo.destroy();this.vimeoDiv.empty();this.vimeoDiv.remove()},onResize:function(b,c){this.pageWidth=b;this.pageHeight=c;this.width=this.config.width*this.pageWidth;this.height=this.config.height*this.pageHeight;if(this.popupVideo)this.popupVideo.onResize(this.pageWidth,
this.pageHeight);this.url&&"null"!=this.url&&this.vimeoImage.css({width:this.width+"px",height:this.height+"px"});this.vimeoDiv&&(this.vimeoDiv.css({width:this.pageWidth*this.config.width+"px",height:this.pageHeight*this.config.height+"px"}),this.setPosition(this.config.x*this.pageWidth,this.config.y*this.pageHeight))},setPosition:function(b,c){this.vimeoDiv.css({top:c+"px",left:b+"px"})}}).extend("Item");
var PopUpVideo=Class({create:function(b,c){this.config=$.extend({id:null,alpha:1},b);this.config.id+="";this.type=c;this.videoWidth=this.config.windowWidth||480;this.videoHeight=this.config.windowHeight||320;this.background=$("");this.vimeoBac=$("
");this.vimeoBorder=$("
");this.title=$("
");this.config.caption&&this.title.html(this.config.caption);"right"==this.config.languageLayout&&this.title.css({"text-align":"right",direction:"rtl"});
this.initVideo(c);tmpContainer.append(this.background);this.background.append(this.vimeoBac);this.vimeoBac.append(this.vimeoBorder);this.vimeoBorder.append(this.vimeoFrame.$media);this.closeButton=$(" ");this.vimeoBorder.append(this.closeButton).append(this.title);this.initStyle();this.initEvents();this.onResize();this.vimeoFrame.play();this.resizeTimer=this.onResize.interval(this,500);this.visible=!0;BookEvent.trigger("playMedia",["play",BookInfo.getCurrentPageIndex(),
this.getURL(c),c,0])},initVideo:function(b){var c="https"==(window.location.href?window.location.href.toLowerCase():"http:").substring(0,5)?"https":"http";if("vimeo"==b){var d=this.config.id.lastIndexOf("/"),d=this.config.id.substring(d+1),f="";"true"==this.config.autoPlay&&(f="?autoplay=1&autopause=0");d=$("");
this.vimeoFrame=new Media(d,"vimeo")}"youtube"==b&&(d=this.config.id,-1"),this.vimeoFrame=new Media(d,"youtube"));"dailymotion"==
b&&(d=$(""),this.vimeoFrame=new Media(d,"dailymotion"));"wistia"==b&&(d=$(""),this.vimeoFrame=new Media(d,"wistia"));"youku"==b&&(d=$(""),this.vimeoFrame=new Media(d,"youku"));"qq"==b&&(d=$(""),this.vimeoFrame=new Media(d,"qq"))},getURL:function(b){var c=this.config.id,d="https"==(window.location.href?window.location.href.toLowerCase():"http:").substring(0,5)?"https":"http",f="";if("vimeo"==b)var g=c.lastIndexOf("/"),c=c.substring(g+1);"youtube"==b&&-1d?c=b*d:b=c/d):(b=Math.min(d,b),c=Math.min(f,c));this.vimeoBorder.css({width:b+"px",height:c+"px"});c-=37;this.vimeoFrame&&(this.vimeoFrame.$media.attr("width",b-10+"px"),this.vimeoFrame.$media.attr("height",c+"px"))}},getPlayEvt:function(){return this.config.moviePlayTriggerEvt},getStopEvt:function(){return this.config.movieStopTriggerEvt}}),PopUpPhoneVideo=Class({create:function(b,c){this.config=$.extend({id:null,
alpha:1},b);this.config.id+="";this.type=c;this.initVideoSize();this.staticWidth=this.videoWidth;this.staticHeight=this.videoHeight;this.background=$("");this.vimeoBac=$("
");this.vimeoBorder=$("
");"right"==this.config.languageLayout&&this.title.css({"text-align":"right",direction:"rtl"});this.initVideo(c);tmpContainer.append(this.background);this.background.append(this.vimeoBac);this.vimeoBac.append(this.vimeoBorder);this.vimeoBorder.append(this.vimeoFrame.$media);
this.closeButton=$(" ");this.background.append(this.closeButton);this.initStyle();this.initEvents();this.onResize();this.vimeoFrame.play();this.resizeTimer=this.onResize.interval(this,500);this.visible=!0;BookEvent.trigger("playMedia",["play",BookInfo.getCurrentPageIndex(),this.getURL(c),c,0])},initVideo:function(b){var c="https"==(window.location.href?window.location.href.toLowerCase():"http:").substring(0,5)?"https":"http";if("vimeo"==b){var d=this.config.id.lastIndexOf("/"),
d=this.config.id.substring(d+1),f="";"true"==this.config.autoPlay&&(f="?autoplay=1&autopause=0");d=$("");this.vimeoFrame=new Media(d,"vimeo")}"youtube"==b&&(d=this.config.id,-1"),this.vimeoFrame=new Media(d,"youtube"));"dailymotion"==b&&(d=$(""),this.vimeoFrame=new Media(d,"dailymotion"));"wistia"==b&&(d=$(""),this.vimeoFrame=new Media(d,"wistia"));"youku"==b&&
(d=$(""),this.vimeoFrame=new Media(d,"youku"));"qq"==b&&(d=$(""),this.vimeoFrame=new Media(d,"qq"))},getURL:function(b){var c=this.config.id,d="https"==(window.location.href?window.location.href.toLowerCase():"http:").substring(0,5)?"https":"http",f="";if("vimeo"==b)var g=c.lastIndexOf("/"),c=c.substring(g+1);"youtube"==b&&-1windowHeight?(this.videoHeight=windowHeight,this.videoWidth=16*this.videoHeight/9,this.videoWidth=Math.min(this.videoWidth,windowWidth)):(this.videoWidth=windowWidth,this.videoHeight=9*this.videoWidth/16,this.videoHeight=Math.min(this.videoHeight,windowHeight))},onResize:function(){if(this.windowWidth!=windowWidth||this.windowHeight!=windowHeight){this.initVideoSize();var b=this.videoWidth/this.staticWidth;this.windowWidth=
windowWidth;this.windowHeight=windowHeight;"youku"!=this.type?(this.vimeoBorder.css({width:this.videoWidth+"px",height:this.videoHeight+"px"}),this.vimeoFrame&&(this.vimeoFrame.$media.attr("width","100%"),this.vimeoFrame.$media.attr("height",this.videoHeight+"px"))):this.staticWidth>this.staticHeight&&1>b?this.vimeoFrame.$media.css({transform:"translate(-50%,-50%) scale("+b+")"}):this.vimeoFrame.$media.css({transform:"translate(-50%,-50%)"})}},getPlayEvt:function(){return this.config.moviePlayTriggerEvt},
getStopEvt:function(){return this.config.movieStopTriggerEvt}}).extend("PopUpVideo");
Class("HtmlVideo",{Package:"PageItem",create:function(b,c,d,f){this._super(b,c,d,f);this.animateConfig();this.container=$("
");this.initVideoFrame();this.config.rotation&&this.setRotation(this.container,this.config.rotation);this.parent.append(this.container);this.initCss();this.setPosition()},initVideoFrame:function(){if(this.config.generalCode){this.iframeSrc=this.config.generalCode;if(this.config.generalCode.startsWith("www")){var b="http://"+this.config.generalCode;
try{$.ajax({url:b,type:"GET",dataType:"jsonp",timeout:3E3,complete:function(c){200!=c.status&&(b="https://"+this.config.generalCode)}})}catch(c){}this.config.generalCode=b}if(this.config.generalCode.startsWith("http")||this.config.generalCode.startsWith("https")||this.config.generalCode.startsWith("//"))this.videoFrame=$("");
else if(/^( ")},addItem:function(){for(var b=this.cells.length,c=0;c ");this.close.click(this.hide.bind(this));this.initSwiper()},initSwiper:function(){this.thumbnailSwiper=$("
");this.thumbnailSwiperList=$("
");this.progress=$("
");
this.progressBar=$("
");this.refreshSwiper(this.thumbnailSwiperList);this.thumbnailSwiper.append(this.thumbnailSwiperList);this.thumbnailSwiper.append(this.progress);this.progress.append(this.progressBar)},initEvent:function(){this.stage.bind("mousedown touchstart",function(b){b.stopPropagation()});if(this.leftBtn)this.leftBtn.onTap(function(){this.stage.move(-170)}.bind(this));if(this.rightBtn)this.rightBtn.onTap(function(){this.stage.move(170)}.bind(this));rightToLeft?
this.thumbnailSwiper.scroll({},Direction.right,"win10"):this.thumbnailSwiper.scroll({},Direction.left,"win10")},onResize:function(){if(this.thumbnailSwiperList.width()");this.favicon&&(bookConfig.RightToLeft?this.title.append(this.favicon):this.title.prepend(this.favicon));this.stage.append(this.close);this.stage.append(this.thumbnailSwiper);this.parent.append(this.stage)}}).extend(ThumbnailFrame);var toolbar_icons={First:"iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHB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eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4ceoHwEGADezNUZr3+GBAAAAAElFTkSuQmCC"};Class("ButtonQueue",{create:function(b){this.leftBar=b.leftBar;this.pageBar=b.pageBar;this.rightBar=b.rightBar;this.edtNumber=b.edtNumber;this.extended=b.extended;this.buttonWidth=b.buttonWidth;this.buttons=b.buttons.clone();this.buttons.each(function(b){b.freedom();b.$button.removeClass("left");b.$button.removeClass("right");b.hint=!0});this.pickButtons()},pickButtons:function(){this.btnFirst=this.buttons.find("first").get(0);this.btnPrevious=this.buttons.find("previous").get(0);this.btnNext=this.buttons.find("next").get(0);
this.btnLast=this.buttons.find("last").get(0);this.buttons.remove(this.btnFirst);this.buttons.remove(this.btnPrevious);this.buttons.remove(this.btnNext);this.buttons.remove(this.btnLast);this.pageButtonCount=4;bookConfig.enablePageBack&&(this.btnBackward=this.buttons.find("backward").get(0),this.btnForward=this.buttons.find("forward").get(0),this.buttons.remove(this.btnBackward),this.buttons.remove(this.btnForward),this.pageButtonCount=6);this.buttonCount=this.buttons.length},sort:virtual_function});
Class("PCButtonQueue",{sort:function(){for(var b=2*Math.floor(this.leftBar.width/this.buttonWidth),b=Number.between(b,0,this.buttonCount),c=b/2,d=[],f=0;f"),this.append(g));g.css({position:"absolute",bottom:"0px",width:this.width()+"px",height:"2px","background-color":c,"pointer-events":"none",
display:"none"});"absolute"==this.css("position")&&g.css("left","0px");this.bind("mouseenter",d.bind(this));this.bind("mouseleave",f.bind(this));this.bind("blur",f.bind(this));this.bind("mousedown",function(){this.css({"background-color":"rgba(255,255,255,0.3)"});g.css({display:"block"});this.isActive=!0}.bind(this));this.bind("mouseup",d.bind(this));return this};b.fn.asMetroMenu=function(c){function d(){this.css({"background-color":"rgba(255,255,255,0.2)"});g.css({display:"block"});this.isActive=
!0}function f(){this.css({"background-color":"transparent"});g.css({display:"none"});this.isActive=!1}this.children("div.bottomBorder").remove();var g=this.children("div.leftBorder");g.length||(g=b("
"),this.append(g));g.css({position:"absolute",top:"0px",left:"0px",width:"2px",height:this.height()+"px","background-color":c,"pointer-events":"none",display:"none"});this.bind("mouseenter",d.bind(this));this.bind("mouseleave",f.bind(this));this.bind("blur",f.bind(this));
this.bind("mousedown",function(){this.css({"background-color":"rgba(255,255,255,0.3)"});g.css({display:"block"});this.isActive=!0}.bind(this));this.bind("mouseup",d.bind(this));return this}})(jQuery);
Class("PCToolbar",{BUTTON_WIDTH:45,initBar:function(){VolumeControlBar.config={color:this.color.toString(),iconColor:Color(bookConfig.iconColor).toString(),direction:VolumeControlBar.TOP};this.topBar=$('
');this.logoBar=$("
");this.searchBar=$("
");this.bottomBar=$("
");this.leftButtonBar=$("
");this.rightButtonBar=
$("
");this.pageBar=$("
");this.edtPageNumber=$("
");this.parent.append(this.topBar);this.parent.append(this.bottomBar);this.topBar.append(this.logoBar);this.topBar.append(this.searchBar);this.bottomBar.append(this.leftButtonBar);this.bottomBar.append(this.pageBar);this.bottomBar.append(this.rightButtonBar);
this.pageBar.append(this.edtPageNumber);this.initStyle();this.initPageNumber();this.initMoreButton();this.initSearchBar()},initStyle:function(){this.topBar.css({"background-color":this.color.rgba(this.topBarAlpha)});this.bottomBar.css({"background-color":this.color.rgba(this.bottomBarAlpha)});this.searchBackgroundColor=Color(this.color.add(96));this.searchButtonColor=Color(this.color.add(32));this.searchFontColor=Color(this.searchBackgroundColor.add(32));this.isDifferMinThan(this.searchBackgroundColor,
this.searchFontColor,16)&&(this.searchFontColor=Color("#CCCCCC"))},isDifferMinThan:function(b,c,d){b=Color(b);c=Color(c);b=b.difference(c);return b.rc&&(d=10),1E3>c&&(d=7),100>c&&(d=4),10>c&&(d=3));b.attr("size",d);this.edtPageWidth=this.edtPageNumber.width()},
initSearchBar:function(){this.btnPreSearch=this.pickButton("search");this.btnPreSearch||(this.btnPreSearch=new SearchButton,this.setButtonTitle(this.btnPreSearch));this.btnPreSearch.onClick=this.onSearchButtonClick.bind(this);this.edtPreSearch=$("
");this.isRightToLeft()?(this.edtPreSearch.find("input").attr("dir","rtl"),this.btnPreSearch.$button.addClass("left"),
this.edtPreSearch.css({"float":"right"})):this.btnPreSearch.$button.addClass("right");this.searchBar.append(this.edtPreSearch);this.btnPreSearch.addTo(this.searchBar);this.btnPreSearch.hint=!1;this.btnPreSearch.$button.asButton();this.btnPreSearch.changeColor(this.searchButtonColor.toString());this.searchBar.css({"background-color":this.searchBackgroundColor.toString()});this.edtPreSearch.css({"background-color":this.searchBackgroundColor.toString()});this.edtPreSearch.find("input").css({"background-color":this.searchBackgroundColor.toString(),
color:this.searchFontColor.toString()});bookConfig.SearchButtonVisible||this.searchBar.css({display:"none"})},initPageButton:function(){rightToLeft?(this.leftButton=new NextPageButton,this.rightButton=new PreviousPageButton):(this.leftButton=new PreviousPageButton,this.rightButton=new NextPageButton);this.leftButton.setSrc("previous_normal");this.rightButton.setSrc("next_normal");this.leftButton.$button.attr("class","floatPageButton");this.rightButton.$button.attr("class","floatPageButton");this.leftButton.$button.asButton().mouseEnterLight(this.color.toString());
this.rightButton.$button.asButton().mouseEnterLight(this.color.toString());this.leftButton.addTo(this.parent);this.rightButton.addTo(this.parent)},initMoreButton:function(){this.removeButton("more");this.btnMore.hint=!1;this.btnMore.$button.addClass("right")},setButtonTitle:function(b){if("WeChatShareButton"==b.getClassName())global.WeChatShareImg=new WeChatShare({parent:this.parent,color:"#fff",textColor:bookConfig.toolbarColor,margin:10,padding:10,arrowHeight:12,arrowWidth:12});else if("TelephoneNumberButton"==
b.getClassName())global.PcTelephoneNumberFrame=new PcTelephoneNumberBubble({parent:this.parent,color:this.color,textColor:b.fontColor,margin:2,padding:15,arrowHeight:8,arrowWidth:8});else{var c=new SolidArrowTextBubble({parent:this.parent,text:b.caption,color:this.color,textColor:b.fontColor});b.setTitle(c)}},initExtendedbar:function(){this.extendedBar=new PCExtendedBar(this.parent);global.moreBar=this.extendedBar},initEvents:function(){this._super();this.edtPreSearch.bind("keydown",function(b){13==
b.keyCode&&this.btnPreSearch.click()}.bind(this));var b=this.edtPreSearch.find("input");b.bind("focus",function(c){this.focus=!0;this.searchBar.css({"background-color":"white"});this.edtPreSearch.css({"background-color":"white"});b.css({"background-color":"white",color:"black"})}.bind(this));b.bind("blur",function(c){this.focus=!1;this.searchBar.css({"background-color":this.searchBackgroundColor.toString()});this.edtPreSearch.css({"background-color":this.searchBackgroundColor.toString()});b.css({"background-color":this.searchBackgroundColor.toString(),
color:this.searchFontColor.toString()})}.bind(this));this.searchBar.bind("mouseenter",function(){this.searchBar.css({"background-color":"white"});this.edtPreSearch.css({"background-color":"white"});b.css({"background-color":"white",color:"black"})}.bind(this));this.searchBar.bind("mouseleave",function(){this.focus||(this.searchBar.css({"background-color":this.searchBackgroundColor.toString()}),this.edtPreSearch.css({"background-color":this.searchBackgroundColor.toString()}),b.css({"background-color":this.searchBackgroundColor.toString(),
color:this.searchFontColor.toString()}))}.bind(this))},onSearchButtonClick:function(b){frmSearch.visible||frmSearch.show();b=getLanguage("btnSearch","Search");var c=this.edtPreSearch.find("input").val();c==b&&(c="");frmSearch.search(c)},showOrHideSearchBar:function(){var b=this.parent.width(),c=this.logoBar.width()+20,d=this.searchBar.width()+10;c+d+this.BUTTON_WIDTH>b?this.searchBar.css({display:"none"}):bookConfig.SearchButtonVisible?this.searchBar.css({display:"block"}):this.searchBar.css({display:"none"})},
onResize:function(b,c){if(bookConfig.ToolBarVisible){b=void 0==b?this.parent.width():parseInt(b);c=void 0==c?this.parent.height():parseInt(c);var d=this.logoBar.width()+20;this.searchBar.width();this.showOrHideSearchBar();d+this.BUTTON_WIDTH>b?this.logoBar.css({display:"none"}):this.logoBar.css({display:"block"});var d=bookConfig.enablePageBack?6:4,d=this.edtPageWidth+d*this.BUTTON_WIDTH+3*(d-3),f=(b-d)/2;this.pageBar.css({width:d+"px"});if(this.showPageButtons){var g=(c-160)/2;this.leftButton.$button.css({left:"0px",
top:g+"px"});this.rightButton.$button.css({right:"0px",top:g+"px"})}this.buttonBarWidth=f;this.pageBarWidth=d;this.resetButtonPosition()}},resetButtonPosition:function(){(new PCButtonQueue({buttons:this.buttons,buttonWidth:this.BUTTON_WIDTH,buttonTop:0,leftBar:{body:this.leftButtonBar,width:this.buttonBarWidth},rightBar:{body:this.rightButtonBar,width:this.pageBarWidth},pageBar:{body:this.pageBar,width:this.buttonBarWidth},edtNumber:{body:this.edtPageNumber,width:this.edtPageWidth,top:10,space:5},
extended:this.extendedBar.$bar})).sort();var b=this.buttonsInExtendedBar();this.extendedBar.resize(b);this.extendedBar.hide();0");this.rect=$("
");this.caption=$("");this.captionAfter=$("");this.itemContent.append(this.item);this.item.append(this.rect);this.item.append(this.caption);this.caption.after(this.captionAfter);this.initEvent()},initItem:function(b,
c){this.dockMenu=new DockMenu(this.dockMenuContent,b,c);this.initCaption(b,c)},addPrev:function(){var b=$("
");b.append("
");b.append(" ");b.click(function(){thumbnail.gotoItemByIndex(this.index-1);return!1}.bind(this));this.dockMenu.addObj(b,"before")},addNext:function(){var b=$("
");b.append("
");b.append(" ");b.click(function(){thumbnail.gotoItemByIndex(this.index+1);return!1}.bind(this));this.dockMenu.addObj(b,"after")},initCaption:function(b,c){var d=BookInfo.getThumbnailPages();b=1==d[b].length?d[b][0]:Math.min(d[b][0],d[b][1]);c=1==d[c].length?d[c][0]:Math.max(d[c][0],d[c][1]);this.fromIndex=b;this.toIndex=c;1