/* browserviewer.js Copyright(C) 2016 SHARP Corporation */ $(function(){try{$("#finishDialog").dialog({autoOpen:!1,dialogClass:"jquery-ui-dialog-finish",title:"作品終了",closeOnEscape:!1,modal:!0,closeText:"",open:function(a,b){var c=$("#finishDialog").parent(),d=$("
"}else break;document.getElementById("mokujiPage").innerHTML=b};_xbn.prototype._xos=function(){return 1};
_xbn.prototype._xub=function(a){"1"==a?(a=_xlw(),null!=a&&0!=a&&0this.dragImage2.height?c:d;var e=document.getElementById("screen");a.width/this.oldScaleInfo._xuo()-2*this._xdo>b?(this.dragRangeLeft=this.dragRangeRight=parseInt((a.width-b)/2),this.oldScaleInfo._xqh()?(this.dragRangeLeft=a.width/this.oldScaleInfo._xuo()-
b-this._xdo,this.dragRangeRight=this._xdo/2):this.marginLeft=this.dragRangeLeft):this.status!=_xeo?(this.dragRangeLeft=a.width/this.oldScaleInfo._xuo()-b-this._xdo+e.scrollLeft,this.dragRangeRight=this._xdo+e.scrollLeft):this.useRetina?(this.dragRangeLeft=3==this.illust_xfm.index?a.width/this.oldScaleInfo._xuo()/this.oldScaleInfo._xuo()-b-this._xdo+e.scrollLeft*this.dpRatio:a.width/this.oldScaleInfo._xuo()-b-this._xdo+e.scrollLeft*this.dpRatio,this.dragRangeRight=this._xdo+e.scrollLeft*this.dpRatio):
(this.dragRangeLeft=a.width/this.oldScaleInfo._xuo()-b-this._xdo+e.scrollLeft,this.dragRangeRight=this._xdo+e.scrollLeft);a.height/this.oldScaleInfo._xuo()-2*this._xdo>c?(this.dragRangeTop=this.dragRangeBottom=parseInt((a.height-c)/2),this.oldScaleInfo._xqh()?(this.dragRangeTop=a.height/this.oldScaleInfo._xuo()-c-this._xdo,this.dragRangeBottom=this._xdo/2):this.marginTop=this.dragRangeLeft):this.status!=_xeo?(this.dragRangeTop=a.height/this.oldScaleInfo._xuo()-c-this._xdo+e.scrollTop,this.dragRangeBottom=
this._xdo+e.scrollTop):this.useRetina?(this.dragRangeTop=3==this.illust_xfm.index?a.height/this.oldScaleInfo._xuo()/this.oldScaleInfo._xuo()-c-this._xdo+e.scrollTop*this.dpRatio:a.height/this.oldScaleInfo._xuo()-c-this._xdo+e.scrollTop*this.dpRatio,this.dragRangeBottom=this._xdo+e.scrollTop*this.dpRatio):(this.dragRangeTop=a.height/this.oldScaleInfo._xuo()-c-this._xdo+e.scrollTop,this.dragRangeBottom=this._xdo+e.scrollTop);this.arrowDir=this._xaq}catch(f){_xsg(this.errorCode.ERROR_ID_BOOKVIEWER_EXCEPTION_061,
"_xbn.prototype._xwv",this._xmf(f))}};
_xbn.prototype._xtv=function(a,b){try{var c=this._xna(),d=this._xnt();this.dragImage&&(this._xol()==this._xff?this.display_setting_info[this.currentDisplayIndex].direction==this._xbp?-1!=c&&-1!=d&&this.dragImage2?(this.imgOrgX=this.dragImage2._xot(),this.imgOrgY=this.dragImage2._xou()):(this.imgOrgX=this.dragImage._xot(),this.imgOrgY=this.dragImage._xou()):(this.imgOrgX=this.dragImage._xot(),this.imgOrgY=this.dragImage._xou()):(this.imgOrgX=this.dragImage._xot(),this.imgOrgY=this.dragImage._xou()),
this.dragStartX=a,this.dragStartY=b)}catch(e){_xsg(this.errorCode.ERROR_ID_BOOKVIEWER_EXCEPTION_062,"_xbn.prototype._xtv",this._xmf(e))}};_xbn.prototype._xtu=function(a,b){try{this._xtw(~~(this.imgOrgX+(a-this.dragStartX)*this.dpRatio),~~(this.imgOrgY+(b-this.dragStartY)*this.dpRatio))&&this._xtv(a,b)}catch(c){_xsg(this.errorCode.ERROR_ID_BOOKVIEWER_EXCEPTION_063,"_xbn.prototype._xtu",this._xmf(c))}};
_xbn.prototype._xkm=function(){try{$(".contentsFlame").css({display:"block","z-index":"1"}),_xgh.usePhone||($("#left").css({bottom:"23px"}),$("#right").css({bottom:"23px",right:"14px"}),$("#top").css({right:"14px"}),$("#bottom").css({right:"14px",bottom:"14px"}))}catch(a){_xsg(this.errorCode.ERROR_ID_BOOKVIEWER_EXCEPTION_064,"_xbn.prototype._xkm",this._xmf(a))}};
_xbn.prototype._xtw=function(a,b){try{var c=this._xna(),d=this._xnt(),e=!1,f=this._xnv(this.dragImage.width);this._xnv(this.dragImage.height);a