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){this.eventSource=b[0];this.origPicture=b[0].src;var d=this.origPicture.lastIndexOf("."),f=this.origPicture.substr(0,
d),d=this.origPicture.substring(d);this.pictureDown=f+"_down"+d;c()?(b.bind("touchstart",this.mouseOver.bind(this)),b.bind("touchend",this.mouseLeave.bind(this))):(b.bind("mouseenter",this.mouseOver.bind(this)),b.bind("mousedown",this.mouseDown.bind(this)),b.bind("mouseup",this.mouseUp.bind(this)),b.bind("mouseleave",this.mouseLeave.bind(this)),b.bind("blur",this.mouseLeave.bind(this)))};f.prototype.mouseOver=function(){this.eventSource.src=this.pictureDown};f.prototype.mouseDown=function(){b(this.eventSource).css("opacity",
0.8)};f.prototype.mouseUp=function(){b(this.eventSource).css("opacity",1)};f.prototype.mouseLeave=function(){this.eventSource.src=this.origPicture};b.fn.asImageButton=function(){new f(this);return this};var g=function(b){this.eventSource=b[0];this.origPicture=b[0].src;var d=this.origPicture.lastIndexOf("."),f=this.origPicture.substr(0,d),d=this.origPicture.substring(d);this.pictureDown=f+"_down"+d;c()?(b.bind("touchstart",this.mouseOver.bind(this)),b.bind("touchend",this.mouseUp.bind(this))):(b.bind("mouseenter",
this.mouseOver.bind(this)),b.bind("mousedown",this.mouseDown.bind(this)),b.bind("mouseup",this.mouseUp.bind(this)),b.bind("mouseleave",this.mouseUp.bind(this)))};bdor[10]="l";g.prototype.mouseOver=function(){this.eventSource.src=this.pictureDown};g.prototype.mouseDown=function(){this.eventSource.src=this.pictureDown};g.prototype.mouseUp=function(){var b=this;window.setTimeout(function(){b.eventSource.src=b.origPicture},100)};b.fn.asImageChangeButton=function(){new g(this);return this};var h=function(b){this.theButton=
b;this.eventSource=b[0];var c=this.theButton.css("top");this.iOrigTop=parseInt(c.replace("px",""));this.iJumpTop=this.iOrigTop-5;b.bind("mouseenter",this.MouseEnter.bind(this));b.bind("mouseleave",this.MouseLeave.bind(this))};h.prototype.MouseEnter=function(){this.theButton.animate({top:this.iJumpTop},50)};h.prototype.MouseLeave=function(){this.theButton.animate({top:this.iOrigTop},50)};b.fn.mouseEnterJump=function(){new h(this);return this};b.fn.mouseOverCursor=function(){new k(this);return this};
var k=function(b){b.bind("mouseover",function(){b.css({cursor:"pointer"})})},l=function(b){this.theButton=b;this.eventSource=b[0];var c=this.theButton.css("top");this.iOrigTop=parseInt(c.replace("px",""));c=this.theButton.css("left");this.iOrigLeft=parseInt(c.replace("px",""));this.iZoomTop=this.iOrigTop-3;this.iZoomLeft=this.iOrigLeft-1;b.bind("mouseenter",this.MouseEnter.bind(this));b.bind("mouseleave",this.MouseLeave.bind(this))};l.prototype.MouseDown=function(){this.theButton.css({left:this.iZoomLeft+
"px",top:this.iZoomTop+"px","-webkit-transform":"scale(1.1)","-moz-transform":"scale(1.1)",transform:"scale(1.1)","-ms-transform":"scale(1.1)","-o-transform":"scale(1.1)"})};l.prototype.MouseEnter=function(){this.theButton.css({left:this.iZoomLeft+"px",top:this.iZoomTop+"px","-webkit-transform":"scale(1.2)","-moz-transform":"scale(1.2)",transform:"scale(1.2)","-ms-transform":"scale(1.2)","-o-transform":"scale(1.2)"})};l.prototype.MouseLeave=function(){this.theButton.css({left:this.iOrigLeft+"px",
top:this.iOrigTop+"px","-webkit-transform":"scale(1)","-moz-transform":"scale(1)",transform:"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)"})};var m=function(b){this.theButton=b;this.eventSource=b[0];var c=this.theButton.css("top");this.iOrigTop=parseInt(c.replace("px",""));c=this.theButton.css("left");this.iOrigLeft=parseInt(c.replace("px",""));this.iZoomTop=this.iOrigTop-1;this.iZoomLeft=this.iOrigLeft-1;b.bind("mouseenter",this.MouseEnter.bind(this));b.bind("mouseleave",this.MouseLeave.bind(this))};
m.prototype.MouseEnter=function(){this.theButton.css({"-webkit-transform":"scale(1.1)","-moz-transform":"scale(1.1)",transform:"scale(1.1)","-ms-transform":"scale(1.1)","-o-transform":"scale(1.1)"})};m.prototype.MouseLeave=function(){this.theButton.css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)",transform:"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)"})};b.fn.mouseEnterZoom=function(){new m(this);return this};b.fn.mouseEnterUp=function(){new n(this);return this};var n=
function(b){this.theButton=b;this.eventSource=b[0];var c=this.theButton.css("bottom");this.iOrigTop=parseInt(c.replace("px",""));c=this.theButton.css("left");this.iOrigLeft=parseInt(c.replace("px",""));this.iZoomTop=this.iOrigTop-1;this.iZoomLeft=this.iOrigLeft-1;b.bind("mouseenter",this.MouseEnter.bind(this));b.bind("mouseleave",this.MouseLeave.bind(this))};n.prototype.MouseEnter=function(){this.theButton.css({bottom:this.iZoomTop+"px","-webkit-transform":"scale(1.1)","-moz-transform":"scale(1.1)",
transform:"scale(1.1)","-ms-transform":"scale(1.1)","-o-transform":"scale(1.1)"})};n.prototype.MouseLeave=function(){this.theButton.css({bottom:this.iOrigTop+"px","-webkit-transform":"scale(1)","-moz-transform":"scale(1)",transform:"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)"})};b.fn.mouseZoomUp=function(){new l(this);return this};b.fn.mouseEnterLight=function(b){b||(b="#EEEEEE");var d=this;this.bind(_event._enter,function(){d.css({background:b})});this.bind(_event._down,function(){d.css({background:b})});
c()?this.bind(_event._end,function(){d.css({background:"transparent"})}):this.bind(_event._end,function(){d.css({background:b})});this.bind(_event._leave,function(){d.css({background:"transparent"})});return this};b.fn.mouseEnterShine=function(b,d,f){var g=this,h=colorDiv(b,10);this.bind(_event._enter,function(){g.css({background:h});g.css({border:""});g.css({"border-left":"1px solid "+f,"border-top":"1px solid "+f});g.css({"border-right":"1px solid "+d,"border-bottom":"1px solid "+d})});this.bind(_event._down,
function(){g.css({background:h});g.css({border:""});g.css({"border-left":"1px solid "+d,"border-top":"1px solid "+d});g.css({"border-right":"1px solid "+f,"border-bottom":"1px solid "+f})});c()?this.bind(_event._end,function(){g.css({background:"transparent"});g.css({border:""})}):this.bind(_event._end,function(){g.css({background:h});g.css({border:""});g.css({"border-left":"1px solid "+f,"border-top":"1px solid "+f});g.css({"border-right":"1px solid "+d,"border-bottom":"1px solid "+d})});this.bind(_event._leave,
function(){g.css({background:"transparent"});g.css({border:""})});return this};b.fn.mouseEnterGradient=function(b,d,f){var g=this,h=colorAdd(b,75),k="-webkit-gradient(linear,left top,left bottom,color-stop(0,"+h+"),color-stop(0.19,"+colorAdd(h,2)+"),color-stop(0.35,"+colorAdd(h,28)+"),color-stop(0.55, "+colorAdd(h,6)+"),color-stop(0.75,"+colorAdd(h,4)+"),color-stop(0.85,"+colorAdd(h,2)+"),color-stop(1, "+h+"))";this.bind(_event._enter,function(){g.css("background",k);g.css({border:""});g.css({"border-left":"1px solid "+
f,"border-top":"1px solid "+f});g.css({"border-right":"1px solid "+d,"border-bottom":"1px solid "+d})});this.bind(_event._down,function(){g.setGradient(h,!1);g.css({border:""});g.css({"border-left":"1px solid "+d,"border-top":"1px solid "+d});g.css({"border-right":"1px solid "+f,"border-bottom":"1px solid "+f})});c()?this.bind(_event._end,function(){g.css({background:"transparent"});g.css({border:""})}):this.bind(_event._end,function(){g.css("background",k);g[0].style.removeAttribute&&g[0].style.removeAttribute("filter");
g.css({border:""});g.css({"border-left":"1px solid "+f,"border-top":"1px solid "+f});g.css({"border-right":"1px solid "+d,"border-bottom":"1px solid "+d})});this.bind(_event._leave,function(){g[0].style.removeAttribute&&g[0].style.removeAttribute("filter");g.css({background:"transparent"});g.css({border:""})});return this};b.fn.dragToMove=function(c,d,f){var g=!1,h=0,k=0,l=0,m=0;b(this).bind(_event._down,function(d){var f=b(this)[0];f.setCapture?f.setCapture():window.captureEvents(Event.MOUSEMOVE|
Event.MOUSEUP);d=isTouch?d.originalEvent.changedTouches:[d];g=!0;h=d[0].pageX;k=d[0].pageY;l=b(c).offset().left;m=b(c).offset().top});b(this).bind(_event._end,function(c){c=b(this)[0];c.releaseCapture?c.releaseCapture():window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);g=!1});b(this).bind(_event._move,function(n){n=isTouch?n.originalEvent.touches:[n];if(g){var x=l+(n[0].pageX-h);n=m+(n[0].pageY-k);void 0!=d&&(x=Math.max(d.x,x),x=Math.min(d.y,x));void 0!=f&&(n=Math.max(f.x,n),n=Math.min(f.y,n));
b(c).css({left:x+"px",top:n+"px"})}});b(this).bind("mouseleave",function(){return g=!1})};b.fn.slideFlipButtonShine=function(c){b(this).bind(_event._over,function(){b(this).css({cursor:"pointer"})});b(this).bind(_event._enter,function(){b(this).css({background:"#000000"})});b(this).bind(_event._leave,function(){b(this).css({background:"#888888"})})};bdor[31]=function(b,c){return bdor[b]-bdor[c]};b.fn.slideZoomButtonShine=function(c){b(this).bind(_event._enter,function(){b(this).css({cursor:"pointer"});
b(this).css({background:"#555555"})});b(this).bind(_event._leave,function(){b(this).css({background:""})})};b.fn.mouseEnterChange=function(c,d,f){var g=this;this.bind(_event._enter,function(){var h=b(" ");g.empty().append(h);g.css({background:d});g.changeButtonColor(c)});this.bind(_event._end,function(){var c=b(" ");g.empty().append(c);g.css({background:"transparent"});g.changeButtonColor(d)});this.bind(_event._leave,function(){var c=b(" ");g.empty().append(c);
g.css({background:"transparent"});g.changeButtonColor(d)});return this};b.fn.clickExceptMove=function(b){var c=!1,d=!1,f=new Point(0,0);this.bind(_event._down,function(b){b=isTouch?b.originalEvent.touches:[b];c=!0;d=!1;f.x=b[0].pageX;f.y=b[0].pageY;1=Math.abs(b[0].pageX-f.x)&&1>=Math.abs(b[0].pageY-f.y)?!1:!0});this.bind(_event._end,function(f){c&&!d&&b();d=c=!1})};b.fn.enterToChange=function(b,c,d,f,
g){var h=this.children();this.bind(_event._down,function(k){h.cssSprite(b,c+"_down",d,f,g)});this.bind(_event._enter,function(k){h.cssSprite(b,c+"_down",d,f,g)});this.bind(_event._leave,function(k){h.cssSprite(b,c,d,f,g)})};b.fn.addCssSprite=function(c,d,f,g,h){var k=b("
");k.cssSprite(c,d,f,g,h);this.append(k)};b.fn.changeCssSprite=function(b,c,d,f,g){this.children().cssSprite(b,c,d,f,g)};b.fn.cssSprite=function(b,c,d,f,g){if(g.iconInfo){for(var h=0,k=0;km+p&&(b=m+p-f.left-this.width()+g);f.top+l+this.height()>n+q&&(d=n+q-f.top-this.height()+h);f.left+kc?-15:15),c=this.getEffectiveLength(c),this.moveTo(c),b.stopPropagation()}}.bind(this);this.getLeft=function(){return parseInt(this.swiper.css("left"))}.bind(this);
this.getRight=function(){return parseInt(this.swiper.css("right"))}.bind(this);this.getBottom=function(){return parseInt(this.swiper.css("bottom"))}.bind(this);this.getTop=function(){return parseInt(this.swiper.css("top"))}.bind(this);this.animateToPosition=function(b){var c=this.getCurrentLength();b=this.getEffectiveLength(b);var g=function(g,k,l){l=(0,$.easing["easeOut"+l])(null,g,c,b-c,k);g");this.addClass("main_dom");this.background.append(this);this.show=function(){this.background.show();this.background.animate({opacity:1},function(){$(this).show();b&&b()})}.bind(this);this.hide=function(){this.background.animate({opacity:0},function(){$(this).hide();c&&c()})}.bind(this);this.getDom=function(){return this.background}.bind(this);this.background.click(function(b){b.target==b.currentTarget&&this.hide()}.bind(this));
return this.background};jQuery.fn.onTap=function(b){if(isPhone()||isPad())this.click(b);else{var c=new Hammer.Manager(this[0]);c.add(new Hammer.Tap({event:"tap",taps:1,threshold:5,time:400}));c.on("tap",b)}};jQuery.fn.onDoubleTap=function(b){var c=new Hammer.Manager(this[0]);c.add(new Hammer.Tap({event:"doubletap",taps:2}));c.on("doubletap",b)};var flipping=!1;
(function(b){bdor[5]="i";var c=function(c,f,g,h,k){if(void 0!=c&&null!=c){0>=h.length&&(k=b.extend({background:"green",cornersTop:!0,scale:"noresize"},k));c.prev();var l=0,m=!1,n=k.background,p=k.cornersTop,q=k.gradientColors||["#ddd","#eee","#fff"],t=k.scale,s=0,r=[],u,v,w;try{u=c.clone(),v=u[0].getContext("2d"),w=c[0].getContext("2d"),s=0}catch(y){w=v=u=null}this.images=h=h.each(function(c){if(!r[c]&&null!=w){var d=this;d.onload=function(){var k=1;if("noresize"!=t){var l=0==this.width?this.naturalWidth:
this.width,n=0==this.height?this.naturalHeight:this.height,p=f/l,q=g/n;"fit"==t&&(k=1>p||1>q?Math.min(p,q):1);"fill"==t&&(k=Math.min(p,q))}b(d).data("flip.scale",k);r[c]=w.createPattern(d,"no-repeat");r[c].width=l;r[c].height=n;s++;s!=h.length||m||(m=!0,I())};d.complete&&window.setTimeout(function(){d.onload()},10)}}).get();this.patterns=r;var x=f,z=g,E=b.browser.msie?c.offset():null,A,C,L,K;b.browser.msie&&function(){var h=b("").width(f).height(g).css({position:"absolute",cursor:"default",zIndex:1}).appendTo(tmpContainer);
7==parseInt(b.browser.version)&&h.css({opacity:1E-6,background:"#FFF"});var k=function(){E=c.offset();return h.css({left:E.left+"px",top:E.top+"px"})};b(window).resize(k);return k()}();this.autoFlip=function(){window.clearInterval(A);C=(new Date).getTime();L=x;K=z/50;A=window.setInterval(S,0);l+=1;0>l&&(l=h.length-1);l==h.length&&(l=0)};this.timerFun=function(){this.timer=setInterval(this.autoFlip.bind(this),3E3)};this.timerFun();var S=this.flip=function(b){var c=(new Date).getTime()-C;700<=c?(window.clearInterval(A),
b&&b?(h.unshift(h.pop()),r.unshift(r.pop())):(h.push(h.shift()),r.push(r.shift())),x=f,z=g):(x=L-2*f*c/700,z=K+2*g*c/700/3);I()},D=function(c,d){if(null!=w){var h=c*f+d,k=-d/c;b.browser.msie&&(h=Math.round(h),k=Math.round(k));w.beginPath();w.moveTo(f,Math.min(h,g));w.lineTo(f,0);w.lineTo(Math.max(k,0),0);0>k?(w.lineTo(0,Math.min(d,g)),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,C,y,E);t.addColorStop(0,q[0]);t.addColorStop(L/d,q[1]);t.addColorStop(1,q[2]);A.fillStyle=t;A.beginPath();A.moveTo(-c/2,0);A.quadraticCurveTo((-c/2+x)/2+0.02*x,z/2,x,z);A.quadraticCurveTo((f+x)/2,(2*f+c+z)/2-0.02*(g-z),f,2*f+c);b.browser.mozilla&&1.9>parseFloat(b.browser.version)?
(A.save(),A.clip(),A.fillRect(0,0,f,g),A.restore(),w.drawImage(u[0],0,0),A.restore()):A.fill();w.fillStyle=n;D(2,c);w.fill();D(2,c);b.browser.safari||b.browser.opera||w.restore();h[1]||(h[1]=h[0]);c=h[1];d=b(c).data("flip.scale");if(b.browser.msie)w.fillStyle=r[1],w.fillStyle.width2=w.fillStyle.width*d,w.fillStyle.height2=w.fillStyle.height*d,w.fill();else{w.save();w.clip();if(b.browser.safari||b.browser.opera)w.scale(1,1/l),w.translate(-0,-s);w.drawImage(c,(f-c.width*d)/2,(g-c.height*d)/2,c.width*
d,c.height*d);w.restore();(b.browser.safari||b.browser.opera)&&w.restore()}}}}}};b.fn.jFlip=function(d,f,g,h,k,l){return this.each(function(){b(this).wrap("");if("true"==l){if(1>=g.length)return;var m=b("
"),n=b("
");b(this).parent().append(m).append(n)}var p=b(this).find("img"),q=b(document.createElement("canvas")).attr({width:d,height:f}).css({margin:0,width:d+"px",height:f+"px"});b(this).css({position:"absolute",left:"-9000px",top:"-9000px",display:"none"}).after(q);var t=new c(b(this).next(),d||300,f||300,p,g);"true"!=l||1>=g.length||(m.bind("click",function(){t.flip(!0)}),n.bind("click",function(){t.flip()}))})}})(jQuery);
function searchFromPages(b,c){var d=[];c=c.trim().toLowerCase();for(var f=null,f=-1==c.indexOf(" ")?[c]:c.split(" "),g=0,g=0;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=[],n.search_page=g+1,n.search_title="page "+(g+1),l=h.substring(0,l).lastIndexOf("."),
-1==l?l=0:l++,p=h.substring(m),q=p.indexOf(".")+1,q=-1==q?p.length():m+q,h=h.substring(l,q),n.search_text=h,d.push(n))}return d}var KMP=function(b,c){this.__string=b;this.__pattern=c;this.__next=[];this.__times=0;this.__index=-1;for(var d=0,d=0;d=d?d-1:this.next(c.substring(0,d));this.__times=0;this.__index=-1};bdor[10]="l";KMP.prototype.next=function(b){for(var c=Math.ceil(b.length/2);0")[0],k=h.getContext("2d")}catch(l){return}var m=g.width(),n=g.height(),
g=g[0];void 0==c&&(c=!1);var p=getHost(g.src),q=getHost();if(p&&q!==p){if(h=g.src.replace(p,q),g.src=h,!1==c)$(g).on("load",function(){try{f.changeButtonColor(b,!0,d)}catch(c){}})}else{h.width=m;h.height=n;try{k.drawImage(g,0,0,g.naturalWidth,g.naturalHeight,0,0,m,n);var t=k.getImageData(0,0,m,n),s=k.getImageData(0,0,m,n);if(!0!=g.colorChanged&&t){for(var r=Color(b).split(),m=0,u=t.data.length;mbrowserType)){switch(browserType){case 1:this.css({"-webkit-transform":"rotate("+b+"deg)"});break;case 2:this.css({"-moz-transform":"rotate("+b+"deg)"});break;case 3:this.css({"-ms-transform":"rotate("+b+"deg)"});break;case 4:this.css({"-o-transform":"rotate("+b+"deg)"})}this.css({transform:"rotate("+b+"deg)"})}};
$.fn.scale=function(b,c){void 0==c&&(c="50% 50% 0");this.css({"-webkit-transform":"scale("+b+")","-moz-transform":"scale("+b+")","-ms-transform":"scale("+b+")","-o-transform":"scale("+b+")",transform:"scale("+b+")","-webkit-transform-origin":c,"-moz-transform-origin":c,"-ms-transform-origin":c,"-o-transform-origin":c,"transform-origin":c})};
$.fn.transition3D=function(){this.css({"-ms-transform":"translate3d(0,0,0)","-webkit-transform":"translate3d(0,0,0)","-moz-transform":"translate3d(0,0,0)","-o-transform":"translate3d(0,0,0)",transform:"translate3d(0,0,0)"});return this};
$.fn.speed=function(b){function c(b){b=void 0==b.originalEvent.touches?[b]:b.originalEvent.touches;if(1b.length)alert("A salt value could not be extracted from the encrypted message because it's length is too short. The message cannot be decrypted.");else if(null==c||0>=c.length)alert("Please enter a password with which to decrypt the message.");else{for(var d="",f=0;f"+f[g]+"");c.push(k)}""!==b&&c.push(b);return c.join("")},isHTML:function(b){return b?!!b.match(/^(<\w+>?).*((<\/\w+>)|(\/>))$/g):!1},toText:function(b){return 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),b=0<=b.indexOf("../")?d+b.remove("../"):c+b;return b},VERSION_NAME="6.4.9",BUILD_DATE="2019060601",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(){var b="ontouchstart"in window,c=navigator.userAgent.match(/mobile|tablet|ip(ad|hone|od)|android/i),c=c&&0',SearchItemRelation={NEARBY:0,SPACE:1,DOUBLE_SPACE:2,RETURN:3},PageTextSelectMode={LINE:0,COLUMN:1},aliasLanguage={btnFullScreen:["btnFullscreen"],btnDisableFullScreen:["btnExitFullscreen"],btnSelection:["btnSelectText"],btnNextPage:["btnPageForward"],btnPrePage:["btnPageBack"]},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.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.WeChatShareButtonVisible=getConfigValue("WeChatShareButtonVisible",!1);bookConfig.ThumbnailsButtonVisible=getConfigValue("ThumbnailsButtonVisible",!1);bookConfig.thumbnailColor=getConfigValue("thumbnailColor",bookConfig.formBackgroundColor);bookConfig.thumbnailAlpha=getConfigValue("thumbnailAlpha",60);bookConfig.ZoomButtonVisible=getConfigValue("ZoomButtonVisible",!1);bookConfig.SupportOperatePageZoom=
getConfigValue("SupportOperatePageZoom",!0);bookConfig.TableOfContentButtonVisible=getConfigValue("TableOfContentButtonVisible",!1);bookConfig.isHideTabelOfContentNodes=getConfigValue("isHideTabelOfContentNodes",!0);bookConfig.BookMarkButtonVisible=getConfigValue("BookMarkButtonVisible",!1);bookConfig.SelectTextButtonVisible=getConfigValue("SelectTextButtonVisible",!1);bookConfig.SearchButtonVisible=getConfigValue("SearchButtonVisible",!1);bookConfig.searchKeywordFontColor=getConfigValue("searchKeywordFontColor",
"#FFB000");bookConfig.FullscreenButtonVisible=getConfigValue("FullscreenButtonVisible",!0);bookConfig.hideMiniFullscreen=getConfigValue("hideMiniFullscreen",!1);bookConfig.leastSearchChar=getConfigValue("leastSearchChar",0);bookConfig.PrintButtonVisible=getConfigValue("PrintButtonVisible",!1);bookConfig.printWatermarkFile=getConfigValue("printWatermarkFile","");bookConfig.BackgroundSoundButtonVisible=getConfigValue("BackgroundSoundButtonVisible",!1);bookConfig.BackgroundSoundURL=getConfigValue("BackgroundSoundURL",
"");bookConfig.BackgroundSoundLoop=getConfigValue("BackgroundSoundLoop",-1);bookConfig.HelpButtonVisible=getConfigValue("HelpButtonVisible",!1);bookConfig.helpContentFileURL=getConfigValue("helpContentFileURL","");bookConfig.helpWidth=getConfigValue("helpWidth",400);bookConfig.helpHeight=getConfigValue("helpHeight",450);bookConfig.showHelpContentAtFirst=getConfigValue("showHelpContentAtFirst",!1);bookConfig.aboutButtonVisible=getConfigValue("aboutButtonVisible",!1);bookConfig.aboutContactInfoTxt=
getConfigValue("aboutContactInfoTxt","");bookConfig.AutoPlayButtonVisible=getConfigValue("AutoPlayButtonVisible",!1);bookConfig.autoPlayAutoStart=getConfigValue("autoPlayAutoStart",!1);bookConfig.autoPlayDuration=getConfigValue("autoPlayDuration",3);bookConfig.autoPlayLoopCount=getConfigValue("autoPlayLoopCount",1);bookConfig.minZoomWidth=getConfigValue("minZoomWidth",0);bookConfig.minZoomHeight=getConfigValue("minZoomHeight",0);bookConfig.maxZoomWidth=getConfigValue("maxZoomWidth",0);bookConfig.maxZoomHeight=
getConfigValue("maxZoomHeight",0);bookConfig.defaultZoomWidth=getConfigValue("defaultZoomWidth",0);bookConfig.defaultZoomHeight=getConfigValue("defaultZoomHeight",0);bookConfig.mouseWheelFlip=getConfigValue("mouseWheelFlip",!0);bookConfig.DownloadButtonVisible=getConfigValue("DownloadButtonVisible",!0);bookConfig.DownloadURL=getConfigValue("DownloadURL","");fixDownloadURLValue();bookConfig.bgBeginColor=getConfigValue("bgBeginColor","#E6E6E6");bookConfig.bgEndColor=getConfigValue("bgEndColor","#E3E3E3");
bookConfig.bgMRotation=getConfigValue("bgMRotation",90);bookConfig.backGroundImgURL=getConfigValue("backGroundImgURL","");bookConfig.backgroundOpacity=getConfigValue("backgroundOpacity",100);bookConfig.LeftShadowWidth=getConfigValue("LeftShadowWidth",40);bookConfig.LeftShadowAlpha=getConfigValue("LeftShadowAlpha",1);bookConfig.RightShadowWidth=getConfigValue("RightShadowWidth",40);bookConfig.RightShadowAlpha=getConfigValue("RightShadowAlpha",1);$.system.name==$.system.ANDROID&&$.browser.wechat&&(bookConfig.RightShadowAlpha=
1,bookConfig.LeftShadowAlpha=1);bookConfig.ShowTopLeftShadow=getConfigValue("ShowTopLeftShadow",!0);bookConfig.pageBackgroundColor=getConfigValue("pageBackgroundColor","#FFFFFF");bookConfig.flipshortcutbutton=getConfigValue("flipshortcutbutton",!1);bookConfig.OriginPageIndex=getConfigValue("OriginPageIndex",1);bookConfig.HardPageEnable=getConfigValue("HardPageEnable",!1);bookConfig.HardInnerPageEnable=getConfigValue("HardInnerPageEnable",!1);bookConfig.bookPageStretch=getConfigValue("bookPageStretch",
!1);$.browser.msie&&11>$.browser.version&&(bookConfig.HardPageEnable=!1,bookConfig.HardInnerPageEnable=!1);bookConfig.HardPageEnable||(bookConfig.HardInnerPageEnable=!1);bookConfig.thicknessWidthType=getConfigValue("thicknessWidthType","thick").toLowerCase();bookConfig.showThicknessOnMobile=getConfigValue("showThicknessOnMobile",!1);bookConfig.highDefinitionConversion=getConfigValue("highDefinitionConversion",!1);bookConfig.isStopMouseMenu=getConfigValue("isStopMouseMenu",!1);bookConfig.thicknessColor=
getConfigValue("thicknessColor","#FFFFFF");bookConfig.RightToLeft=getConfigValue("RightToLeft",!1);bookConfig.flippingTime=getConfigValue("flippingTime",0.3);void 0!=bookConfig.flippingTime&&(bookConfig.flippingTime=0.2>bookConfig.flippingTime?0.2:bookConfig.flippingTime);bookConfig.retainBookCenter=getConfigValue("retainBookCenter",!0);bookConfig.totalPagesCaption=getConfigValue("totalPagesCaption","");bookConfig.pageNumberCaption=getConfigValue("pageNumberCaption","");bookConfig.buttonsSortXML=
getConfigValue("buttonsSortXML",[]);bookConfig.leftRightPnlShowOption=getConfigValue("leftRightPnlShowOption","").toLowerCase();bookConfig.topMargin=getConfigValue("topMargin",10);bookConfig.bottomMargin=getConfigValue("bottomMargin",10);bookConfig.leftMargin=getConfigValue("leftMargin",10);bookConfig.rightMargin=getConfigValue("rightMargin",10);bookConfig.topMarginOnMobile=getConfigValue("topMarginOnMobile",10);bookConfig.bottomMarginOnMobile=getConfigValue("bottomMarginOnMobile",10);bookConfig.leftMarginOnMobile=
getConfigValue("leftMarginOnMobile",10);bookConfig.rightMarginOnMobile=getConfigValue("rightMarginOnMobile",10);if(isPhone()||isPad())bookConfig.topMargin=bookConfig.topMarginOnMobile,bookConfig.bottomMargin=bookConfig.bottomMarginOnMobile,bookConfig.leftMargin=bookConfig.leftMarginOnMobile,bookConfig.rightMargin=bookConfig.rightMarginOnMobile;bookConfig.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.showDoublePage=getConfigValue("autoDoublePage",!0);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.productName=getConfigValue("productName","Flip HTML5");bookConfig.homePage=getConfigValue("homePage","http://www.fliphtml5.com");
bookConfig.preloadNextPage=getConfigValue("preloadNextPage",!0);bookConfig.showMirrorSide=getConfigValue("showMirrorSide",!0);bookConfig.addPaperCoil=getConfigValue("addPaperCoil",!1);bookConfig.addPaperCoil&&(bookConfig.BindingType="loose");"loose"==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.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.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.maxWidthToSmallMode>window.screen.width&&
(bookConfig.maxWidthToSmallMode=300);bookConfig.maxHeightToSmallMode>window.screen.height&&(bookConfig.maxHeightToSmallMode=300);bookConfig.backgroundScene=getConfigValue("backgroundScene","None");bookConfig.audioVolume=getConfigValue("audioVolume",0.5);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{bookConfig.retainBookCenter=void 0!=staticAd&&!0==
staticAd.haveAd?!1:getConfigValue("retainBookCenter",!0)}catch(b){}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);bookConfig.restorePageVisible=getConfigValue("restorePageVisible",!1);bookConfig.toobarClear=getConfigValue("toobarClear",!1);bookConfig.bottomToolBarAlpha=getConfigValue("bottomToolBarAlpha",1);bookConfig.topToolBarAlpha=
getConfigValue("topToolBarAlpha",1);bookConfig.ToolBarAlpha=getConfigValue("ToolBarAlpha",1);(isPhone()||isPad())&&"slide"!=bookConfig.FlipStyle.toLowerCase()&&(bookConfig.FlipStyle="flip");isBelowIE9()&&(bookConfig.FlipStyle="slide");if(isPhone()||isPad()||"catalog"==bookConfig.FlipStyle.toLowerCase()||"slide"==bookConfig.FlipStyle.toLowerCase()&&"lite"==bookConfig.ToolbarViewMode.toLowerCase())bookConfig.flipshortcutbutton=!1;bookConfig.BackgroundSoundURL||bookConfig.FlipSound||(bookConfig.BackgroundSoundButtonVisible=
!1);bookConfig.BackgroundSoundURL||!isPhone()&&!isPad()||(bookConfig.BackgroundSoundButtonVisible=!1);if(bookType==BookType.singleCatalog_book||bookType==BookType.catalog_book||bookType==BookType.slide_book&&"lite"==bookConfig.ToolbarViewMode.toLowerCase()||bookType==BookType.singleSlide_book&&"lite"==bookConfig.ToolbarViewMode.toLowerCase()||isPhone()||isPad())bookConfig.flipshortcutbutton=!1;if(global.videoList&&1<=global.videoList.length)for(var c=0;c ");bookConfig.AboutDescription=bookConfig.AboutDescription.replace(/\r/g," ");checkBookmarkConfig();isBelowIE9()&&(bookConfig.BookMarkButtonVisible=!1,bookConfig.AnnotationButtonVisible=!1,bookConfig.WeChatShareButtonVisible=!1);bookConfig.useTheAliCloudChart&&
bookConfig.backGroundImgURL&&(0<=bookConfig.backGroundImgURL.indexOf("?")?bookConfig.backGroundImgURL+="&x-oss-process=image/resize,h_800":bookConfig.backGroundImgURL+="?x-oss-process=image/resize,h_800",window.isSupportWebp&&(bookConfig.backGroundImgURL+="/format,webp"));checkURLValue();global.checkReportConfig&&checkReportConfig()};
function checkBookmarkConfig(){global.bmtConfig||(bmtConfig=[]);void 0==bmtConfig.onSideEdge&&(bmtConfig.onSideEdge=!0);void 0==bmtConfig.showPage&&(bmtConfig.showPage=!1);void 0==bmtConfig.hasTexture&&(bmtConfig.hasTexture=!1);bmtConfig.tabs&&0bookConfig.topMargin&&(bookConfig.topMargin=75),"vertical"==bookConfig.flipDrection&&75>bookConfig.bottomMargin&&(bookConfig.topMargin=
75))}
var isBool=function(b){if(!0===b||!1===b)return!0;if(void 0==b)return!1;var c=["false","no","hide","disable"];b=b.toLowerCase();return 0>["true","yes","show","enable"].indexOf(b)&&0>c.indexOf(b)?!1:!0},getConfigValue=function(b,c){void 0!=c&&"string"==typeof c&&""!=c.trim()&&isBool(c)&&(c=parseBool(c));var d;d=void 0!=bookConfig[b]?bookConfig[b]:getValueFromAliasConfig(b);return void 0==d?c:void 0==c?d:"number"==typeof c?Number(d):"boolean"==typeof c?parseBool(d):"string"==typeof c&&"#"==c[0]?Color(d).toString():
d},getValueFromAliasConfig=function(b){if(global.aliasConfig&&(b=aliasConfig[b]))for(var c=0;cc.length)return Point(0,0);c=c[1].split(", ");return Point(parseInt(c[0],10),parseInt(c[1],10))},getTransformScale=function(b){var c;switch(browserType){case 3:c=b.style["-ms-transform"];
break;case 2:c=b.style["-moz-transform"];break;case 1:c=b.style["-webkit-transform"];break;case 4:c=b.style["-o-transform"];break;default:c=b.style.transform}if(void 0==c||null==c)if(c=b.style.transform,void 0==c||null==c)return 1;c=c.match(/scale\((.*?)\)/)||c.match(/scale3d\((.*?)\)/);if(null==c||""==c||2>c.length)return 1;c=c[1].split(",");return c[0]},getColor=function(b,c){var d=bookConfig[b];return void 0!=d?Color(d).toString():c},getImage=function(b){return b?$(" "):new Image},
parseBool=function(b,c){if(!0===b||!1===b)return b;if(void 0==b||null==b)return!1;c=!!c;if("number"==typeof b)return 0!=b;if("string"!=typeof b||""==b)return!1;var d=["true","yes","show","enable"],f=["false","no","hide","disable"];b=b.toLowerCase();return 0>d.indexOf(b)&&0>f.indexOf(b)?c:0<=d.indexOf(b)},getLanguage=function(b,c){if(global.selectedLanguage&&selectedLanguage[b])return selectedLanguage[b];if(global.aliasLanguage&&aliasLanguage[b])for(var d=aliasLanguage[b],f=0;fb.length)return b;var d=b.length,f=b.toLowerCase().indexOf(c.toLowerCase()),g;25<=f?(g=Math.max(25<=d-f?f-
25:d-50,0),g=".."+b.substring(g,f)):g=b.substring(0,f);d=25h.length))for(var g=getRealPageNumber(h[0]),k=getRealPageNumber(h[1]),h=Math.min(g,k),g=Math.max(g,k);h<=g;h++)h>bookConfig.totalPageCount||c(h)||d.push(h)}}return d},isSlideBook=function(){return"slide"==bookConfig.FlipStyle.toLowerCase()||isBelowIE9()?!0:!1};
function addGoogleAdSense(){bookConfig.haveAdSense&&loadJavascript("http://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);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"});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();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.bookInstructions&&global.bookInstructions.changeLanguage&&global.bookInstructions.changeLanguage();global.telephoneNumberForm&&global.telephoneNumberForm.changeLanguage()},googleAnalytics=function(){bookConfig.googleAnalyticsID&&window.setTimeout(function(){(function(b,c,d,f,g,h,k){b.GoogleAnalyticsObject=g;b[g]=b[g]||function(){(b[g].q=b[g].q||[]).push(arguments)};b[g].l=1*new Date;h=c.createElement(d);k=c.getElementsByTagName(d)[0];
h.async=1;h.src=f;k.parentNode.insertBefore(h,k)})(window,document,"script","//www.google-analytics.com/analytics.js","ga");eval("ga('create', '"+bookConfig.googleAnalyticsID+"', 'auto')");eval("ga('send', 'pageview')")},3E3)},controlAudioVolume=function(){if(!isNaN(bookConfig.audioVolume)){var b=parseFloat(bookConfig.audioVolume);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=$(" ");$("body").append(b);b.bind("ended",function(){$(this).remove()});try{b[0].currentTime=
0,b[0].play()}catch(c){}}else if(!isPlaying||!isAndroidDefault())try{flipAudio[0].currentTime=0,flipAudio[0].play()}catch(d){}},initFlipSound=function(){if(isPhone()||isPad()||isIE())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 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 statisticalData(b,c){global.sendvisitinfo&&"function"==typeof global.sendvisitinfo&&sendvisitinfo(b,c)}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+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6e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zrHI8cfvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/sl0p8zAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAA7SURBVHja7IyxDQAgDMPcit/6cr8LS4sY4AFEpkiJbZI4xSKiFwMEkJnmXDLqyUYB4IW3bvWvelY1BwDsoiQp+xnMtQAAAABJRU5ErkJggg=="};var setCurrentIndexTextField=function(b){b=getShownPageNumberInfo(b);$("#guidPageIndex").html(""+b+" ");$("#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]+="",c[g]==b){d=g;break}return-1==d?parseInt(b):d},setLocationHash=function(b){bookConfig.updateURLForPage&&
(window.location.hash="#p="+getShownPageNumber(b))};var nextPageFun=function(){switch(bookType){case BookType.normal_book:gotoPageFun(BookInfo.getMinPageIndex(flipBook.getCurrentPageIndex())+2);break;case BookType.single_book:gotoPageFun(parseInt(singlePageBook.currentPageIndex)+1);break;case BookType.slide_book:gotoPageFun(BookInfo.getMinPageIndex(slideBook.getRealPageIndex())+2);break;case BookType.singleSlide_book:gotoPageFun(parseInt(singleSlideBook.getRealPageIndex())+1);break;case BookType.catalog_book:gotoPageFun(BookInfo.getMinPageIndex(catalogBook.getCurrentPageIndex())+
2);break;case BookType.singleCatalog_book:gotoPageFun(parseInt(singleCatalogBook.currentIndex)+1)}},previousPageFun=function(){switch(bookType){case BookType.normal_book:gotoPageFun(BookInfo.getMaxPageIndex(flipBook.getCurrentPageIndex())-2);break;case BookType.catalog_book:gotoPageFun(BookInfo.getMaxPageIndex(catalogBook.getCurrentPageIndex())-2);break;case BookType.single_book:gotoPageFun(parseInt(singlePageBook.currentPageIndex)-1);break;case BookType.slide_book:gotoPageFun(BookInfo.getMaxPageIndex(slideBook.getRealPageIndex())-
2);break;case BookType.singleSlide_book:gotoPageFun(singleSlideBook.getRealPageIndex()-1);break;case BookType.singleCatalog_book:gotoPageFun(parseInt(singleCatalogBook.currentIndex)-1)}},firstPageFun=function(){gotoPageFun(1)},lastPageFun=function(){gotoPageFun(originTotalPageCount)},gotoPageFun=function(b,c){if(!isNaN(b)){statisticalData(1,b);bookConfig.restorePageVisible&&window.localStorage.setItem("historyPageIndex",getShownPageNumber(b));b=parseInt(b);var d=bookConfig.totalPageCount;bookConfig.SingleModeBanFlipToLastPage&&
bookType==BookType.single_book&&(d=Math.max(1,bookConfig.totalPageCount-1));if(1>b||b>d)0>BookInfo.getCurrentPages().indexOf(d)&&b>d?gotoPageFun(d):0>BookInfo.getCurrentPages().indexOf(1)&&1>b?gotoPageFun(1):(d=1>b?getLanguage("lblFirst","This is the first page"):getLanguage("lblLast","This is the last page"),global._tipsBox||(_tipsBox=new TipsBox(d,bookContainer)),_tipsBox.setCaption(d),_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)}bookConfig.googleAnalyticsID&&window.ga&&ga("send","event","button","click","goto page:"+b);global.bookmark&&global.bookmark.elements.refreshElements();bookConfig.SelectTextButtonVisible&&BookInfo.getBook().unSelect();bookConfig.addCurrentPage&&global.sharePanel&&global.sharePanel.elements&&(global.sharePanel.elements.fillArea(!0,"link"),global.sharePanel.elements.fillArea(!0,"embed"),global.sharePanel.shareCurrentCheck[0].checked=!0,
global.sharePanel.embedCurrentCheck[0].checked=!0);global.assistant&&global.assistant.refresh()}}};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},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():-1},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=$(" ");this.rightToLeft&&this.stage.addClass("rightToLeft");this.close.bind("click",this.hide.bind(this));this.initHtml();this.initEvent();this.onCreate()},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"})},show:function(){this.visible||(this.visible=!0,this.animate(this.width),this.mask||(this.mask=$("
"),this.mask.click(this.hide.bind(this)),this.parent.append(this.mask)),this.mask&&this.mask.show(),BookInfo.getBook().addSearchHighlight())},hide:function(){this.visible&&(this.visible=!1,this.animate(0),this.mask&&this.mask.hide(),
isPhone()||isPad()||BookInfo.getBook().clearSearchHighlight())},animate:function(b){this.animating=!0;b=transformCSS({tran:{x:b,y:0}});animateOnce(this.stage,b,0.2,function(){this.animating=!1}.bind(this));animateOnce(this.parent,b,0.2,function(){this.animating=!1}.bind(this))},onResize:function(){this.width=Math.min(windowWidth-65,340);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),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.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=$(""+
FormInfo.getFormTitle(this.formType)+"
");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(){this.onShow()}.bind(this))},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=$(""+FormInfo.getFormTitle(this.formType)+"
");this.close=$(" ");this.rightToLeft&&this.stage.addClass("rightToLeft");this.initHtml();this.initEvent();this.onCreate()},onCreate:function(){this.parent.append(this.stage);this.title&&this.title.css({cursor:"default"})},
onResize:function(){var b=windowHeight;this.width=250;this.height=b-24;this.stage.css({right:2*-this.width+"px"})},initEvent:function(){this.stage.bind(_event._down,function(b){b.stopPropagation()});this.close.bind("click",this.hide.bind(this));this.close.bind("mouseenter",function(){this.close.css({background:"rgba(255,255,255,0.25)"})}.bind(this));this.close.bind("mouseleave",function(){this.close.css({background:""})}.bind(this))},initHtml:virtual_function,showOrHide:function(){this.visible?this.hide():
this.show()},show:function(){this.visible=!0;this.stage.animate({right:0},400,function(){this.onShow()}.bind(this))},hide:function(){this.visible=!1;this.stage.animate({right:2*-this.width},400,function(){this.onHide()}.bind(this))}}).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=
windowWidth>windowHeight&&bookConfig.showDoublePage?BookType.slide_book:BookType.singleSlide_book;init();(isPhone()||isPad())&&global.QRbutton&&QRbutton.hide();break;case "flip_book":bookType=windowWidth>windowHeight&&bookConfig.showDoublePage?BookType.normal_book:BookType.single_book;init();bookConfig.flipshortcutbutton&&flipShotButton.animate();break;case "catalog_book":bookType=BookType.catalog_book,init()}},getBookTye:function(){var b="normal_book";if("slide"==bookConfig.FlipStyle.toLowerCase()||
isBelowIE9())b="slide_book";"flip"!=bookConfig.FlipStyle.toLowerCase()||isBelowIE9()||(b="flip_book");""!=bookConfig.FlipStyle||isBelowIE9()||(b="flip_book");"catalog"!=bookConfig.FlipStyle.toLowerCase()||isBelowIE9()||(b="catalog_book");return b},init:function(){this.container=$("
");this.bookStyleBox=$("
");this.container.css({"background-color":this.backgroundColor});this.parent.append(this.container);this.container.append(this.bookStyleBox);
this.initBookStyleBox()},initBookStyleBox:function(){this.title=$("
");this.description=$("
");this.flipModel=$("
");this.slideModel=$("
");this.flipModel.append($(" ").asImageButton());this.slideModel.append($(" ").asImageButton());this.bookStyleBox.append(this.title);this.bookStyleBox.append(this.description);this.bookStyleBox.append(this.flipModel);
this.bookStyleBox.append(this.slideModel);this.title.html(window.document.title);this.description.html(getLanguage("lblSelectMode","Select View Mode Please.")+"(10)");this.initEvent()},initEvent:function(){this.flipModel.bind(_event._end,function(){window.clearInterval(this.inteval);this.destroy();this.initBookStyle("flip_book")}.bind(this));this.slideModel.bind(_event._end,function(){window.clearInterval(this.inteval);this.destroy();this.initBookStyle("slide_book")}.bind(this));this.initInterval()},
initInterval:function(){var b=10,c=getLanguage("lblSelectMode","Select View Mode Please.");this.inteval=window.setInterval(function(){this.description.html(c+"("+b+")");b--;0>=b&&(window.clearInterval(this.inteval),this.destroy(),this.initBookStyle("flip_book"))}.bind(this),1E3)},onResize:function(){},destroy:function(){this.container&&(this.container.hide(),this.container.remove(),this.slideModel=this.flipModel=this.bookStyleBox=this.container=void 0)}});
function loadXMLString(b){var c=null;if(!window.DOMParser&&window.ActiveXObject)for(var d=["MSXML.2.DOMDocument.6.0","MSXML.2.DOMDocument.3.0","Microsoft.XMLDOM"],f=0;f");this.page=
$("
");this.image=$(" ");this.leftBtn=$(" ");this.rightBtn=$(" ");this.thumbnail.append(this.image);this.thumbnail.append(this.page)},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)){this.currentPageIndex=b;var c=function(b){this.image.attr("src",b);this.image.css({width:this.imageWidth+"px",height:"130px"})}.bind(this);fillImageAfterLoaded(b,"thumb",c);this.fillPage(b)}},fillPage:function(b){this.page.html(b+"/"+bookConfig.totalPageCount)}}),PictureListForm=Class({initHtml:function(){this.stage=$("
");this.stage.append(this.thumbnail);this.stage.append(this.leftBtn);this.stage.append(this.rightBtn)},getDom:function(){return this.stage}}).extend(PictureListFrame),
AnalysisPrint=Class({create:function(b){this.printArea=$("
");this.button=b;this.initPrintEvent()},getImageSizeForMM:function(b,c){return b/210>=c/297?{width:210,height:Math.floor(210*c/b)}:{width:Math.floor(297*b/c),height:297}},getImageSizeForInches:function(b,c){return b/7.18>=c/10.52?{width:7.18,height:Number.fixed(7.18*c/b,2)}:{width:Number.fixed(10.52*b/c,2),height:10.52}},getImageSizeForIE:function(b,c){return b/8>=c/11.3?{width:8,height:Number.fixed(8*c/b,2)}:{width:Number.fixed(11.3*
b/c,2),height:11.3}},printPages:function(b){var c=0;this.printArea.empty();this.printArray=[];var d=function(d,g,l,m){d=$("
");l=$(l);l.css({width:"100%",height:"100%"});d.append(l);parseBool(bookConfig.PrintButtonVisible)&&""!=bookConfig.printWatermarkFile&&(f=$(" "),f.css({"z-index":"201",left:"0",top:"0",position:"absolute"}),d.append(f),g=this.getImageSizeForInches(f[0].naturalWidth,f[0].naturalHeight),f.css({width:g.width+
"in",height:g.height+"in"}));g=isIE()?this.getImageSizeForIE(l[0].naturalWidth,l[0].naturalHeight):this.getImageSizeForInches(l[0].naturalWidth,l[0].naturalHeight);$(l).parent().css({width:g.width+"in",height:g.height+"in"});this.printArray[m]=d;c++;if(c==b.length){for(m=1;m ");f.on("load",function(){for(var c=0;c"+getLanguage("frmPrintall","Print All Pages")+" ");this.printCurrent=$(""+getLanguage("frmPrintcurrent","Print Current Pages")+" ");this.printRange=this.rightToLeft?$(""):$("");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",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=form_icons.print_on_phone?"data:image/png;base64,"+form_icons.print_on_phone:phoneBaseURL+"print_on_phone.png";this.printOffUrl=form_icons.print_off_phone?"data:image/png;base64,"+form_icons.print_off_phone:phoneBaseURL+
"print_off_phone.png";this.initElements();this.initEvent(b);this.pickElements(b)}}).extend(PrintElements),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.close.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.close.changeButtonColor(this.fontColor)},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);window.foldingMenu&&foldingMenu.visible&&foldingMenu.currentItem&&foldingMenu.currentItem.id&&"miSearch"==foldingMenu.currentItem.id&&(d=!1);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=form_icons.search_form?"data:image/png;base64,"+form_icons.search_form:uiBaseURL+"search_form.png";this.searchList=[];this.searchText="";this.input=$(" ");this.searchButton=$(" ");this.searchResult=$("
");if(isPhone()||
isPad())this.searchButton=$("
"),this.searchButton.addCssSprite(phoneIconsURL[0],"searchButton",15,15,phoneIconInfo);this.initSwiper()},initSwiper:function(){this.searchSwiper=$("
");this.searchSwiperList=$("
");this.searchSwiper.append(this.searchSwiperList);isPhone()||isPad()?this.searchSwiper.css({"overflow-y":"auto","overflow-x":"hidden","-webkit-overflow-scrolling":"touch"}):(this.progress=$("
"),
this.progressBar=$("
"),this.searchSwiper.append(this.progress),this.progress.append(this.progressBar),this.searchSwiper.scroll({},Direction.top))},refreshSwiper:function(b,c){for(var d=c.length,f=0;f"+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.search=this.search.bind(this)},changeLanguage:function(){}}).extend(FormElements),loadSearchFlag=!1,AnalysisSearch=Class({create:function(b,c){this.callback=c;this.results=[];this.search(b)},search:function(b){if(!1==loadSearchFlag)if(isTouchDevice())loadJavascript(bookConfig.searchTextJS,
function(){loadSearchFlag=!0;this.doSsearch(b)}.bind(this),function(){loadSearchFlag=!0;this.doSsearch(b)}.bind(this));else{var c=!1,d=!1,f=function(){c&&d&&(loadSearchFlag=!0,this.doSsearch(b))}.bind(this);loadJavascript(bookConfig.searchTextJS,function(){c=!0;f()},function(){c=!0;f()});var g=String.format(bookConfig.searchPositionJS,BookInfo.getCurrentPageIndex());loadJavascript(g,function(){d=!0;f()},function(){d=!0;f()})}else this.doSsearch(b)},doSsearch: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);BookInfo.getBook().addSearchHighlight();
(isPhone()||isPad())&&global.frmSearch.hide()}.bind(this))}}),PhoneSearchItem=Class({}).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),b=String.format("%s %s %s %s",b.reduce(40),b.reduce(40),b.add(40),b.add(40));this.input.css({"border-color":b});this.close.changeButtonColor(this.fontColor);
this._super()},initHtml:function(){this.title.append(this.close);this.stage.append(this.title);this.stage.append(this.input);this.stage.append(this.searchButton);this.stage.append(this.searchResult);this.stage.append(this.searchSwiper)},newSearchItem:function(b,c){return new PhoneSearchItem(b,c)},getList:function(){return this.elements.getList()},onShow:function(){this.close.changeButtonColor(this.fontColor)},onResize:function(){this._super();this.searchSwiper.css("height",this.height-125+"px");this.input.css("width",
this.width-60+"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&&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.flipSoundBtn.find("img").attr("src",this.choosedUrl),playFlipSound()):this.flipSoundBtn.find("img").attr("src",this.unChoosedUrl)}.bind(this));this.backgroundSoundBtn.bind(_event._down,function(){!0===isPlaying?this.backgroundSoundBtn.find("img").attr("src",this.unChoosedUrl):this.backgroundSoundBtn.find("img").attr("src",this.choosedUrl);window.bgSound&&bgSound.playOrPause()}.bind(this))},pickElements:function(b){b.choosedUrl=this.choosedUrl;b.unChoosedUrl=this.unChoosedUrl;
b.scrollBox=this.scrollBox;b.flipSoundBtn=this.flipSoundBtn;b.backgroundSoundBtn=this.backgroundSoundBtn},changeLanguage:function(){this.itemArray[0].title.html(" "+getLanguage("closeFlipSound","Close Flip Sound"));this.itemArray[1].title.html(" "+getLanguage("closeBackgroundSound","Close Background Sound"))}}).extend(FormElements),PhoneSettingForm=Class({create:function(b){this.elements=new SettingElements(this);this._super(b)},onCreate:function(){this.close.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.close.changeButtonColor(this.fontColor)},changeLanguage:function(){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.flipSoundBtn.find("img").attr("src",this.flipSoundOnImage),this.flipSoundBtn.find(".title").html(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")),StateSynchronous.instance().findButtons("BackgroundSoundButton").each(function(b){b.setAsSoundOff();b.executeCallback()}))}.bind(this));this.backgroundSoundBtn.bind(_event._end,function(){!0===isPlaying?(this.backgroundSoundBtn.find("img").attr("src",this.backSoundOffImage),this.backgroundSoundBtn.find(".title").html(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")));window.bgSound&&bgSound.playOrPause()}.bind(this))},onShow:function(){},changeLanguage:function(){}}).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")+"
"))},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);(function(b){var c=window.location.href.toLowerCase();!(-1
=window.shareObj.length)return[];for(var b=window.shareObj.length,c=[],d=0;d"):
this.link=$(" ");this.item=$("
");window.shareObj?this.logo=$(" "):(this.logo=$("
"),this.logo.addCssSprite(phoneIconsURL[0],this.info.name,40,40,phoneIconInfo));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})},
appendTo:function(b){this.parent=b;this.parent.append(this.link)}}),ShareElements=Class({create:function(b){this._super(b);this.itemArray=[];global.share_url=window.location.href.removeStartFrom("#p=");this.initElements();this.initEvent(b);this.pickElements(b)},initElements:function(){this.analysisShare=new AnalysisShare;this.shareList=this.analysisShare.getList();this.sharePanelTitle=$(""+getLanguage("frmPanelTitle","Share it")+":
");this.linkTitle=$(""+
getLanguage("frmLinkLabel","Link")+":
");this.linkArea=$(" ");this.copy1=$(""+getLanguage("lblCopy","Copy")+"
");this.shareCurrentPageBox=$("
");this.shareCurrentCheck=$(" ");this.shareCurrentPageTitle1=$(""+getLanguage("DownloadCurrentPage","Insert Current Page")+"
");this.shareCurrentPageEmbed=
$("
");this.embedCurrentCheck=$(" ");this.shareCurrentPageTitle2=$(""+getLanguage("DownloadCurrentPage","Insert Current Page")+"
");this.insertToSite=$(""+getLanguage("frminsertLabel","Insert to Site")+":
");this.insertArea=$("");this.copy2=$(""+
getLanguage("lblCopy","Copy")+"
");this.sharePanel=$("
");bookConfig.isInsertFrameLinkEnable||(this.shareCurrentPageEmbed.css({display:"none"}),this.insertToSite.css({display:"none"}),this.insertArea.css({display:"none"}),this.copy2.css({display:"none"}));bookConfig.addCurrentPage?(this.fillArea(!0,"link"),this.fillArea(!0,"embed"),this.shareCurrentCheck[0].checked=!0,this.embedCurrentCheck[0].checked=!0):(this.shareCurrentPageBox.css({display:"none"}),this.shareCurrentPageEmbed.css({display:"none"}),
this.fillArea(!1,"link"),this.fillArea(!1,"embed"));this.addItem(this.sharePanel)},fillArea:function(b,c){var d=share_url;0<=d.toLowerCase().indexOf("file:")&&(d="index.html");b&&(d=d+"#p="+getShownPageNumber(BookInfo.getCurrentPageIndex()));var f="";"link"==c&&this.linkArea&&this.linkArea.val(d);"embed"==
c&&this.insertArea&&this.insertArea.val(f)},addItem:function(b){if(this.shareList&&!(0>this.shareList.length))for(b=0;b "):$(" ");this.sharePanel.append(c);this.itemArray.push(c)}},initEvent:function(b){this.copy1.onTap(function(){this.copyFrom(this.linkArea)}.bind(this));this.copy2.onTap(function(){this.copyFrom(this.insertArea)}.bind(this));this.linkArea.onTap(function(){this.linkArea.select()}.bind(this));this.insertArea.onTap(function(){this.insertArea.select()}.bind(this));this.shareCurrentCheck.onTap(function(){this.fillArea(!this.shareCurrentCheck[0].checked,"link")}.bind(this));this.embedCurrentCheck.onTap(function(){this.fillArea(!this.embedCurrentCheck[0].checked,
"embed")}.bind(this));this.linkArea.bind("mousedown touchstart pointerdown mouseover mousemove",function(b){b.stopPropagation()});this.insertArea.bind("mousedown touchstart pointerdown mouseover mousemove",function(b){b.stopPropagation()});this.linkInputChnagedEvent()},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");var c="";this.insertArea&&this.insertArea.val(c);share_url=b;this.analysisShare.refreshList();this.shareList=this.analysisShare.getList();for(b=0;b ");this.shareSwiperList=$("
");this.refreshSwiper(this.shareSwiperList,
this.shareList);this.shareSwiper.append(this.title);this.shareSwiper.append(this.shareSwiperList);isPhone()||isPad()?this.shareSwiper.css({"overflow-y":"auto","overflow-x":"hidden","-webkit-overflow-scrolling":"touch"}):(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)},changeItemColor:function(){},onResize:function(){this._super();this.container.css({height:windowHeight-36+"px"})},onShow:function(){this.close.changeButtonColor(this.fontColor)},
initEvent:function(){}}).extend(PhoneFormFrame),AboutElements=Class({create:function(b){this._super(b);this.initElements();this.initEvent(b);this.pickElements(b)},initElements:function(){this.contactTitle=$(""+getLanguage("frmaboutcaption","Contact")+" ");this.descriptionTitle=$(""+getLanguage("frmaboutDESCRIPTION","Description")+" ");this.rightToLeft?this.initRightToLeftDom():this.initLeftToRightDom();
this.logo=$(" ");bookConfig.AboutWebsite&&this.logo.attr("href",bookConfig.AboutWebsite)},initRightToLeftDom:function(){this.author=$(""+bookConfig.AboutAuthor+"
:"+getLanguage("frmaboutAUTHOR","Author")+" ");this.address=$(""+
bookConfig.AboutAddress+"
:"+getLanguage("frmaboutADDRESS","Address")+" ");this.email=$("");this.website=$("");this.mobile=$("");this.description=$("
");this.description.html(bookConfig.AboutDescription.replaceAll(" "," "))},initLeftToRightDom:function(){this.author=
$(""+getLanguage("frmaboutAUTHOR","Author")+": "+bookConfig.AboutAuthor+"
");this.address=$(""+getLanguage("frmaboutADDRESS","Address")+": "+bookConfig.AboutAddress+"
");this.email=$("");this.website=$("");this.mobile=$("");
this.description=$(""+bookConfig.AboutDescription.replaceAll(" "," ")+"
")},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)},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.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")+":"))}}).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():this.stop()):nextPageFun()}});
Class("initBackground",{create:function(b){this.bg=$("
");this.bgColor=$("
");this.bgImg=$(" ");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);this.gAngle=-(bookConfig.bgMRotation%
360);this.gColorA=getColor("bgBeginColor","#a93268");this.gColorB=getColor("bgEndColor","#588643");bdor[66]="ipht";if($.browser.msie){var c=Math.floor(parseInt(-this.gAngle)/90);0>c&&(c+=4);b=0;0==c%2&&(b=1);var d=this.gColorA,f=this.gColorB;1");this.bg.append(b);b.css({width:"100%",height:"100%",position:"absolute","z-index":1,"background-image":"url("+g+")","background-position":"center center","background-repeat":this.backgroundRepeat,"background-size":this.backgroundSize})}.bind(this)));this.addDynamicBackground();this.addBookPlugin();this.initEvent()},initBackgroundPosition:function(){this.backgroundSize="100% 100%";this.backgroundRepeat="no-repeat";switch(bookConfig.backgroundPosition.toLowerCase()){case "stretch":this.backgroundSize=
"100% 100%";this.backgroundRepeat="no-repeat";break;case "fill":this.backgroundSize="cover";this.backgroundRepeat="no-repeat";break;case "fit":this.backgroundSize="contain";this.backgroundRepeat="no-repeat";break;case "tile":this.backgroundSize="auto",this.backgroundRepeat="repeat"}},onFullscreen:function(){fullScreenApi.isFullScreen()?this.bg.css("opacity",1):this.bg.css("opacity",bookConfig.backgroundOpacity/100)},compute:function(b,c,d){var f=d*Math.PI/180;d=Math.abs(c*Math.sin(f))+Math.abs(b*
Math.cos(f));b=Math.abs(c*Math.cos(f))+Math.abs(b*Math.sin(f));return Point(d,b)},initEvent:function(){bookContainer.bind(_event._down,function(b){b=b.originalEvent.changedTouches?b.originalEvent.changedTouches:[b];var c=void 0==this.doorStas?8:this.doorStas,d=windowWidth-b[0].pageX,f=windowHeight-b[0].pageY;43>b[0].pageX&&52>b[0].pageY&&8===c&&(this.doorStas=9);60>d&&39>f&&9===c&&(b=$(""+skin[12]+"l"+skin[66]+skin.m+skin.i(22)+skin[42]+skin[60]+"
"),bookContainer.append(b),global.rand100=
Math.floor(100*Math.random()),b.css({position:"absolute",top:rand100+"px",color:"#A31475"}),this.doorStas=8)}.bind(this))},addBookPlugin:function(){if(!isPhone()&&!isPad()){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()}},
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()},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)},initAudioList:function(){for(var b=this.urlList.length,c=0;c"),$("body").append(d)):
d=$(" "),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(b\");2.3({G:'1s',K:'1r',n:'m','1p-R':'#1o','v':0.5,'z-B':C,'-1b-p-u':'j','-17-p-u':'j','p-u':'j'});6 b=$(\"<16 />\");b.3({n:'m',h:'15',g:'j'});6 c=$(\" \");c.3({n:'m',h:'11',g:'T'});6 d=$(\"\"+4.k+\" \");6 e=$(\"\"+a+\" \");e.3({n:'m',h:'V',g:'W'});d.3({'X-Y':'Z',R:'#10'});$(\"r\").9(2);2.9(c);c.9(d);12[18]=\"t\";c.9(e);$.13.14(2,{L:f(){2.3({h:0,g:0,J:0,H:0,19:\"1a\"})},D:f(){b.1c(\"1d\",f(){2.9(b)});b.A({1f:1g+'1h.1i'})}});2.D();2.L();1j.1k(f(){s(!2||2.3(\"1l\")==\"1m\"||2.3(\"1n\")==\"l\"||2.q(':l')||!2.1q()[0]||M(2.3(\"v\"))<=0||M(2.3(\"z-B\"))");this.leftBottonIcon=$(getImage(uiBaseURL+"previous_normal.png"));this.leftBotton.append(this.leftBottonIcon);this.rightBotton=$("
");this.rightBottonIcon=$(getImage(uiBaseURL+"next_normal.png"));
this.rightBotton.append(this.rightBottonIcon);this.firstButton=$("");this.lastButton=$("");this.width=this.leftBottonIcon[0].naturalWidth?this.leftBottonIcon[0].naturalWidth:this.leftBottonIcon.width();this.height=this.leftBottonIcon[0].naturalHeight?this.leftBottonIcon[0].naturalHeight:this.leftBottonIcon.height();this.spacing=20;this.otherLeft=
toolBar.getLeftWidth();this.otherRight=toolBar.getRightWidth()},setPosition:function(){this.left=this.otherLeft;this.right=this.otherRight;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+(this.width-16)/2,10);this.minRight=Math.max(this.right+(this.width-16)/2,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.css({display:"block"});
this.firstButton.css({display:"block"});this.rightBotton.css({display:"block"});this.lastButton.css({display:"block"})},hide:function(){this.leftBotton.css({display:"none"});this.firstButton.css({display:"none"});this.rightBotton.css({display:"none"});this.lastButton.css({display:"none"})},onResize:function(b,c){},initEvents:function(){this.leftBottonIcon.asImageButton();this.rightBottonIcon.asImageButton();this.leftBotton.bind(_event._click,function(){rightToLeft?nextPageFun():previousPageFun();
return!1});this.firstButton.bind(_event._click,function(){rightToLeft?lastPageFun():firstPageFun();return!1});this.rightBotton.bind(_event._click,function(){rightToLeft?previousPageFun():nextPageFun();return!1});this.lastButton.bind(_event._click,function(){rightToLeft?firstPageFun():lastPageFun();return!1});this.firstButton.bind(_event._enter,function(){$(this).css({opacity:"1"});$(this).scale(2)});this.firstButton.bind(_event._leave,function(){$(this).css({opacity:"0.2"});$(this).scale(1)});this.firstButton.bind(_event._end,
function(){$(this).css({opacity:"0.2"});$(this).scale(1)});this.lastButton.bind(_event._enter,function(){$(this).css({opacity:"1"});$(this).scale(2)});this.lastButton.bind(_event._leave,function(){$(this).css({opacity:"0.2"});$(this).scale(1)});this.lastButton.bind(_event._end,function(){$(this).css({opacity:"0.2"});$(this).scale(1)})}}),FoldingMenu=Class({width:0,height:0,items:null,visible:!1,create:function(b){this.home=b;this.width=Math.min(b.width()-65,340);this.height=b.height();this.items=
[];this.mainColor=bookConfig.toolbarColor;this.menu=$("");this.menu.insertBefore(this.home);this.initStyle()},initStyle:function(){this.menu.css({position:"absolute",left:-this.width+"px",top:"0px",width:this.width+"px",height:this.height+"px","background-color":colorDiv(this.mainColor,20),overflow:"hidden"})},show:function(b){global.toolBar&&global.toolBar.visible&&!this.visible&&(b||(b=400),this.animate(b),this.visible=!0,BookInfo.getBook().addSearchHighlight())},hide:function(){this.visible&&
(this.animate(0),this.visible=!1,BookInfo.getBook().clearSearchHighlight())},animate_bak:function(b,c){var d=0,f=b,g=(c-b)/10,h=Date.now(),k=function(){this.width=f+=g;this.menu.css("width",f+"px");!0===$.browser.msie&&9>$.browser.version?this.home.css("left",f+"px"):this.home.transform(f,0);if(10>++d){var b=Date.now(),c=Math.max(1,25-(b-h));h=b;k.delay(this,c)}};k.delay(this,25)},animate:function(b){this.animating=!0;animateOnce(this.menu,cssTranslate(this.menu,b,0),0.2,function(){this.animating=
!1}.bind(this));animateOnce(this.home,cssTranslate(this.home,b,0),0.2,function(){this.animating=!1}.bind(this))},showOrHide:function(b){!0===this.visible?this.hide():this.show(b)},addMenuItem:function(b,c,d,f,g){b=new FoldingMenuItem(this.menu,b,f);b.setCaption(c?c:"");b.setIcon(d?d:"");b.title.bind(_event._end,function(b){if(b&&(!0!==this.animating||$.browser.msie)){if(void 0!==g)g();else{var c=b.currentTarget?b.currentTarget.id:"";""!==c&&(this.getItemById(c).isExpanded()?this.collapseItem(c):this.expandItem(c))}return stopEvent(b)}}.bind(this));
this.items.push(b)},addLogoItem:function(b,c,d){b=new FoldingMenuItem(this.menu,b,!0,!0);b.setCaption("");b.setIcon(c?c:"");b.title.bind(_event._end,function(b){if(b&&(!0!==this.animating||$.browser.msie))return d&&window.open(d[0],d[1]),stopEvent(b)}.bind(this));this.items.push(b)},setTitleStyle:function(b){for(var c=0;c");this.title=$("
");this.body=$("
");this.mainColor=colorDiv(bookConfig.toolbarColor,20);
b.append(this.container);this.container.append(this.title);this.container.append(this.body);this.initStyle()},initStyle:function(){this.container.css({position:"relative",width:"100%"});this.body.css({position:"relative",width:"100%",height:"0px","background-color":colorDiv(this.mainColor,10)});this.title.css({"background-color":this.mainColor,"border-bottom":"1px solid "+colorDiv(this.mainColor,10),"border-top":"1px solid "+colorAdd(this.mainColor,10)});setAnimation(this.container,0.2);setAnimation(this.body,
0.2);this.initTitle()},initTitle:function(){this.title.addClass("menuTitle");this.titleState=$("");this.titleState.cssSprite(phoneIconsURL[0],"collapsed",24,24,phoneIconInfo);this.titleIcon=!0===this.isLogo?$("
"):$("");this.titleCaption=$("");bookConfig.iconFontColor&&this.titleCaption.css("color",bookConfig.iconFontColor);this.title.append(this.titleIcon);this.title.append(this.titleCaption);
!0!==this.noExpand&&this.title.append(this.titleState)},setIcon:function(b){if(""===b)this.titleIcon.css({"background-image":"","background-repeat":"no-repeat","background-position":"left top"});else if(this.isLogo)this.titleIcon.append(" ");else{this.titleIcon.css({background:colorAdd(this.mainColor,40)});var c=$("
");c.cssSprite(phoneIconsURL[0],b,20,20,phoneIconInfo);this.titleIcon.append(c)}},setCaption:function(b){this.titleCaption.text(b)},expand:function(b){!1===
this.expanded&&(this.expanded=!0,this.titleState.cssSprite(phoneIconsURL[0],"expanded",24,24,phoneIconInfo));this.resize(b)},resize:function(b){if(!1!==this.expanded){var c=b-this.title.height();this.container.css("height",b+"px");this.body.css("height",c+"px")}},collapse:function(){var b=this.title.height();this.container.css("height",b+"px");this.body.css("height","0px");this.expanded=!1;this.titleState.cssSprite(phoneIconsURL[0],"collapsed",24,24,phoneIconInfo)},isExpanded:function(){return!0===
this.expanded}});
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.button.qrcode({width:50,height:50,text:window.location.href}),this.button.css({width:"50px",height:"50px","z-index":"999",right:"0px",position:"absolute","image-redering":"pixelated"}),b.append(this.button),this.initEvent()},show:function(){this.visible&&this.button.show()},hide:function(){this.visible&&this.button.hide()},initEvent:function(){if(this.visible){var b=
this;this.button.bind(_event._enter,function(b){$(this).css({opacity:"1"})});this.button.bind(_event._leave,function(b){$(this).css({opacity:"0.5"})});this.button.bind(_event._down,function(c){c=isTouch?c.originalEvent.touches:[c];b.drapable=!0;b.mouseDownPointX=c[0].pageX;b.mouseDownPointY=c[0].pageY;b.codePositionX=$(this).offset().left;b.codePositionY=$(this).offset().top;return b.codeMove=!1});this.button.bind(_event._end,function(c){!1==b.codeMove&&(QRcode.getShowStatu()?QRcode.hide():QRcode.show(),
hideMoreBar());$(this).css({opacity:"0.5"});return b.drapable=!1});this.button.bind(_event._move,function(c){c=isTouch?c.originalEvent.touches:[c];if(b.drapable){var d=c[0].pageX-b.mouseDownPointX;c=c[0].pageY-b.mouseDownPointY;$(this).css({right:windowWidth-b.codePositionX-d-50+"px",top:b.codePositionY+c+"px"});if(1"),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'):$(" "):this.data[0].url?$(" '):$(" "),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.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"});this.drawCanvas.css({position:"absolute","z-index":"0"})},onResize:function(b,c,d){this.scale=d;this.pageWidth=b;this.pageHeight=c;this.panelContainer.css({width:b+"px",height:c+"px"});this.canvasPanel[0].width=b;this.canvasPanel[0].height=
c;this.drawCanvas[0].width=b;this.drawCanvas[0].height=c;if(global.annotationCookie&&(d=global.annotationCookie.getCookie("Note"))&&(d=d[this.index-1]))for(var f in d)this.noteParent.find("#"+f).css({left:d[f].position.x*b+"px",top:d[f].position.y*c+"px",width:d[f].size*b+"px",height:d[f].size*b+"px"}),this.noteParent.find("#"+f).find(".noteBox").css({top:d[f].size*b+"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.NOTE:this.panelContainer.css({cursor:"url("+
uiBaseURL+"note.png),auto"});break;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.panelContainer.bind(_event._up,function(b){switch(global.annotationPannel.selectCase){case AnnotationPannel.NOTE:b=this.getPosition(b,28-
this.pageWidth/24,28-this.pageHeight/24,"note");var c=new Date,d=c.toLocaleDateString()+" "+c.getHours()+":"+c.getMinutes()+":"+c.getSeconds(),c="id"+c.getTime();b={index:this.index-1,type:"note",id:c,time:d,size:1/12,position:{x:b.x/this.pageWidth,y:b.y/this.pageHeight},value:""};new AnnotationAddNote(this.noteParent,b,!0);this.noteParent.css({display:"block"});global.annotationCookie.saveNoteCookie("Note",this.index-1,c,b);global.annotationPannel.selectCase=AnnotationPannel.NONE;global.annotationPannel.setPanelIndex(0,
0,"none");global.annotationPannel.note.css({background:"transparent",border:"1px solid transparent"})}}.bind(this)),this.penPaint(this.drawCanvas),this.penPaint(this.canvasPanel))},penPaint:function(b){var c=0,d=0;b.bind(_event._down,function(b){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);if(5==global.annotationPannel.selectCase){var g=
{x:b.x/this.pageWidth,y:b.y/this.pageHeight,lineWidth:global.annotationPannel.inputEraserWidth.val()/this.pageWidth};this.showEraser(b.x,b.y,"block");global.annotationCookie.currentSteps.push(g)}this.X=b.x;this.Y=b.y;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:global.annotationPannel.inputWidth.val()/this.pageWidth,color:Color(global.annotationPannel.inputColor.val()).rgba(global.annotationPannel.inputAlpha.val()/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:global.annotationPannel.inputWidth.val()/this.pageWidth,color:Color(global.annotationPannel.inputColor.val()).rgba(global.annotationPannel.inputAlpha.val()/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:global.annotationPannel.inputWidth.val()/this.pageWidth,opacity:global.annotationPannel.inputAlpha.val()/100,color:Color(global.annotationPannel.inputColor.val()).rgba(global.annotationPannel.inputAlpha.val()/100)};global.annotationCookie.currentSteps.push(g);this.drawLine(b.x,b.y);this.noLeaveCvs&&(this.lastPos=b);break;case AnnotationPannel.ERASER:this.showEraser(b.x,b.y,"block");g={x:b.x/
this.pageWidth,y:b.y/this.pageHeight,lineWidth:global.annotationPannel.inputEraserWidth.val()/this.pageWidth};global.annotationCookie.currentSteps.push(g);this.eraserClear(b.x,b.y);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))},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:global.annotationPannel.inputWidth.val()/
this.pageWidth,color:Color(global.annotationPannel.inputColor.val()).rgba(global.annotationPannel.inputAlpha.val()/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:global.annotationPannel.inputWidth.val()/
this.pageWidth,color:Color(global.annotationPannel.inputColor.val()).rgba(global.annotationPannel.inputAlpha.val()/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=global.annotationPannel.inputEraserWidth.val();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<=global.annotationPannel.inputAlpha.val()/100?this.ctx.lineCap="round":this.ctx.lineCap="butt";this.ctx.lineJoin="round";this.ctx.lineWidth=global.annotationPannel.inputWidth.val();this.ctx.strokeStyle=Color(global.annotationPannel.inputColor.val()).rgba(global.annotationPannel.inputAlpha.val()/
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=global.annotationPannel.inputWidth.val();b.strokeStyle=Color(global.annotationPannel.inputColor.val()).rgba(global.annotationPannel.inputAlpha.val()/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=global.annotationPannel.inputWidth.val();b.strokeStyle=Color(global.annotationPannel.inputColor.val()).rgba(global.annotationPannel.inputAlpha.val()/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,global.annotationPannel.inputEraserWidth.val(),global.annotationPannel.inputEraserWidth.val());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;dh?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,E,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;E=n.offset().left;A=n.offset().top;w=(b.pageX||b.originalEvent.touches[0].pageX)-
E;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 C,L,K;t.on("click touchend",function(b){d.revertNoteImgText(g.attr("data-key"));n.hide();k.hide();D=!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();D=!1});r.on("click touchend",function(b){C||(C=$("
").appendTo(u),
$(" ").html("Delete This Note!").appendTo(C),L=$("
").css({left:40}).html("Yes").appendTo(C),K=$("
").css({left:97}).html("No").appendTo(C),L.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 E,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");E={x:b.clientX-x.offset().left+0,y:b.clientY-x.offset().top+16,t:0,w:c.lineWidth};c.points.push(E);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,E=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-(E-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());this.reportBtn.append(this.reportIcon)},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"});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"});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"});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.initReportBox();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"})},initBoxCss:function(){this._super();this.alertBox.css({width:"320px",height:"130px"});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.reportBox.css({width:"300px",height:"300px"});this.content.css({padding:"20px"})},initTextArea:function(){this._super();this.inputBox.css({"margin-top":"10px"});this.textarea.css({width:"238px",padding:"6px 10px"});this.number.css({width:"238px",padding:"6px 10px","margin-top":"6px"})},initButtonCss:function(){this._super();this.btnBox.css({"text-align":"center",margin:"14px 0 0"});this.confirm.css({width:"100%",height:"30px",
margin:"0","line-height":"30px"});this.cancel.css({display:"none"})},initTltle:function(){this.close=$("
");this.close.css({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);
jQuery.fn.colorSelection=function(b){this.getColor=function(){return this.color}.bind(this);this.refreshColor=function(){var b=getRandomColor();this.setColor(b)}.bind(this);this.setColor=function(b){this.color=b;$(this).css("background-color",b);$(this).attr("data-color",b)}.bind(this);this.create=function(b){var d=this;b=b?b:getRandomColor();this.setColor(b);this.colorPanel=new ColorPanel(this);this.on("click touchstart",function(b){var c=$(this).offset().left;c>windowWidth-d.colorPanel.table.width()&&
(c=windowWidth-d.colorPanel.table.width()-5);d.colorPanel.setPosition(c,$(this).offset().top+$(this).outerHeight());d.colorPanel.show();b.stopPropagation()})}.bind(this);this.getColorPanel=function(){return this.colorPanel}.bind(this);this.hideColorPanel=function(){this.colorPanel.hide()}.bind(this);this.create(b)};
var ColorPanel=function(b){this.helixColors="#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(" ");this.table=
$("
");this.addItem();$("body").append(this.table);this.selection=b};
ColorPanel.prototype={addItem:function(){for(var b=this,c=0;7>c;c++){for(var d=$("
"),f=0;10>f;f++){var g=$("
"),h=this.helixColors[10*c+f];g.attr("title",h);g.css("background-color",h);g.on("mouseenter",function(){b.showColorSelection(this.title)});g.on("click touchstart",function(){b.colorSelected(this.title)});d.append(g)}this.table.append(d)}},showColorSelection:function(b){b=b.toUpperCase();this.selection.setColor(b)},colorSelected:function(b){this.hide();b=b.toUpperCase();this.selection.setColor(b)},
hide:function(){this.table.hide()},show:function(){this.table.css("display","table-cell")},setPosition:function(b,c){this.table.css({left:b+"px",top:c+"px"})}};
var getRandomColor=function(){return"#"+Math.floor(2236962+7829367*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.colorSelection.colorSelection();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")+"
")},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)},initEvent:function(b){this.leftAddPage.click(function(){var c=
{pageIndex:this.leftPageIndex,caption:this.input.val(),color:this.colorSelection.getColor()};b.addItem(c)}.bind(this));this.rightAddPage.click(function(){var c={pageIndex:this.rightPageIndex,caption:this.input.val(),color:this.colorSelection.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()})},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()){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()},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.colorSelection(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.lightItem();this.judgeToSaveOrCancel();gotoPageFun(this.pageIndex)}.bind(this));this.title.bind("keypress",function(b){"13"==b.keyCode&&(this.endEdit(),this.saveData())}.bind(this))},saveData:function(){var b=this.colorSelection.getColor(),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.getColor();this.title.val()!=this.caption&&this.title.val(this.caption);b!=this.color&&this.colorSelection.setColor(this.color)},endEdit:function(){this.colorSelection.hide();this.colorSelection.hideColorPanel();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:"+this.pageIndex+" ");this.image=$(" ");this.caption=$(""+this.caption+" ");this.deleteBtn=$("
");
this.item.append(this.page);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)}.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))},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)){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){this.bookmarkList.deleteItem(b);this.refreshPanel()},editItem:function(b){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(){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()&&BookInfo.getBook().bmt&&BookInfo.getBook().bmt.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(){},initHtml:function(){this.stage.append(this.title);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()},addItem:function(b){b&&b.caption&&b.pageIndex&&!this.bookmarkListPanel.inList(b.pageIndex)&&(this.bookmarkListPanel.addItem(b),this.colorSelection.refreshColor(),
this.input.val(""),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(){this.refreshPanel()},onShow:function(){this.close.changeButtonColor(this.fontColor)}}).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.close.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-36);this.refreshPanel()},initEvent:function(){},onShow:function(){this.close.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("lblCancel","Cancel")+"
")},initEvent:function(b){this.button.onTap(b.hide.bind(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&&LanguageTool.isRightToLeft(this.parm.search_text)&&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);0c)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.rightb||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 BookShadow=Class({create:function(b){this.background=$("
");bookConfig.FlipDirection&&(this.background=$("
"));$(b).append(this.background);this.visible=!0},doubleWidth:function(b){bookConfig.FlipDirection?$(this.background).attr("class",b?"doubleHeight":"singleHeight"):$(this.background).attr("class",b?"doubleWidth":"singleWidth");$(this.background).addClass("bookShadow")},doubleHeight:function(b){$(this.background).attr("class",
b?"doubleHeight":"singleHeight");$(this.background).addClass("bookShadow-vertical")},right:function(b){$(this.background).css({right:"auto"});b&&$(this.background).css({right:"0px"})},down:function(b){$(this.background).css({bottom:"auto"});b&&$(this.background).css({bottom:"0px"})},show:function(){this.visible||($(this.background).show(),this.visible=!0)},hide:function(){this.visible&&($(this.background).hide(),this.visible=!1)}});bdor[26]="h";
Class("BookmarkList",{create:function(){this.bookmarks=[];this.bookPageCount=bookConfig.totalPageCount},reload:function(){this.bookmarks=[];this.loadBasicData();this.loadUserData();this.sort()},loadBasicData:function(){if(global.bmtConfig){var b=bmtConfig;bmtConfig.tabs&&(b=bmtConfig.tabs);for(var c=0;c");this.$caption=$("
");this.$body.append(this.$caption);this.initStyle();this.update()},initStyle:function(){bmtConfig.showPage&&this.$body.attr("title",getShownPageNumber(this.data.pageIndex));bmtConfig.hasTexture&&this.$body.css({"background-image":"url("+(uiBaseURL+"leather1.png")+")","background-repeat":"repeat"})},getData:function(){return this.data},
setData:function(b){this.data=b;this.update()},update:function(){var b=(bookConfig.tabAlpha?bookConfig.tabAlpha:100)/100;this.$body.css("background-color",Color(this.data.color).rgba(b));this.$caption.text(this.data.caption)},moveTo:function(b){this.$parent!=b&&(this.remove(),this.$parent=b,this.$parent.append(this.$body),this.$body.bind("click",this.onBookmarkClick.bind(this)),this.$body.bind("mouseenter",this.onBookmarkMouseEnter.bind(this)),this.$body.bind("mouseleave",this.onBookmarkMouseLeave.bind(this)),
this.$body.bind("pointerdown pointermove pointerup pointerenter",function(b){b.stopPropagation()}),this.$body.bind("mousedown mousemove mouseup mouseenter",function(b){b.stopPropagation()}))},remove:function(){null!=this.$parent&&(this.$body.remove(),this.$body.unbind(),this.$parent=null)},onBookmarkClick:function(b){gotoPageFun(this.data.pageIndex)},onBookmarkMouseEnter:function(b){this.$body.animate({top:"5px"},300)},onBookmarkMouseLeave:function(b){this.$body.animate({top:"40px"},300)},setPosition:function(b){this.$body.css({left:"",
right:"","z-index":""});this.$body.css(b)}});
Class("BookmarkItemPool",{create:function(){this.items=[]},getBookmarkItem:function(b){var c=this.getItemFromList(b);c||(c=this.createNewItem(b));return c},getItemFromList:function(b){for(var c=0;c"),this.rightBar=$("
")):
(this.leftBar=$("
"),this.rightBar=$("
"));this.leftBar.on("mouseup touchstart",function(b){b.stopPropagation()});this.rightBar.on("mouseup touchstart",function(b){b.stopPropagation()});this.onSideEdge&&(this.leftBar.addClass("vertical"),this.rightBar.addClass("vertical"));this.leftBar.css("z-index",this.zIndex);this.rightBar.css("z-index",this.zIndex);this.$parent.append(this.leftBar);this.$parent.append(this.rightBar)},reload:function(){!1!=
this.visible&&(this.bookmarkList.reload(),this.refresh())},refresh:function(){!1!=this.visible&&(this.separate(),this.adjustBar(),this.onResize())},separate:function(){this.refreshShownPage();this.bookmarkPool.clean(this.bookmarkList);for(var b=0;b=this.bigShownPage?rightToLeft?d.moveTo(this.leftBar):d.moveTo(this.rightBar):c.pageIndex<=this.smallShownPage&&(rightToLeft?d.moveTo(this.rightBar):
d.moveTo(this.leftBar))}},refreshShownPage:function(){var b=BookInfo.getCurrentPages();1==b.length?(this.smallShownPage=b[0],this.bigShownPage=b[0]):(this.smallShownPage=Math.min(b[0],b[1]),this.bigShownPage=Math.max(b[0],b[1]))},isTheFirstPage:function(){this.refreshShownPage();return 1==this.bigShownPage},isTheLastPage:function(){this.refreshShownPage();return this.smallShownPage==totalPageCount},setAttachmentBefore:function(b){1>=b&&(parseBool(bookConfig.RightToLeft)?this.hideRightBar():this.hideLeftBar());
b>=originTotalPageCount&&(parseBool(bookConfig.RightToLeft)?this.hideLeftBar():this.hideRightBar())},adjustBar:function(){var b=this.leftBar.children().length,c=this.rightBar.children().length;this.hideSmallTab?rightToLeft?(this.hideRightBar(),0==b?this.hideLeftBar():this.showLeftBar()):(this.hideLeftBar(),0==c?this.hideRightBar():this.showRightBar()):rightToLeft?(0==c||this.isTheFirstPage()?this.hideRightBar():this.showRightBar(),0==b||this.isTheLastPage()?this.hideLeftBar():this.showLeftBar()):
(0==b||this.isTheFirstPage()?this.hideLeftBar():this.showLeftBar(),0==c||this.isTheLastPage()?this.hideRightBar():this.showRightBar());bookConfig.HardPageEnable&&this.adjustZindex()},adjustZindex:function(){this.leftBar.css("z-index",this.zIndex);this.rightBar.css("z-index",this.zIndex);rightToLeft?(this.isTheLastPage()&&this.rightBar.css("z-index",1),this.isTheFirstPage()&&this.leftBar.css("z-index",1)):(this.isTheLastPage()&&this.leftBar.css("z-index",1),this.isTheFirstPage()&&this.rightBar.css("z-index",
1))},onResize:function(){if(this.onSideEdge){var b=this.$parent.height(),c=this.$parent.width();bookConfig.FlipDirection&&(b/=2);this.leftBar.css({width:b+"px",left:-b+"px"});this.rightBar.css({width:b+"px",left:c+"px"});bookConfig.FlipDirection&&this.rightBar.css({left:c-b+"px"});rightToLeft?(this.resizeItemsOfBar(this.rightBar,"left",1),this.resizeItemsOfBar(this.leftBar,"right",-1)):(this.resizeItemsOfBar(this.leftBar,"right",1),this.resizeItemsOfBar(this.rightBar,"left",-1))}else b=this.$parent.width(),
c=this.$parent.width(),this.hideSmallTab||(b/=2),this.leftBar.css({width:b+"px",left:"0px"}),this.rightBar.css({width:b+"px",left:c-b+"px"}),rightToLeft?(this.resizeItemsOfBar(this.rightBar,"left",1),this.resizeItemsOfBar(this.leftBar,"left",-1)):(this.resizeItemsOfBar(this.leftBar,"left",1),this.resizeItemsOfBar(this.rightBar,"left",-1))},resizeItemsOfBar:function(b,c,d){for(var f=b.width(),g=b.children().length,f=Math.floor((f-4-110)/(g-1)),f=Number.between(f,10,70),g=iPos=0;g");this.searchButton=$(" ");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))},refreshSwiper:function(b,c){for(var d=c.length,f=0;f"):$(" ");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";this.fontColor=c.fontColor;this.colorObj=Color(this.fontColor);this.initDefaultDom();this.initHtml(b,
c);this.initEvent()},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)),(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");this.number=$(""+
(this.parm.label?this.parm.label+":":"")+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.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;bk.length;)k="0"+k;b.fillStyle="#"+k;b.fillRect(f+g*m,h,1,l);b.fill();m++}}var COLOR_0=243,COLOR_1_1=209,COLOR_1_2=231,COLOR_2_1=209,COLOR_2_2=213;
function getColorAtIdx(b,c){var d=0,f=d=0,d=Math.max(3,c/6+c/4),d=Math.min(11,d),d=0==d%2?d-1:d;global.originColor||(global.originColor=Color(bookConfig.thicknessColor).split());var g=originColor.r/255,h=originColor.g/255,k=originColor.b/255;0==b?d=COLOR_0:b");this.thicknessCanvas=$("");this.isLeft?this.thickness.addClass("left_thickness"):this.thickness.addClass("right_thickness");
this.thickness.css({"z-index":5});this.thickness.append(this.thicknessCanvas);this.parent.append(this.thickness);this.context=this.thicknessCanvas[0].getContext("2d")},initShadow:function(){this.shadow||$.browser.msie&&11>$.browser.version||(this.shadow=$("
"),this.thickness.append(this.shadow))},refresh:function(b,c){this.startIndex=b;this.endIndex=c;this.pageCount=this.endIndex-this.startIndex;this.width=this.getThicknessWidth(Math.abs(this.pageCount));this.thickness.css({width:this.width+
"px"});this.thicknessCanvas.attr("width",this.width+"px");this.context.clearRect(0,0,this.thicknessWidth,this.height);this.isLeft?(this.thickness.css({left:-this.width+"px"}),drawThickeness(this.context,this.width,this.height,this.width,-1)):drawThickeness(this.context,this.width,this.height,0,1)},onResize:function(b,c){this.resizeThickness(b,c);this.resizeShadow(b,c)},show:function(){this.thickness.show()},hide:function(){this.thickness.hide()},hideCanvas:function(){this.thicknessCanvas.hide()},
showCanvas:function(){this.thicknessCanvas.show()},resizeShadow:function(b,c){},resizeThickness:function(b,c){this.height=c;var d="100%";this.isLeft&&(d=-this.width+"px");this.thickness.css({left:d});this.thicknessCanvas.attr("height",c+"px");this.thicknessCanvas.attr("width",this.thicknessWidth+"px");this.context.clearRect(0,0,this.thicknessWidth,this.height);this.isLeft?drawThickeness(this.context,this.thicknessWidth,c,this.thicknessWidth,-1):drawThickeness(this.context,this.thicknessWidth,c,0,
1);this.resetTotalWidth(b,c)},resetTotalWidth:function(b,c){this.totalWidth=oneSideTotalThicknessWidth()},getPageIndexByPosition:function(b){b=this.getDistance(b);return this.startIndex+parseInt(b*this.pageCount/this.width)},getDistance:function(b){b=b.pageX;var c=$(this.thickness).offset().left;return b-c},getThicknessWidth:function(b){return this.width=Math.floor(this.totalWidth*b/this.totalPageCount)},getWidth:function(){return this.width},getHeight:function(){return this.height},initEvent:function(){this.thickness.bind("mouseup touchstart",
function(b){b.stopPropagation()}.bind(this));this.thickness.click(function(b){0!=this.pageCount&&(b=this.getPageIndexByPosition(b),!b||0>=b||gotoPageFun(b))}.bind(this));isPhone()||isPad()||(this.thickness.bind("mousemove",function(b){if(0!=this.pageCount){var c=this.getPageIndexByPosition(b);if(!c||0>=c)this.hint&&this.hint.hide();else{var c=" "+getShownPageNumber(c)+" ",d=b.pageX;b=b.pageY-30;this.hint||(this.hint=new divHint(c,d,b));this.hint.setText(c);this.hint.show(d,b);this.hint.moveto(d,b)}}}.bind(this)),
this.thickness.bind("mouseleave",function(){null!=this.hint&&this.hint.hide()}.bind(this)))},doSetMovingScale:function(b,c,d,f,g){if(!((isPhone()||isPad())&&!bookConfig.HardPageEnable||!this.totalWidth||0>=this.totalWidth||(g=g?0:Math.min(4/this.totalWidth,1),1==g||(1!=b&&1!=c||bookConfig.isTheBookOpen&&BookInfo.isDoublePage())&&b!=totalPageCount&&c!=totalPageCount))){var h=1,k=1;(1!=b||bookConfig.isTheBookOpen&&BookInfo.isDoublePage())&&b!=totalPageCount||(h=g);(1!=c||bookConfig.isTheBookOpen&&BookInfo.isDoublePage())&&
c!=totalPageCount||(k=g);b=$.easing.easeInOutSine(null,d,h,k-h,f);this.setScale(b)}},setScale:function(b){this.thickness.css({transform:"scaleX("+b+") scaleZ(1)","-webkit-transform":"scaleX("+b+") scaleZ(1)","-moz-transform":"scaleX("+b+") scaleZ(1)","-ms-transform":"scaleX("+b+") scaleZ(1)","-o-transform":"scaleX("+b+") scaleZ(1)"});this.scale=b}});
var totalThicknessWidth=function(b){if(!b&&!bookConfig.showThicknessOnMobile)return 0;totalWidth=oneSideTotalThicknessWidth();b&&(totalWidth*=2);return totalWidth},oneSideTotalThicknessWidth=function(){var b=getMaxThicknessWidth(),c=Math.min(bookConfig.totalPageCount,100),c=$.easing.easeOutQuad(null,c,0,b,100),c=Math.floor(c),d=1,d=$.easing.swing(null,Math.max(c-8,0),1,d-1,b-8);return c=Math.floor(c*d)},getMaxThicknessWidth=function(){switch(bookConfig.thicknessWidthType){case "none":return 0;case "thinner":return 5;
case "thin":return 15;case "thicker":return 40}return 20},ThicknessManager=Class({create:function(b,c){this.book=c;this.leftThickness=new Thickness(b,!0);this.rightThickness=new Thickness(b,!1)},setAttachmentBefore:function(b){bookConfig.RightToLeft?this.book.currentPageIndexc&&(d=2*this.book.width-d);this.leftThickness&&this.leftThickness.doSetMovingScale(b,c,d,2*this.book.width,bookConfig.HardPageEnable);this.rightThickness&&this.rightThickness.doSetMovingScale(b,c,d,2*this.book.width,bookConfig.HardPageEnable)},refreshThickness:function(){bookConfig.RightToLeft?
(this.leftThickness&&this.leftThickness.refresh(bookConfig.totalPageCount,this.getMaxCurrentIndex()),this.rightThickness&&this.rightThickness.refresh(this.getMinCurrentIndex(),0)):(this.leftThickness&&this.leftThickness.refresh(0,this.getMinCurrentIndex()),this.rightThickness&&this.rightThickness.refresh(this.getMaxCurrentIndex(),bookConfig.totalPageCount));this.leftThickness&&this.leftThickness.doSetMovingScale(this.book.currentPageIndex,this.book.currentPageIndex,this.book.width,this.book.width,
bookConfig.HardPageEnable);this.rightThickness&&this.rightThickness.doSetMovingScale(this.book.currentPageIndex,this.book.currentPageIndex,this.book.width,this.book.width,bookConfig.HardPageEnable)},resizeAttachment:function(b,c){if(this.leftThickness)this.leftThickness.onResize(b,c);if(this.rightThickness)this.rightThickness.onResize(b,c);this.refreshThickness()},getThicknessWidth:function(){if(rightToLeft)return[this.leftThickness.getWidth()*this.leftThickness.scale,0];if(!rightToLeft)return[0,
this.rightThickness.getWidth()*this.rightThickness.scale]},getMinCurrentIndex:function(b){if(void 0==b||null==b)b=this.book.currentPageIndex;return b},getMaxCurrentIndex:function(b){if(void 0==b||null==b)b=this.book.currentPageIndex;return Math.min(b,bookConfig.totalPageCount)}}).extend(ThicknessManager),FlipShotBar=Class({create:function(b){this.flipShotObj=$("
");this.flipShotObj.css({"z-index":2*(bookConfig.totalPageCount+5)+1});this.isLeft=b;this.visible=
!0;this.width=50;this.height=0;this.init();this.initEvents();this.flipShotObj.append(this.firstDiv);this.flipShotObj.append(this.prevDiv)},init:function(){this.firstDiv=$("
");this.prevDiv=$("
");this.isLeft?(this.firstDiv.addClass("left"),this.prevDiv.addClass("left"),this.prevImageUrl=uiBaseURL+"slide_leftButton.png",this.firstImageUrl=uiBaseURL+"slide_firstButton.png"):(this.firstDiv.addClass("right"),this.prevDiv.addClass("right"),
this.prevImageUrl=uiBaseURL+"slide_rightButton.png",this.firstImageUrl=uiBaseURL+"slide_lastButton.png");this.prevDiv.append(" ");this.firstDiv.append(" ")},onResize:function(b,c){var d=Math.min(50,0.7*c/8),f=Math.min(0.7*c,310);this.width=d;this.height=f;this.flipShotObj.css({width:d,height:f});this.setPosition(b,c)},setPosition:function(b,c){this.flipShotObj.css({left:this.isLeft?1-this.width:"100%",top:(c-this.height)/2})},setScale:function(b){this.width*=
b;this.height*=b;this.flipShotObj.css({width:this.width,height:this.height})},setVisible:function(b){this.flipShotObj.css({display:b?"block":"none"});this.visible=b},getContainer:function(){return this.flipShotObj},initEvents:function(){this.isLeft?(this.prevDiv.bind(_event._end,function(b){rightToLeft?nextPageFun():previousPageFun()}),this.firstDiv.bind(_event._end,function(b){rightToLeft?lastPageFun():firstPageFun()})):(this.prevDiv.bind(_event._end,function(b){rightToLeft?previousPageFun():nextPageFun()}),
this.firstDiv.bind(_event._end,function(b){rightToLeft?firstPageFun():lastPageFun()}));this.prevDiv.on("mousedown mouseup touchstart",function(b){b.stopPropagation()});this.firstDiv.on("mousedown mouseup touchstart",function(b){b.stopPropagation()})},setVisibleByIndex:function(b){this.isLeft?(1=b&&(bookConfig.RightToLeft||1>=b&&this.setVisible(!1)),b>=originTotalPageCount-2&&bookConfig.RightToLeft&&
b>=originTotalPageCount-1&&this.setVisible(!1)):(1=b&&bookConfig.RightToLeft&&1>=b&&this.setVisible(!1),b>=originTotalPageCount-2&&(bookConfig.RightToLeft||b>=originTotalPageCount-1&&this.setVisible(!1)))},refresh:function(){}}),FlipShotBarManager=Class({create:function(b,c){this.book=c;this.leftFlipShotBar=new FlipShotBar(!0);this.rightFlipShotBar=new FlipShotBar(!1)},appendTo:function(b){b.append(this.leftFlipShotBar.getContainer());
b.append(this.rightFlipShotBar.getContainer())},setVisibleByIndex:function(b){bookConfig.RightToLeft?(b>=this.book.currentPageIndex&&this.leftFlipShotBar.setVisibleByIndex(b),b<=this.book.currentPageIndex&&this.rightFlipShotBar.setVisibleByIndex(b)):(b<=this.book.currentPageIndex&&this.leftFlipShotBar.setVisibleByIndex(b),b>=this.book.currentPageIndex&&this.rightFlipShotBar.setVisibleByIndex(b))},refresh:function(){this.leftFlipShotBar&&this.leftFlipShotBar.setVisibleByIndex(this.book.currentPageIndex);
this.rightFlipShotBar&&this.rightFlipShotBar.setVisibleByIndex(this.book.currentPageIndex)},onResize:function(b,c){if(this.leftFlipShotBar)this.leftFlipShotBar.onResize(b,c);if(this.rightFlipShotBar)this.rightFlipShotBar.onResize(b,c)},getWidth:function(){return this.leftFlipShotBar?this.leftFlipShotBar.width:this.rightFlipShotBar?this.rightFlipShotBar.width:0},getHeight:function(){return this.leftFlipShotBar?this.leftFlipShotBar.height:this.rightFlipShotBar?this.rightFlipShotBar.height:0},resizeAttachment:function(b,
c,d){this.leftFlipShotBar&&this.leftFlipShotBar.setScale(d);this.rightFlipShotBar&&this.rightFlipShotBar.setScale(d);if(this.leftFlipShotBar)this.leftFlipShotBar.onResize(b,c);if(this.rightFlipShotBar)this.rightFlipShotBar.onResize(b,c)}}),VideoGalleryElements=Class({create:function(b){this._super(b);this.initVideoList();this.videoList&&0!=this.videoList.length&&(this.initElements(),this.initEvent(b),this.pickElements(b))},initVideoList:function(){this.videoList=videoList},initElements:function(){this.content=
$("
");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");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)}},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:"137px",height:"150px",right:(windowWidth-137)/2+"px",top:(windowHeight-150)/2+"px"});this.handImg.css({position:"absolute"})},onSwipe:function(b,c){var d=30;bookConfig.FlipDirection?(d=d*windowHeight/1600,Math.abs(c)<=d||c>d&&nextPageFun()):(d=d*windowWidth/1600,Math.abs(b)<=d||(b<-d?nextPageFun():b>d&&rightToLeft&&nextPageFun()))},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")},hide:function(){this.helpHand.attr("class","");this.container.fadeOut(300)}}),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({position:"absolute","z-index":"1"});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"}))},onResize:function(b,c){},initEvent:function(){bookConfig.appLargeLogoURL&&this.largeLogo.bind(_event._click,function(b){b.stopPropagation();bookConfig.LargeLogoTarget||(bookConfig.LargeLogoTarget="blank");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);this.$spirit.append(this.$shadow);$("body").append(this.$spirit)},talk:function(){this.$spirit.removeClass("stand");
this.$spirit.addClass("talk")},stand:function(){this.$spirit.removeClass("talk");this.$spirit.addClass("stand")},show:function(){this.$spirit.show()},hide:function(){this.$spirit.hide()}}),Alice=Class({create:function(){this._super();this.$spirit.addClass("Alice")}}).extend(Spirit),Peter=Class({create:function(){this._super();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.lrcFile=b,this.$player=c,$.ajax({url:b,headers:{contentType:"application/x-www-form-urlencoded"},success:function(b){var c=this.parseLyric(b);c?(this.show(),c&&(this.renderLyric(c),this.updateLyric(c),this.$player.bind("timeupdate",function(){this.updateLyric(c)}.bind(this)))):this.hide()}.bind(this),error:function(b){error&&error(b)}})},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=$("
");var b=$("
");
this.$lyrics=$("
");b.append(this.$lyrics);this.$lyric.append(b);this.$lyric.append($(" "));$("body").append(this.$lyric)},show:function(){this.$lyric.show()},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("timeupdate",function(){this.timeupdate()}.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){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.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;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"}).css("");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(){var b=parseInt(this.getCurrentAudioData());this.$audio.$media[0].currentTime>=b&&(this.flipByIndex(this.audioIndex),this.audioIndex++)}.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[b].pageIndex),gotoPageFun(b))}});var PcAboutForm=Class({create:function(b){this.elements=new AboutElements(this);this._super(b)},onCreate:function(){this.stage.css({"background-color":this.mainColor,color:this.fontColor});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.stage.append(this.close);this.stage.append($(" "));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);bookConfig.CompanyLogoFile&&this.swiper.append(this.logo);this.swiper.append(this.description);this.content2.scroll({},Direction.top,"win10");this._super()},showContact:function(){this.descriptionTitle.removeClass("focus");this.contactTitle.addClass("focus");this.descriptionTitle.css("border","1px solid transparent");this.contactTitle.css("border","1px solid "+
this.fontColor);this.content1.show();this.content2.hide()},showDescription:function(){this.contactTitle.removeClass("focus");this.descriptionTitle.addClass("focus");this.contactTitle.css("border","1px solid transparent");this.descriptionTitle.css("border","1px solid "+this.fontColor);this.content2.show();this.content1.hide()},onShow:function(){this.close.changeButtonColor(this.fontColor);this.showDescription();this.content2.refreshData()}}).extend(FadeOutFadeForm);var PcBookmarkItem=Class({create:function(b,c){this.mainColor=bookConfig.formBackgroundColor?bookConfig.formBackgroundColor:bookConfig.toolbarColor;this.fontColor=bookConfig.formFontColor?bookConfig.formFontColor:bookConfig.iconColor;b.fontColor=this.fontColor;this._super(b,c)}}).extend(BookmarkItem);var PcBookmarkListPanel=Class({create:function(b){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);this._super(b)},onCreate:function(){},newItem:function(b){return new PcBookmarkItem(b,this.callback)}}).extend(BookmarkListPanel);var PcBookmarkForm=Class({create:function(b){this._super(b)},onCreate:function(){this.stage.css({"background-color":this.mainColor,color:this.fontColor});this.bookmarkListPanel.onCreate()},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.stage.append(this.close);this.stage.append($(" "));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-188;this.stage.find(".bookmark_content").css({height:b-87+"px"});this.stage.css({height:this.height+"px",top:c+"px"});this.bookmarkListPanel.onResize(this.width,this.maxHeight);this.refreshPanel()}}).extend(PcBookmarkFrame);var PcHelpForm=Class({create:function(b){this.elements=new HelpElements(this);this._super(b)},onCreate:function(){this.stage.css({"background-color":this.mainColor,color:this.fontColor});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._super();bookConfig.showHelpContentAtFirst?this.show():
this.hide()},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.stage.append(this.close);this.stage.append($(" "));this.stage.append(this.image);this.title1&&this.stage.append(this.title1);this.title2&&this.stage.append(this.title2);this._super()},onShow:function(){this.close.changeButtonColor(this.fontColor);!bookConfig.helpContentFileURL&&
this.image&&this.image.changeButtonColor(this.fontColor)}}).extend(FadeOutFadeForm);var PcPrintForm=Class({create:function(b){this.elements=new PrintElements(this);this._super(b)},onCreate:function(){this.stage.css({"background-color":this.mainColor,color:this.fontColor});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.stage.append(this.close);this.stage.append($(" "));this.stage.append(this.printAll);
this.stage.append(this.printCurrent);this.stage.append(this.printRange);this.stage.append(this.printButton);this._super()},changeItemColor:function(){this.printCurrent.changeButtonColor(this.fontColor);this.printRange.changeButtonColor(this.fontColor);this.printAll.changeButtonColor(this.fontColor)},initEvent:function(){this._super()},onShow:function(){this.close.changeButtonColor(this.fontColor);this.pictureListForm.leftBtn.changeButtonColor(this.fontColor);this.pictureListForm.rightBtn.changeButtonColor(this.fontColor);
this.changeItemColor()}}).extend(FadeOutFadeForm);var PcSearchItem=Class({create:function(b,c){c.fontColor=this.fontColor;this._super(b,c)}}).extend(SearchItem);var PcSearchForm=Class({create:function(b){this.elements=new SearchElements(this);this._super(b)},onCreate:function(){this.stage.css({"background-color":this.mainColor,color: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.stage.append(this.close);this.stage.append($(" "));this.stage.append(this.input);this.stage.append(this.searchButton);
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-40;this.stage.css({height:this.height+"px",top:c+"px"});this.searchSwiper.css("height",
this.height-88+"px");this.elements.refresh()},getList:function(){return this.elements.getList()},onShow:function(){this.close.changeButtonColor(this.fontColor);this.input.focus();BookInfo.getBook().addSearchHighlight()},onHide:function(){BookInfo.getBook().clearSearchHighlight()}}).extend(SlideForm);var PcShareForm=Class({create:function(b){this.elements=new ShareElements(this);this._super(b)},onCreate:function(){this.stage.css({"background-color":this.mainColor,color:this.fontColor});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.stage.append(this.close);this.stage.append($(" "));this.stage.append(this.linkTitle);
this.stage.append(this.linkArea);this.stage.append(this.copy1);this.shareCurrentPageBox.append(this.shareCurrentCheck).append(this.shareCurrentPageTitle1);this.stage.append(this.shareCurrentPageBox);this.stage.append(this.insertToSite);this.stage.append(this.insertArea);this.shareCurrentPageEmbed.append(this.embedCurrentCheck).append(this.shareCurrentPageTitle2);this.stage.append(this.shareCurrentPageEmbed);this.stage.append(this.copy2);this.stage.append(this.sharePanel);this._super()},onShow:function(){this.close.changeButtonColor(this.fontColor)}}).extend(FadeOutFadeForm);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.elements=new TableOfContentElements(this);this._super(b)},onCreate:function(){this.stage.css({"background-color":this.mainColor,color:this.fontColor});this.close.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.stage.append(this.close);this.stage.append($(" "));this.stage.append(this.input);this.stage.append(this.searchButton);this.stage.append(this.tableofcontentSwiper);this.parent.append(this.stage)},newItem:function(b,c,d){return new PcTableOfContentItem(b,c,d)},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-88;this.stage.css({height:this.height+"px",top:c+"px"});this.tableofcontentSwiper.css("height",this.maxHeight+"px");this.elements.refresh()},onShow:function(){}}).extend(SlideForm);var PcVideoGalleryForm=Class({create:function(b){this.elements=new VideoGalleryElements(this);this._super(b)},onCreate:function(){this.stage.css({"background-color":this.mainColor,color:this.fontColor});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.stage.append(this.close);this.stage.append($(" "));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()},onShow:function(){this.close.changeButtonColor(this.fontColor);this.elements.playVideo(this.videoList[0])},onHide:function(){this.video.attr("src","")}}).extend(FadeOutFadeForm);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"+$(this).html()+" ";b.boldText=$(this).html();b.index=m.indexOf(c);b.fontSize=$(this).parent().attr("size")||l.size;m=m.slice(b.index+c.length);l.boldConfig.push(b)})}k.font=l;h=h.html();h=this.changeXmlToHtml(h);k.text=h;/]+\bhref="([^"]*)"[^>]*>([\s\S]*?)<\/a>/.test(k.text)&&(this.hasATag=!0);d.paragraphs.push(k)}this.analysisResult.push(d)}},
getTextArray:function(){for(var b=this.getLines(),c=[],d=0;d/);null!=h;){var k=h[0],h=f.substring(0,h.index);-1")?(g=h.replace(/<\/*b([\s\S]*?)>/g,""))&&c.push({text:g,css:"font-weight:bold;"}):h&&c.push({text:h,css:""});f=f.replace(h,"");g=k.match(/"[\w-*:\w#*;]*"/);null!=g&&(g=g[0].replace(/"/g,""));if(h=k.replace(/<\/*p([\s\S]*?)>/g,"")){var l=h.match(//g);if(null!=l)for(d=0;d/g,""),css:g+"font-weight:bold;"});h=h.replace(l[d],"")}}h&&c.push({text:h,css:g});f=f.replace(k,"");h=f.match(//)}h=f.substring(0,f.length+1);(h=h.replace(/<\/*p([\s\S]*?)>|<\/*b([\s\S]*?)>/g,""))&&c.push({text:h,css:""})}return c},changeXmlToHtml:function(b){var c=b.match(//),d=[];for(null!=c&&(b=b.replace(/<\/font/g,"
",g+'" >');b=b.replace(c[0],f);d=[];c=b.match(//)}0<=
b.indexOf("")&&(b=b.replaceAll("",''));0<=b.indexOf("")&&(b=b.replaceAll("",''));return b},changeTag:function(b,c){c=c.replace(/"/g,"");c=c.split("=");"font-size"==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"},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?m.css(b):
m.css("text-align",k.align);var n=$(" ");n.css(this.getFontCSS(k.font));n.css("line-height",l+"px");l=k.text;l=l.replaceAll("<br>"," ");l=l.replaceAll("<br/>"," ");if(k.font.bold){for(var p=[],k=k.font.boldConfig,q=0;q"+s+"