@webrotate360/imagerotator
Version:
WebRotate 360 Product Viewer Runtime
7 lines (5 loc) • 156 kB
JavaScript
/*
* Copyright (c) 2025, WebRotate 360 LLC. All rights reserved. v5.2.22.134
*/
import jQuery from 'jquery';
var WR360=window.WR360={},_imageRotator=(Function.prototype.aK=function(eB){return eB.constructor==Function?(this.prototype=new eB,(this.prototype.constructor=this).prototype.ct=eB.prototype,this.prototype.iQ=0,this.prototype.aB=function(){for(var ct=this.ct,i=this.iQ;0<i;i--)ct=ct.ct;return this.iQ++,ct}):(this.prototype=eB,(this.prototype.constructor=this).prototype.ct=eB),this},String.prototype.pg=function(){for(var txt=this,i=arguments.length;i--;)txt=txt.replace(new RegExp("\\{"+i+"\\}","gm"),arguments[i]);return txt},String.prototype.bE=function(){return"auto"==this?0:parseInt(this.replace("px",""))},String.prototype.gO=function(){return parseFloat(this.replace("px",""))},String.prototype.nA=function(){var txt=this;return txt=(txt=(txt=(txt=txt.replace(/\r\n/g,"<br>")).replace(/\n\r/g,"<br>")).replace(/\r/g,"<br>")).replace(/\n/g,"<br>")},WR360.by=function(){},WR360.by.fI=function($elements,onclick,proxy){proxy=void 0===proxy?"":".proxy"+proxy;var gq="touchstart";window.navigator.pointerEnabled?gq="pointerdown":window.navigator.msPointerEnabled&&(gq="MSPointerDown"),$elements.each(function(){var gv=0;jQuery(this).bind(gq+proxy,function(e){return onclick.call(this,e),e.stopPropagation(),e.preventDefault(),gv=Date.now(),!1}),jQuery(this).bind("click"+proxy,function(e){Date.now()-gv<400||(gv=0,onclick.call(this,e))})})},WR360.by.oe=function($elements,proxy){proxy=void 0===proxy?"":".proxy"+proxy,$elements.each(function(){jQuery(this).unbind("touchstart"+proxy),jQuery(this).unbind("click"+proxy)})},WR360.by.mZ=function(){try{return window.self!==window.top}catch(e){return!0}},WR360.by.lf=function(){return!!(/iPad|iPhone|iPod/.test(navigator.platform)||/Android/.test(navigator.userAgent)||/Mac/.test(navigator.userAgent)&&navigator.maxTouchPoints&&1<navigator.maxTouchPoints)},WR360.by.fU=WR360.by.lf(),WR360.by.cz=function(string,defaultValue){return string&&0!=string.length?string:defaultValue},WR360.by.dM=function(string,defaultValue){return string&&0!=string.length?parseFloat(string):defaultValue},WR360.by.je=function(string,defaultValue){return string&&0!=string.length?parseFloat(string.replace(",",".")):defaultValue},WR360.by.bX=function(string,defaultValue){return string&&0!=string.length?"true"==string.toLowerCase()||"1"==string.toLowerCase():defaultValue},WR360.by.ge=function(){for(var charCode,jd="",mq=10+parseInt(10*Math.random()),i=0;i<mq;i++)charCode=97+parseInt(26*Math.random()),jd+=String.fromCharCode(charCode);return jd},WR360.by.qk=function(){var hL;1!=document.ad.msie&&(/Trident\/7\./.test(navigator.userAgent)?(document.ad.version="99",document.ad.msie=!0,document.ad.webkit=!1,document.ad.mozilla=!1,document.ad.opera=!1):(document.ad.sa=/(android)/i.test(navigator.userAgent),1==document.ad.sa&&(hL=navigator.userAgent,document.ad.rY=-1<hL.indexOf("Chrome"),0==document.ad.rY)&&(document.ad.sO=-1<hL.indexOf("Mozilla/5.0")&&-1<hL.indexOf("AppleWebKit"))))},WR360.by.mG=function(){var ug,browser;jQuery.uaMatch||(jQuery.uaMatch=function(ua){ua=ua.toLowerCase();ua=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)||[];return{browser:ua[1]||"",version:ua[2]||"0"}}),browser={},(ug=jQuery.uaMatch(navigator.userAgent)).browser&&(browser[ug.browser]=!0,browser.version=ug.version),browser.chrome?browser.webkit=!0:browser.webkit&&(browser.safari=!0),document.ad=browser,WR360.by.qk()},WR360.by.fS=function(e){var rA,fw=0,gI=0;return 1==(void 0!==e.originalEvent&&void 0!==e.originalEvent.targetTouches)&&null!=e.originalEvent.targetTouches&&0<e.originalEvent.targetTouches.length?{x:fw=e.originalEvent.targetTouches[0].pageX,y:gI=e.originalEvent.targetTouches[0].pageY}:(rA=void 0!==window.event&&void 0!==window.event.targetTouches,0==WR360.by.fU&&0==rA?(e.pageX||e.pageY?(fw=e.pageX,gI=e.pageY):(e.clientX||e.clientY)&&(fw=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,gI=e.clientY+document.body.scrollTop+document.documentElement.scrollTop),{x:fw,y:gI}):1==rA&&null!=window.event.targetTouches&&0<window.event.targetTouches.length?{x:fw=window.event.targetTouches[0].pageX,y:gI=window.event.targetTouches[0].pageY}:{x:fw,y:gI})},WR360.by.pe=function(qv,dX){"svg"===qv.slice(-3)&&(document.body.appendChild(dX),dX.width=dX.offsetWidth,dX.height=dX.offsetHeight,document.body.removeChild(dX))},WR360.by.fA=function(cu,eJ){var y,x2,x;return cu.hasClass("clip_indicator")?cu.is(":hover"):(x=cu.offset().left,y=cu.offset().top,x2=x+cu.outerWidth(!1),cu=y+cu.outerHeight(!1),x<=(x=Math.abs(eJ.x))&&x<=x2&&eJ.y>=y&&eJ.y<=cu)},WR360.by.pA=function(){var ajaxLocation="";try{ajaxLocation=location.href}catch(e){(ajaxLocation=document.createElement("a")).href="",ajaxLocation=ajaxLocation.href}ajaxLocation=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/.exec(ajaxLocation.toLowerCase())||[];return/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(ajaxLocation[1])},WR360.J=function(){this.dr=new Array},WR360.J.prototype.iS=function(item){for(var result=-1,i=0;i<this.dr.length;i++)if(this.dr[i]==item){result=i;break}return result},WR360.J.prototype.bk=function(item){var result=!1;return null!=item&&(this.dr.push(item),result=!0),result},WR360.J.prototype.removeItem=function(item){var result=!1,item=this.iS(item);return-1<item&&(this.dr.splice(item,1),result=!0),result},WR360.J.prototype.clear=function(){this.dr=new Array},WR360.J.prototype.contains=function(item){return-1<this.iS(item)},WR360.J.prototype.mh=function(index){return this.dr[index]},WR360.J.prototype.ds=function(){return this.dr.length},WR360.J.prototype.nz=function(){return 0==this.dr.length},WR360.gl=function(){this.settings=new WR360.kT,this.bF=new Array,this.hi=new Array,this.aw=new Array,this.ky=new Array,this.aw.ep=0,this.aw.eU=0,this.aw.rows=1},WR360.gl.prototype.iq=function(){return 0<this.aw.ep&&0<this.aw.eU},WR360.gl.prototype.ly=function(){for(var dj=0;dj<this.bF.length;dj++){var cd=this.bF[dj];if(0==cd.disabled&&cd.renderMode!=WR360.kc.bf.au)return!0}return!1},WR360.Control=function(){this.gp=.12,this.inBrowserFullScreen=!1,this.disableMouseControl=!1,this.iu=!1,this.doubleClickFullscreen=!1,this.mouseHoverDrag=!1,this.mouseWheelDrag=!1,this.mouseWheelDragZoomOnly=!1,this.qc=!0,this.hideHotspotsOnLoad=!1,this.hideHotspotsOnZoom=!0,this.rowSensitivity=15,this.dragSensitivity=10,this.zoomSteps=1,this.zoomSpeed=300,this.maxZoom=100,this.centerZoom=!1,this.allowPanX=!0,this.allowPanY=!0,this.allowRotateInputInZoom=!1,this.singleClickZooms=!1,this.pauseOnPreload=!1,this.resumePreloadOnHover=!1,this.dragAcceleration=1,this.responsiveBaseWidth=0},WR360.uH=function(step){var isStepObject="object"==typeof step,isStepSpeed=!isNaN(step),stepObj=isStepObject?step:{};this.speed=isStepObject?stepObj.speed:isStepSpeed?step:2,this.direction=stepObj.direction||0,this.activateHotspot=stepObj.activateHotspot||!1,this.hotspotTriggerDelay=stepObj.hotspotTriggerDelay||0,this.disableDrag=stepObj.disableDrag||!1,this.resetZoom=stepObj.resetZoom||!1,this.zoomOutSpeed=stepObj.zoomOutSpeed||400,this.zoomToHotspot=stepObj.zoomToHotspot||!1,this.zoomInSpeed=stepObj.zoomInSpeed||400,this.keyHotspot=stepObj.keyHotspot||null,isStepSpeed||isStepObject||this.parse(step)},WR360.uH.prototype.parse=function(step){if(step)for(var stepParts=step.split(","),i=0;i<stepParts.length;i++)switch(i){case 0:this.speed=WR360.by.dM(stepParts[i],this.speed);break;case 1:this.direction=WR360.by.dM(stepParts[i],this.direction);break;case 2:this.disableDrag=!!WR360.by.dM(stepParts[i],this.disableDrag);break;case 3:this.resetZoom=!!WR360.by.dM(stepParts[i],this.resetZoom);break;case 4:this.zoomOutSpeed=WR360.by.dM(stepParts[i],this.zoomOutSpeed);break;case 5:this.keyHotspot=WR360.by.cz(stepParts[i],this.keyHotspot);break;case 6:this.activateHotspot=!!WR360.by.dM(stepParts[i],this.activateHotspot);break;case 7:this.hotspotTriggerDelay=WR360.by.dM(stepParts[i],this.hotspotTriggerDelay);break;case 8:this.zoomToHotspot=!!WR360.by.dM(stepParts[i],this.zoomToHotspot);break;case 9:this.zoomInSpeed=WR360.by.dM(stepParts[i],this.zoomInSpeed)}},WR360.Link=function(){this.color="#AAAAAA",this.opacity=.5,this.width=1,this.uG=0,this.tP=0,this.align=5,this.parsed=!1},WR360.Link.prototype.parse=function(uR){if(uR){var tX=uR.split(",");this.parsed=0<tX.length;for(var i=0;i<tX.length;i++)switch(i){case 0:this.color=WR360.by.cz(tX[i],this.color);break;case 1:this.opacity=WR360.by.je(tX[i],this.opacity);break;case 2:this.width=WR360.by.dM(tX[i],this.width);break;case 3:this.uG=WR360.by.dM(tX[i],this.uG);break;case 4:this.tP=WR360.by.dM(tX[i],this.tP);break;case 5:this.align=WR360.by.dM(tX[i],this.align)}}},WR360.Clip=function(){this.x=0,this.y=0,this.width=0,this.height=0},WR360.Clip.prototype.parse=function(clipString){if(clipString){var clipParts=clipString.split(",");this.parsed=0<clipParts.length;for(var i=0;i<clipParts.length;i++)switch(i){case 0:this.x=WR360.by.dM(clipParts[i],this.x);break;case 1:this.y=WR360.by.dM(clipParts[i],this.y);break;case 2:this.width=WR360.by.dM(clipParts[i],this.width);break;case 3:this.height=WR360.by.dM(clipParts[i],this.height)}}},WR360.ClipStyle=function(){this.backColor="#fff",this.backOpacity=0,this.backColorHover="#eee",this.backOpacityHover=.5},WR360.ClipStyle.prototype.parse=function(styleString){if(styleString){var styleParts=styleString.split(",");this.parsed=0<styleParts.length;for(var i=0;i<styleParts.length;i++)switch(i){case 0:this.backColor=WR360.by.cz(styleParts[i],this.backColor);break;case 1:this.backOpacity=WR360.by.dM(styleParts[i],this.opacity);break;case 2:this.backColorHover=WR360.by.cz(styleParts[i],this.hoverBackColor);break;case 3:this.backOpacityHover=WR360.by.dM(styleParts[i],this.hoverOpacity)}}},WR360.Margin=function(){this.top=0,this.right=0,this.bottom=0,this.left=0},WR360.Margin.prototype.parse=function(fG){if(null!=fG&&0!=fG.length)for(var aj=fG.split(","),i=0;i<aj.length;i++)switch(i){case 0:this.top=WR360.by.dM(aj[i],this.top);break;case 1:this.right=WR360.by.dM(aj[i],this.right);break;case 2:this.bottom=WR360.by.dM(aj[i],this.bottom);break;case 3:this.left=WR360.by.dM(aj[i],this.left)}},WR360.Align=function(){this.vertical=WR360.Align.TOP,this.horizontal=WR360.Align.LEFT,this.parsed=!1},WR360.Align.TOP=-1,WR360.Align.CENTER=0,WR360.Align.BOTTOM=1,WR360.Align.LEFT=-1,WR360.Align.CENTER=0,WR360.Align.RIGHT=1,WR360.Align.prototype.pn=function(){return this.vertical==WR360.Align.CENTER&&this.horizontal==WR360.Align.CENTER},WR360.Align.prototype.parse=function(bK){if(null!=bK&&0!=bK.length){var gP=bK.split(",");this.parsed=0<gP.length;for(var i=0;i<gP.length;i++)switch(i){case 0:var verticalAlign=gP[i].toLowerCase().trim();"top"==verticalAlign||"-1"==verticalAlign?this.vertical=WR360.Align.TOP:"center"==verticalAlign||"0"==verticalAlign?this.vertical=WR360.Align.CENTER:"bottom"!=verticalAlign&&"1"!=verticalAlign||(this.vertical=WR360.Align.BOTTOM);break;case 1:verticalAlign=gP[i].toLowerCase().trim();"left"==verticalAlign||"-1"==verticalAlign?this.horizontal=WR360.Align.LEFT:"center"==verticalAlign||"0"==verticalAlign?this.horizontal=WR360.Align.CENTER:"right"!=verticalAlign&&"1"!=verticalAlign||(this.horizontal=WR360.Align.RIGHT)}}},WR360.ix=function(){this.x=0,this.y=0,this.isXDefined=!1,this.isYDefined=!1},WR360.ix.prototype.ot=function(){return this.isXDefined||this.isYDefined},WR360.ix.prototype.parse=function(offsetX,offsetY){this.isXDefined=null!=offsetX&&0<offsetX.length,this.isYDefined=null!=offsetY&&0<offsetY.length,this.x=WR360.by.dM(offsetX,this.x),this.y=WR360.by.dM(offsetY,this.y)},WR360.kc=function(){this.id="",this.type="",this.indicatorImage=null,this.disabled=!1,this.hotspotInfo=null,this.offset=new WR360.ix,this.margin=new WR360.Margin,this.align=new WR360.Align,this.clipStyle=new WR360.ClipStyle,this.wrap=!0,this.renderMode=WR360.kc.bf.aC,this.activateOnClick=!1,this.deactivateOnClick=!1,this.effects="",this.minIndicatorScale=100,this.alwaysActive=0,this.contentFadeIn=300,this.contentFadeOut=200,this.dummy=!1},WR360.kc.uc={},WR360.kc.uc.tL=1,WR360.kc.uc.uD=2,WR360.kc.bf={},WR360.kc.bf.aC=0,WR360.kc.bf.io=1,WR360.kc.bf.au=2,WR360.kc.bf.kd=3,WR360.HotspotInfo=function(){this.src="",this.clickAction=WR360.HotspotInfo.iE.NONE,this.clickData="",this.clickDataParam="",this.url="",this.urlTarget="_self",this.txt="",this.txtWidth=242,this.txtColor="#525B69",this.txtBkColor="#FFFFFF",this.fntHeight=14,this.css="",this.cdata="",this.imgWidth=0,this.imgWidthMin=0,this.imgBkColor="transparent",this.lbxShowClose=!0,this.lbxBackCover=!1,this.lbxClickActive=!0,this.imgNoScale=!1,this.lbxPosition="",this.lbxCloseColor="",this.link=new WR360.Link},WR360.HotspotInfo.iE={},WR360.HotspotInfo.iE.NONE=0,WR360.HotspotInfo.iE.qq=1,WR360.HotspotInfo.iE.mA=2,WR360.HotspotInfo.iE.qx=3,WR360.HotspotInfo.iE.sL=4,WR360.HotspotInfo.iE.ss=5,WR360.HotspotInfo.iE.rH=6,WR360.HotspotInfo.iE.qP=7,WR360.HotspotInfo.iE.pB=8,WR360.HotspotInfo.iE.sr=9,WR360.HotspotInfo.iE.sX=10,WR360.HotspotInfo.iE.er=11,WR360.HotspotInfo.iE.uC=12,WR360.HotspotInfo.iE.ACTIVATE_HOTSPOT=13,WR360.lv=function(){this.src="",this.label="",this.delay=0,this.bF=new Array,this.hi=new Array,this.cS=null},WR360.lq=function(){this.source="",this.offsetX=0,this.offsetY=0,this.clip=new WR360.Clip,this.clipPoints=[]},WR360.nu=function(){this.image="first"},WR360.jJ=function(){this.fE=0,this.rotate="false",this.kC=-1,this.forceDirection=!1,this.gg=7,this.spinOnPageScroll=!1,this.pageScrollPeriod=3,this.pageScrollDelay=300,this.pageScrollFollow=!1,this.bounce=!1,this.bounceRows=!0,this.useInertia=!0,this.autoPlayOnDragRelease=!1,this.inertiaRelToDragSpeed=!0,this.inertiaTimeToStop=700,this.inertiaMaxInterval=120,this.flipHorizontalInput=!1,this.flipVerticalInput=!1,this.rowsOnSingleIndex=!1,this.flipAxis=!1,this.label=null},WR360.kT=function(){this.eH=new WR360.nu,this.bI=new WR360.jH,this.control=new WR360.Control,this.rotation=new WR360.jJ},WR360.jH=function(){this.hb=!0,this.gj=!0,this.gw=!0,this.iT=!0,this.bY=!0,this.iU=!0,this.bz=!0,this.showProgressBar=!0,this.showProgressPulse=!1,this.gx=0,this.toolbarPosition=0,this.gH="#ffffff",this.iC=.9,this.gX=.9,this.fullScreenBackColor="#ffffff",this.showFullScreenToolbar=!1,this.showToolbarOnLoadStart=!1,this.customCursorClass="",this.viewerHint="",this.toolbarAutohide=!1,this.skin=""},WR360.kB=function(){this.src=""},WR360.dh=function(){this.dw={}},WR360.dh.prototype={constructor:WR360.dh,oK:function(){return null},addEventListener:function(type,cc,param){void 0===this.dw[type]&&(this.dw[type]=[]),this.dw[type].push({cc:cc,param:param})},dispatchEvent:function(event){if((event="string"==typeof event?{type:event}:event).target||(event.target=this),!event.type)throw new Error("Event object missing 'type' property.");var handled=!1;if(this.dw[event.type]instanceof Array)for(var cs=this.dw[event.type],i=0,ia=cs.length;i<ia;i++){var ret=cs[i].cc.call(this,event,cs[i].param);void 0!==ret&&1==ret&&(handled=!0)}return handled},removeEventListener:function(type,cc){if(this.dw[type]instanceof Array)for(var cs=this.dw[type],i=0,ia=cs.length;i<ia;i++)if(cs[i].cc===cc){cs.splice(i,1);break}}},WR360.Event=function(type,bubbles,cancelable,param){this.type=type,this.bubbles=bubbles,this.cancelable=cancelable,this.param=param},WR360.dY=function(){this.aB().constructor.call(this),this.cQ=!1,this.rootPath=""},WR360.dY.aK(WR360.dh),WR360.dY.prototype.Init=function(rootPath,V){this.rootPath=rootPath,this.cQ=!1},WR360.ba=function(image,index,rootPath,graphicsPath,oq){if(this.aB().constructor.call(this),null==image)throw new Error("ImageObject.ctor. null == hotspot");this.image=image,this.F=new Image,this.bG=null,this.index=index,this.rootPath=rootPath,this.graphicsPath=graphicsPath,this.oq=oq,(this.F.be=this).F.onload=this.gm,this.F.onerror=this.gc,this.aA()},WR360.ba.aK(WR360.dh),WR360.ba.iK="pixel.png",WR360.ba.prototype.aA=function(){this.bG=new Image,(this.bG.be=this).bG.cQ=!1,this.bG.onload=this.lQ,this.bG.onerror=this.lL,this.bG.onabort=this.lG},WR360.ba.prototype.gm=function(){var bu=this.be;bu.dispatchEvent(new WR360.ah(WR360.ah.COMPLETE,!0,!1,bu,!1,bu.index,!0,""))},WR360.ba.prototype.gc=function(){var bu=this.be;bu.dispatchEvent(new WR360.ah(WR360.ah.ERROR,!0,!1,bu,!1,bu.index,!1,"Error loading image: "+this.src))},WR360.ba.prototype.lQ=function(){var bu=this.be;bu.hx(this)||(this.cQ=!0,bu.dispatchEvent(new WR360.ah(WR360.ah.eD,!0,!1,bu,!0,bu.index,!0,"")))},WR360.ba.prototype.lL=function(){var bu=this.be;bu.hx(this)||bu.dispatchEvent(new WR360.ah(WR360.ah.dU,!0,!1,bu,!0,bu.index,!1,"Error loading high-res image: "+this.src))},WR360.ba.prototype.lG=function(){var bu=this.be;bu.hx(this)||bu.dispatchEvent(new WR360.ah(WR360.ah.fD,!0,!1,bu,!0,bu.index,!1,"Abort loading high-res image: "+this.src))},WR360.ba.prototype.hx=function(image){return-1!=image.src.indexOf(WR360.ba.iK)},WR360.ba.prototype.Load=function(){var qv=(this.oq?this.image.cS:this.image).src;this.F.src=this.rootPath+qv},WR360.ba.prototype.hS=function(){null==this.bG&&this.aA(),this.bG.src=this.rootPath+this.image.cS.src},WR360.ba.prototype.aE=function(){null!=this.bG&&this.hK()},WR360.ba.prototype.hK=function(){if(null==this.bG)throw new Error("forceUnloadHighRes: highresBitmapLoader==null");this.bG.cQ=!1,this.bG.src=this.graphicsPath+"/"+WR360.ba.iK},WR360.ba.prototype.kz=function(){null!=this.bG&&0!=this.bG.cQ&&this.hK()},WR360.ah=function(type,bubbles,cancelable,af,ht,index,success,errorMessage){this.aB().constructor.call(this,type,bubbles,cancelable),this.af=af,this.ht=ht,this.index=index,this.success=success,this.errorMessage=errorMessage},WR360.ah.aK(WR360.Event),WR360.ah.COMPLETE="ImageObject_complete",WR360.ah.ERROR="ImageObject_error",WR360.ah.eD="ImageObject_Highres_complete",WR360.ah.fD="ImageObject_Highres_abort",WR360.ah.dU="ImageObject_Highres_error",WR360.fC=function(bi,index,rootPath){this.aB().constructor.call(this),this.bi=bi,this.index=index,this.F=new Image,this.rootPath=rootPath,(this.F.be=this).F.onload=this.gm,this.F.onerror=this.gc,this.isImageContentMode=0<this.bi.hotspotInfo.src.length,this.qD=[],this.qW=!this.isImageContentMode&&this.uV()},WR360.fC.aK(WR360.dh),WR360.fC.Events={},WR360.fC.Events.ud="HOTSPOT_API_CLICK_ACTION",WR360.da=function(type,bubbles,cancelable,aO,index,success,errorMessage){this.aB().constructor.call(this,type,bubbles,cancelable),this.aO=aO,this.index=index,this.success=success,this.errorMessage=errorMessage},WR360.da.aK(WR360.Event),WR360.da.COMPLETE="HotspotObject_complete",WR360.da.ERROR="HotspotObject_error",WR360.fC.prototype.gm=function(){var image=this,handler=this.be;setTimeout(function(){document.ad.msie&&WR360.by.pe(image.src,image),handler.dispatchEvent(new WR360.da(WR360.da.COMPLETE,!0,!1,handler,handler.index,!0,""))},document.ad.msie?100:0)},WR360.fC.prototype.gc=function(){var bu=this.be;bu.dispatchEvent(new WR360.da(WR360.da.ERROR,!0,!1,bu,bu.index,!1,"Error loading image: "+this.src))},WR360.fC.prototype.Load=function(){this.F.src=this.qW?this.qD[0]:this.rootPath+this.bi.hotspotInfo.src},WR360.fC.prototype.ny=function(url){url=url.substr(url.lastIndexOf(".")+1);return url&&"xml"===url.toLowerCase()},WR360.fC.prototype.lT=function(){return this.bi.hotspotInfo.url&&"_blank"==this.bi.hotspotInfo.urlTarget&&!this.ny(this.bi.hotspotInfo.url)},WR360.fC.prototype.js=function(){return this.bi.hotspotInfo.clickAction!=WR360.HotspotInfo.iE.NONE||0<this.bi.hotspotInfo.url.length},WR360.fC.prototype.gL=function(){return 0<this.bi.hotspotInfo.cdata.length||0<this.F.src.length||0<this.bi.hotspotInfo.txt.length},WR360.fC.prototype.ea=function(scale){var maxWidth=0!=this.bi.hotspotInfo.imgWidth?this.bi.hotspotInfo.imgWidth:this.F.width;return maxWidth=scale<1&&(maxWidth*=scale)<this.bi.hotspotInfo.imgWidthMin?this.bi.hotspotInfo.imgWidthMin:maxWidth},WR360.fC.prototype.kv=function(imagerotator,aM){var bO=!1;switch(this.bi.hotspotInfo.clickAction){case WR360.HotspotInfo.iE.sX:imagerotator.pY?imagerotator.cJ():imagerotator.gJ(),bO=!0;break;case WR360.HotspotInfo.iE.qq:imagerotator.cJ(),imagerotator.gJ(),bO=!0;break;case WR360.HotspotInfo.iE.mA:imagerotator.cJ(),bO=!0;break;case WR360.HotspotInfo.iE.qx:imagerotator.cJ(),imagerotator.bV.iG(1),bO=!0;break;case WR360.HotspotInfo.iE.sL:imagerotator.cJ(),imagerotator.bV.iG(-1),bO=!0;break;case WR360.HotspotInfo.iE.ss:imagerotator.bV.qB(this.bi.hotspotInfo.clickData,new WR360.uH(this.bi.hotspotInfo.clickDataParam)),bO=!0;break;case WR360.HotspotInfo.iE.rH:imagerotator.cJ(),imagerotator.bV.qo(this.bi.hotspotInfo.clickData),bO=!0;break;case WR360.HotspotInfo.iE.qP:imagerotator.mf(),bO=!0;break;case WR360.HotspotInfo.iE.pB:imagerotator.mt(),bO=!0;break;case WR360.HotspotInfo.iE.sr:imagerotator.rc(null),bO=!0;break;case WR360.HotspotInfo.iE.uC:imagerotator.tZ(imagerotator.dn?0:100,aM),bO=!0;break;case WR360.HotspotInfo.iE.ACTIVATE_HOTSPOT:imagerotator.bV.uO(this.bi.hotspotInfo.clickData,parseInt(this.bi.hotspotInfo.clickDataParam)),bO=!0;break;case WR360.HotspotInfo.iE.er:var mE=this.bi.hotspotInfo.clickData;0<mE.length&&"function"==typeof(mE=window[mE])&&(mE(this.bi),bO=!0)}return bO},WR360.fC.prototype.cv=function(imagerotator,aM){var url,bO=!1;if(1==this.dispatchEvent(new WR360.Event(WR360.fC.Events.ud,!1,!1)))bO=!0;else if(1==this.js()){if(this.bi.hotspotInfo.clickAction==WR360.HotspotInfo.iE.NONE)return url=this.bi.hotspotInfo.url,1==imagerotator.gD()&&imagerotator.sm.Event(WR360.sY.rU.rR),this.ny(url)?imagerotator.reload(url,imagerotator.settings.rootPath):(url=window.open(url,this.bi.hotspotInfo.urlTarget))&&url.focus(),!0;bO=this.kv(imagerotator,aM)}return 1==bO&&1==imagerotator.gD()&&imagerotator.sm.Event(WR360.sY.rU.rR),!1},WR360.fC.prototype.uV=function(){var img,textContent=this.bi.hotspotInfo.cdata||this.bi.hotspotInfo.txt,imgRex=/<img.*?src="(.*?)"/g;if(!textContent)return!1;for(;null!==(img=imgRex.exec(textContent));)this.qD.push(img[1]);return 0<this.qD.length},WR360.cL=function(bh){if(this.aB().constructor.call(this),null==bh)throw new Error("ImagePreloader: imageRotator is null");this.image=null,this.bh=bh},WR360.cL.aK(WR360.dY),WR360.cL.le="first",WR360.cL.la="none",WR360.cL.prototype.Load=function(rootPath,V){this.ct.Init.call(this,rootPath,V);var rootPath=V.settings.eH.image,av=void 0!==this.bh.qQ&&this.bh.qQ(),qI=this.bh.settings.fullScreenOnClick;if(av){if(0==V.aw.length)return void this.dispatchEvent(new WR360.cO(WR360.cO.COMPLETE,!0,!1,null,!0,""));qI=1==qI||1==V.settings.rotation.rowsOnSingleIndex?parseInt(V.settings.rotation.fE):this.bh.pH.bV.ob(!0);(qI<0||qI>V.aw.length-1)&&(qI=0),rootPath=V.aw[qI].src,av&&V.settings.control.qc&&this.bh.bV.lc&&(rootPath=(null!=V.aw[qI].cS?V.aw[qI].cS:V.aw[qI]).src)}else if(1==this.bh.dV&&0<=this.bh.reloadImageIndex){av=this.bh.reloadImageIndex;0<this.bh.reloadRowIndex&&(qI=V.aw.length/V.aw.rows,av=this.bh.reloadRowIndex*qI+av),av>V.aw.length-1&&(av=0),rootPath=V.aw[av].src}else if(0==V.settings.eH.image.length||V.settings.eH.image.toLowerCase()==WR360.cL.la)return void this.dispatchEvent(new WR360.cO(WR360.cO.COMPLETE,!0,!1,null,!0,""));this.image=new Image,(this.image.be=this).image.onload=this.os,this.image.onerror=this.mj,this.image.src=this.rootPath+rootPath},WR360.cL.prototype.os=function(){this.be.dispatchEvent(new WR360.cO(WR360.cO.COMPLETE,!0,!1,this.be.image,!0,""))},WR360.cL.prototype.mj=function(){this.be.dispatchEvent(new WR360.cO(WR360.cO.ERROR,!0,!1,null,!1,"Preloader IO ERROR: "+this.src))},WR360.cO=function(type,bubbles,cancelable,image,success,errorMessage){this.aB().constructor.call(this,type,bubbles,cancelable),this.image=image,this.success=success,this.errorMessage=errorMessage},WR360.cO.aK(WR360.Event),WR360.cO.COMPLETE="complete",WR360.cO.ERROR="error",WR360.dP=function(cR){this.aB().constructor.call(this),this.aw=new Array,this.sU=new Array,this.rd=0,this.ty=0,this.cG=0,this.cR=cR,this.mu="cache_"+cR.substr(1,cR.length)},WR360.dP.aK(WR360.dY),WR360.dP.prototype.lU=function(row){return row>this.sU.length&&(row=0),this.sU[row]},WR360.dP.prototype.sd=function(){return this.sU.length},WR360.dP.prototype.sM=function(){return this.rd},WR360.dP.prototype.rr=function(){return this.aw.length},WR360.dP.prototype.Init=function(rootPath,graphicsPath,V,oq){this.ct.Init.call(this,rootPath,V),this.uT(rootPath,graphicsPath,V,oq)},WR360.dP.prototype.uT=function(rootPath,graphicsPath,V,oq){this.rd=V.aw.length/V.aw.rows,this.rd%1&&(this.rd=V.aw.length,V.aw.rows=1);for(var row=0;row<V.aw.rows;row++)this.sU[row]=new Array;for(var sK=1,sl=0,i=0;i<V.aw.length;i++){i>=sK*this.rd&&(sK++,sl=0);var af=new WR360.ba(V.aw[i],sl,rootPath,graphicsPath,oq);this.aw[i]=af,this.sU[sK-1][sl++]=af,V.settings.rotation.fE==i&&(this.ty=sK-1)}},WR360.dP.prototype.kE=function(){for(var i=this.cG=0;i<this.aw.length;i++){var af=this.aw[i];0<=af.image.src.indexOf("dummy.png")?this.kA({ht:!1,af:af}):(af.be=this,af.addEventListener(WR360.ah.COMPLETE,this.nU),af.addEventListener(WR360.ah.ERROR,this.ou),af.Load())}},WR360.dP.prototype.nU=function(e){this.be.kA(e)},WR360.dP.prototype.kA=function(e){var eR;e.ht||(this.cG++,eR=WR360.cf.PROGRESS,this.cG>=this.aw.length&&(eR=WR360.cf.COMPLETE,this.cQ=!0),this.dispatchEvent(new WR360.cf(eR,!0,!1,e.af,Math.round(100*this.cG/this.aw.length),!0,"")))},WR360.dP.prototype.ou=function(e){var bu=this.be;bu.dispatchEvent(new WR360.cf(WR360.cf.ERROR,!0,!1,e.af,Math.round(100*bu.cG/bu.aw.length),!1,e.errorMessage))},WR360.cf=function(type,bubbles,cancelable,af,ee,success,errorMessage){this.aB().constructor.call(this,type,bubbles,cancelable),this.af=af,this.ee=ee,this.errorMessage=errorMessage,this.success=success},WR360.cf.aK(WR360.Event),WR360.cf.PROGRESS="ImagesCache_progress",WR360.cf.COMPLETE="ImagesCache_complete",WR360.cf.ERROR="ImagesCache_error",WR360.cf.bJ="ImagesCache_canceled",WR360.dc=function(){this.aB().constructor.call(this),this.dH=0,this.bF=[],this.hu=-1},WR360.dc.aK(WR360.dY),WR360.dc.prototype.Init=function(rootPath,V){this.ct.Init.call(this,rootPath,V),this.ku(rootPath,V)},WR360.dc.prototype.ku=function(rootPath,V){for(var eW=0,i=0;i<V.bF.length;i++)V.bF[i].disabled||((-1===this.hu||eW<this.hu)&&(this.bF[eW]=new WR360.fC(V.bF[i],eW,rootPath)),eW++)},WR360.dc.prototype.kD=function(){for(var i=this.dH=0;i<this.bF.length;i++){var aO=this.bF[i];aO.isImageContentMode||aO.qW?(aO.be=this,aO.addEventListener(WR360.da.COMPLETE,this.mN),aO.addEventListener(WR360.da.ERROR,this.og),aO.Load()):this.kq(new WR360.da(WR360.da.COMPLETE,!0,!1,aO,aO.index,!0,""))}},WR360.dc.prototype.mN=function(e){this.be.kq(e)},WR360.dc.prototype.kq=function(e){this.dH++;var eR=WR360.dK.PROGRESS;this.dH>=this.bF.length&&(eR=WR360.dK.COMPLETE,this.cQ=!0),this.dispatchEvent(new WR360.dK(eR,!0,!1,e.aO,Math.round(100*this.dH/this.bF.length),!0,""))},WR360.dc.prototype.og=function(e){var bu=this.be;bu.dispatchEvent(new WR360.dK(WR360.dK.ERROR,!0,!1,e.aO,Math.round(100*bu.dH/bu.bF.length),!1,e.errorMessage))},WR360.dK=function(type,bubbles,cancelable,aO,ee,success,errorMessage){this.aB().constructor.call(this,type,bubbles,cancelable),this.aO=aO,this.ee=ee,this.errorMessage=errorMessage,this.success=success},WR360.dK.aK(WR360.Event),WR360.dK.PROGRESS="HotspotsCache_progress",WR360.dK.COMPLETE="HotspotsCache_complete",WR360.dK.ERROR="HotspotsCache_error",WR360.dK.bJ="HotspotsCache_canceled",WR360.cI=function(visible,aO,bV,H){this.df=visible,this.dz=0,this.dg=0,this.aO=aO,this.bV=bV,this.bh=bV.bh,this.playing=!1,this.H=H},WR360.cI.prototype.cD=function(){this.fR()},WR360.cI.prototype.aH=function(visible){},WR360.cI.prototype.tz=function(visible,uk){},WR360.cI.prototype.uv=function(x,y){this.dz=x,this.dg=y},WR360.cI.prototype.nT=function(){var aM;null!=this.bH&&(aM=this.bV.oy(this.aO,this.bH.qh,this.bH.qw),this.dz=aM.x,this.dg=aM.y,this.bH.gM.css("left",this.dz),this.bH.gM.css("top",this.dg),null!=this.bH.image)&&0==this.aO.bi.hotspotInfo.imgNoScale&&this.bH.gM.css("width",this.aO.ea(this.bV.lB))},WR360.cI.prototype.fR=function(){null==this.bH&&this.aO.gL()&&(this.bH=new WR360.bx(this.bV,this.aO,this.H),this.bH.jw(),this.bH.jl(this.gV()))},WR360.cI.prototype.gV=function(){return{x:this.dz,y:this.dg}},WR360.cI.prototype.pM=function(){null!=this.bH&&this.bH.delete()},WR360.aT=function(visible,aO,bV,H){this.aB().constructor.call(this),this.df=visible,this.dz=0,this.dg=0,this.clip=null,this.aO=aO,this.bV=bV,this.bh=bV.bh,this.dW=!1,this.H=H,this.bb=null,this.image=new Image,this.bH=null,this.fc=!1,this.gB=0,this.gE=0,this.pl="indicator_active "+this.aO.bi.id+"_indicator_active",this.image.onload=jQuery.proxy(this.nK,this),this.image.onerror=jQuery.proxy(this.nY,this),this.hotspotHtmlId=this.bh.gK(this.aO.bi),this.cb=0,this.kn=0,this.isClip=this.aO.bi.clipStyle.parsed,this.jP=jQuery.proxy(this.jP,this),this.mC=jQuery.proxy(this.mC,this),this.uS=jQuery.proxy(this.uS,this),this.kG(),this.aO.bi.indicatorImage&&(this.image.src=this.bh.settings.graphicsPath+"/"+this.aO.bi.indicatorImage),this.aH(visible)},WR360.aT.aK(WR360.dh),WR360.aT.Events={},WR360.aT.Events.tn="HOTSPOT_API_ACTIVATE",WR360.aT.Events.uo="HOTSPOT_API_DEACTIVATE",WR360.aT.Events.mI="HOTSPOT_ROLLOVER_REMOVED",WR360.aT.prototype.kG=function(){var self=this,baseClass="hotspot_indicator ",isSelfUrl=(this.isClip&&(baseClass+="clip_indicator "),this.aO.lT()&&(!this.aO.gL()||!this.aO.bi.activateOnClick));this.bb=(isSelfUrl?jQuery("<a style='position:absolute' class='"+baseClass+this.aO.bi.id+"_indicator wr360hotspot_"+this.bh.oY+"' id='"+this.hotspotHtmlId+"' href='"+this.aO.bi.hotspotInfo.url+"' target='"+this.aO.bi.hotspotInfo.urlTarget+"'/>"):jQuery("<div style='position:absolute' class='"+baseClass+this.aO.bi.id+"_indicator wr360hotspot_"+this.bh.oY+"' id='"+this.hotspotHtmlId+"'/>")).appendTo(this.H),this.aO.bi.effects&&((baseClass={class:"indicator_effect_"+(baseClass=this.aO.bi.effects.split(","))[0],duration:baseClass[1]||null,stopOnActivation:baseClass[2]||!1}).duration&&this.bb[0].style.setProperty("--anim-duration",baseClass.duration+"ms"),this.bb.addClass(baseClass.class),this.aO.bi.parsedEffect=baseClass),this.aO.bi.dummy&&this.bb.addClass("indicator_dummy"),this.aO.bi.alwaysActive||(this.bb.mouseover(jQuery.proxy(function(event){this.OnMouseOver(event)},this)),this.bb.mouseout(jQuery.proxy(function(event){this.OnMouseOut(event)},this))),isSelfUrl?this.bb.click(function(){self.bh.gD()&&self.bh.sm.Event(WR360.sY.rU.rR)}):WR360.by.fI(this.bb,jQuery.proxy(function(event){return this.kf(event)},this)),this.bh.addEventListener(WR360.Events.hG,this.mC),this.bh.addEventListener(WR360.ImageRotator.Events.un,this.uS),this.bb.bind("touchend mousedown",function(e){e.stopPropagation(),self.bh.jB(e)})},WR360.aT.prototype.nK=function(e){var image=e.target,self=this;setTimeout(function(){document.ad.msie&&WR360.by.pe(self.aO.bi.indicatorImage,image),self.uv(self.dz,self.dg);var uW=self.nC(image);self.bb.css({"background-image":"url("+image.src+")",width:uW.width,height:uW.height,"background-size":"contain"})},document.ad.msie?100:0)},WR360.aT.prototype.nY=function(e){WR360.bZ.gA("DynamicHotspotPresenter. Error loading image: "+e.target.src)},WR360.aT.prototype.cD=function(){},WR360.aT.prototype.aH=function(visible,aX){(this.df=visible)?aX?this.bb.fadeIn(300):this.bb.show():aX?this.bb.fadeOut(300):this.bb.hide()},WR360.aT.prototype.uS=function(){this.bH&&this.bH.tx(!1)},WR360.aT.prototype.tz=function(visible,uk){this.aO.bi.alwaysActive&&(visible||!uk&&this.aO.bi.alwaysActive==WR360.kc.uc.uD?(this.uy(),this.bH&&this.bH.tx(visible)):(this.gY(!0),this.bH&&this.bH.tx(!1)))},WR360.aT.prototype.SetClip=function(coord,size,points){var pointIdx,polygon="polygon(";for(pointIdx in points)var eJ=points[pointIdx],polygon=(polygon+=eJ.x+"% ")+(eJ.y+"%,");polygon=polygon.slice(0,-1),polygon+=")";var scaledSize=this.bV.GetPolySize(size.width,size.height),clipStyle=this.aO.bi.clipStyle,hotspotElm=(this.bb.css({"clip-path":polygon,width:scaledSize.width,height:scaledSize.height,left:coord.scaleX,top:coord.scaleY,"background-color":clipStyle.backColor,opacity:clipStyle.backOpacity}),this.bb[0]),hotspotElm=(hotspotElm.style.setProperty("--back-color-hover",clipStyle.backColorHover),hotspotElm.style.setProperty("--back-opacity-hover",clipStyle.backOpacityHover),this.getClipCentroid(points));hotspotElm.x=hotspotElm.x*size.width/100,hotspotElm.y=hotspotElm.y*size.height/100,hotspotElm.x=hotspotElm.x*scaledSize.width/size.width+coord.scaleX,hotspotElm.y=hotspotElm.y*scaledSize.height/size.height+coord.scaleY,this.clip={centroid:hotspotElm}},WR360.aT.prototype.uv=function(x,y){this.dz=x,this.dg=y;var uW=this.nC();this.bb.css({left:x-uW.width/2,top:y-uW.height/2,width:uW.width,height:uW.height})},WR360.aT.prototype.mC=function(e){this.aO.bi.alwaysActive&&"toggle"!==e.param||e.param!=this.hotspotHtmlId&&this.gY("toggle"===e.param)},WR360.aT.prototype.OnMouseOut=function(e){e.stopPropagation(),this.fc=!1},WR360.aT.prototype.OnMouseOver=function(e){1!=this.bh.pY&&(e.stopPropagation(),e.preventDefault(),0==this.aO.bi.activateOnClick)&&1==this.fR()&&(this.gE=Date.now())},WR360.aT.prototype.kf=function(e){if(this.aO.bi.alwaysActive)this.aO.js()&&this.aO.cv(this.bh,this.gV());else{if(0==this.aO.bi.activateOnClick){if(Date.now()-this.gE<150)return;this.gE=0}if(1==this.aO.js())if(0==this.aO.gL()||0==this.aO.bi.activateOnClick&&1==this.dW)return 0==this.aO.gL()&&this.bh.dispatchEvent(new WR360.Event(WR360.Events.hG,!1,!1,this.hotspotHtmlId)),void(0==this.aO.cv(this.bh,this.gV())&&1==this.dW&&this.gY(!1));this.fc=!1,1==this.dW?this.gY(!1):this.fR()}},WR360.aT.prototype.jP=function(e){var lM;clearInterval(this.gB),clearTimeout(this.kn),clearTimeout(this.cb),this.cb=0,this.bb.removeClass(this.pl),this.dW&&(this.dW=!1,e.param||this.ld(),this.aO.bi.activateOnClick||WR360.by.fU||0==(e={x:this.bh.dO,y:this.bh.ei}).x&&0==e.y||WR360.by.fA(this.bb,e)&&(this.fc=!0,(lM=this).gB=setInterval(function(){lM.lb()},200)))},WR360.aT.prototype.eb=function(timeout,hZ){var self;this.fR(timeout,!0),void 0===timeout||this.cb||((self=this).cb=setTimeout(function(){self.gY(!0),void 0!==hZ&&hZ(self.mv())},timeout))},WR360.aT.prototype.fR=function(timeout,qp){var effect=this.aO.bi.parsedEffect;return effect&&effect.stopOnActivation&&this.bb.removeClass(effect.class),!(this.bh.fu&&!qp||this.dW||this.fc||(this.bh.dispatchEvent(new WR360.Event(WR360.Events.hG,!1,!1,this.hotspotHtmlId)),this.bh.cJ(),this.dW=!0,this.bh.lp(),this.bb.addClass(this.pl),this.ll()||!this.aO.gL()?(this.oX(timeout),1):(this.bH||(this.bH=new(this.aO.bi.renderMode==WR360.kc.bf.kd?WR360.fH:WR360.bx)(this.bV,this.aO,this.H),this.bH.addEventListener(WR360.aT.Events.mI,this.jP),this.bH.jw()),this.bH.jl(this.gV()),this.oX(timeout),0)))},WR360.aT.prototype.uy=function(){this.aO.gL()&&(null==this.bH?(this.bH=new WR360.bx(this.bV,this.aO,this.H),this.bH.jw(),this.bH.jl(this.gV()),this.dW=!0):this.bH.jl(this.gV()))},WR360.aT.prototype.ll=function(){return this.dispatchEvent(new WR360.Event(WR360.aT.Events.tn,!1,!1))},WR360.aT.prototype.ld=function(){return this.dispatchEvent(new WR360.Event(WR360.aT.Events.uo,!1,!1))},WR360.aT.prototype.gY=function(aX){clearInterval(this.gB),clearTimeout(this.cb),this.cb=0,clearTimeout(this.kn),this.bb.removeClass(this.pl),0!=this.dW&&(1==this.ld()?this.dW=!1:null!=this.bH&&this.bH.cN(aX,!0))},WR360.aT.prototype.gV=function(){return this.clip?this.clip.centroid:{x:this.dz,y:this.dg}},WR360.aT.prototype.getClipCentroid=function(points){var idx,x0=points[0].x,y0=points[0].y,x=0,y=0,twiceArea=0,prev=points[points.length-1];for(idx in points){var next=points[idx],x1=prev.x-x0,y1=prev.y-y0,x2=next.x-x0,y2=next.y-y0,a=x1*y2-x2*y1;twiceArea+=a,x+=(x1+x2)*a,y+=(y1+y2)*a,prev=next}var factor=3*twiceArea;return{x:(x/=factor)+x0,y:(y/=factor)+y0}},WR360.aT.prototype.oX=function(timeout){var self;1!=WR360.by.fU&&(clearInterval(this.gB),timeout=void 0!==timeout?timeout:0,1!=(self=this).aO.bi.deactivateOnClick||0!=timeout)&&(this.kn=setTimeout(function(){self.gB=setInterval(function(){self.jE()},300)},timeout))},WR360.aT.prototype.jE=function(){var cV=this.bh.hA;0==cV.x&&0==cV.y||0!=WR360.by.fA(this.bb,cV)||null!=this.bH&&0!=this.bH.iI(cV)||(this.gY(!0),clearInterval(this.gB))},WR360.aT.prototype.lb=function(){var cV={x:this.bh.dO,y:this.bh.ei};0==cV.x&&0==cV.y||0==WR360.by.fA(this.bb,cV)&&(this.fc=!1,clearInterval(this.gB),this.gB=0)},WR360.aT.prototype.nT=function(){this.bH&&this.aO.bi.renderMode!=WR360.kc.bf.kd&&(this.aO.bi.alwaysActive&&this.bH.uU(this.gV()),this.bH.image)&&!this.aO.bi.hotspotInfo.imgNoScale&&this.bH.gM.css("width",this.aO.ea(this.bV.lB))},WR360.aT.prototype.mv=function(){return{hotspotHtmlId:this.hotspotHtmlId,parentContainer:this.H,hotspotConfig:this.aO.bi,coordX:this.dz,coordY:this.dg,isVisible:this.df}},WR360.aT.prototype.pM=function(){this.bb.unbind(),this.bb.remove(),null!=this.bH&&(this.bH.removeEventListener(WR360.aT.Events.mI,this.jP),this.bH.delete()),clearInterval(this.gB),clearTimeout(this.cb),clearTimeout(this.kn),this.bh.removeEventListener(WR360.Events.hG,this.mC),this.bh.removeEventListener(WR360.ImageRotator.Events.un,this.uS),this.bV=null,this.bh=null},WR360.aT.prototype.pZ=function(isHide){var ps="hotspot_indicator_hidden";1==isHide?this.bb.addClass(ps):this.bb.removeClass(ps)},WR360.aT.prototype.vb=function(){this.aO.cv(this.bh,this.gV())},WR360.aT.prototype.nC=function(image){image=image||this.image;var scale=this.aO.bi.minIndicatorScale,lB=this.bh.lB;if(!scale||100<=scale||1<=lB)return{width:image.width,height:image.height};var width=image.width*lB,lB=image.height*lB;if(0<this.bh.dC){var totalSteps=this.bh.bA.settings.control.zoomSteps;if(1==totalSteps)return{width:image.width,height:image.height};width+=(image.width-width)/totalSteps*this.bh.dC,lB+=(image.height-lB)/totalSteps*this.bh.dC}var changeRatio,totalSteps=image.width*(scale/=100),scale=image.height*scale;return lB<=width?width<totalSteps&&(changeRatio=totalSteps/image.width,width=totalSteps,lB=image.height*changeRatio):lB<scale&&(changeRatio=scale/image.height,lB=scale,width=image.width*changeRatio),{width:width,height:lB}},WR360.bx=function(bV,aO,H){this.aB().constructor.call(this),this.bV=bV,this.bh=bV.bh,this.H=H,this.ig=WR360.by.ge(),this.dv=null,this.bg=null,this.tO=null,this.ut=null,this.gM=null,this.image=null,this.qh=0,this.qw=0,this.aO=aO,this.hotspotInfo=aO.bi.hotspotInfo,this.renderMode=aO.bi.renderMode,this.sT=0,this.bP=5,this.visible=!1,this.iA=new Array,this.jp=!1,this.cU=null,this.hotspotInfo.link.parsed&&(this.bg=jQuery("<div class='indicator_link_wrap "+this.aO.bi.id+"_link'/>").appendTo(this.H),this.tO=jQuery("<div class='indicator_link'/>").appendTo(this.bg),this.ut=jQuery("<div class='indicator_link'/>").appendTo(this.bg)),this.dv=jQuery("<div class='hotspot_rollover position_rollover "+this.aO.bi.id+"_rollover wr360rollover_"+this.bh.oY+"' id='"+this.ig+"'/>").appendTo(this.H)},WR360.bx.aK(WR360.dh),WR360.bx.prototype.tx=function(visible,aX,duration){this.bg&&(visible?aX?this.bg.fadeIn(duration):this.bg.show():this.bg.hide())},WR360.bx.prototype.nc=function(visible){visible?this.dv.show():this.dv.hide(),this.tx(visible),this.visible=visible},WR360.bx.prototype.mc=function(visible,duration,hZ){visible?this.dv.fadeIn(duration,hZ):this.dv.fadeOut(duration,hZ),this.tx(visible,!0,duration+100),this.visible=visible},WR360.bx.prototype.iI=function(eJ){return 0!=this.visible&&WR360.by.fA(this.gM,eJ)},WR360.bx.prototype.iL=function(){var bn,self,hY,ig=WR360.by.ge();this.hotspotInfo.cdata?(this.gM=jQuery(this.rm("<div class='hotspot_cdata' id='"+ig+"'/>")).appendTo(this.dv),this.gM.append(this.hotspotInfo.cdata),(bn=this).gM.find("iframe").each(function(){bn.iA.push(jQuery(this).attr("src"))})):this.aO.isImageContentMode?(hY=0==this.hotspotInfo.imgNoScale?this.bV.lB:1,this.gM=jQuery(this.rm("<div id='"+ig+"'/>")).appendTo(this.dv),this.gM.css({width:this.aO.ea(hY),"background-color":this.hotspotInfo.imgBkColor}),this.image=jQuery("<img style='display:block;width:100%;' src='"+this.aO.F.src+"'/>").appendTo(this.gM)):this.hotspotInfo.txt&&(this.gM=jQuery(this.rm("<div id='"+ig+"'/>")).appendTo(this.dv),this.kr(this.gM),this.gM.html(this.hotspotInfo.txt.nA())),this.gM.css("position","relative"),(this.hotspotInfo.cdata||this.hotspotInfo.txt)&&(this.aO.lT()||(self=this).gM.find("a").each(function(){self.subscribeToClickEvents(jQuery(this))}),0<(hY=this.gM.find(".hotspotPopupCloseButton")).length)&&(WR360.by.fI(hY,jQuery.proxy(function(event){this.vg(event)},this)),this.jp=!0)},WR360.bx.prototype.subscribeToClickEvents=function(elm){var self=this;elm.click(function(e){elm.attr("href")||e.preventDefault(e),self.bh.gD()&&self.bh.sm.Event(WR360.sY.rU.rR)})},WR360.bx.prototype.rm=function(html){return html=this.aO.lT()?html.replace("div","a href='"+this.hotspotInfo.url+"' target='"+this.hotspotInfo.urlTarget+"'"):html},WR360.bx.prototype.kr=function(dR){this.hotspotInfo.css?dR.attr("style",this.hotspotInfo.css):dR.css({"font-family":"Arial",width:this.hotspotInfo.txtWidth+"px",color:this.hotspotInfo.txtColor,"background-color":this.hotspotInfo.txtBkColor,"font-size":this.hotspotInfo.fntHeight+"px",border:"1px #eeeeee solid",padding:"6px 8px 10px 8px"})},WR360.bx.prototype.jw=function(){var aM;this.iL(),this.qh=this.dv.outerWidth(),this.qw=this.dv.outerHeight(),this.renderMode!=WR360.kc.bf.aC?(aM=this.bV.oy(this.aO,this.qh,this.qw),this.gM.css({left:aM.x,top:aM.y})):(this.gM.css({left:-this.qh/2,top:-this.qw/2}),this.hotspotInfo.cdata&&this.gM.css({width:this.qh,height:this.qw})),this.dv.css({width:0,height:0}),this.nc(!1),this.dv.css("visibility","visible")},WR360.bx.prototype.lm=function(e){jQuery(e.target).attr("href")||(e.stopPropagation(),this.aO.lT()?1==this.bh.gD()&&this.bh.sm.Event(WR360.sY.rU.rR):this.jp||(e.preventDefault(),e=this.aO.cv(this.bh,this.cU),this.renderMode===WR360.kc.bf.au)||e||this.aO.bi.alwaysActive||this.cN(!0))},WR360.bx.prototype.vg=function(e){e.stopPropagation(),this.renderMode!=WR360.kc.bf.au&&this.cN(!0)},WR360.bx.prototype.nR=function(it,ab){var gd=0,jj=ab/2,margin=this.aO.bi.margin;switch(this.aO.bi.align.horizontal){case WR360.Align.LEFT:gd=it-jj-margin.right;break;case WR360.Align.CENTER:gd=it-margin.right+margin.left;break;case WR360.Align.RIGHT:gd=it+jj+margin.left}var lD,ca=jj+this.bP;return gd=1==this.aO.bi.wrap&&(lD=this.H.css("width").gO(),gd-ca<=0?gd=it+jj+margin.left:lD<=gd+ca&&(gd=it-jj-margin.right),gd-ca<=0||lD<=gd+ca)?this.mi(it,ab):gd},WR360.bx.prototype.oi=function(gR,bq){var ho=0,hC=bq/2,margin=this.aO.bi.margin;switch(this.aO.bi.align.vertical){case WR360.Align.TOP:ho=gR-hC-margin.bottom;break;case WR360.Align.CENTER:ho=gR-margin.bottom+margin.top;break;case WR360.Align.BOTTOM:ho=gR+hC+margin.top}var mQ,cE=hC+this.bP;return ho=1==this.aO.bi.wrap&&(mQ=this.H.css("height").gO(),ho-cE<=0?ho=gR+hC+margin.top:mQ<=ho+cE&&(ho=gR-hC-margin.bottom),ho-cE<=0||mQ<=ho+cE)?this.mi(gR,bq):ho},WR360.bx.prototype.mi=function(it,ab){var ab=ab/2+this.bP,lD=this.H.css("width").gO();if(1==this.aO.bi.wrap){if(lD<=it+ab)return lD-ab;if(it-ab<=0)return ab}return it},WR360.bx.prototype.lF=function(gR,bq){var bq=bq/2+this.bP,mQ=this.H.css("height").gO();if(1==this.aO.bi.wrap){if(mQ<=gR+bq)return mQ-bq;if(gR-bq<=0)return bq}return gR},WR360.bx.prototype.tU=function(){var aM=this.bV.oy(this.aO,this.qh,this.qw);this.gM.css({left:aM.x,top:aM.y}),this.bg&&this.tI({x:aM.x+this.qh/2,y:aM.y+this.qw/2})},WR360.bx.prototype.uU=function(cU){var ab,bq,kK,lg;this.cU=cU,this.renderMode==WR360.kc.bf.io?this.tU():(ab=this.qh,bq=this.qw,null!=this.image&&0==this.hotspotInfo.imgNoScale&&(bq=(ab=this.aO.ea(this.bV.lB))*this.aO.F.height/this.aO.F.width,this.gM.css({left:-ab/2,top:-bq/2})),kK=0,lg=0,lg=1==this.aO.bi.align.parsed&&0==this.aO.bi.align.pn()?(kK=this.nR(cU.x,ab),this.oi(cU.y,bq)):(kK=this.mi(cU.x,ab),this.lF(cU.y,bq)),this.dv.css({left:kK,top:lg}),this.bg&&this.tI({x:kK,y:lg}))},WR360.bx.prototype.tI=function(tK){var link=this.hotspotInfo.link,eC=this.qh/2,fv=this.qw/2;switch(link.align){case 1:tK.x-=eC,tK.y-=fv;break;case 2:tK.y-=fv;break;case 3:tK.x+=eC,tK.y-=fv;break;case 4:tK.x-=eC;break;case 5:break;case 6:tK.x+=eC;break;case 7:tK.x-=eC,tK.y+=fv;break;case 8:tK.y+=fv;break;case 9:tK.x+=eC,tK.y+=fv}var tw=tK.x,tY=tK.y,uw=!0;if(link.uG)switch(link.align){case 2:tY-=link.uG;break;case 4:tw-=link.uG;break;case 6:tw+=link.uG;break;case 8:tY+=link.uG;break;default:uw=!1}var left,top,width,height,tM=tw-this.cU.x,tG=tY-this.cU.y,va=Math.sqrt(tM*tM+tG*tG),tG=Math.atan2(tG,tM);if(va-=link.tP,tG=180*tG/Math.PI+180,this.tO.css({opacity:link.opacity,height:link.width,background:link.color,left:tw,top:tY,width:va,transform:"rotate("+tG+"deg)","-moz-transform":"rotate("+tG+"deg)","-webkit-transform":"rotate("+tG+"deg)","-o-transform:":"rotate("+tG+"deg)","-ms-transform":"rotate("+tG+"deg)"}),uw){switch(link.align){case 2:left=tK.x,top=tK.y-link.uG,width=link.width,height=link.uG;break;case 4:left=tK.x-link.uG,top=tK.y,width=link.uG,height=link.width;break;case 6:left=tK.x,top=tK.y,width=link.uG,height=link.width;break;case 8:left=tK.x,top=tK.y,width=link.width,height=link.uG}this.ut.css({opacity:link.opacity,height:height,background:link.color,left:left,top:top,width:width})}},WR360.bx.prototype.jl=function(cU){1!=this.visible&&(this.iZ(),this.renderMode!=WR360.kc.bf.au&&this.uU(cU),this.aO.bi.contentFadeIn?this.mc(!0,this.aO.bi.contentFadeIn,jQuery.proxy(this.jm,this)):(this.nc(!0),this.jm()))},WR360.bx.prototype.cN=function(aX,aq){0!=this.visible&&(aX&&this.aO.bi.contentFadeOut?this.mc(!1,this.aO.bi.contentFadeOut,jQuery.proxy(this.kk,this)):(this.nc(!1),this.kk()),this.dispatchEvent(new WR360.Event(WR360.aT.Events.mI,!1,!1,aq=void 0!==aq&&aq)))},WR360.bx.prototype.iZ=function(){this.gM.unbind(),this.H.unbind("touchstart."+this.ig),this.H.unbind("mousedown."+this.ig)},WR360.bx.prototype.mx=function(e){e.stopPropagation(),this.renderMode==WR360.kc.bf.au||this.aO.bi.alwaysActive||this.cN(!0)},WR360.bx.prototype.jm=function(){this.renderMode!=WR360.kc.bf.aC&&this.renderMode!=WR360.kc.bf.io||(this.sT=Date.now()),this.gM.bind("mouseover",function(event){event.stopPropagation()}),WR360.by.fU?(this.gM.bind("touchstart",jQuery.proxy(function(event){this.lm(event)},this)),this.H.bind("touchstart."+this.ig,jQuery.proxy(function(event){this.mx(event)},this))):(this.gM.bind("mousedown",jQuery.proxy(function(event){this.lm(event)},this)),this.H.bind("mousedown."+this.ig,jQuery.proxy(function(event){this.mx(event)},this)));var bn=this;this.gM.find("iframe").each(function(index){var sS=jQuery(this).attr("src"),index=bn.iA[index];void 0!==sS&&0==sS.length&&void 0!==index&&jQuery(this).attr("src",index)})},WR360.bx.prototype.kk=function(){this.renderMode!=WR360.kc.bf.aC&&this.renderMode!=WR360.kc.bf.io||0!=this.sT&&(1==this.bh.gD()&&this.bh.sm.Event(WR360.sY.rU.te,Date.now()-this.sT),this.sT=0),this.gM.find("iframe").each(function(){jQuery(this).attr("src","")}),this.iZ()},WR360.bx.prototype.delete=function(){this.iZ(),this.bg&&this.bg.remove(),this.dv.remove(),this.bV=null,this.bh=null},WR360.jI=function(id,visible){this.Id=id,this.Visible=visible},WR360.cP=function(id,dF,cn){this.cj=!1,this.df=!1,this.id=id,this.dF=dF,this.cn=cn,this.K=jQuery("#"+this.id)},WR360.cP.prototype.iW=function(){return this.cj},WR360.cP.prototype.fi=function(fh){this.cj!=fh&&(this.cj?this.K.attr("class",this.dF):this.K.attr("class",this.cn),this.cj=fh)},WR360.cP.prototype.aH=function(visible){if(null==this.K)throw new Error("SetVisible: buttonElement==null.");(this.df=visible)?this.K.show():this.K.hide()},WR360.eI=function(id,cg,be,dF,ck,cn,cY,du){this.aB().constructor.call(this,id,dF,cn),this.jn=!1,this.cg=cg,this.ck=ck,this.cY=cY,this.du=du,this.be=be,this.dJ=0,this.pj=jQuery.proxy(this.ck,this.be),this.tm=jQuery.proxy(this.cY,this.be)},WR360.eI.aK(WR360.cP),WR360.eI.prototype.cD=function(){this.jn||(this.K.bind(this.cg,jQuery.proxy(this.ck,this.be)),this.jn=!0)},WR360.eI.prototype.ub=function(){this.K.unbind(),this.dJ&&clearTimeout(this.dJ),this.tm=null,this.pj=null},WR360.eI.prototype.fi=function(fh){var lM;this.cj!=fh&&(this.dJ&&clearTimeout(this.dJ),(lM=this).cj?(this.K.unbind(this.cg),this.K.attr("class",this.dF),0==this.du?this.K.bind(this.cg,this.pj):this.dJ=setTimeout(function(){lM.lj()},this.du)):(this.K.unbind(this.cg),this.K.attr("class",this.cn),0==this.du?this.K.bind(this.cg,this.tm):this.dJ=setTimeout(function(){lM.ka()},this.du)),this.cj=fh)},WR360.cP.prototype.ka=function(){this.K.bind(this.cg,this.tm)},WR360.cP.prototype.lj=function(){this.K.bind(this.cg,this.pj)},WR360.fb=function(id,cg,be,dF,ck,cn,cY,du){this.aB().constructor.call(this,id,cg,be,dF,ck,cn,cY,du)},WR360.fb.aK(WR360.eI),WR360.fb.prototype.pb=function(){return this.iW()},WR360.fb.prototype.ji=function(playing){this.fi(playing)},WR360.ej=function(id,dF,cn){this.aB().constructor.call(this,id,dF,cn)},WR360.ej.aK(WR360.cP),WR360.ej.prototype.nM=function(){return this.iW()},WR360.ej.prototype.as=function(dn){this.fi(dn)},WR360.bN=function(){this.he=1,this.aF=-1,this.kl=0,this.bU=null,this.bB=null,this.V=null,this.es=0,this.fe=0,this.bh=null,this.db=!0,this.cA=null,this.hz=null,this.ce=null,this.en=!1,this.hw=!1,this.cX=new WR360.J,this.aU=null,this.dZ=0,this.jr=!0,this.lc=!1,this.H=null,this.bd=null,this.aG=null,this.kL=null,this.lB=1,this.qT=!1,this.pJ=0,this.sn=0,this.ph=0,this.flippingToLowresOnZoomOut=!1,this.xc=2147483647},WR360.bN.prototype.iF=function(bh,bd){this.bh=bh,this.bd=bd,this.aG=bd},WR360.bN.prototype.cD=function(bU,bB,V,es,fe,aU,H){this.cA=new Array,this.hz=new Array,this.ce=new Array,this.bU=bU,this.kl=bU.ty,this.bB=bB,this.V=V,this.aU=aU,this.H=H,this.lB=this.bh.lB,this.he=-1==this.bh.bA.settings.rotation.kC?1:-1,null!=this.bh.pH&&""==this.bh.pH.configFileFullScreenURL&&0==this.bh.settings.fullScreenOnClick?(this.es=this.bh.pH.dG,this.fe=this.bh.pH.dA):(this.es=es,this.fe=fe),this.V.settings.control.hideHotspotsOnLoad&&(this.db=!1);for(var i=0;i<this.bB.bF.lengt