(function(e){var t=function(e,n,r,i,s,o,u,a,f,l,c){var h=this;var p=t.prototype;h.pointer_img;h.left_sdo=null;h.middle_sdo=null;h.right_sdo=null;h.text_sdo=null;h.pointer_sdo=null;h.leftImagePath_str=s;h.middleImagePath_str=o;h.rightImagePath_str=u;h.fontColor_str=a;h.bottomPointer_str=c;h.topPointer_str=l;h.pointerPosition_str=f;h.toolTipLabel_str=r;h.toolTipLabel2_str=i;h.marginWidth=e.width;h.totalHeight=e.height;h.pointerWidth=n.width;h.pointerHeight=n.height;h.totalWidth;h.hideWithDelayId_do;h.isMobile_bl=FWDUtils.isMobile;h.isShowed_bl=true;h.init=function(){h.setOverflow("visible");h.setWidth(200);h.setupMainContainers();h.setLabel(h.toolTipLabel_str);h.hide()};h.setupMainContainers=function(){var e;h.left_sdo=new FWDSimpleDisplayObject("img");e=new Image;e.src=h.leftImagePath_str;h.left_sdo.setScreen(e);h.left_sdo.setWidth(h.marginWidth);h.left_sdo.setHeight(h.totalHeight);h.addChild(h.left_sdo);h.middle_sdo=new FWDSimpleDisplayObject("img");e=new Image;e.src=h.middleImagePath_str;h.middle_sdo.setScreen(e);h.middle_sdo.setX(h.marginWidth);h.middle_sdo.setWidth(h.marginWidth);h.middle_sdo.setHeight(h.totalHeight);h.addChild(h.middle_sdo);h.right_sdo=new FWDSimpleDisplayObject("img");e=new Image;e.src=h.rightImagePath_str;h.right_sdo.setScreen(e);h.right_sdo.setWidth(h.marginWidth);h.right_sdo.setHeight(h.totalHeight);h.addChild(h.right_sdo);h.text_sdo=new FWDSimpleDisplayObject("div");h.text_sdo.setBackfaceVisibility();h.text_sdo.setDisplay("inline-block");h.text_sdo.getStyle().fontFamily="Arial";h.text_sdo.getStyle().fontSize="12px";h.text_sdo.setHeight(20);h.text_sdo.getStyle().color=h.fontColor_str;h.text_sdo.getStyle().fontSmoothing="antialiased";h.text_sdo.getStyle().webkitFontSmoothing="antialiased";h.text_sdo.getStyle().textRendering="optimizeLegibility";h.text_sdo.setX(h.marginWidth);if(FWDUtils.isIEAndLessThen9||FWDUtils.isSafari){h.text_sdo.setY(parseInt((h.totalHeight-8)/2)-2)}else{h.text_sdo.setY(parseInt((h.totalHeight-8)/2)-1)}h.addChild(h.text_sdo);h.pointer_img=new Image;if(h.pointerPosition_str==FWDController.POSITION_BOTTOM){h.pointer_img.src=h.bottomPointer_str}else{h.pointer_img.src=h.topPointer_str}h.pointer_sdo=new FWDSimpleDisplayObject("img");h.pointer_sdo.setScreen(h.pointer_img);h.pointer_sdo.setWidth(h.pointerWidth);h.pointer_sdo.setHeight(h.pointerHeight);h.addChild(h.pointer_sdo)};h.setLabel=function(e){if(h==null)return;if(!h.middle_sdo)return;h.text_sdo.setInnerHTML(e);setTimeout(function(){if(h==null)return;h.middle_sdo.setWidth(h.text_sdo.screen.offsetWidth);h.right_sdo.setX(h.text_sdo.screen.offsetWidth+h.marginWidth);h.totalWidth=h.marginWidth*2+h.text_sdo.screen.offsetWidth;h.positionPointer(0)},50)};h.positionPointer=function(e){var t;var n;if(!e)e=0;t=parseInt((h.totalWidth-h.pointerWidth)/2)+e;if(h.pointerPosition_str==FWDController.POSITION_BOTTOM){n=h.totalHeight-1}else{n=-h.pointerHeight+1}h.pointer_sdo.setX(t);h.pointer_sdo.setY(n)};h.show=function(){if(h.isShowed_bl)return;clearInterval(h.hideWithDelayId_do);h.positionPointer();TweenMax.killTweensOf(h);TweenMax.to(h,.4,{alpha:1,delay:.1,ease:Quart.easeOut});h.isShowed_bl=true};h.hide=function(){if(!h.isShowed_bl)return;TweenMax.killTweensOf(h);h.setX(-5e3);h.setAlpha(0);h.isShowed_bl=false};h.destroy=function(){TweenMax.killTweensOf(h);h.pointer_img=null;h.left_sdo.destroy();h.middle_sdo.destroy();h.right_sdo.destroy();h.text_sdo.destroy();h.pointer_sdo.destroy();h.leftImagePath_str=null;h.middleImagePath_str=null;h.rightImagePath_str=null;h.fontColor_str=null;h.bottomPointer_str=null;h.topPointer_str=null;h.pointerPosition_str=null;h.toolTipLabel_str=null;h.toolTipLabel2_str=null;h.left_sdo=null;h.middle_sdo=null;h.right_sdo=null;h.text_sdo=null;h.pointer_sdo=null;e=null;n=null;r=null;i=null;s=null;o=null;u=null;a=null;f=null;l=null;c=null;h.setInnerHTML("");p.destroy();h=null;p=null;t.prototype=null};h.init()};t.setPrototype=function(){t.prototype=null;t.prototype=new FWDDisplayObject("div")};t.CLICK="onClick";t.MOUSE_DOWN="onMouseDown";t.prototype=null;e.FWDButtonToolTip=t})(window);(function(){var e=function(t,n,r,i,s){var o=this;var u=e.prototype;this.n1Img=t;this.s1Img=n;this.n2Img=r;this.s2Img=i;this.firstButton_do;this.n1_do;this.s1_do;this.secondButton_do;this.n2_do;this.s2_do;this.buttonWidth=o.n1Img.width;this.buttonHeight=o.n1Img.height;this.currentState=1;this.isDisabled_bl=false;this.isMaximized_bl=false;this.disptachMainEvent_bl=s;this.isMobile_bl=FWDUtils.isMobile;this.hasPointerEvent_bl=FWDUtils.hasPointerEvent;o.init=function(){o.setButtonMode(true);o.setWidth(o.buttonWidth);o.setHeight(o.buttonHeight);o.setupMainContainers();o.secondButton_do.setVisible(false)};o.setupMainContainers=function(){o.firstButton_do=new FWDDisplayObject("div");o.addChild(o.firstButton_do);o.n1_do=new FWDSimpleDisplayObject("img");o.n1_do.setScreen(o.n1Img);o.s1_do=new FWDSimpleDisplayObject("img");o.s1_do.setScreen(o.s1Img);o.s1_do.setAlpha(0);o.firstButton_do.addChild(o.n1_do);o.firstButton_do.addChild(o.s1_do);o.firstButton_do.setWidth(o.n1Img.width);o.firstButton_do.setHeight(o.n1Img.height);o.secondButton_do=new FWDDisplayObject("div");o.addChild(o.secondButton_do);o.n2_do=new FWDSimpleDisplayObject("img");o.n2_do.setScreen(o.n2Img);o.s2_do=new FWDSimpleDisplayObject("img");o.s2_do.setScreen(o.s2Img);o.s2_do.setAlpha(0);o.secondButton_do.addChild(o.n2_do);o.secondButton_do.addChild(o.s2_do);o.secondButton_do.setWidth(o.n2Img.width);o.secondButton_do.setHeight(o.n2Img.height);o.addChild(o.secondButton_do);o.addChild(o.firstButton_do);if(o.isMobile_bl){if(o.hasPointerEvent_bl){o.screen.addEventListener("MSPointerDown",o.onMouseDown);o.screen.addEventListener("MSPointerUp",o.onClick);o.screen.addEventListener("MSPointerOver",o.onMouseOver);o.screen.addEventListener("MSPointerOut",o.onMouseOut)}else{o.screen.addEventListener("touchstart",o.onMouseDown)}}else if(o.screen.addEventListener){o.screen.addEventListener("mouseover",o.onMouseOver);o.screen.addEventListener("mouseout",o.onMouseOut);o.screen.addEventListener("mousedown",o.onMouseDown);o.screen.addEventListener("click",o.onClick)}else if(o.screen.attachEvent){o.screen.attachEvent("onmouseover",o.onMouseOver);o.screen.attachEvent("onmouseout",o.onMouseOut);o.screen.attachEvent("onmousedown",o.onMouseDown);o.screen.attachEvent("onclick",o.onClick)}};o.onMouseOver=function(t,n){if(!t.pointerType||t.pointerType==t.MSPOINTER_TYPE_MOUSE){o.dispatchEvent(e.MOUSE_OVER,{e:t});TweenMax.killTweensOf(o.s1_do);TweenMax.killTweensOf(o.s2_do);TweenMax.to(o.s1_do,.5,{alpha:1,delay:.1,ease:Expo.easeOut});TweenMax.to(o.s2_do,.5,{alpha:1,delay:.1,ease:Expo.easeOut})}};o.onMouseOut=function(t){if(!t.pointerType||t.pointerType==t.MSPOINTER_TYPE_MOUSE){TweenMax.killTweensOf(o.s1_do);TweenMax.killTweensOf(o.s2_do);TweenMax.to(o.s1_do,.5,{alpha:0,ease:Expo.easeOut});TweenMax.to(o.s2_do,.5,{alpha:0,ease:Expo.easeOut});o.dispatchEvent(e.MOUSE_OUT)}};o.onClick=function(t){if(o.isDisabled_bl)return;if(t.preventDefault)t.preventDefault();if(o.disptachMainEvent_bl)o.dispatchEvent(e.CLICK)};o.onMouseDown=function(t){if(o.isDisabled_bl)return;if(t.preventDefault)t.preventDefault();if(!o.isMobile_bl)o.onMouseOver(t,false);if(o.disptachMainEvent_bl)o.dispatchEvent(e.MOUSE_DOWN,{e:t})};o.toggleButton=function(){if(o.currentState==1){o.firstButton_do.setVisible(false);o.secondButton_do.setVisible(true);o.currentState=0;o.dispatchEvent(e.FIRST_BUTTON_CLICK)}else{o.firstButton_do.setVisible(true);o.secondButton_do.setVisible(false);o.currentState=1;o.dispatchEvent(e.SECOND_BUTTON_CLICK)}};o.setButtonState=function(e){if(e==1){o.firstButton_do.setVisible(true);o.secondButton_do.setVisible(false);o.currentState=1}else{o.firstButton_do.setVisible(false);o.secondButton_do.setVisible(true);o.currentState=0}};o.destroy=function(){if(o.isMobile_bl){if(o.hasPointerEvent_bl){o.screen.removeEventListener("MSPointerDown",o.onMouseDown);o.screen.removeEventListener("MSPointerUp",o.onClick);o.screen.removeEventListener("MSPointerOver",o.onMouseOver);o.screen.removeEventListener("MSPointerOut",o.onMouseOut)}else{o.screen.removeEventListener("touchstart",o.onMouseDown)}}else if(o.screen.removeEventListener){o.screen.removeEventListener("mouseover",o.onMouseOver);o.screen.removeEventListener("mouseout",o.onMouseOut);o.screen.removeEventListener("mousedown",o.onMouseDown);o.screen.removeEventListener("click",o.onClick)}else if(o.screen.detachEvent){o.screen.detachEvent("onmouseover",o.onMouseOver);o.screen.detachEvent("onmouseout",o.onMouseOut);o.screen.detachEvent("onmousedown",o.onMouseDown);o.screen.detachEvent("onclick",o.onClick)}TweenMax.killTweensOf(o.s1_do);TweenMax.killTweensOf(o.s2_do);o.firstButton_do.destroy();o.n1_do.destroy();o.s1_do.destroy();o.secondButton_do.destroy();o.n2_do.destroy();o.s2_do.destroy();o.firstButton_do=null;o.n1_do=null;o.s1_do=null;o.secondButton_do=null;o.n2_do=null;o.s2_do=null;o.n1Img=null;o.s1Img=null;o.n2Img=null;o.s2Img=null;t=null;n=null;r=null;i=null;o.init=null;o.setupMainContainers=null;o.onMouseOver=null;o.onMouseOut=null;o.onClick=null;o.onMouseDown=null;o.toggleButton=null;o.setButtonState=null;o.destroy=null;o.setInnerHTML("");u.destroy();o=null;u=null;e.prototype=null};o.init()};e.setPrototype=function(){e.prototype=new FWDDisplayObject("div")};e.FIRST_BUTTON_CLICK="onFirstClick";e.SECOND_BUTTON_CLICK="secondButtonOnClick";e.MOUSE_OVER="onMouseOver";e.MOUSE_OUT="onMouseOut";e.MOUSE_DOWN="onMouseDown";e.CLICK="onClick";e.prototype=null;window.FWDComplexButton=e})(window);(function(e){var t=function(){var n=this;var r=t.prototype;this.main_do=null;this.init=function(){this.setupScreen();e.onerror=this.showError;this.screen.style.zIndex=100000009;setTimeout(this.addConsoleToDom,100);setInterval(this.position,100)};this.position=function(){var e=FWDUtils.getScrollOffsets();n.setX(e.x);n.setY(e.y)};this.addConsoleToDom=function(){if(navigator.userAgent.toLowerCase().indexOf("msie 7")!=-1){document.getElementsByTagName("body")[0].appendChild(n.screen)}else{document.documentElement.appendChild(n.screen)}};this.setupScreen=function(){this.main_do=new FWDDisplayObject("div","absolute");this.main_do.setOverflow("auto");this.main_do.setWidth(200);this.main_do.setHeight(300);this.setWidth(200);this.setHeight(300);this.main_do.setBkColor("#FFFFFF");this.addChild(this.main_do)};this.showError=function(e,t,r){var i=n.main_do.getInnerHTML()+"
"+"JavaScript error: "+e+" on line "+r+" for "+t;n.main_do.setInnerHTML(i);n.main_do.screen.scrollTop=n.main_do.screen.scrollHeight};this.log=function(e){var t=n.main_do.getInnerHTML()+"
"+e;n.main_do.setInnerHTML(t);n.main_do.getScreen().scrollTop=1e4};this.init()};t.setPrototype=function(){t.prototype=new FWDDisplayObject("div","absolute")};t.prototype=null;e.FWDConsole=t})(window);(function(){var e=function(t,n){var r=this;var i=e.prototype;r.parent=t;r.buttonsTest_ar=n.buttons_ar;r.itemsLabels_ar=n.contextMenuLabels_ar;r.items_ar=[];r.spacers_ar=[];r.panButton_do=null;r.rotateButton_do=null;r.nextButton_do=null;r.prevButton_do=null;r.slideShowButton_do=null;r.infoButton_do=null;r.linkButton_do=null;r.fullScreenButton_do=null;r.zoomInButton_do=null;r.zoomOutButton_do=null;r.slideShowButton_do=null;r.linkButton_do=null;r.infoButton_do=null;r.fullScreenButton_do=null;r.backgroundColor_str=n.contextMenuBackgroundColor_str;r.borderColor_str=n.contextMenuBorderColor_str;r.spacerColor_str=n.contextMenuSpacerColor_str;r.itemNormalColor_str=n.contextMenuItemNormalColor_str;r.itemSelectedColor_str=n.contextMenuItemSelectedColor_str;r.itemDisabledColor_str=n.contextMenuItemDisabledColor_str;r.draggingMode_str=n.startDraggingMode_str;r.link_str=n.link_str;r.borderRadius=6;r.biggestWidth;r.totalWidth=400;r.totalHeight=400;r.sapaceBetweenButtons=7;r.padding=6;r.getMaxWidthResizeAndPositionId_to;r.inverseNextAndPrevRotation_bl=n.inverseNextAndPrevRotation_bl;r.showScriptDeveloper_bl=n.showScriptDeveloper_bl;r.show_bl=false;r.isActive_bl=false;r.init=function(){if(r.itemsLabels_ar||r.showScriptDeveloper_bl){r.show_bl=true;r.setWidth(r.totalWidth);r.setHeight(r.totalHeight);r.setBkColor(r.backgroundColor_str);r.getStyle().borderColor=r.borderColor_str;r.getStyle().borderStyle="solid";r.getStyle().borderRadius=r.borderRadius+"px";r.getStyle().borderWidth="1px";r.setVisible(false);r.setY(-2e3);r.parent.main_do.addChild(r);r.setupLabels();r.setupDeveloperButton();r.setupSpacers();r.getMaxWidthResizeAndPositionId_to=setTimeout(r.getMaxWidthResizeAndPosition,200)}r.addContextEvent()};r.setupLabels=function(){var e=r.buttonsTest_ar.length;var n;var i="";var s="";if(!r.itemsLabels_ar)return;for(var o=0;or.totalWidth)r.totalWidth=t.getMaxTextWidth()}for(var o=0;on-2)u=s-r.totalWidth;if(u<0)u=parseInt((n-r.totalWidth)/2);if(u<0)u=0;if(a+r.totalHeight>i-2)a=o-r.totalHeight;if(a<0)a=parseInt((i-r.totalHeight)/2);if(a<0)a=0;r.setX(u);r.setY(a)};r.disable=function(){if(r.panButton_do)r.panButton_do.disable();if(r.rotateButton_do)r.rotateButton_do.disable();if(r.nextButton_do)r.nextButton_do.disable();if(r.prevButton_do)r.prevButton_do.disable();if(r.slideShowButton_do)r.slideShowButton_do.disable();if(r.infoButton_do)r.infoButton_do.disable();if(r.zoomInButton_do)r.zoomInButton_do.disable();if(r.zoomOutButton_do)r.zoomOutButton_do.disable();if(r.slideShowButton_do)r.slideShowButton_do.disable()};r.enable=function(){console.log(r.draggingMode_str);if(r.panButton_do&&r.draggingMode_str==FWDController.ROTATE)r.panButton_do.enable();if(r.rotateButton_do&&r.draggingMode_str==FWDController.PAN)r.rotateButton_do.enable();if(r.nextButton_do)r.nextButton_do.enable();if(r.prevButton_do)r.prevButton_do.enable();if(r.slideShowButton_do)r.slideShowButton_do.enable();if(r.infoButton_do)r.infoButton_do.enable();if(r.zoomInButton_do)r.zoomInButton_do.enable();if(r.zoomOutButton_do)r.zoomOutButton_do.enable();if(r.slideShowButton_do)r.slideShowButton_do.enable()};r.removeFromDOM=function(){r.setX(-5e3)};r.destroy=function(){var s;clearTimeout(r.getMaxWidthResizeAndPositionId_to);TweenMax.killTweensOf(r);if(window.removeEventListener){window.removeEventListener("mousedown",r.contextMenuWindowOnMouseDownHandler);window.removeEventListener("mouseup",r.contextMenuWindowOnMouseDownHandler);r.parent.main_do.screen.removeEventListener("contextmenu",r.contextMenuHandler)}else{document.documentElement.detachEvent("onmousedown",r.contextMenuWindowOnMouseDownHandler);document.documentElement.detachEvent("onmouseup",r.contextMenuWindowOnMouseDownHandler);r.parent.main_do.screen.detachEvent("oncontextmenu",r.contextMenuHandler)}s=r.items_ar.length;for(var o=0;ot)r.scrollBarPosition=t;if(r.scrollBarPosition<0)r.scrollBarPosition=0;if(r.curWidth>r.maxWidth)r.curWidth=r.maxWidth;if(t==0){r.scrollBarTotalWidth=r.startSpaceBetweenButtons*2+r.startSpaceForScrollBarButtons*2+r.smallSpaceForScrollBar*2+r.zoomButtonWidth*2}else if(t>1&&r.scrollBarPosition!=0&&r.scrollBarPosition!=t){r.scrollBarTotalWidth=r.startSpaceBetweenButtons*2+t*r.buttonWidth+r.spaceBetweenButtons*(t-2)+r.startSpaceForScrollBarButtons*2+r.smallSpaceForScrollBar*2+r.zoomButtonWidth*2}else if(t>1&&(r.scrollBarPosition==0||r.scrollBarPosition==t)){r.scrollBarTotalWidth=r.startSpaceBetweenButtons*3+t*r.buttonWidth+r.spaceBetweenButtons*(t-1)+r.startSpaceForScrollBarButtons*2+r.smallSpaceForScrollBar*2+r.zoomButtonWidth*2}else{r.scrollBarTotalWidth=r.startSpaceBetweenButtons*2+t*r.buttonWidth+r.startSpaceForScrollBarButtons*2+r.smallSpaceForScrollBar*2+r.zoomButtonWidth*2}r.scrollBarTotalWidth=r.curWidth-r.scrollBarTotalWidth;if(r.scrollBarTotalWidth<100)r.isScrollBarActive_bl=false}if(r.isScrollBarActive_bl){r.scrollBar_do.setVisible(true);for(var h=0;h=r.scrollBarPosition;h--){l=r.buttons_ar[h];if(l){l=r.buttons_ar[h];a=r.curWidth-r.startSpaceBetweenButtons-r.buttonWidth-Math.abs(h-t+1)*(n+r.buttonWidth);f=parseInt((r.curHeight-r.buttonHeight)/2);l.setX(a);l.setY(f)}}if(t==0){u=r.startSpaceForScrollBarButtons+r.startSpaceBetweenButtons}else if(t>1&&r.scrollBarPosition!=0&&r.scrollBarPosition!=t){u=r.buttons_ar[r.scrollBarPosition-1].getX()+r.buttonWidth+r.startSpaceForScrollBarButtons}else if(t>1&&r.scrollBarPosition==0){u=r.startSpaceBetweenButtons+r.startSpaceForScrollBarButtons}else if(t>1&&r.scrollBarPosition==t){u=r.buttons_ar[r.scrollBarPosition-1].getX()+r.buttonWidth+r.startSpaceForScrollBarButtons+r.startSpaceBetweenButtons}else if(t==1&&r.scrollBarPosition>0){u=r.startSpaceBetweenButtons+r.buttonWidth+r.startSpaceForScrollBarButtons}else if(t==1&&r.scrollBarPosition==0){u=r.startSpaceForScrollBarButtons+r.startSpaceBetweenButtons}u+=r.scrollBarOffsetX;r.zoomOut_do.setX(u);r.zoomOut_do.setY(parseInt((r.curHeight-r.zoomButtonHeight)/2));r.zoomIn_do.setX(r.zoomOut_do.getX()+r.zoomButtonWidth+r.smallSpaceForScrollBar*2+r.scrollBarTotalWidth);r.zoomIn_do.setY(parseInt((r.curHeight-r.zoomButtonHeight)/2));r.scrollBar_do.setX(r.zoomOut_do.getX()+r.smallSpaceForScrollBar+r.zoomButtonWidth);r.scrollBar_do.setY(parseInt((r.curHeight-r.scrollBarHeight)/2)+1);r.scrollBar_do.setWidth(r.scrollBarTotalWidth);r.scrollBarMiddle_do.setX(r.scrollBarRightPartWidth-1);r.scrollBarMiddle_do.setWidth(r.scrollBarTotalWidth-r.scrollBarRightPartWidth*2+2);r.scrollBarRight_do.setX(r.scrollBarTotalWidth-r.scrollBarRightPartWidth)}else{if(r.showScrollBar_bl){r.scrollBar_do.setVisible(false);if(FWDUtils.indexOfArray(r.buttons_ar,r.zoomIn_do)==-1){c=r.scrollBarPosition;r.buttons_ar.splice(c,0,r.zoomIn_do);r.buttons_ar.splice(c,0,r.zoomOut_do)}t=r.buttons_ar.length}r.minWidth=t*r.buttonWidth+r.startSpaceBetweenButtons*2+r.spaceBetweenButtons*t-r.spaceBetweenButtons;if(r.minWidth>r.stageWidth){r.minWidth=r.stageWidth;if(r.minWidth<320)r.minWidth=320;s=r.buttonWidth*t;n=(r.minWidth-r.startSpaceBetweenButtons*2-s)/(t-1)}r.curWidth=r.minWidth;for(var h=0;h=r.scrollBarTotalWidth-r.scrollBarHandlerWidth){r.finalHandlerX=r.scrollBarTotalWidth-r.scrollBarHandlerWidth}var i=r.finalHandlerX/(r.scrollBarTotalWidth-r.scrollBarHandlerWidth);r.dispatchEvent(e.SCROLL_BAR_UPDATE,{percent:i});r.scrollBarHandler_do.setX(r.finalHandlerX);r.positionAndSetLabelScrollBarHandler()};r.handlerDragEndHandler=function(t){var n;r.dispatchEvent(e.ENABLE_PAN_OR_MOVE);n=FWDUtils.getViewportMouseCoordinates(t);if(!FWDUtils.hitTest(r.scrollBarHandler_do.screen,n.screenX,n.screenY)){r.scrollBarHandler_do.onMouseOut(t);if(r.showButtonsLabels_bl)r.scrollBarHandlerToolTip_do.hide();r.scrollBarHandler_do.setUnselctedFinal()}r.scrollBarHandler_do.isSelectedFinal_bl=false;if(r.isMobile_bl){if(r.hasPointerEvent_bl){window.removeEventListener("MSPointerMove",r.handlerDragMoveHandler);window.removeEventListener("MSPointerUp",r.handlerDragEndHandler)}else{window.removeEventListener("touchmove",r.handlerDragMoveHandler);window.removeEventListener("touchend",r.handlerDragEndHandler)}}else{if(window.removeEventListener){window.removeEventListener("mousemove",r.handlerDragMoveHandler);window.removeEventListener("mouseup",r.handlerDragEndHandler)}else if(document.detachEvent){document.detachEvent("onmousemove",r.handlerDragMoveHandler);document.detachEvent("onmouseup",r.handlerDragEndHandler)}}};r.updateScrollBar=function(e,t){if(!r.scrollBarHandler_do)return;r.finalHandlerX=Math.round(e*(r.scrollBarTotalWidth-r.scrollBarHandlerWidth));if(!r.isScrollBarActive_bl)return;if(r.finalHandlerX<=0){r.finalHandlerX=0}else if(r.finalHandlerX>=r.scrollBarTotalWidth-r.scrollBarHandlerWidth){r.finalHandlerX=r.scrollBarTotalWidth-r.scrollBarHandlerWidth}if(t){TweenMax.to(r.scrollBarHandler_do,.2,{x:r.finalHandlerX,onUpdate:r.positionAndSetLabelScrollBarHandler,onComplete:r.positionAndSetLabelScrollBarHandler})}else{TweenMax.killTweensOf(r.scrollBarHandler_do);r.scrollBarHandler_do.setX(r.finalHandlerX)}};r.positionAndSetLabelScrollBarHandler=function(){if(!r.showButtonsLabels_bl||!r.isScrollBarActive_bl)return;var t=0;var n=0;var i=r.finalHandlerX/(r.scrollBarTotalWidth-r.scrollBarHandlerWidth);var s=r.getGlobalX();r.scrollBarHandlerToolTip_do.setLabel(r.scrollBarHandlerToolTip_do.toolTipLabel_str+Math.round(i*100)+"%");setTimeout(function(){if(r==null||!r.scrollBarHandlerToolTip_do.isShowed_bl)return;t=parseInt(r.scrollBarHandler_do.getX()+r.scrollBar_do.getX()+(r.scrollBarHandlerWidth-r.scrollBarHandlerToolTip_do.totalWidth)/2);if(r.controllerPosition_str==e.POSITION_BOTTOM){n=-r.scrollBarHandlerToolTip_do.totalHeight-r.scrollBarHandlerToolTipOffsetY}else{n=r.curHeight+r.scrollBarHandlerToolTipOffsetY}if(s+t<0)t=0;r.scrollBarHandlerToolTip_do.setX(t);r.scrollBarHandlerToolTip_do.setY(n)},51)};r.hide=function(t){if(r.controllerPosition_str==e.POSITION_BOTTOM){if(t){TweenMax.to(r.mainHolder_do,1,{y:r.curHeight+r.controllerOffsetY,ease:Expo.easeInOut})}else{r.mainHolder_do.setY(r.curHeight+r.controllerOffsetY)}}else if(r.controllerPosition_str==e.POSITION_TOP){if(t){TweenMax.to(r.mainHolder_do,1,{y:-r.curHeight-r.controllerOffsetY,ease:Expo.easeInOut})}else{r.mainHolder_do.setY(-r.curHeight-r.controllerOffsetY)}}};r.show=function(){TweenMax.to(r.mainHolder_do,1,{y:0,ease:Expo.easeInOut})};r.showToolTipButton=function(t,n,i){if(r.showButtonsLabels_bl){var s;var o;var u=r.mainHolder_do.getX();var a=0;if(r.showButtonsLabels_bl)n.show();setTimeout(function(){if(r==null||!n.isShowed_bl)return;s=parseInt(t.getX()+(r.buttonWidth-n.totalWidth)/2);if(r.controllerPosition_str==e.POSITION_BOTTOM){o=-n.totalHeight-i}else{o=r.curHeight+i}if(u+s<0){a=u+s;s=s+Math.abs(u+s)}else if(u+r.curWidth-s-n.totalWidth<0){a=-(u+r.curWidth-s-n.totalWidth);s=s+u+r.curWidth-s-n.totalWidth}n.setX(s);n.setY(o);n.positionPointer(a)},51)}};r.showZoomInOrOutToolTipButton=function(t,n,i){if(r.showButtonsLabels_bl){var s;var o;var u=r.mainHolder_do.getX();var a=0;setTimeout(function(){if(r==null||!n.isShowed_bl)return;s=parseInt(t.getX()+(r.zoomButtonHeight-n.totalWidth)/2);if(r.controllerPosition_str==e.POSITION_BOTTOM){o=-n.totalHeight-i}else{o=r.curHeight+i}if(u+s<0){a=u+s;s=s+Math.abs(u+s)}else if(u+r.curWidth-s-n.totalWidth<0){a=-(u+r.curWidth-s-n.totalWidth);s=s+u+r.curWidth-s-n.totalWidth}n.setX(s);n.setY(o);n.positionPointer(a)},51)}};r.cleanMainEvents=function(){clearInterval(r.gotoImageId_int);clearInterval(r.zoomWithButtonsId_int);clearInterval(r.slideShowId_int);clearTimeout(r.gotoImageId_to);clearTimeout(r.zoomWithButtonsId_to);if(r.hider){r.hider.removeListener(FWDHider.SHOW,r.onHiderShow);r.hider.removeListener(FWDHider.HIDE,r.onHiderHide)}r.screen.onmousedown=null;if(r.isMobile_bl){window.removeEventListener("touchend",r.gotoImageEndHandler);window.removeEventListener("MSPointerUp",r.gotoImageEndHandler);window.removeEventListener("touchend",r.zoomInWithButtonsEndHandler);window.removeEventListener("MSPointerUp",r.zoomInWithButtonsEndHandler);window.removeEventListener("touchend",r.zoomOutWithButtonsEndHandler);window.removeEventListener("MSPointerUp",r.zoomOutWithButtonsEndHandler);window.removeEventListener("touchmove",r.handlerDragMoveHandler);window.removeEventListener("touchend",r.handlerDragEndHandler);window.removeEventListener("MSPointerMove",r.handlerDragMoveHandler);window.removeEventListener("MSPointerUp",r.handlerDragEndHandler)}else{if(window.removeEventListener){window.removeEventListener("mouseup",r.gotoImageEndHandler);window.removeEventListener("mouseup",r.zoomInWithButtonsEndHandler);window.removeEventListener("mouseup",r.zoomOutWithButtonsEndHandler);window.removeEventListener("mousemove",r.handlerDragMoveHandler);window.removeEventListener("mouseup",r.handlerDragEndHandler);window.removeEventListener("keydown",r.onKeyDownHandler);window.removeEventListener("keyup",r.onKeyUpHandler)}else if(document.detachEvent){document.detachEvent("onmouseup",r.gotoImageEndHandler);document.detachEvent("onmouseup",r.zoomInWithButtonsEndHandler);document.detachEvent("onmouseup",r.zoomOutWithButtonsEndHandler);document.detachEvent("onmousemove",r.handlerDragMoveHandler);document.detachEvent("onmouseup",r.handlerDragEndHandler);document.detachEvent("onkeydown",r.onKeyDownHandler);document.detachEvent("onkeyup",r.onKeyUpHandler)}}if(document.removeEventListener){document.removeEventListener("fullscreenchange",r.onFullScreenChange);document.removeEventListener("mozfullscreenchange",r.onFullScreenChange);document.removeEventListener("webkitfullscreenchange",r.onFullScreenChange)}};this.destroy=function(){r.cleanMainEvents();TweenMax.killTweensOf(r.mainHolder_do);r.mainHolder_do.destroy();r.backgroundLeft_sdo.destroy();r.backgroundMiddle_sdo.destroy();r.backgroundRight_sdo.destroy();if(r.panButton_do)r.panButton_do.destroy();if(r.rotateButton_do)r.rotateButton_do.destroy();if(r.nextButton_do)r.nextButton_do.destroy();if(r.prevButton_do)r.prevButton_do.destroy();if(r.slideShowButton_do)r.slideShowButton_do.destroy();if(r.infoButton_do)r.infoButton_do.destroy();if(r.linkButton_do)r.linkButton_do.destroy();if(r.fullScreenButton_do)r.fullScreenButton_do.destroy();if(r.zoomIn_do)r.zoomIn_do.destroy();if(r.zoomOut_do)r.zoomOut_do.destroy();if(r.scrollBar_do)r.scrollBar_do.destroy();if(r.scrollBarLeft_sdo)r.scrollBarLeft_sdo.destroy();if(r.scrollBarRight_sdo)r.scrollBarRight_sdo.destroy();if(r.scrollBarMiddle_sdo)r.scrollBarMiddle_sdo.destroy();if(r.scrollBarHandler_do){TweenMax.killTweensOf(r.mainHolder_do);r.scrollBarHandler_do.destroy()}if(r.scrollBarHandlerN_sdo)r.scrollBarHandlerN_sdo.destroy();if(r.scrollBarHandlerS_sdo)r.scrollBarHandlerS_sdo.destroy();if(r.panButtonTooTipLabel_do)r.panButtonTooTipLabel_do.destroy();if(r.scrollBarHandlerToolTip_do)r.scrollBarHandlerToolTip_do.destroy();if(r.rotateButtonToolTip_do)r.rotateButtonToolTip_do.destroy();if(r.nextButtonToolTip_do)r.nextButtonToolTip_do.destroy();if(r.prevButtonToolTip_do)r.prevButtonToolTip_do.destroy();if(r.slideShowToolTip_do)r.slideShowToolTip_do.destroy();if(r.infoToolTip_do)r.infoToolTip_do.destroy();if(r.linkToolTip_do)r.linkToolTip_do.destroy();if(r.fullscreenToolTip_do)r.fullscreenToolTip_do.destroy();r.buttonsTest_ar=null;r.buttons_ar=null;r.hider=null;r.mainHolder_do=null;r.backgroundLeft_sdo=null;r.backgroundMiddle_sdo=null;r.backgroundRight_sdo=null;r.panButton_do=null;r.rotateButton_do=null;r.nextButton_do=null;r.prevButton_do=null;r.slideShowButton_do=null;r.infoButton_do=null;r.linkButton_do=null;r.fullScreenButton_do=null;r.zoomIn_do=null;r.zoomOut_do=null;r.scrollBar_do=null;r.scrollBarLeft_sdo=null;r.scrollBarRight_sdo=null;r.scrollBarMiddle_sdo=null;r.scrollBarHandler_do=null;r.scrollBarHandlerN_sdo=null;r.scrollBarHandlerS_sdo=null;r.panButtonTooTipLabel_do=null;r.scrollBarHandlerToolTip_do=null;r.rotateButtonToolTip_do=null;r.nextButtonToolTip_do=null;r.prevButtonToolTip_do=null;r.slideShowToolTip_do=null;r.infoToolTip_do=null;r.linkToolTip_do=null;r.fullscreenToolTip_do=null;r.backgroundLeft_img=null;r.backgroundRight_img=null;r.panN_img=null;r.panS_img=null;r.rotateN_img=null;r.rotateS_img=null;r.nextN_img=null;r.nextS_img=null;r.prevN_img=null;r.prevS_img=null;r.playN_img=null;r.playS_img=null;r.pauseN_img=null;r.pauseS_img=null;r.infoN_img=null;r.infoS_img=null;r.linkN_img=null;r.linkS_img=null;r.fullScreenNormalN_img=null;r.fullScreenNormalS_img=null;r.fullScreenFullN_img=null;r.fullScreenFullS_img=null;r.zoomInN_img=null;r.zoomInS_img=null;r.zoomOutN_img=null;r.zoomOutS_img=null;r.scrollBarHandlerN_img=null;r.scrollBarHandlerS_img=null;r.scrollBarLeft_img=null;r.scrollBarRight_img=null;r.toolTipLeft_img=null;r.toolTipPointer_img=null;r.backgroundMiddlePath_str=null;r.scrollBarMiddlePath_str=null;r.draggingMode_str=null;r.controllerPosition_str=null;r.buttonToolTipLeft_str=null;r.buttonToolTipMiddle_str=null;r.buttonToolTipRight_str=null;r.link_str=null;t=null;n=null;r.setInnerHTML("");i.destroy();r=null;i=null;e.prototype=null};this.init()};e.setPrototype=function(){e.prototype=new FWDDisplayObject("div")};e.SHOW_INFO="showInfo";e.POSITION_TOP="top";e.POSITION_BOTTOM="bottom";e.CHANGE_NAVIGATION_STYLE="changeNavigationStyle";e.GOTO_NEXT_IMAGE="gotoNextImage";e.GOTO_PREV_IMAGE="gotoPrevImage";e.GOTO_NEXT_OR_PREV_IMAGE="gotoNextOrPrevImage";e.GOTO_NEXT_OR_PREV_IMAGE_COMPLETE="gotoNextOrPrevImageComplete";e.DISABLE_PAN_OR_MOVE="disablePanOrMove";e.ENABLE_PAN_OR_MOVE="enablePanOrMove";e.SCROLL_BAR_UPDATE="scrollBarUpdate";e.ZOOM_WITH_BUTTONS="zoomWithButtons";e.ZOOM_IN="zoomIn";e.ZOOM_OUT="zoomOut";e.PAN="pan";e.ROTATE="rotate";e.START_SLIDE_SHOW="startSlideShow";e.STOP_SLIDE_SHOW="stopSlideShow";e.GO_FULL_SCREEN="goFullScreen";e.GO_NORMAL_SCREEN="goNormalScreen";e.MOUSE_DOWN="controllerOnMouseDown";e.prototype=null;window.FWDController=e})();(function(e){var t=function(e){var n=this;var r=t.prototype;this.navigatorImage_img;this.mainPreloader_img=null;this.mainLightboxCloseButtonN_img=null;this.mainLightboxCloseButtonS_img=null;this.controllerBackgroundLeft_img=null;this.controllerBackgroundRight_img=null;this.controllerPanN_img=null;this.controllerPanS_img=null;this.controllerRotateN_img=null;this.controllerRotateS_img=null;this.controllerNextN_img=null;this.controllerNextS_img=null;this.controllerPrevN_img=null;this.controllerPrevS_img=null;this.controllerPlayN_img=null;this.controllerPlayS_img=null;this.controllerPauseN_img=null;this.controllerPauseS_img=null;this.controllerInfoN_img=null;this.controllerInfoS_img=null;this.controllerLinkN_img=null;this.controllerLinkS_img=null;this.controllerFullScreenNormalN_img=null;this.controllerFullScreenNormalS_img=null;this.controllerFullScreenFullN_img=null;this.controllerFullScreenFullS_img=null;this.zoomInN_img=null;this.zoomInS_img=null;this.zoomOutN_img=null;this.zoomOutS_img=null;this.scrollBarHandlerN_img=null;this.scrollBarHandlerS_img=null;this.scrollBarLeft_img=null;this.scrollBarRight_img=null;this.toolTipLeft_img=null;this.toolTipPointer_img=null;this.infoWindowCloseNormal_img=null;this.infoWindowCloseSelected_img=null;this.props_obj=e;this.rootElement_el=null;this.skinPaths_ar=[];this.playListData_ar=[];this.imagesPaths_ar=[];this.largeImagesPaths_ar=[];this.navigatorImagesPaths_ar=[];this.images_ar=[];this.navigatorImages_ar=[];this.markersList_ar=[];this.markersPosition_ar=[];this.buttons_ar=null;this.buttonsLabels_ar=null;this.contextMenuLabels_ar=null;this.backgroundColor_str=null;this.handMovePath_str=null;this.handGrabRotatePath_str=null;this.handGrabPath_str=null;this.handGrabRotatePath_str=null;this.controllerBackgroundMiddlePath_str=null;this.scrollBarMiddlePath_str=null;this.startDraggingMode_str=null;this.controllerPosition_str=null;this.preloaderFontColor_str=null;this.preloaderBackgroundColor_str=null;this.preloaderText_str=null;this.buttonToolTipLeft_str=null;this.buttonToolTipMiddle_str=null;this.buttonToolTipRight_str=null;this.buttonToolTipBottomPointer_str=null;this.buttonToolTipTopPointer_str=null;this.buttonToolTipFontColor_str=null;this.link_str=null;this.contextMenuBackgroundColor_str=null;this.contextMenuBorderColor_str=null;this.contextMenuSpacerColor_str=null;this.contextMenuItemNormalColor_str=null;this.contextMenuItemSelectedColor_str=null;this.contextMenuItemSelectedColor_str=null;this.contextMenuItemDisabledColor_str=null;this.navigatorPosition_str=null;this.navigatorHandlerColor_str=null;this.navigatorBorderColor_str=null;this.infoText_str=null;this.infoWindowBackgroundColor_str=null;this.infoWindowScrollBarColor_str=null;this.dragRotationSpeed;this.buttonsRotationSpeed;this.controllerHeight;this.startAtImage;this.imageWidth;this.imageHeight;this.spaceBetweenButtons;this.startSpaceBetweenButtons;this.scrollBarOffsetX;this.zoomFactor;this.controllerOffsetY;this.hideControllerDelay;this.controllerBackgroundOpacity;this.controllerMaxWidth;this.countLoadedSkinImages=0;this.countLoadedImages=0;this.scrollBarHandlerToolTipOffsetY;this.zoomInAndOutToolTipOffsetY;this.buttonsToolTipOffsetY;this.scrollBarPosition;this.startSpaceForScrollBarButtons;this.totalGraphics;this.slideShowDelay;this.totalImages;this.navigatorWidth;this.navigatorHeight;this.navigatorOffsetX;this.navigatorOffsetY;this.infoWindowBackgroundOpacity;this.markerToolTipOffsetY;this.toolTipWindowMaxWidth;this.lightBoxBackgroundOpacity;this.parseDelayId_to;this.loadImageId_to;this.showLargeImageVersionOnZoom_bl;this.showContextMenu_bl;this.showLargeImageVersionOnZoom_bl;this.showNavigator_bl;this.addCorrectionForWebKit_bl;this.inverseNextAndPrevRotation_bl;this.useEntireScreenFor3dObject_bl;this.hideController_bl;this.showScriptDeveloper_bl;this.showMarkers_bl;this.hasNavigatorError_bl=false;this.showMarkersInfo_bl=false;this.addKeyboardSupport_bl=false;this.isMobile_bl=FWDUtils.isMobile;this.hasPointerEvent_bl=FWDUtils.hasPointerEvent;this.areAllImagesLoaded_bl=false;n.init=function(){n.parseDelayId_to=setTimeout(n.parseProperties,100)};n.parseProperties=function(){var e;var r;var i;var s;var o;var u;var a;var f;var l;var c;var h;var p;var d;var v;var m;var g;var y;if(!n.props_obj.playListAndSkinId){a="playListAndSkinId property which represents the grid playlist id is not defined in FWDGrid constructor function!";n.dispatchEvent(t.LOAD_ERROR,{text:a});return}n.rootElement_el=FWDUtils.getChildById(n.props_obj.playListAndSkinId);if(!n.rootElement_el){a="Make sure that the a div with the id - "+n.props_obj.playListAndSkinId+" exists, self represents the data playlist.";n.dispatchEvent(t.LOAD_ERROR,{text:a});return}n.rootElement_el.style.display="none";e=FWDUtils.getChildFromNodeListFromAttribute(n.rootElement_el,"data-skin");r=FWDUtils.getChildFromNodeListFromAttribute(n.rootElement_el,"data-markers");i=FWDUtils.getChildFromNodeListFromAttribute(n.rootElement_el,"data-paylist");if(!e){a="Make sure that the an ul tag with the data type attribute - data-skin is defined, this tag is used for creating the playlist.";n.dispatchEvent(t.LOAD_ERROR,{text:a});return}if(!i){a="Make sure that the an ul tag with the data type attribute - data-paylist is defined, this tag is used for creating the playlist.";n.dispatchEvent(t.LOAD_ERROR,{text:a});return}if(r)n.showMarkers_bl=true;if(n.showMarkers_bl){u=FWDUtils.getChildren(r);for(var b=0;b element.";n.dispatchEvent(t.LOAD_ERROR,{text:a});return}n.showLargeImageVersionOnZoom_bl=n.props_obj.showLargeImageVersionOnZoom;n.showLargeImageVersionOnZoom_bl=n.showLargeImageVersionOnZoom_bl=="yes"?true:false;n.showNavigator_bl=n.props_obj.showNavigator;n.showNavigator_bl=n.showNavigator_bl=="yes"?true:false;n.showMarkersInfo_bl=n.props_obj.showMarkersInfo=="yes"?true:false;n.addKeyboardSupport_bl=n.props_obj.addKeyboardSupport=="no"?false:true;if(n.isMobile_bl)n.showMarkersInfo_bl=false;var o=FWDUtils.getChildren(i);n.totalImages=o.length;var w=undefined;for(var b=0;bn.totalImages-1){l=n.totalImages-1}n.startAtImage=l;n.backgroundColor_str=n.props_obj.backgroundColor||"transparent";n.preloaderFontColor_str=n.props_obj.preloaderFontColor||"#000000";n.preloaderBackgroundColor_str=n.props_obj.preloaderBackgroundColor||"transparent";n.preloaderText_str=n.props_obj.preloaderText||"Loading:";n.startDraggingMode_str=n.props_obj.startDraggingMode||"rotate";if(n.startDraggingMode_str!="rotate"&&n.startDraggingMode_str!="pan")n.startDraggingMode_str="rotate";n.controllerPosition_str=n.props_obj.controllerPosition||"bottom";if(n.controllerPosition_str!="top"&&n.controllerPosition_str!="bottom")n.startDraggingMode_str="top";if(!n.props_obj.buttons){a="The buttons is not defined in the contructor, this is necessary to setup the main buttons.";n.dispatchEvent(t.LOAD_ERROR,{text:a});console.log(a);return}n.buttons_ar=FWDUtils.splitAndTrim(n.props_obj.buttons,true);if(n.isMobile_bl&&!n.hasPointerEvent_bl){n.buttonsLabels_ar=null;n.contextMenuLabels_ar=null}else{if(n.props_obj.buttonsToolTips)n.buttonsLabels_ar=FWDUtils.splitAndTrim(n.props_obj.buttonsToolTips,false);if(n.props_obj.contextMenuLabels)n.contextMenuLabels_ar=FWDUtils.splitAndTrim(n.props_obj.contextMenuLabels,false)}n.showScriptDeveloper_bl=n.props_obj.showScriptDeveloper;n.showScriptDeveloper_bl=n.showScriptDeveloper_bl=="no"?false:true;n.dragRotationSpeed=n.props_obj.dragRotationSpeed||.5;if(isNaN(n.dragRotationSpeed))n.dragRotationSpeed=.5;if(n.dragRotationSpeed<0){n.dragRotationSpeed=0}else if(n.dragRotationSpeed>1){n.dragRotationSpeed=1}n.buttonsRotationSpeed=n.props_obj.buttonsRotationSpeed||500;if(isNaN(n.buttonsRotationSpeed))n.buttonsRotationSpeed=500;if(n.buttonsRotationSpeed<200){n.buttonsRotationSpeed=200}else if(n.buttonsRotationSpeed>2e3){n.buttonsRotationSpeed=2e3}n.imageWidth=n.props_obj.imageWidth;if(!n.imageWidth){n.showPropertyError("imageWidth");return}n.imageHeight=n.props_obj.imageHeight;if(!n.imageHeight){n.showPropertyError("imageHeight");return}n.zoomFactor=n.props_obj.zoomFactor;if(!n.zoomFactor){n.showPropertyError("zoomFactor");return}if(n.zoomFactor<1){n.zoomFactor=1}else if(n.zoomFactor>4){n.zoomFactor=4}n.navigatorOffsetX=n.props_obj.navigatorOffsetX||0;if(isNaN(n.navigatorOffsetX))n.navigatorOffsetX=0;n.navigatorOffsetY=n.props_obj.navigatorOffsetY||0;if(isNaN(n.navigatorOffsetY))n.navigatorOffsetY=0;n.controllerBackgroundOpacity=n.props_obj.controllerBackgroundOpacity;if(!n.controllerBackgroundOpacity)n.controllerBackgroundOpacity=1;if(isNaN(n.controllerBackgroundOpacity))n.controllerBackgroundOpacity=1;if(n.controllerBackgroundOpacity<0){n.controllerBackgroundOpacity=0}else if(n.controllerBackgroundOpacity>1){n.controllerBackgroundOpacity=1}n.controllerMaxWidth=n.props_obj.controllerMaxWidth;if(!n.controllerMaxWidth)n.controllerMaxWidth=900;if(isNaN(n.controllerMaxWidth))n.controllerMaxWidth=900;if(n.controllerMaxWidth<200)n.controllerMaxWidth=200;n.hideControllerDelay=n.props_obj.hideControllerDelay;if(n.hideControllerDelay){n.hideController_bl=true;if(isNaN(n.hideControllerDelay)){n.hideControllerDelay=4e3}else if(n.hideControllerDelay<0){n.hideControllerDelay=4e3}else{n.hideControllerDelay*=1e3}}n.spaceBetweenButtons=n.props_obj.spaceBetweenButtons||0;n.scrollBarPosition=n.props_obj.scrollBarPosition||0;n.startSpaceForScrollBarButtons=n.props_obj.startSpaceForScrollBarButtons||0;n.startSpaceBetweenButtons=n.props_obj.startSpaceBetweenButtons||0;n.startSpaceForScrollBar=n.props_obj.startSpaceForScrollBar||0;n.scrollBarOffsetX=n.props_obj.scrollBarOffsetX||0;n.controllerOffsetY=n.props_obj.controllerOffsetY||0;n.scrollBarHandlerToolTipOffsetY=n.props_obj.scrollBarHandlerToolTipOffsetY||0;n.zoomInAndOutToolTipOffsetY=n.props_obj.zoomInAndOutToolTipOffsetY||0;n.buttonsToolTipOffsetY=n.props_obj.buttonsToolTipOffsetY||0;n.infoWindowBackgroundOpacity=n.props_obj.infoWindowBackgroundOpacity||1;n.markerToolTipOffsetY=n.props_obj.markerToolTipOffsetY||1;n.toolTipWindowMaxWidth=n.props_obj.toolTipWindowMaxWidth||300;n.buttonToolTipFontColor_str=n.props_obj.buttonToolTipFontColor||"#000000";n.link_str=n.props_obj.link||"http://www.link-is-not-defined.com!";n.contextMenuBackgroundColor_str=n.props_obj.contextMenuBackgroundColor||"#000000";n.contextMenuBorderColor_str=n.props_obj.contextMenuBorderColor||"#FF0000";n.contextMenuSpacerColor_str=n.props_obj.contextMenuSpacerColor||"#FF0000";n.contextMenuItemNormalColor_str=n.props_obj.contextMenuItemNormalColor||"#FF0000";n.contextMenuItemSelectedColor_str=n.props_obj.contextMenuItemSelectedColor||"#FF0000";n.contextMenuItemDisabledColor_str=n.props_obj.contextMenuItemDisabledColor||"#FF0000";n.infoWindowBackgroundColor_str=n.props_obj.infoWindowBackgroundColor||"#FF0000";n.infoWindowScrollBarColor_str=n.props_obj.infoWindowScrollBarColor||"#FF0000";n.navigatorPosition_str=n.props_obj.navigatorPosition||"topleft";n.navigatorPosition_str=String(n.navigatorPosition_str).toLowerCase();l=n.navigatorPosition_str=="topleft"||n.navigatorPosition_str=="topright"||n.navigatorPosition_str=="bottomleft"||n.navigatorPosition_str=="bottomright";if(!l)n.navigatorPosition_str="topleft";n.navigatorHandlerColor_str=n.props_obj.navigatorHandlerColor||"#FF0000";n.navigatorBorderColor_str=n.props_obj.navigatorBorderColor||"#FF0000";n.slideShowDelay=n.props_obj.slideShowDelay||100;if(n.slideShowDelay<100)n.slideShowDelay=100;n.showContextMenu_bl=n.props_obj.showContextMenu;n.showContextMenu_bl=n.showContextMenu_bl=="no"?false:true;n.inverseNextAndPrevRotation_bl=n.props_obj.inverseNextAndPrevRotation;n.inverseNextAndPrevRotation_bl=n.inverseNextAndPrevRotation_bl=="yes"?true:false;n.addCorrectionForWebKit_bl=n.props_obj.addCorrectionForWebKit;n.addCorrectionForWebKit_bl=n.addCorrectionForWebKit_bl=="yes"?true:false;if(!FWDUtils.isChrome||n.hasTouch_bl)n.addCorrectionForWebKit_bl=false;n.useEntireScreenFor3dObject_bl=n.props_obj.useEntireScreenFor3dObject;n.useEntireScreenFor3dObject_bl=n.useEntireScreenFor3dObject_bl=="yes"?true:false;n.infoText_str=FWDUtils.getChildFromNodeListFromAttribute(n.rootElement_el,"data-info");if(n.infoText_str){n.infoText_str=n.infoText_str.innerHTML}else{n.infoText_str="not defined make sure that an ul element with the attribute data-info is defined!"}n.handMovePath_str=n.checkForAttribute(e,"data-hand-move-path");if(!n.handMovePath_str)return;n.handGrabRotatePath_str=n.checkForAttribute(e,"data-hand-rotate-path");if(!n.handGrabRotatePath_str)return;n.handGrabPath_str=n.checkForAttribute(e,"data-hand-grab-path");if(!n.handGrabPath_str)return;var S=n.checkForAttribute(e,"data-preloader-path");if(!S)return;var x=n.checkForAttribute(e,"data-main-lightbox-close-button-normal-path");if(!x)return;var T=n.checkForAttribute(e,"data-main-lightbox-close-button-selected-path");if(!x)return;var N=n.checkForAttribute(e,"data-controller-background-left-path");if(!N)return;var C=n.checkForAttribute(e,"data-controller-background-right-path");if(!C)return;var k=n.checkForAttribute(e,"data-controller-pan-button-normal-state-path");if(!k)return;var L=n.checkForAttribute(e,"data-controller-pan-button-selected-state-path");if(!L)return;var A=n.checkForAttribute(e,"data-controller-rotate-button-normal-state-path");if(!A)return;var O=n.checkForAttribute(e,"data-controller-rotate-button-selected-state-path");if(!O)return;var M=n.checkForAttribute(e,"data-controller-next-button-normal-state-path");if(!M)return;var _=n.checkForAttribute(e,"data-controller-next-button-selected-state-path");if(!_)return;var D=n.checkForAttribute(e,"data-controller-prev-button-normal-state-path");if(!D)return;var P=n.checkForAttribute(e,"data-controller-prev-button-selected-state-path");if(!P)return;var H=n.checkForAttribute(e,"data-controller-play-button-normal-state-path");if(!H)return;var B=n.checkForAttribute(e,"data-controller-play-button-selected-state-path");if(!B)return;var j=n.checkForAttribute(e,"data-controller-pause-button-normal-state-path");if(!j)return;var F=n.checkForAttribute(e,"data-controller-pause-button-selected-state-path");if(!F)return;var I=n.checkForAttribute(e,"data-controller-info-button-normal-state-path");if(!I)return;var q=n.checkForAttribute(e,"data-controller-info-button-selected-state-path");if(!q)return;var R=n.checkForAttribute(e,"data-controller-link-button-normal-state-path");if(!R)return;var U=n.checkForAttribute(e,"data-controller-link-button-selected-state-path");if(!U)return;var z=n.checkForAttribute(e,"data-controller-fullscreen-normal-button-normal-state-path");if(!z)return;var W=n.checkForAttribute(e,"data-controller-fullscreen-normal-button-selected-state-path");if(!W)return;var X=n.checkForAttribute(e,"data-controller-fullscreen-full-button-normal-state-path");if(!X)return;var V=n.checkForAttribute(e,"data-controller-fullscreen-full-button-selected-state-path");if(!V)return;var $=n.checkForAttribute(e,"data-controller-zoomin-button-normal-state-path");if(!$)return;var J=n.checkForAttribute(e,"data-controller-zoomin-button-slected-state-path");if(!J)return;var K=n.checkForAttribute(e,"data-controller-zoomout-button-normal-state-path");if(!K)return;var Q=n.checkForAttribute(e,"data-controller-zoomout-button-slected-state-path");if(!Q)return;var G=n.checkForAttribute(e,"data-controller-scrollbar-handler-normal-state-path");if(!G)return;var Y=n.checkForAttribute(e,"data-controller-scrollbar-handler-selected-state-path");if(!Y)return;var Z=n.checkForAttribute(e,"data-controller-scrollba-background-left-path");if(!Z)return;var et=n.checkForAttribute(e,"data-controller-scrollbar-background-right-path");if(!et)return;n.scrollBarMiddlePath_str=n.checkForAttribute(e,"data-controller-scrollbar-background-middle-path");if(!n.scrollBarMiddlePath_str)return;n.controllerBackgroundMiddlePath_str=n.checkForAttribute(e,"data-controller-background-center-path");if(!n.controllerBackgroundMiddlePath_str)return;n.buttonToolTipLeft_str=n.checkForAttribute(e,"data-button-tooltip-left-path");if(!n.buttonToolTipLeft_str)return;n.buttonToolTipMiddle_str=n.checkForAttribute(e,"data-button-tooltip-middle-path");if(!n.buttonToolTipMiddle_str)return;n.buttonToolTipRight_str=n.checkForAttribute(e,"data-button-tooltip-right-path");if(!n.buttonToolTipRight_str)return;n.buttonToolTipBottomPointer_str=n.checkForAttribute(e,"data-button-tooltip-bottom-pointer-path");if(!n.buttonToolTipBottomPointer_str)return;n.buttonToolTipTopPointer_str=n.checkForAttribute(e,"data-button-tooltip-top-pointer-path");if(!n.buttonToolTipTopPointer_str)return;var tt=n.checkForAttribute(e,"data-info-window-close-button-normal-state-path");if(!tt)return;var nt=n.checkForAttribute(e,"data-info-window-close-button-selected-state-path");if(!nt)return;n.skinPaths_ar.push(S);n.skinPaths_ar.push(x);n.skinPaths_ar.push(T);n.skinPaths_ar.push(N);n.skinPaths_ar.push(C);n.skinPaths_ar.push(k);n.skinPaths_ar.push(L);n.skinPaths_ar.push(A);n.skinPaths_ar.push(O);n.skinPaths_ar.push(M);n.skinPaths_ar.push(_);n.skinPaths_ar.push(D);n.skinPaths_ar.push(P);n.skinPaths_ar.push(H);n.skinPaths_ar.push(B);n.skinPaths_ar.push(j);n.skinPaths_ar.push(F);n.skinPaths_ar.push(I);n.skinPaths_ar.push(q);n.skinPaths_ar.push(R);n.skinPaths_ar.push(U);n.skinPaths_ar.push(z);n.skinPaths_ar.push(W);n.skinPaths_ar.push(X);n.skinPaths_ar.push(V);n.skinPaths_ar.push($);n.skinPaths_ar.push(J);n.skinPaths_ar.push(K);n.skinPaths_ar.push(Q);n.skinPaths_ar.push(G);n.skinPaths_ar.push(Y);n.skinPaths_ar.push(Z);n.skinPaths_ar.push(et);n.skinPaths_ar.push(n.buttonToolTipTopPointer_str);n.skinPaths_ar.push(n.buttonToolTipLeft_str);n.skinPaths_ar.push(tt);n.skinPaths_ar.push(nt);n.skinPaths_ar.push(n.buttonToolTipMiddle_str);n.skinPaths_ar.push(n.buttonToolTipRight_str);n.skinPaths_ar.push(n.controllerBackgroundMiddlePath_str);n.totalGraphics=n.skinPaths_ar.length;n.loadSkin();for(var b=0;b can't be loaded, make sure that the image exists and the path is correct!";console.log(e);var i={text:r};n.dispatchEvent(t.LOAD_ERROR,i)};n.stopToLoad=function(){clearTimeout(n.loadImageId_to);if(n.image_img){n.image_img.onload=null;n.image_img.onerror=null}if(n.navigatorImage_img){n.navigatorImage_img.onload=null;n.navigatorImage_img.onerror=null}};n.loadNavigatorFirstImage=function(){if(n.image_img){n.image_img.onload=null;n.image_img.onerror=null}var e=n.navigatorImagesPaths_ar[0];n.image_img=new Image;n.image_img.onload=n.onFirstNavigatorImageLoadHandler;n.image_img.onerror=n.onImageLoadErrorHandler;n.image_img.src=e};n.onFirstNavigatorImageLoadHandler=function(){n.navigatorImages_ar.push(n.image_img);n.navigatorWidth=n.image_img.width;n.navigatorHeight=n.image_img.height;n.loadImages()};n.loadImages=function(){if(n.hasNavigatorError_bl)return;if(n.image_img){n.image_img.onload=null;n.image_img.onerror=null}var e=n.imagesPaths_ar[n.countLoadedImages];n.image_img=new Image;n.image_img.onload=n.onImageLoadHandler;n.image_img.onerror=n.onImageLoadErrorHandler;n.image_img.src=e};n.onImageLoadHandler=function(e){if(n.countLoadedImages==0)n.dispatchEvent(t.FIRST_IMAGE_LOAD_COMPLETE);n.images_ar.push(n.image_img);n.dispatchEvent(t.IMAGE_LOADED,{id:n.countLoadedImages});n.dispatchEvent(t.IMAGES_PROGRESS,{percent:n.countLoadedImages/n.totalImages});if(n.showNavigator_bl&&n.countLoadedImages!=0){n.navigatorImage_img=new Image;n.navigatorImages_ar.push(n.navigatorImage_img);if(n.countLoadedImages==n.totalImages-1)n.navigatorImage_img.onload=n.onLastNavigatorImageLoadHandler;n.navigatorImage_img.onerror=n.onNavigatorImageLoadErrorHandler;n.navigatorImage_img.src=n.navigatorImagesPaths_ar[n.countLoadedImages]}n.countLoadedImages++;if(n.countLoadedImages can't be loaded, make sure that the image exists and the path is correct!";n.hasNavigatorError_bl=true;var i={text:r};n.dispatchEvent(t.LOAD_ERROR,i);console.log(e)};n.onImageLoadErrorHandler=function(e){var r="The image with the label "+n.imagesPaths_ar[n.countLoadedImages]+" can't be loaded, make sure that the image exists and the path is correct!";console.log(e);var i={text:r};n.dispatchEvent(t.LOAD_ERROR,i)};n.checkForAttribute=function(e,r,i){var s=FWDUtils.getChildFromNodeListFromAttribute(e,r);s=s?FWDUtils.trim(FWDUtils.getAttributeValue(s,r)):undefined;if(!s){if(i!=undefined){n.dispatchEvent(t.LOAD_ERROR,{text:"Element with attribute "+r+" is not defined at positon "+(i+1)+""})}else{n.dispatchEvent(t.LOAD_ERROR,{text:"Element with attribute "+r+" is not defined."})}return}return s};n.showPropertyError=function(e){n.dispatchEvent(t.LOAD_ERROR,{text:"The property called "+e+" is not defined."})};n.showMarkerError=function(e,r){n.dispatchEvent(t.LOAD_ERROR,{text:"The marker at position "+r+" dose not have defined an attribute "+e+"."})};n.showMarkerTypeError=function(e,r){n.dispatchEvent(t.LOAD_ERROR,{text:"Marker type is incorrect "+e+" at position "+r+". Accepted types are link, tooltip, infowindow."})};n.destroy=function(){var e;var i;clearTimeout(n.parseDelayId_to);clearTimeout(n.loadImageId_to);if(n.image_img){n.image_img.onload=null;n.image_img.onerror=null;n.image_img.src=null}if(n.navigatorImage_img){n.navigatorImage_img.onload=null;n.navigatorImage_img.onerror=null;n.navigatorImage_img.src=null}e=n.images_ar.length;for(var s=0;si.maxWidth)i.mainContentHolderWidth=i.maxWidth;i.mainContentHolder_do.setWidth(i.mainContentHolderWidth);i.dumyHolder_do.setWidth(i.stageWidth);i.dumyHolder_do.setHeight(i.stageHeight);i.close_do.setX(i.mainContentHolderWidth-i.closeButtonWidth);if(i.isMobile_bl){setTimeout(function(){if(i==null)return;TweenMax.killTweensOf(i.mainContentHolder_do);i.contentHolderHeight=i.contentHolder_sdo.getHeight();i.mainContentHolderHeight=Math.min(i.stageHeight,i.contentHolderHeight);i.mainContentFinalX=Math.round((i.stageWidth-i.mainContentHolderWidth)/2);if(i.stageHeight>i.contentHolderHeight){i.mainContentFinalY=Math.round((i.stageHeight-i.contentHolderHeight)/2);i.allowToScroll_bl=false}else{i.mainContentFinalY=0;i.allowToScroll_bl=true}i.updateMobileScrollBarWithoutAnimation();TweenMax.killTweensOf(i.mainContentHolder_do);i.mainContentHolder_do.setX(i.mainContentFinalX);i.mainContentHolder_do.setY(i.mainContentFinalY);i.mainContentHolder_do.setHeight(i.mainContentHolderHeight)},50)}else{setTimeout(function(){if(i==null)return;TweenMax.killTweensOf(i.mainContentHolder_do);i.contentHolderHeight=i.contentHolder_sdo.getHeight();i.mainContentHolderHeight=i.stageHeight;i.mainContentFinalX=Math.round((i.stageWidth-i.mainContentHolderWidth)/2);i.scrollBarHeight=Math.min(i.contentHolderHeight-20-i.closeButtonHeight,i.stageHeight-20-i.closeButtonHeight);if(i.stageHeight>i.contentHolderHeight){i.scrollBar_do.setOverflow("hidden");i.mainContentHolderHeight=i.contentHolderHeight;i.scrollBarHandler_sdo.setY(0);i.mainContentFinalY=Math.round((i.stageHeight-i.contentHolderHeight)/2);i.allowToScroll_bl=false}else{i.mainContentFinalY=0;i.scrollBar_do.setOverflow("visible");i.scrollBar_do.setY(5+i.closeButtonHeight);i.allowToScroll_bl=true}if(i.stageHeight<120)i.mainContentFinalY=0;i.scrollBarHandlerHeight=Math.min(i.scrollBarHeight-20,i.stageHeight/i.contentHolderHeight*(i.scrollBarHeight-20));if(i.scrollBarHandlerHeight>500){i.scrollBarHandlerHeight=500}i.scrollBar_do.setX(i.mainContentHolderWidth-i.scrollBarWidth-2);i.scrollBarTrack_sdo.setHeight(Math.max(i.scrollBarHeight,i.scrollBarHandlerHeight));i.scrollBarHandler_sdo.setHeight(i.scrollBarHandlerHeight);TweenMax.killTweensOf(i.mainContentHolder_do);i.mainContentHolder_do.setX(i.mainContentFinalX);i.mainContentHolder_do.setY(i.mainContentFinalY);i.mainContentHolder_do.setHeight(i.mainContentHolderHeight);i.updatePCHandler(false)},50)}};i.setText=function(e){if(i==null)return;i.updateSize();i.contentHolder_sdo.setInnerHTML(e);setTimeout(i.updateSize,120)};i.setupPCScrollBar=function(){i.scrollBar_do=new FWDDisplayObject("div");i.scrollBar_do.setOverflow("visible");i.mainContentHolder_do.addChild(i.scrollBar_do);i.scrollBarTrack_sdo=new FWDSimpleDisplayObject("div");i.scrollBarTrack_sdo.setWidth(i.scrollBarWidth);i.scrollBarTrack_sdo.setBkColor(i.scrollBarTrackColor);i.scrollBarTrack_sdo.setAlpha(0);i.scrollBarTrack_sdo.getStyle().borderRadius=i.scrollBarBorderRadius+"px";i.scrollBar_do.addChild(i.scrollBarTrack_sdo);i.scrollBarHandler_sdo=new FWDSimpleDisplayObject("div");i.scrollBarHandler_sdo.setButtonMode(true);i.scrollBarHandler_sdo.setWidth(i.scrollBarWidth);i.scrollBarHandler_sdo.getStyle().borderRadius=i.scrollBarBorderRadius+"px";i.scrollBarHandler_sdo.setBkColor(i.scrollBarHandlerColor);i.scrollBarHandler_sdo.setAlpha(.5);if(i.scrollBarHandler_sdo.screen.addEventListener){i.scrollBarHandler_sdo.screen.addEventListener("mouseover",i.scrollBarHandlerOnMouseOver);i.scrollBarHandler_sdo.screen.addEventListener("mouseout",i.scrollBarHandlerOnMouseOut);i.scrollBarHandler_sdo.screen.addEventListener("mousedown",i.scrollBarHandlerOnMouseDown)}else if(i.screen.attachEvent){i.scrollBarHandler_sdo.screen.attachEvent("onmouseover",i.scrollBarHandlerOnMouseOver);i.scrollBarHandler_sdo.screen.attachEvent("onmouseout",i.scrollBarHandlerOnMouseOut);i.scrollBarHandler_sdo.screen.attachEvent("onmousedown",i.scrollBarHandlerOnMouseDown)}i.scrollBar_do.addChild(i.scrollBarHandler_sdo)};i.scrollBarHandlerOnMouseOver=function(){TweenMax.to(i.scrollBarHandler_sdo,.2,{alpha:1,w:10});TweenMax.to(i.scrollBarTrack_sdo,.2,{alpha:.4,w:10});TweenMax.to(i.scrollBar_do,.2,{x:i.mainContentHolderWidth-i.scrollBarWidth-6})};i.scrollBarHandlerOnMouseOut=function(){if(i.isDragging_bl)return;TweenMax.to(i.scrollBarHandler_sdo,.3,{alpha:.5,w:i.scrollBarWidth});TweenMax.to(i.scrollBarTrack_sdo,.3,{alpha:0,w:i.scrollBarWidth});TweenMax.to(i.scrollBar_do,.3,{x:i.mainContentHolderWidth-i.scrollBarWidth-2})};i.scrollBarHandlerOnMouseDown=function(t){if(!i.allowToScroll_bl)return;var n=FWDUtils.getViewportMouseCoordinates(t);i.isDragging_bl=true;i.yPositionOnPress=i.scrollBarHandler_sdo.getY();i.lastPresedY=n.screenY;if(e.addEventListener){e.addEventListener("mousemove",i.scrollBarHandlerMoveHandler);e.addEventListener("mouseup",i.scrollBarHandlerEndHandler)}else if(document.attachEvent){document.attachEvent("onmousemove",i.scrollBarHandlerMoveHandler);document.attachEvent("onmouseup",i.scrollBarHandlerEndHandler)}};i.scrollBarHandlerMoveHandler=function(e){if(e.preventDefault)e.preventDefault();var t=FWDUtils.getViewportMouseCoordinates(e);i.scrollBarHandlerFinalY=Math.round(i.yPositionOnPress+t.screenY-i.lastPresedY);if(i.scrollBarHandlerFinalY>=i.scrollBarHeight-i.scrollBarHandlerHeight){i.scrollBarHandlerFinalY=i.scrollBarHeight-i.scrollBarHandlerHeight}if(i.scrollBarHandlerFinalY<=0)i.scrollBarHandlerFinalY=0;i.scrollBarHandler_sdo.setY(i.scrollBarHandlerFinalY);i.updatePCHandler(true)};i.scrollBarHandlerEndHandler=function(t){var n=FWDUtils.getViewportMouseCoordinates(t);i.isDragging_bl=false;if(!FWDUtils.hitTest(i.scrollBarHandler_sdo.screen,n.screenX,n.screenY)){i.scrollBarHandlerOnMouseOut()}if(e.removeEventListener){e.removeEventListener("mousemove",i.scrollBarHandlerMoveHandler);e.removeEventListener("mouseup",i.scrollBarHandlerEndHandler)}else if(document.detachEvent){document.detachEvent("onmousemove",i.scrollBarHandlerMoveHandler);document.detachEvent("onmouseup",i.scrollBarHandlerEndHandler)}};i.updatePCHandler=function(e){var t;var n;n=i.scrollBarHandlerFinalY/(i.scrollBarHeight-i.scrollBarHandlerHeight);if(n=="Infinity")n=0;if(n>=1)n=1;if(i.isDragging_bl){i.contentFinalY=parseInt(n*(i.stageHeight-i.contentHolderHeight))}else{if(i.scrollBarHandler_sdo.getY()<0){i.scrollBarHandler_sdo.setY(0)}else if(i.scrollBarHandler_sdo.getY()>i.scrollBarHeight-i.scrollBarHandlerHeight){i.scrollBarHandler_sdo.setY(i.scrollBarHeight-i.scrollBarHandlerHeight)}t=i.scrollBarHandler_sdo.getY()/(i.scrollBarHeight-i.scrollBarHandlerHeight);if(isNaN(t))t=0;if(i.stageHeight>i.contentHolderHeight){i.contentFinalY=0}else{i.contentFinalY=Math.round(t*(i.scrollBarHeight-i.scrollBarHandlerHeight));i.contentFinalY=Math.round(t*(i.stageHeight-i.contentHolderHeight))}}if(e){TweenMax.to(i.contentHolder_sdo,.3,{y:Math.round(i.contentFinalY)})}else{i.contentHolder_sdo.setY(Math.round(i.contentFinalY))}};i.addMouseWheelSupport=function(){if(e.addEventListener){i.screen.addEventListener("mousewheel",i.mouseWheelHandler);i.screen.addEventListener("DOMMouseScroll",i.mouseWheelHandler)}else if(document.attachEvent){i.screen.attachEvent("onmousewheel",i.mouseWheelHandler)}};this.mouseWheelHandler=function(e){if(!i.isShowed_bl)return;if(i.isDragging_bl)return;if(i.stageHeight>i.contentHolderHeight)return;var t=i.stageHeight/i.contentHolderHeight;var n=e.detail||e.wheelDelta;if(e.wheelDelta)n*=-1;if(FWDUtils.isOpera)n*=-1;if(n>0){i.scrollBarHandler_sdo.setY(i.scrollBarHandler_sdo.getY()+45*t)}else if(n<0){i.scrollBarHandler_sdo.setY(i.scrollBarHandler_sdo.getY()-45*t)}i.updatePCHandler(true);if(e.preventDefault){e.preventDefault()}else{return false}return};i.setupMobileScrollbar=function(){if(i.hasPointerEvent_bl){i.screen.addEventListener("MSPointerDown",i.scrollBarTouchStartHandler)}else{i.screen.addEventListener("touchstart",i.scrollBarTouchStartHandler)}};i.scrollBarTouchStartHandler=function(t){if(!i.allowToScroll_bl)return;var n=FWDUtils.getViewportMouseCoordinates(t);i.isDragging_bl=true;i.lastPresedY=n.screenY;if(i.hasPointerEvent_bl){e.addEventListener("MSPointerUp",i.scrollBarTouchEndHandler);e.addEventListener("MSPointerMove",i.scrollBarTouchMoveHandler)}else{e.addEventListener("touchend",i.scrollBarTouchEndHandler);e.addEventListener("touchmove",i.scrollBarTouchMoveHandler)}};i.scrollBarTouchMoveHandler=function(e){if(e.preventDefault)e.preventDefault();var t=FWDUtils.getViewportMouseCoordinates(e);var n=t.screenY-i.lastPresedY;i.contentFinalY+=n;i.contentFinalY=Math.round(i.contentFinalY);i.contentHolder_sdo.setY(i.contentFinalY);i.lastPresedY=t.screenY;i.vy=n*2};i.scrollBarTouchEndHandler=function(t){i.isDragging_bl=false;if(i.hasPointerEvent_bl){e.removeEventListener("MSPointerUp",i.scrollBarTouchEndHandler);e.removeEventListener("MSPointerMove",i.scrollBarTouchMoveHandler)}else{e.removeEventListener("touchend",i.scrollBarTouchEndHandler);e.removeEventListener("touchmove",i.scrollBarTouchMoveHandler)}};i.updateMobileScrollBar=function(e){if(!i.isDragging_bl){i.vy*=i.friction;i.contentFinalY+=i.vy;if(i.contentFinalY>0){i.vy2=(0-i.contentFinalY)*.3;i.vy*=i.friction;i.contentFinalY+=i.vy2}else if(i.contentFinalY0){i.contentFinalY=0}else if(i.contentFinalYi.getNumChildren()-1)throw Error("##getChildAt()## Index out of bounds!");i.screen.insertBefore(e.screen,i.children_ar[t].screen);if(i.contains(e)){i.children_ar.splice(FWDUtils.indexOfArray(i.children_ar,e),1,e)}else{i.children_ar.splice(FWDUtils.indexOfArray(i.children_ar,e),0,e)}}};i.getChildAt=function(e){if(e<0||e>i.getNumChildren()-1)throw Error("##getChildAt()## Index out of bounds!");if(i.getNumChildren()==0)throw Errror("##getChildAt## Child dose not exist!");return i.children_ar[e]};i.removeChildAtZero=function(){i.screen.removeChild(i.children_ar[0].screen);i.children_ar.shift()};i.getNumChildren=function(){return i.children_ar.length};i.addListener=function(e,t){if(e==undefined)throw Error("type is required.");if(typeof e==="object")throw Error("type must be of type String.");if(typeof t!="function")throw Error("listener must be of type Function.");var n={};n.type=e;n.listener=t;n.target=this;this.listeners.events_ar.push(n)};i.dispatchEvent=function(e,t){if(this.listeners==null)return;if(e==undefined)throw Error("type is required.");if(typeof e==="object")throw Error("type must be of type String.");for(var n=0,r=this.listeners.events_ar.length;ni.currentTime+i.hideDelay){if(i.dispatchOnceShow_bl){i.dispatchEvent(t.HIDE);i.dispatchOnceHide_bl=true;i.dispatchOnceShow_bl=false}}else{if(i.dispatchOnceHide_bl){i.dispatchEvent(t.SHOW);i.dispatchOnceHide_bl=false;i.dispatchOnceShow_bl=true}}};i.reset=function(){i.currentTime=(new Date).getTime();i.dispatchEvent(t.SHOW)};i.destroy=function(){i.removeMouseOrTouchCheck();clearInterval(i.checkIntervalId_int);i.screenToTest=null;n=null;i.init=null;i.start=null;i.stop=null;i.addMouseOrTouchCheck=null;i.removeMouseOrTouchCheck=null;i.onMouseOrTouchUpdate=null;i.update=null;i.reset=null;i.destroy=null;s.destroy();s=null;i=null;t.prototype=null};i.init()};t.HIDE="hide";t.SHOW="show";t.setPrototype=function(){t.prototype=new FWDEventDispatcher};e.FWDHider=t})(window);(function(){var e=function(t,n){var r=this;var i=e.prototype;this.toolTipLeft_img=t.toolTipLeft_img;this.toolTipPointer_img=t.toolTipPointer_img;this.playListData_ar=t.playListData_ar;this.images_ar=t.images_ar;this.smallDos_ar=[];this.markers_ar=[];this.markersList_ar=t.markersList_ar;this.markersPosition_ar=t.markersPosition_ar;this.largeImagesPaths_ar=t.largeImagesPaths_ar;this.curMarker_do;this.markersToolTip_do;this.markersToolTipWindow_do;this.hider;this.prevSmall_sdo;this.largeImage_img;this.dumy_sdo;this.mainImagesHolder_do;this.smallImage_sdo;this.largeImage_sdo;this.left_sdo;this.top_sdo;this.right_sdo;this.bottom_sdo;this.markersPositionInfo_sdo;this.handMovePath_str=t.handMovePath_str;this.backgroundColor_str=n.backgroundColor_str;this.draggingMode_str=t.startDraggingMode_str;this.controllerPosition_str=t.controllerPosition_str;this.buttonToolTipLeft_str=t.buttonToolTipLeft_str;this.buttonToolTipMiddle_str=t.buttonToolTipMiddle_str;this.buttonToolTipRight_str=t.buttonToolTipRight_str;this.buttonToolTipFontColor_str=t.buttonToolTipFontColor_str;this.buttonToolTipBottomPointer_str=t.buttonToolTipBottomPointer_str;this.buttonToolTipTopPointer_str=t.buttonToolTipTopPointer_str;this.lastMarkerId_str;this.curId=t.startAtImage;this.prevId=1e3;this.curLargeImageId=1e3;this.totalImages=t.totalImages;this.stageWidth;this.stageHeight;this.smallestPossibleScale;this.currentScale=1;this.prevScale=0;this.percentZoomed=.1;this.imageWidth=t.imageWidth;this.imageHeight=t.imageHeight;this.zoomFactor=t.zoomFactor;this.zoomSpeed=.1;this.finalX=0;this.finalY=0;this.xPositionOnPress;this.yPositionOnPress;this.lastPresedX=0;this.lastPresedY=0;this.lastPresedX2=0;this.lastPresedY2=0;this.mouseX=0;this.mouseY=0;this.controllerHeight=t.controllerHeight;this.rotationSpeed=Math.abs(-1.1+t.dragRotationSpeed);this.startScaleForMobileZoom;this.totalMarkers;this.globalX;this.globalY;this.markerToolTipOffsetY=t.markerToolTipOffsetY;this.toolTipWindowMaxWidth=t.toolTipWindowMaxWidth;this.tweenDone_to;this.removeSmallSDOId_to;this.setAlphaWithDelayId_to;this.hideToolTipWindowId_to;this.addHideToolTipWindowTestWithDelayId_to;this.showToolTipWindoId_to;this.showMarkerToolTipId_to;this.allImagesAreLoaded_bl=false;this.allowToDragHoriz_bl=false;this.allowToDragVert_bl=false;this.isTweening_bl=false;this.isDragging_bl=false;this.isRotatingFirstTime_bl=true;this.addCorrectionForWebKit_bl=t.addCorrectionForWebKit_bl;this.disablePanOrRotate_bl=false;this.useEntireScreenFor3dObject_bl=t.useEntireScreenFor3dObject_bl;this.isMobile_bl=t.isMobile_bl;this.isLargeImageLoaded_bl=false;this.showNavigator_bl=t.showNavigator_bl;this.showMarkers_bl=t.showMarkers_bl;this.isNavigatorShowed_bl=false;this.addImageFirstTimeOnActivate_bl=true;this.showMarkersInfo_bl=t.showMarkersInfo_bl;this.isMobile_bl=t.isMobile_bl;this.showLargeImageVersionOnZoom_bl=t.showLargeImageVersionOnZoom_bl;this.hasPointerEvent_bl=FWDUtils.hasPointerEvent;r.init=function(){if(r.controllerPosition_str==FWDController.POSITION_TOP&&!r.useEntireScreenFor3dObject_bl)r.setY(r.controllerHeight);r.setupMainContiners();r.setupDumy();if(r.showMarkers_bl){r.setupMarkers();if(!r.isMobile_bl||r.hasPointerEvent_bl)r.setupMarkersToolTip();r.setupMarkersToolTipWindow()}};r.setupHider=function(e){r.hider=e};r.setupMainContiners=function(){r.setOverflow("visible");r.setBkColor(r.backgroundColor_str);r.largeImage_img=new Image;r.mainImagesHolder_do=new FWDDisplayObject("div","absolute","visible");r.smallImage_sdo=new FWDSimpleDisplayObject("img");r.largeImage_sdo=new FWDSimpleDisplayObject("img");r.addChild(r.mainImagesHolder_do);if(r.addCorrectionForWebKit_bl)r.setupCorrectionLinesForChrome()};r.setupCorrectionLinesForChrome=function(){r.left_sdo=new FWDSimpleDisplayObject("div");r.top_sdo=new FWDSimpleDisplayObject("div");r.right_sdo=new FWDSimpleDisplayObject("div");r.bottom_sdo=new FWDSimpleDisplayObject("div");r.left_sdo.setBkColor(r.backgroundColor_str);r.top_sdo.setBkColor(r.backgroundColor_str);r.right_sdo.setBkColor(r.backgroundColor_str);r.bottom_sdo.setBkColor(r.backgroundColor_str);r.left_sdo.setWidth(1);r.top_sdo.setHeight(1);r.right_sdo.setWidth(2);r.bottom_sdo.setHeight(2);r.addChild(r.left_sdo);r.addChild(r.top_sdo);r.addChild(r.right_sdo);r.addChild(r.bottom_sdo)};r.resizeAndPositionCorrectionLines=function(e){TweenMax.killTweensOf(r.left_sdo);TweenMax.killTweensOf(r.top_sdo);TweenMax.killTweensOf(r.right_sdo);TweenMax.killTweensOf(r.bottom_sdo);if(e){TweenMax.to(r.left_sdo,.2,{x:r.finalX,y:r.finalY,h:r.finalHeight});TweenMax.to(r.top_sdo,.2,{x:r.finalX,y:r.finalY,w:r.finalWidth});TweenMax.to(r.right_sdo,.2,{x:r.finalX+r.finalWidth-2,y:r.finalY,h:r.finalHeight});TweenMax.to(r.bottom_sdo,.2,{x:r.finalX,y:r.finalY+r.finalHeight-2,w:r.finalWidth})}else{r.left_sdo.setX(r.finalX-1);r.left_sdo.setY(r.finalY);r.left_sdo.setHeight(r.finalHeight);r.top_sdo.setX(r.finalX);r.top_sdo.setY(r.finalY-1);r.top_sdo.setWidth(r.finalWidth);r.right_sdo.setX(r.finalX+r.finalWidth-2);r.right_sdo.setY(r.finalY);r.right_sdo.setHeight(r.finalHeight);r.bottom_sdo.setX(r.finalX);r.bottom_sdo.setY(r.finalY+r.finalHeight-2);r.bottom_sdo.setWidth(r.finalWidth)}};r.resizeAndPosition=function(e){if(r.stageWidth==n.stageWidth&&r.stageHeight==n.stageHeight-r.controllerHeight)return;r.stageWidth=n.stageWidth;if(r.useEntireScreenFor3dObject_bl){r.stageHeight=n.stageHeight}else{r.stageHeight=n.stageHeight-r.controllerHeight}r.setWidth(r.stageWidth);r.setHeight(r.stageHeight);if(r.allImagesAreLoaded_bl){r.resizeAndPositionAfterAllLoad();if(e)r.centerImage();if(r.showNavigator_bl){r.hideOrShowNavigator();r.updateNavigator(false)}r.positionMarkers()}else{r.resiezeAndPositionIfNotAllImagesAreLoaded()}};r.resiezeAndPositionIfNotAllImagesAreLoaded=function(){var e=r.stageWidth/r.imageWidth;var t=r.stageHeight/r.imageHeight;var n;if(e1)n=1;r.currentScale=r.prevScale=r.smallestPossibleScale=n;r.finalWidth=Math.round(r.currentScale*r.imageWidth);r.finalHeight=Math.round(r.currentScale*r.imageHeight);r.finalX=Math.round((r.stageWidth-r.finalWidth)/2);r.finalY=Math.round((r.stageHeight-r.finalHeight)/2);r.resizeAndPositionSmallImage(false)};r.showLoadedImage=function(e){r.smallImage_sdo=new FWDSimpleDisplayObject("img");r.smallImage_sdo.setScreen(r.images_ar[e]);if(FWDUtils.isAndroid)r.smallImage_sdo.setBackfaceVisibility();r.smallDos_ar[e]=r.smallImage_sdo;r.mainImagesHolder_do.addChild(r.smallImage_sdo);r.removeSmallSDOId_to=setTimeout(function(){if(r==null)return;if(e>0)r.smallDos_ar[e-1].setVisible(false)},40);r.resizeAndPosition();r.resiezeAndPositionIfNotAllImagesAreLoaded()};r.activate=function(){r.allImagesAreLoaded_bl=true;r.addSmallImage();r.addLargeImage();r.resizeAndPositionAfterAllLoad();r.addPannSupport();r.addRotationSupport();r.addPinchSupport();r.addMouseWheelSupport();r.showOrHideMarkers();r.positionMarkers(false);if(r.showMarkersInfo_bl)r.setupMarkersInfo()};r.setupDumy=function(){r.dumy_sdo=new FWDSimpleDisplayObject("div");if(FWDUtils.isIE)r.dumy_sdo.getStyle().background="url('dumy')";if(!r.showMarkersInfo_bl)r.dumy_sdo.getStyle().cursor="url("+r.handMovePath_str+"), default";r.addChild(r.dumy_sdo)};r.addSmallImage=function(){if(r.curId==r.prevId)return;r.prevId=r.curId;r.curLargeImageId=1e3;if(r.addImageFirstTimeOnActivate_bl){r.removeSmallSDOId_to=setTimeout(function(){if(r==null)return;r.smallImage_sdo.setVisible(false);r.smallImage_sdo=r.smallDos_ar[r.curId];r.smallImage_sdo.setVisible(true);r.resizeAndPositionAfterAllLoad()},40)}clearTimeout(r.setAlphaWithDelayId_to);if(r.largeImage_img){r.largeImage_img.onload=null;r.largeImage_img.onerror=null;if(!FWDUtils.isIEAndLessThen9)r.largeImage_img.src=null}if(r.mainImagesHolder_do.contains(r.largeImage_sdo))r.mainImagesHolder_do.removeChild(r.largeImage_sdo);if(!r.addImageFirstTimeOnActivate_bl){r.smallImage_sdo.setVisible(false);r.smallImage_sdo=r.smallDos_ar[r.curId];r.smallImage_sdo.setVisible(true)}r.addImageFirstTimeOnActivate_bl=false};r.removeWithDelay=function(){while(r.mainImagesHolder_do.getNumChildren()>1){r.mainImagesHolder_do.removeChildAtZero(0)}};r.addLargeImage=function(){if(!r.showLargeImageVersionOnZoom_bl)return;if(r.currentScale<=1)return;if(r.curLargeImageId==r.curId)return;r.isLargeImageLoaded_bl=false;r.curLargeImageId=r.curId;clearTimeout(r.setAlphaWithDelayId_to);if(r.mainImagesHolder_do.contains(r.largeImage_sdo))r.mainImagesHolder_do.removeChild(r.largeImage_sdo);if(r.largeImage_img){r.largeImage_img.onload=null;r.largeImage_img.onerror=null;if(!FWDUtils.isIEAndLessThen9)r.largeImage_img.src=null}r.largeImage_img.src=r.largeImagesPaths_ar[r.curId];r.largeImage_img.onload=r.largeImageLoadHandler;r.largeImage_img.onerror=r.largeImageErrorHandler;r.largeImage_sdo.setScreen(r.largeImage_img);r.largeImage_sdo.setAlpha(0);r.mainImagesHolder_do.addChild(r.largeImage_sdo)};r.largeImageErrorHandler=function(){var t="The large image labeled "+r.largeImagesPaths_ar[r.curId]+" can't be loaded, make sure that the image exists and the path is correct!";r.dispatchEvent(e.LARGE_IMAGE_LOAD_ERROR,{error:t})};r.largeImageLoadHandler=function(){r.isLargeImageLoaded_bl=true;r.setAlphaWithDelayId_to=setTimeout(function(){r.largeImage_sdo.setAlpha(1)},100);r.largeImage_sdo.setWidth(r.finalWidth);r.largeImage_sdo.setHeight(r.finalHeight)};r.gotoImage=function(){if(r.curId>r.totalImages-1){r.curId=0}else if(r.curId<0){r.curId=r.totalImages-1}r.addSmallImage();r.resizeAndPositionAfterAllLoad();r.showOrHideMarkers();r.positionMarkers();r.dispatchEvent(e.ROTATE_UPDATE,{id:r.curId})};r.resizeAndPositionAfterAllLoad=function(){var e=r.stageWidth/r.imageWidth;var t=r.stageHeight/r.imageHeight;var n;if(e=1)r.smallestPossibleScale=1;if(r.currentScale<=1){if(e>t&&r.finalHeight<=r.stageHeight){r.currentScale=r.smallestPossibleScale}else if(er.stageWidth+1){r.allowToDragHoriz_bl=true;if(r.finalX>0){r.finalX=0}else if(r.finalX<=r.stageWidth-r.finalWidth+1){r.finalX=r.stageWidth-r.finalWidth+1}}else{r.allowToDragHoriz_bl=false}if(r.finalHeight<=r.stageHeight){r.finalY=Math.round((r.stageHeight-r.finalHeight)/2)}else if(r.finalHeight>r.stageHeight+1){r.allowToDragVert_bl=true;if(r.finalY>0){r.finalY=0}else if(r.finalY<=r.stageHeight-r.finalHeight){r.finalY=r.stageHeight-r.finalHeight}}else{r.allowToDragVert_bl=false}};r.zoomImage=function(e){if(e){r.finalWidth=Math.round(r.currentScale*r.imageWidth);r.finalHeight=Math.round(r.currentScale*r.imageHeight);r.finalX-=Math.round((r.mouseX-r.finalX)*(r.currentScale-r.prevScale)/r.prevScale);r.finalY-=Math.round((r.mouseY-r.finalY)*(r.currentScale-r.prevScale)/r.prevScale)}r.dispatchScrollBarUpdate(true);r.checkXAndYBouds();r.resizeAndPositionSmallImage(true);r.resizeAndPositionLargeImage(true);if(r.addCorrectionForWebKit_bl)r.resizeAndPositionCorrectionLines(true);if(r.showNavigator_bl){r.hideOrShowNavigator();r.updateNavigator(true)}r.positionMarkers(true);r.prevScale=r.currentScale};r.addPinchSupport=function(){if(r.screen.addEventListener){r.screen.addEventListener("gesturestart",this.gestureStartHandler);r.screen.addEventListener("gesturechange",this.gestureChangeHandler)}};r.gestureStartHandler=function(e){r.startScaleForMobileZoom=1};r.gestureChangeHandler=function(e){e.preventDefault();if(r.disablePanOrRotate_bl)return;var t;if(e.scale>1){t=e.scale-r.startScaleForMobileZoom}else{t=-(r.startScaleForMobileZoom-e.scale)}r.startScaleForMobileZoom=1;r.mouseX=Math.round(r.stageWidth/2);r.mouseY=Math.round(r.stageHeight/2);r.currentScale+=t;r.startScaleForMobileZoom=e.scale;if(parseFloat(r.currentScale.toFixed(5))<=parseFloat(r.smallestPossibleScale.toFixed(5))){r.currentScale=r.smallestPossibleScale}else if(r.currentScale>r.zoomFactor){r.currentScale=r.zoomFactor}r.zoomImage(true)};r.addPannSupport=function(){if(r.isMobile_bl){if(r.hasPointerEvent_bl){r.dumy_sdo.screen.addEventListener("MSPointerDown",r.panStartHandler)}else{r.dumy_sdo.screen.addEventListener("touchstart",r.panStartHandler)}}else if(r.screen.addEventListener){r.dumy_sdo.screen.addEventListener("mousedown",r.panStartHandler)}else if(r.screen.attachEvent){r.dumy_sdo.screen.attachEvent("onmousedown",r.panStartHandler)}};r.panStartHandler=function(t){if(r.draggingMode_str!=e.PAN||r.isTweening_bl||r.disablePanOrRotate_bl)return;if(t.preventDefault)t.preventDefault();if(r.finalWidthr.stageWidth+1){r.finalX=Math.round(r.xPositionOnPress+t.screenX-r.lastPresedX);if(r.finalX>0){r.finalX=0}else if(r.finalX<=r.stageWidth-r.finalWidth+1){r.finalX=r.stageWidth-r.finalWidth+1}r.mainImagesHolder_do.setX(r.finalX)}if(r.finalHeight>r.stageHeight+1){r.finalY=Math.round(r.yPositionOnPress+t.screenY-r.lastPresedY);if(r.finalY>0){r.finalY=0}else if(r.finalY<=r.stageHeight-r.finalHeight){r.finalY=r.stageHeight-r.finalHeight}r.mainImagesHolder_do.setY(r.finalY)}if(r.showNavigator_bl){r.hideOrShowNavigator();r.updateNavigator(false)}r.positionMarkers(false)};r.panEndHandler=function(e){r.isDragging_bl=false;if(!r.isMobile_bl||e.pointerType==e.MSPOINTER_TYPE_MOUSE)n.hidePanDumy();if(r.isMobile_bl){if(r.hasPointerEvent_bl){window.removeEventListener("MSPointerMove",r.panMoveHandler);window.removeEventListener("MSPointerUp",r.panEndHandler)}else{window.removeEventListener("touchmove",r.panMoveHandler);window.removeEventListener("touchend",r.panEndHandler)}}else{if(window.removeEventListener){window.removeEventListener("mousemove",r.panMoveHandler);window.removeEventListener("mouseup",r.panEndHandler)}else if(document.detachEvent){document.detachEvent("onmousemove",r.panMoveHandler);document.detachEvent("onmouseup",r.panEndHandler)}}};r.addRotationSupport=function(){if(r.isMobile_bl){if(r.hasPointerEvent_bl){r.dumy_sdo.screen.addEventListener("MSPointerDown",r.rotateStartHandler)}else{r.dumy_sdo.screen.addEventListener("touchstart",r.rotateStartHandler)}}else if(r.screen.addEventListener){r.dumy_sdo.screen.addEventListener("mousedown",r.rotateStartHandler)}else if(r.screen.attachEvent){r.dumy_sdo.screen.attachEvent("onmousedown",r.rotateStartHandler)}};r.rotateStartHandler=function(t){if(r.draggingMode_str!=e.ROTATE||r.isTweening_bl||r.disablePanOrRotate_bl)return;if(t.preventDefault)t.preventDefault();var i=FWDUtils.getViewportMouseCoordinates(t);r.isDragging_bl=true;if(r.markersToolTipWindow_do)r.markersToolTipWindow_do.hide();if(!r.isMobile_bl||t.pointerType==t.MSPOINTER_TYPE_MOUSE)n.showRotateDumy();r.lastPresedX=i.screenX;r.dispatchEvent(e.ROTATE_START);if(r.isMobile_bl){if(r.hasPointerEvent_bl){window.addEventListener("MSPointerMove",r.rotateMoveHandler);window.addEventListener("MSPointerUp",r.rotateEndHandler)}else{window.addEventListener("touchmove",r.rotateMoveHandler);window.addEventListener("touchend",r.rotateEndHandler)}}else{if(window.addEventListener){window.addEventListener("mousemove",r.rotateMoveHandler);window.addEventListener("mouseup",r.rotateEndHandler)}else if(document.attachEvent){document.attachEvent("onmousemove",r.rotateMoveHandler);document.attachEvent("onmouseup",r.rotateEndHandler)}}};r.rotateMoveHandler=function(e){if(e.preventDefault)e.preventDefault();if(e.touches&&e.touches.length!=1||r.disablePanOrRotate_bl)return;var t=FWDUtils.getViewportMouseCoordinates(e);var n=(t.screenX-r.lastPresedX)/(80*r.rotationSpeed);if(r.isRotatingFirstTime_bl){if(n>0){if(n!=0)n=-1}else{if(n!=0)n=1}r.curId+=n;r.gotoImage();r.isRotatingFirstTime_bl=false;return}if(Math.abs(n)>=1){if(n>0){r.lastPresedX=r.lastPresedX+80*r.rotationSpeed;if(n!=0)n=-1}else{r.lastPresedX=r.lastPresedX-80*r.rotationSpeed;if(n!=0)n=1}r.curId+=n;r.gotoImage()}};r.rotateEndHandler=function(e){r.addLargeImage();r.isDragging_bl=false;r.isRotatingFirstTime_bl=true;if(!r.isMobile_bl||e.pointerType==e.MSPOINTER_TYPE_MOUSE)n.hideRotateDumy();if(r.isMobile_bl){if(r.hasPointerEvent_bl){window.removeEventListener("MSPointerMove",r.rotateMoveHandler);window.removeEventListener("MSPointerUp",r.rotateEndHandler)}else{window.removeEventListener("touchmove",r.rotateMoveHandler);window.removeEventListener("touchend",r.rotateEndHandler)}}else{if(window.removeEventListener){window.removeEventListener("mousemove",r.rotateMoveHandler);window.removeEventListener("mouseup",r.rotateEndHandler)}else if(document.detachEvent){document.detachEvent("onmousemove",r.rotateMoveHandler);document.detachEvent("onmouseup",r.rotateEndHandler)}}};r.addMouseWheelSupport=function(){if(window.addEventListener){r.dumy_sdo.screen.addEventListener("mousewheel",r.mouseWheelHandler);r.dumy_sdo.screen.addEventListener("DOMMouseScroll",r.mouseWheelHandler)}else if(document.attachEvent){r.dumy_sdo.screen.attachEvent("onmousewheel",r.mouseWheelHandler)}};r.mouseWheelHandler=function(e){if(e.preventDefault)e.preventDefault();if(r.isDragging_bl||r.disablePanOrRotate_bl)return;var t=FWDUtils.getViewportMouseCoordinates(e);if(r.hider)r.hider.reset();r.mouseX=t.screenX-r.getGlobalX();r.mouseY=t.screenY-r.getGlobalY();var n=e.detail||e.wheelDelta;if(e.wheelDelta)n*=-1;if(FWDUtils.isOpera)n*=-1;if(n>0){r.currentScale-=r.zoomSpeed;if(parseFloat(r.currentScale.toFixed(5))<=parseFloat(r.smallestPossibleScale.toFixed(5)))r.currentScale=r.smallestPossibleScale}else if(n<0){r.currentScale+=r.zoomSpeed;if(r.currentScale>r.zoomFactor)r.currentScale=r.zoomFactor}r.zoomImage(true);if(e.preventDefault){e.preventDefault()}else{return false}};r.setupMarkers=function(){var e;var t;var n=0;r.totalMarkers=r.markersList_ar.length;for(var i=0;i"+(r.curId+1)+""+"
x:"+""+u+""+" y:"+""+a+"");var c=r.markersPositionInfo_sdo.getWidth();var h=r.markersPositionInfo_sdo.getHeight();if(f+c>r.stageWidth){f=f-c-10}if(l+h>r.stageHeight){l=l-h-10}r.markersPositionInfo_sdo.setX(f);r.markersPositionInfo_sdo.setY(l)};r.setDraggingMode=function(e){r.draggingMode_str=e};r.disableOrEnablePanOrTouch=function(e){r.disablePanOrRotate_bl=e};r.zoomInOrOutWithScrollBar=function(e){r.currentScale=e*(r.zoomFactor-r.smallestPossibleScale)+r.smallestPossibleScale;r.mouseX=r.stageWidth/2;r.mouseY=r.stageHeight/2;r.zoomImage(true)};r.dispatchScrollBarUpdate=function(t,n){if(!r.disablePanOrRotate_bl||n){r.dispatchEvent(e.SCROLL_BAR_UPDATE,{percent:(r.currentScale-r.smallestPossibleScale)/(r.zoomFactor-r.smallestPossibleScale),animate:t})}};r.zoomInOrOutWithButtons=function(e,t){r.mouseX=r.stageWidth/2;r.mouseY=r.stageHeight/2;if(e>0){if(t){r.currentScale+=r.zoomSpeed}else{r.currentScale+=r.zoomSpeed/15}if(r.currentScale>r.zoomFactor)r.currentScale=r.zoomFactor}else if(e<0){if(t){r.currentScale-=r.zoomSpeed}else{r.currentScale-=r.zoomSpeed/15}if(parseFloat(r.currentScale.toFixed(5))<=parseFloat(r.smallestPossibleScale.toFixed(5)))r.currentScale=r.smallestPossibleScale}r.dispatchScrollBarUpdate(true,true);r.zoomImage(true)};r.centerImage=function(){r.mouseX=r.stageWidth/2;r.mouseY=r.stageHeight/2;r.finalX=Math.round((r.stageWidth-r.finalWidth)/2);r.finalY=Math.round((r.stageHeight-r.finalHeight)/2);r.resizeAndPositionSmallImage(false)};r.updateNavigator=function(t){if(!r.isNavigatorShowed_bl)return;r.dispatchEvent(e.UPDATE_NAVIGATOR,{percentX:Math.abs(r.finalX/(r.finalWidth-r.stageWidth)),percentY:Math.abs(r.finalY/(r.finalHeight-r.stageHeight)),percentWidth:r.stageWidth/r.finalWidth,percentHeight:r.stageHeight/r.finalHeight,animate:t})};r.hideOrShowNavigator=function(){if(r.stageWidthe.w){a.finalLightBoxWidth=e.w;a.finalLightBoxHeight=parseInt(a.lightBoxHeight*(e.w/a.lightBoxWidth))}else{a.finalLightBoxWidth=a.lightBoxWidth;a.finalLightBoxHeight=a.lightBoxHeight}TweenMax.to(a.mainLightBox_do,.8,{w:a.finalLightBoxWidth,h:a.finalLightBoxHeight,x:parseInt((e.w-a.finalLightBoxWidth)/2),y:parseInt((e.h-a.finalLightBoxHeight)/2),delay:.4,ease:Expo.easeInOut})};this.setupCloseButton=function(t,n){var r=FWDUtils.getViewportSize();FWDSimpleButton.setPrototype();a.closeButton_do=new FWDSimpleButton(t,n);a.closeButton_do.addListener(FWDSimpleButton.MOUSE_DOWN,a.closeButtonOnStartHandler);a.addChild(a.closeButton_do);var i=parseInt((r.w+a.finalLightBoxWidth)/2-a.closeButton_do.totalWidth/2);var s=parseInt((r.h-a.finalLightBoxHeight)/2-a.closeButton_do.totalHeight/2);if(i+a.closeButton_do.totalWidth>r.w){i=r.w-a.closeButton_do.totalWidth}if(s<0){s=0}a.closeButton_do.setX(r.w);a.closeButton_do.setY(s);TweenMax.to(a.closeButton_do,.9,{x:i,onComplete:a.showCloseButtonComplete,ease:Expo.easeInOut});if(a.isMobile_bl){if(!a.hasPointerEvent_bl){e.addEventListener("touchstart",a.mouseDummyHandler);e.addEventListener("touchmove",a.mouseDummyHandler)}}else{if(e.addEventListener){e.addEventListener("mousewheel",a.mouseDummyHandler);e.addEventListener("DOMMouseScroll",a.mouseDummyHandler)}else if(document.attachEvent){document.attachEvent("onmousewheel",a.mouseDummyHandler)}}};this.showCloseButtonComplete=function(){a.closeButtonIsTweening_bl=false};this.mouseDummyHandler=function(e){if(e.preventDefault){e.preventDefault()}else{return false}};this.closeButtonOnStartHandler=function(e){var n=FWDUtils.getViewportSize();a.closeButton_do.isDisabled_bl=true;TweenMax.to(a.closeButton_do,.9,{x:n.w,ease:Expo.easeInOut});TweenMax.to(a.mainLightBox_do,.8,{w:0,h:0,x:parseInt(n.w/2),y:parseInt(n.h/2),delay:.4,ease:Expo.easeInOut});TweenMax.to(a.lightBoxBackground_sdo,.8,{alpha:0,delay:.8});a.lighboxAnimDoneId_to=setTimeout(a.lighboxHideAnimationDone,1600);a.dispatchEvent(t.CLOSE)};this.lighboxHideAnimationDone=function(){a.dispatchEvent(t.HIDE_COMPLETE)};a.destroy=function(){try{if(navigator.userAgent.toLowerCase().indexOf("msie 7")==-1){document.documentElement.removeChild(a.screen)}else{document.getElementsByTagName("body")[0].removeChild(a.screen)}}catch(s){}if(a.isMobile_bl){if(!a.hasPointerEvent_bl){e.removeEventListener("touchstart",a.mouseDummyHandler);e.removeEventListener("touchmove",a.mouseDummyHandler)}}else{if(e.removeEventListener){e.removeEventListener("mousewheel",a.mouseDummyHandler);e.removeEventListener("DOMMouseScroll",a.mouseDummyHandler)}else if(document.detachEvent){document.detachEvent("onmousewheel",a.mouseDummyHandler)}}clearTimeout(a.lighboxAnimDoneId_to);if(a.lightBoxBackground_sdo){TweenMax.killTweensOf(a.lightBoxBackground_sdo);a.lightBoxBackground_sdo.destroy()}if(a.lightBoxGridHolder_do){TweenMax.killTweensOf(a.lightBoxGridHolder_do);a.lightBoxGridHolder_do.destroy()}if(a.closeButton_do){TweenMax.killTweensOf(a.closeButton_do);a.closeButton_do.destroy()}a.mainLightBox_do=null;a.lightBoxBackground_sdo=null;a.lightBoxGridHolder_do=null;a.closeButton_do=null;a.mainBackgroundColor_str=null;a.holderBackgroundColor_str=null;n=null;r=null;i=null;a.setInnerHTML("");f.destroy();a=null;f=null;t.prototype=null};this.init()};t.setPrototype=function(){t.prototype=new FWDDisplayObject("div")};t.CLOSE="ligtBoxClose";t.HIDE_COMPLETE="hideComplete";t.prototype=null;e.FWDLightBox=t})(window);(function(e){var t=function(n,r,i,s,o,u,a,f){var l=this;var c=t.prototype;this.n_do;this.s_do;this.markerId=n;this.normalImagePath_str=r;this.selectedImagePath_str=i;this.type_str=s;this.toolTipLabel_str=u;this.innerHTML_str;this.link_str;this.target_str;this.regPoint_str=o;this.toolTipWindowId;this.width=a;this.height=f;this.toolTipId;this.originalX;this.originalY;this.finalX;this.finalY;this.offsetX;this.offsetY;this.toolTipWindowMaxWidth;this.isDisabled_bl=false;this.hasToolTip_bl=true;this.isShowed_bl=true;this.isMobile_bl=FWDUtils.isMobile;this.hasPointerEvent_bl=FWDUtils.hasPointerEvent;l.init=function(){if(l.type_str=="tooltip"||!l.toolTipLabel_str)l.hasToolTip_bl=false;l.setWidth(l.width);l.setHeight(l.height);if(l.regPoint_str=="center"){l.offsetX=-parseInt(l.width/2);l.offsetY=-parseInt(l.height/2)}else if(l.regPoint_str=="centertop"){l.offsetX=-parseInt(l.width/2);l.offsetY=0}else if(l.regPoint_str=="centerbottom"){l.offsetX=-parseInt(l.width/2);l.offsetY=-l.height}l.setupMainContainers();l.hide()};l.setupMainContainers=function(){var e;var t;l.n_do=new FWDSimpleDisplayObject("img");e=new Image;e.src=l.normalImagePath_str;l.n_do.setScreen(e);l.n_do.setWidth(l.width);l.n_do.setHeight(l.height);l.s_do=new FWDSimpleDisplayObject("img");t=new Image;t.src=l.selectedImagePath_str;l.s_do.setScreen(t);l.s_do.setWidth(l.width);l.s_do.setHeight(l.height);l.s_do.setAlpha(0);l.addChild(l.n_do);l.addChild(l.s_do);l.setButtonMode(true);if(l.isMobile_bl){if(l.hasPointerEvent_bl){l.screen.addEventListener("MSPointerDown",l.onMouseDown);l.screen.addEventListener("MSPointerUp",l.onClick);l.screen.addEventListener("MSPointerOver",l.onMouseOver);l.screen.addEventListener("MSPointerOut",l.onMouseOut)}else{l.screen.addEventListener("touchstart",l.onMouseDown)}}else if(l.screen.addEventListener){l.screen.addEventListener("mouseover",l.onMouseOver);l.screen.addEventListener("mouseout",l.onMouseOut);l.screen.addEventListener("mousedown",l.onMouseDown);l.screen.addEventListener("click",l.onClick)}else if(l.screen.attachEvent){l.screen.attachEvent("onmouseover",l.onMouseOver);l.screen.attachEvent("onmouseout",l.onMouseOut);l.screen.attachEvent("onmousedown",l.onMouseDown);l.screen.attachEvent("onclick",l.onClick)}};l.onMouseOver=function(e){if(!e.pointerType||e.pointerType==e.MSPOINTER_TYPE_MOUSE){l.dispatchEvent(t.MOUSE_OVER,{e:e});if(l.isDisabled_bl)return;TweenMax.killTweensOf(l.s_do);TweenMax.to(l.s_do,.5,{alpha:1,delay:.1,ease:Expo.easeOut})}};l.onMouseOut=function(e){if(!e.pointerType||e.pointerType==e.MSPOINTER_TYPE_MOUSE){l.dispatchEvent(t.MOUSE_OUT,{e:e});if(l.isDisabled_bl)return;TweenMax.killTweensOf(l.s_do);TweenMax.to(l.s_do,.5,{alpha:0,ease:Expo.easeOut})}};l.onClick=function(n){if(l.isDisabled_bl)return;if(l.type_str=="link"){e.open(l.link_str,l.target_str);l.dispatchEvent(t.MOUSE_OUT,{e:n})}l.dispatchEvent(t.CLICK,{e:n})};l.onMouseDown=function(n){if(n.preventDefault)n.preventDefault();if(l.isDisabled_bl)return;if(l.isMobile_bl&&!l.hasPointerEvent_bl){if(l.type_str=="link"){e.open(l.link_str,l.target_str);l.dispatchEvent(t.MOUSE_OUT,{e:n})}}l.dispatchEvent(t.MOUSE_DOWN,{e:n})};l.hide=function(){if(!l.isShowed_bl)return;l.isShowed_bl=false;if(!FWDUtils.isChrome){TweenMax.killTweensOf(l.n_do);TweenMax.killTweensOf(l.s_do);l.n_do.setAlpha(0);l.s_do.setAlpha(0)}l.setX(-5e3)};l.show=function(){if(l.isShowed_bl)return;l.isShowed_bl=true;if(!FWDUtils.isChrome){TweenMax.to(l.n_do,.8,{alpha:1,delay:.1,ease:Quart.easeOut});TweenMax.to(l.s_do,.8,{alpha:0,delay:.1,ease:Quart.easeOut})}};l.showOnChromeOnce=function(){l.n_do.setAlpha(0);TweenMax.to(l.n_do,.8,{alpha:1,delay:.1,ease:Quart.easeOut})};l.destroy=function(){if(l.isMobile_bl){l.screen.removeEventListener("touchstart",l.onMouseDown)}else if(l.screen.addEventListener){l.screen.removeEventListener("mouseover",l.onMouseOver);l.screen.removeEventListener("mouseout",l.onMouseOut);l.screen.removeEventListener("mousedown",l.onMouseDown);l.screen.removeEventListener("click",l.onClick)}else if(l.screen.detachEvent){l.screen.detachEvent("onmouseover",l.onMouseOver);l.screen.detachEvent("onmouseout",l.onMouseOut);l.screen.detachEvent("onmousedown",l.onMouseDown);l.screen.detachEvent("onclick",l.onClick)}TweenMax.killTweensOf(l.n_do);TweenMax.killTweensOf(l.s_do);l.n_do.destroy();l.s_do.destroy();l.n_do=null;l.s_do=null;l.markerId=null;l.normalImagePath_str=null;l.selectedImagePath_str=null;l.type_str=null;l.toolTipLabel_str=null;l.innerHTML_str=null;l.link_str=null;l.target_str=null;l.regPoint_str=null;n=null;r=null;i=null;s=null;o=null;u=null;l.setInnerHTML("");c.destroy();l=null;c=null;t.prototype=null};l.init()};t.setPrototype=function(){t.prototype=new FWDDisplayObject("div")};t.CLICK="onClick";t.MOUSE_OVER="onMouseOver";t.MOUSE_OUT="onMouseOut";t.MOUSE_DOWN="onMouseDown";t.prototype=null;e.FWDMarker=t})(window);(function(e){var t=function(e,n,r,i,s,o,u,a){var f=this;var l=t.prototype;f.pointerUp_img;f.pointerDown_img;f.left_sdo=null;f.middle_sdo=null;f.right_sdo=null;f.text_sdo=null;f.pointerUp_sdo=null;f.pointerDown_sdo=null;f.leftImagePath_str=r;f.middleImagePath_str=i;f.rightImagePath_str=s;f.fontColor_str=o;f.bottomPointer_str=a;f.topPointer_str=u;f.pointerPosition_str;f.toolTipLabel_str;f.marginWidth=e.width;f.totalHeight=e.height;f.pointerWidth=n.width;f.pointerHeight=n.height;f.totalWidth;f.isMobile_bl=FWDUtils.isMobile;f.isShowed_bl=true;f.init=function(){f.setOverflow("visible");f.setWidth(300);f.setupMainContainers();f.hide()};f.setupMainContainers=function(){var e;f.left_sdo=new FWDSimpleDisplayObject("img");e=new Image;e.src=f.leftImagePath_str;f.left_sdo.setScreen(e);f.left_sdo.setWidth(f.marginWidth);f.left_sdo.setHeight(f.totalHeight);f.addChild(f.left_sdo);f.middle_sdo=new FWDSimpleDisplayObject("img");e=new Image;e.src=f.middleImagePath_str;f.middle_sdo.setScreen(e);f.middle_sdo.setX(f.marginWidth);f.middle_sdo.setWidth(f.marginWidth);f.middle_sdo.setHeight(f.totalHeight);f.addChild(f.middle_sdo);f.right_sdo=new FWDSimpleDisplayObject("img");e=new Image;e.src=f.rightImagePath_str;f.right_sdo.setScreen(e);f.right_sdo.setWidth(f.marginWidth);f.right_sdo.setHeight(f.totalHeight);f.addChild(f.right_sdo);f.text_sdo=new FWDSimpleDisplayObject("div");f.text_sdo.setBackfaceVisibility();f.text_sdo.setDisplay("inline-block");f.text_sdo.getStyle().fontFamily="Arial";f.text_sdo.getStyle().fontSize="12px";f.text_sdo.setHeight(20);f.text_sdo.getStyle().color=f.fontColor_str;f.text_sdo.getStyle().fontSmoothing="antialiased";f.text_sdo.getStyle().webkitFontSmoothing="antialiased";f.text_sdo.getStyle().textRendering="optimizeLegibility";f.text_sdo.setX(f.marginWidth);if(FWDUtils.isIEAndLessThen9||FWDUtils.isSafari){f.text_sdo.setY(parseInt((f.totalHeight-8)/2)-2)}else{f.text_sdo.setY(parseInt((f.totalHeight-8)/2)-1)}f.addChild(f.text_sdo);f.pointerUp_img=new Image;f.pointerUp_img.src=f.topPointer_str;f.pointerUp_sdo=new FWDSimpleDisplayObject("img");f.pointerUp_sdo.setScreen(f.pointerUp_img);f.pointerUp_sdo.setWidth(f.pointerWidth);f.pointerUp_sdo.setHeight(f.pointerHeight);f.pointerUp_sdo.setVisible(false);f.addChild(f.pointerUp_sdo);f.pointerDown_img=new Image;f.pointerDown_img.src=f.bottomPointer_str;f.pointerDown_sdo=new FWDSimpleDisplayObject("img");f.pointerDown_sdo.setScreen(f.pointerDown_img);f.pointerDown_sdo.setWidth(f.pointerWidth);f.pointerDown_sdo.setHeight(f.pointerHeight);f.pointerDown_sdo.setVisible(false);f.addChild(f.pointerDown_sdo);f.totalHeight+=f.pointerHeight};f.setLabel=function(e){if(f==null)return;if(!f.middle_sdo)return;f.text_sdo.setInnerHTML(e);setTimeout(function(){f.middle_sdo.setWidth(f.text_sdo.screen.offsetWidth);f.right_sdo.setX(f.text_sdo.screen.offsetWidth+f.marginWidth);f.totalWidth=f.marginWidth*2+f.text_sdo.screen.offsetWidth},79)};f.positionPointer=function(e,n){var r=0;var i=0;if(!e)e=0;r=parseInt((f.totalWidth-f.pointerWidth)/2)+e;if(r<0)r=0;if(n==t.POINTER_DOWN){i=f.totalHeight-f.pointerHeight-1;f.pointerDown_sdo.setX(r);f.pointerDown_sdo.setY(i)}else{i=-f.pointerHeight+1;f.pointerUp_sdo.setX(r);f.pointerUp_sdo.setY(i)}};f.show=function(){if(f.isShowed_bl)return;TweenMax.to(f,.4,{alpha:1,delay:.1,ease:Quart.easeOut});f.isShowed_bl=true};f.hide=function(){if(!f.isShowed_bl)return;TweenMax.killTweensOf(f);f.setX(-5e3);f.setAlpha(0);f.isShowed_bl=false};f.destroy=function(){TweenMax.killTweensOf(f);f.pointerUp_img=null;f.pointerDown_img=null;f.left_sdo.destroy();f.middle_sdo.destroy();f.right_sdo.destroy();f.text_sdo.destroy();f.pointerDown_sdo.destroy();f.leftImagePath_str=null;f.middleImagePath_str=null;f.rightImagePath_str=null;f.fontColor_str=null;f.bottomPointer_str=null;f.topPointer_str=null;f.pointerPosition_str=null;f.toolTipLabel_str=null;f.left_sdo=null;f.middle_sdo=null;f.right_sdo=null;f.text_sdo=null;f.pointerUp_sdo=null;f.pointerDown_sdo=null;e=null;n=null;r=null;i=null;s=null;o=null;u=null;a=null;f.setInnerHTML("");l.destroy();f=null;l=null;t.prototype=null};f.init()};t.setPrototype=function(){t.prototype=new FWDDisplayObject("div")};t.POINTER_UP="pointerUp";t.POINTER_DOWN="pointerDown";t.CLICK="onClick";t.MOUSE_DOWN="onMouseDown";t.prototype=null;e.FWDMarkerToolTip=t})(window);(function(e){var t=function(e,n,r,i){var s=this;var o=t.prototype;s.pointerUp_img;s.pointerDown_img;s.text_sdo=null;s.pointerUp_sdo=null;s.pointerDown_sdo=null;s.bottomPointer_str=i;s.topPointer_str=r;s.pointerPosition_str;s.toolTipLabel_str;s.totalHeight=0;s.pointerWidth=n.width;s.pointerHeight=n.height;s.totalWidth;s.maxWidth;s.isMobile_bl=FWDUtils.isMobile;s.isShowed_bl=true;s.hasLabel_bl=false;s.init=function(){s.setOverflow("visible");s.setupMainContainers();s.hide()};s.setupMainContainers=function(){s.text_sdo=new FWDSimpleDisplayObject("div");s.text_sdo.setBackfaceVisibility();s.text_sdo.getStyle().fontSmoothing="antialiased";s.text_sdo.getStyle().webkitFontSmoothing="antialiased";s.text_sdo.getStyle().textRendering="optimizeLegibility";s.addChild(s.text_sdo);s.pointerUp_img=new Image;s.pointerUp_img.src=s.topPointer_str;s.pointerUp_sdo=new FWDSimpleDisplayObject("img");s.pointerUp_sdo.setScreen(s.pointerUp_img);s.pointerUp_sdo.setWidth(s.pointerWidth);s.pointerUp_sdo.setHeight(s.pointerHeight);s.pointerUp_sdo.setVisible(false);s.addChild(s.pointerUp_sdo);s.pointerDown_img=new Image;s.pointerDown_img.src=s.bottomPointer_str;s.pointerDown_sdo=new FWDSimpleDisplayObject("img");s.pointerDown_sdo.setScreen(s.pointerDown_img);s.pointerDown_sdo.setWidth(s.pointerWidth);s.pointerDown_sdo.setHeight(s.pointerHeight);s.pointerDown_sdo.setVisible(false);s.addChild(s.pointerDown_sdo)};s.setLabel=function(t,n){if(s==null)return;s.maxWidth=n;var r=Math.min(s.maxWidth,e.stageWidth);s.totalWidth=r;s.setWidth(s.totalWidth);s.text_sdo.setInnerHTML(t);setTimeout(function(){s.totalHeight=s.text_sdo.getHeight()+s.pointerHeight;s.setWidth(s.totalWidth);s.setHeight(s.totalHeight-s.pointerHeight)},79)};s.positionPointer=function(e,n){var r=0;var i=0;if(!e)e=0;r=parseInt((s.totalWidth-s.pointerWidth)/2)+e;if(r<0)r=0;if(n==t.POINTER_DOWN){i=s.totalHeight-s.pointerHeight-1;s.pointerDown_sdo.setX(r);s.pointerDown_sdo.setY(i)}else{i=-s.pointerHeight+1;s.pointerUp_sdo.setX(r);s.pointerUp_sdo.setY(i)}};s.show=function(){if(s.isShowed_bl)return;s.positionPointer();if(s.isMobile_bl){s.setAlpha(1)}else{TweenMax.to(s,.4,{alpha:1,delay:.1,ease:Quart.easeOut})}s.isShowed_bl=true};s.hide=function(){if(!s.isShowed_bl)return;if(!s.isMobile_bl)TweenMax.killTweensOf(s);s.setX(-5e3);s.setAlpha(0);s.text_sdo.setInnerHTML("");s.isShowed_bl=false};s.destroy=function(){TweenMax.killTweensOf(s);s.text_sdo.destroy();s.pointerUp_sdo.destroy();s.pointerDown_sdo.destroy();s.text_sdo=null;s.pointerUp_sdo=null;s.pointerDown_sdo=null;s.pointerUp_img=null;s.pointerDown_img=null;s.bottomPointer_str=null;s.topPointer_str=null;s.pointerPosition_str=null;s.toolTipLabel_str=null;e=null;n=null;r=null;i=null;s.setInnerHTML("");o.destroy();s=null;o=null;t.prototype=null};s.init()};t.setPrototype=function(){t.prototype=null;t.prototype=new FWDDisplayObject("div")};t.POINTER_UP="pointerUp";t.POINTER_DOWN="pointerDown";t.CLICK="onClick";t.MOUSE_DOWN="onMouseDown";t.prototype=null;e.FWDMarkerWindowToolTip=t})(window);(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(e,t,n){var r=function(e,t,r){n.call(this,e,t,r);this._cycle=0;this._yoyo=this.vars.yoyo==true;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._dirty=true},i=r.prototype=n.to({},.1,{}),s=[];i.constructor=r;i.kill()._gc=false;r.killTweensOf=r.killDelayedCallsTo=n.killTweensOf;r.getTweensOf=n.getTweensOf;r.ticker=n.ticker;i.invalidate=function(){this._yoyo=this.vars.yoyo==true;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._uncache(true);return n.prototype.invalidate.call(this)};i.updateTo=function(e,t){var r=this.ratio,i;if(t)if(this.timeline!=null)if(this._startTime.998){var s=this._time;this.render(0,true,false);this._initted=false;this.render(s,true,false)}else if(this._time>0){this._initted=false;this._init();var o=1/(1-r),u=this._firstPT,a;while(u){a=u.s+u.c;u.c*=o;u.s=a-u.c;u=u._next}}}}return this};i.render=function(e,t,n){var r=!this._dirty?this._totalDuration:this.totalDuration(),i=this._time,o=this._totalTime,u=this._cycle,a,f,l;if(e>=r){this._totalTime=r;this._cycle=this._repeat;if(this._yoyo&&(this._cycle&1)!==0){this._time=0;this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0}else{this._time=this._duration;this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1}if(!this._reversed){a=true;f="onComplete"}if(this._duration===0){if(e===0||this._rawPrevTime<0)if(this._rawPrevTime!==e){n=true}this._rawPrevTime=e}}else if(e<=0){this._totalTime=this._time=this._cycle=0;this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0;if(o!==0||this._duration===0&&this._rawPrevTime>0){f="onReverseComplete";a=this._reversed}if(e<0){this._active=false;if(this._duration===0){if(this._rawPrevTime>=0){n=true}this._rawPrevTime=e}}else if(!this._initted){n=true}}else{this._totalTime=this._time=e;if(this._repeat!==0){var c=this._duration+this._repeatDelay;this._cycle=this._totalTime/c>>0;if(this._cycle!==0)if(this._cycle===this._totalTime/c){this._cycle--}this._time=this._totalTime-this._cycle*c;if(this._yoyo)if((this._cycle&1)!==0){this._time=this._duration-this._time}if(this._time>this._duration){this._time=this._duration}else if(this._time<0){this._time=0}}if(this._easeType){var h=this._time/this._duration,p=this._easeType,d=this._easePower;if(p===1||p===3&&h>=.5){h=1-h}if(p===3){h*=2}if(d===1){h*=h}else if(d===2){h*=h*h}else if(d===3){h*=h*h*h}else if(d===4){h*=h*h*h*h}if(p===1){this.ratio=1-h}else if(p===2){this.ratio=h}else if(this._time/this._duration<.5){this.ratio=h/2}else{this.ratio=1-h/2}}else{this.ratio=this._ease.getRatio(this._time/this._duration)}}if(i===this._time&&!n){return}else if(!this._initted){this._init();if(!a&&this._time){this.ratio=this._ease.getRatio(this._time/this._duration)}}if(!this._active)if(!this._paused){this._active=true}if(o==0)if(this.vars.onStart)if(this._totalTime!==0||this._duration===0)if(!t){this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||s)}l=this._firstPT;while(l){if(l.f){l.t[l.p](l.c*this.ratio+l.s)}else{var v=l.c*this.ratio+l.s;if(l.p=="x"){l.t.setX(v)}else if(l.p=="y"){l.t.setY(v)}else if(l.p=="w"){l.t.setWidth(v)}else if(l.p=="h"){l.t.setHeight(v)}else if(l.p=="alpha"){l.t.setAlpha(v)}else{l.t[l.p]=v}}l=l._next}if(this._onUpdate)if(!t){this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||s)}if(this._cycle!=u)if(!t)if(!this._gc)if(this.vars.onRepeat){this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||s)}if(f)if(!this._gc){if(a){if(this._timeline.autoRemoveChildren){this._enabled(false,false)}this._active=false}if(!t)if(this.vars[f]){this.vars[f].apply(this.vars[f+"Scope"]||this,this.vars[f+"Params"]||s)}}};r.to=function(e,t,n){return new r(e,t,n)};r.from=function(e,t,n){n.runBackwards=true;if(n.immediateRender!=false){n.immediateRender=true}return new r(e,t,n)};r.fromTo=function(e,t,n,i){i.startAt=n;if(n.immediateRender){i.immediateRender=true}return new r(e,t,i)};r.staggerTo=r.allTo=function(e,t,n,i,s,o,u){i=i||0;var a=[],f=e.length,l=n.delay||0,c,h,p;for(h=0;h-1){if((i=t[r])._active||i._startTime===i.timeline._time&&i.timeline._active){return true}}return false};var o=function(e,t){var r=[],i=0,s=e._first;while(s){if(s instanceof n){r[i++]=s}else{if(t){r[i++]=s}r=r.concat(o(s,t));i=r.length}s=s._next}return r},u=r.getAllTweens=function(t){var n=o(e._rootTimeline,t);return n.concat(o(e._rootFramesTimeline,t))};r.killAll=function(e,n,r,i){if(n==null){n=true}if(r==null){r=true}var s=u(i!=false),o=s.length,a=n&&r&&i,f,l,c;for(c=0;c-1){l=s[a];if(o||l instanceof t||(f=l.target===l.vars.onComplete)&&r||n&&!f){l.paused(e)}}};i.progress=function(e){return!arguments.length?this._time/this.duration():this.totalTime(this.duration()*e+this._cycle*this._duration,false)};i.totalProgress=function(e){return!arguments.length?this._totalTime/this.totalDuration():this.totalTime(this.totalDuration()*e,false)};i.time=function(e,t){if(!arguments.length){return this._time}if(this._dirty){this.totalDuration()}if(e>this._duration){e=this._duration}if(this._yoyo&&(this._cycle&1)!==0){e=this._duration-e+this._cycle*(this._duration+this._repeatDelay)}else if(this._repeat!=0){e+=this._cycle*(this._duration+this._repeatDelay)}return this.totalTime(e,t)};i.totalDuration=function(e){if(!arguments.length){if(this._dirty){this._totalDuration=this._repeat===-1?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat;this._dirty=false}return this._totalDuration}return this._repeat==-1?this:this.duration((e-this._repeat*this._repeatDelay)/(this._repeat+1))};i.repeat=function(e){if(!arguments.length){return this._repeat}this._repeat=e;return this._uncache(true)};i.repeatDelay=function(e){if(!arguments.length){return this._repeatDelay}this._repeatDelay=e;return this._uncache(true)};i.yoyo=function(e){if(!arguments.length){return this._yoyo}this._yoyo=e;return this};return r},true);_gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(e,t,n){"use strict";var r=function(e){t.call(this,e);this._labels={};this.autoRemoveChildren=this.vars.autoRemoveChildren==true;this.smoothChildTiming=this.vars.smoothChildTiming==true;this._sortChildren=true;this._onUpdate=this.vars.onUpdate;var n=i.length,r,s;while(--n>-1){if(s=this.vars[i[n]]){r=s.length;while(--r>-1){if(s[r]==="{self}"){s=this.vars[i[n]]=s.concat();s[r]=this}}}}if(this.vars.tweens instanceof Array){this.insertMultiple(this.vars.tweens,0,this.vars.align||"normal",this.vars.stagger||0)}},i=["onStartParams","onUpdateParams","onCompleteParams","onReverseCompleteParams","onRepeatParams"],s=[],o=function(e){var t={},n;for(n in e){t[n]=e[n]}return t},u=r.prototype=new t;u.constructor=r;u.kill()._gc=false;u.to=function(e,t,r,i,s){return this.insert(new n(e,t,r),this._parseTimeOrLabel(s)+(i||0))};u.from=function(e,t,r,i,s){return this.insert(n.from(e,t,r),this._parseTimeOrLabel(s)+(i||0))};u.fromTo=function(e,t,r,i,s,o){return this.insert(n.fromTo(e,t,r,i),this._parseTimeOrLabel(o)+(s||0))};u.staggerTo=function(e,t,i,s,u,a,f,l,c){var h=new r({onComplete:f,onCompleteParams:l,onCompleteScope:c});s=s||0;for(var p=0;p-1){this.remove(t[n])}return this}else if(typeof t==="string"){return this.removeLabel(t)}return this.kill(null,t)};u.append=function(e,t){return this.insert(e,this.duration()+(t||0))};u.insertMultiple=function(e,t,n,i){n=n||"normal";i=i||0;var s,o,u=this._parseTimeOrLabel(t||0,true),a=e.length;for(s=0;s=r){this._totalTime=this._time=r;if(!this._reversed)if(!this._hasPausedChild()){l=true;h="onComplete";if(this._duration===0)if(e===0||this._rawPrevTime<0)if(this._rawPrevTime!==e){n=true}}this._rawPrevTime=e;e=r+1e-6}else if(e<=0){this._totalTime=this._time=0;if(i!==0||this._duration===0&&this._rawPrevTime>0){h="onReverseComplete";l=this._reversed}if(e<0){this._active=false;if(this._duration===0)if(this._rawPrevTime>=0){n=true}}else if(!this._initted){n=true}this._rawPrevTime=e;e=-1e-6}else{this._totalTime=this._time=this._rawPrevTime=e}if(this._time===i&&!n){return}else if(!this._initted){this._initted=true}if(i===0)if(this.vars.onStart)if(this._time!==0)if(!t){this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||s)}if(this._time>i){f=this._first;while(f){c=f._next;if(this._paused&&!a){break}else if(f._active||f._startTime<=this._time&&!f._paused&&!f._gc){if(!f._reversed){f.render((e-f._startTime)*f._timeScale,t,false)}else{f.render((!f._dirty?f._totalDuration:f.totalDuration())-(e-f._startTime)*f._timeScale,t,false)}}f=c}}else{f=this._last;while(f){c=f._prev;if(this._paused&&!a){break}else if(f._active||f._startTime<=i&&!f._paused&&!f._gc){if(!f._reversed){f.render((e-f._startTime)*f._timeScale,t,false)}else{f.render((!f._dirty?f._totalDuration:f.totalDuration())-(e-f._startTime)*f._timeScale,t,false)}}f=c}}if(this._onUpdate)if(!t){this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||s)}if(h)if(!this._gc)if(o===this._startTime||u!=this._timeScale)if(this._time===0||r>=this.totalDuration()){if(l){if(this._timeline.autoRemoveChildren){this._enabled(false,false)}this._active=false}if(!t)if(this.vars[h]){this.vars[h].apply(this.vars[h+"Scope"]||this,this.vars[h+"Params"]||s)}}};u._hasPausedChild=function(){var e=this._first;while(e){if(e._paused||e instanceof r&&e._hasPausedChild()){return true}e=e._next}return false};u.getChildren=function(e,t,r,i){i=i||-9999999999;var s=[],o=this._first,u=0;while(o){if(o._startTime-1){if(r[i].timeline===this||t&&this._contains(r[i])){s[o++]=r[i]}}return s};u._contains=function(e){var t=e.timeline;while(t){if(t===this){return true}t=t.timeline}return false};u.shiftChildren=function(e,t,n){n=n||0;var r=this._first;while(r){if(r._startTime>=n){r._startTime+=e}r=r._next}if(t){for(var i in this._labels){if(this._labels[i]>=n){this._labels[i]+=e}}}return this._uncache(true)};u._kill=function(e,t){if(e==null)if(t==null){return this._enabled(false,false)}var n=t==null?this.getChildren(true,true,false):this.getTweensOf(t),r=n.length,i=false;while(--r>-1){if(n[r]._kill(e,t)){i=true}}return i};u.clear=function(e){var t=this.getChildren(false,true,true),n=t.length;this._time=this._totalTime=0;while(--n>-1){t[n]._enabled(false,false)}if(e!=false){this._labels={}}return this._uncache(true)};u.invalidate=function(){var e=this._first;while(e){e.invalidate();e=e._next}return this};u._enabled=function(e,n){if(e==this._gc){var r=this._first;while(r){r._enabled(e,true);r=r._next}}return t.prototype._enabled.call(this,e,n)};u.progress=function(e){return!arguments.length?this._time/this.duration():this.totalTime(this.duration()*e,false)};u.duration=function(e){if(!arguments.length){if(this._dirty){this.totalDuration()}return this._duration}if(this.duration()!==0)if(e!==0){this.timeScale(this._duration/e)}return this};u.totalDuration=function(e){if(!arguments.length){if(this._dirty){var t=0,n=this._first,r=-999999999999,i,s;while(n){i=n._next;if(n._startTimet){t=s}n=i}this._duration=this._totalDuration=t;this._dirty=false}return this._totalDuration}if(this.totalDuration()!==0)if(e!==0){this.timeScale(this._totalDuration/e)}return this};u.usesFrames=function(){var t=this._timeline;while(t._timeline){t=t._timeline}return t===e._rootFramesTimeline};u.rawTime=function(){return this._paused||this._totalTime!==0&&this._totalTime!==this._totalDuration?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale};return r},true);_gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(e,t,n){var r=function(t){e.call(this,t);this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._cycle=0;this._yoyo=this.vars.yoyo==true;this._dirty=true},i=[],s=new n(null,null,1,0),o=function(e){while(e){if(e._paused){return true}e=e._timeline}return false},u=r.prototype=new e;u.constructor=r;u.kill()._gc=false;r.version=12;u.invalidate=function(){this._yoyo=this.vars.yoyo==true;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._uncache(true);return e.prototype.invalidate.call(this)};u.addCallback=function(e,n,r,i){return this.insert(t.delayedCall(0,e,r,i),n)};u.removeCallback=function(e,t){if(t==null){this._kill(null,e)}else{var n=this.getTweensOf(e,false),r=n.length,i=this._parseTimeOrLabel(t,false);while(--r>-1){if(n[r]._startTime===i){n[r]._enabled(false,false)}}}return this};u.tweenTo=function(e,n){n=n||{};var r={ease:s,overwrite:2,useFrames:this.usesFrames(),immediateRender:false},o,u;for(o in n){r[o]=n[o]}r.time=this._parseTimeOrLabel(e,false);u=new t(this,Math.abs(Number(r.time)-this._time)/this._timeScale||.001,r);r.onStart=function(){u.target.paused(true);if(u.vars.time!=u.target.time()){u.duration(Math.abs(u.vars.time-u.target.time())/u.target._timeScale)}if(n.onStart){n.onStart.apply(n.onStartScope||u,n.onStartParams||i)}};return u};u.tweenFromTo=function(e,t,n){n=n||{};n.startAt={time:this._parseTimeOrLabel(e,false)};var r=this.tweenTo(t,n);return r.duration(Math.abs(r.vars.time-r.vars.startAt.time)/this._timeScale||.001)};u.render=function(e,t,n){if(this._gc){this._enabled(true,false)}this._active=!this._paused;var r=!this._dirty?this._totalDuration:this.totalDuration(),s=this._time,o=this._totalTime,u=this._startTime,a=this._timeScale,f=this._rawPrevTime,l=this._paused,c=this._cycle,h,p,d,v,m;if(e>=r){if(!this._locked){this._totalTime=r;this._cycle=this._repeat}if(!this._reversed)if(!this._hasPausedChild()){p=true;m="onComplete";if(this._duration===0)if(e===0||this._rawPrevTime<0)if(this._rawPrevTime!==e){n=true}}this._rawPrevTime=e;if(this._yoyo&&(this._cycle&1)!==0){this._time=0;e=-1e-6}else{this._time=this._duration;e=this._duration+1e-6}}else if(e<=0){if(!this._locked){this._totalTime=this._cycle=0}this._time=0;if(s!==0||this._duration===0&&this._rawPrevTime>0){m="onReverseComplete";p=this._reversed}if(e<0){this._active=false;if(this._duration===0)if(this._rawPrevTime>=0){n=true}}else if(!this._initted){n=true}this._rawPrevTime=e;e=-1e-6}else{this._time=this._rawPrevTime=e;if(!this._locked){this._totalTime=e;if(this._repeat!==0){var g=this._duration+this._repeatDelay;this._cycle=this._totalTime/g>>0;if(this._cycle!==0)if(this._cycle===this._totalTime/g){this._cycle--}this._time=this._totalTime-this._cycle*g;if(this._yoyo)if((this._cycle&1)!=0){this._time=this._duration-this._time}if(this._time>this._duration){this._time=this._duration;e=this._duration+1e-6}else if(this._time<0){this._time=0;e=-1e-6}else{e=this._time}}}}if(this._cycle!==c)if(!this._locked){var y=this._yoyo&&(c&1)!==0,b=y===(this._yoyo&&(this._cycle&1)!==0),w=this._totalTime,E=this._cycle,S=this._rawPrevTime,x=this._time;this._totalTime=c*this._duration;if(this._cycles){h=this._first;while(h){d=h._next;if(this._paused&&!l){break}else if(h._active||h._startTime<=this._time&&!h._paused&&!h._gc){if(!h._reversed){h.render((e-h._startTime)*h._timeScale,t,false)}else{h.render((!h._dirty?h._totalDuration:h.totalDuration())-(e-h._startTime)*h._timeScale,t,false)}}h=d}}else{h=this._last;while(h){d=h._prev;if(this._paused&&!l){break}else if(h._active||h._startTime<=s&&!h._paused&&!h._gc){if(!h._reversed){h.render((e-h._startTime)*h._timeScale,t,false)}else{h.render((!h._dirty?h._totalDuration:h.totalDuration())-(e-h._startTime)*h._timeScale,t,false)}}h=d}}if(this._onUpdate)if(!t){this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||i)}if(m)if(!this._locked)if(!this._gc)if(u===this._startTime||a!=this._timeScale)if(this._time===0||r>=this.totalDuration()){if(p){if(this._timeline.autoRemoveChildren){this._enabled(false,false)}this._active=false}if(!t)if(this.vars[m]){this.vars[m].apply(this.vars[m+"Scope"]||this,this.vars[m+"Params"]||i)}}};u.getActive=function(e,t,n){if(e==null){e=true}if(t==null){t=true}if(n==null){n=false}var r=[],i=this.getChildren(e,t,n),s=0,u=i.length,a,f;for(a=0;a=f._startTime)if(f._timeline._timee){return t[r].name}}return null};u.getLabelBefore=function(e){if(e==null){e=this._time}var t=this.getLabelsArray(),n=t.length;while(--n>-1){if(t[n].timethis._duration){e=this._duration}if(this._yoyo&&(this._cycle&1)!==0){e=this._duration-e+this._cycle*(this._duration+this._repeatDelay)}else if(this._repeat!=0){e+=this._cycle*(this._duration+this._repeatDelay)}return this.totalTime(e,t)};u.repeat=function(e){if(!arguments.length){return this._repeat}this._repeat=e;return this._uncache(true)};u.repeatDelay=function(e){if(!arguments.length){return this._repeatDelay}this._repeatDelay=e;return this._uncache(true)};u.yoyo=function(e){if(!arguments.length){return this._yoyo}this._yoyo=e;return this};u.currentLabel=function(e){if(!arguments.length){return this.getLabelBefore(this._time+1e-8)}return this.seek(e,true)};return r},true);_gsDefine("plugins.BezierPlugin",["plugins.TweenPlugin"],function(e){var t=function(t,n){e.call(this,"bezier",-1);this._overwriteProps.pop();this._func={};this._round={}},n=t.prototype=new e("bezier",1),i=180/Math.PI,s=[],o=[],u=[],f={},c=function(t,n,r,i){this.a=t;this.b=n;this.c=r;this.d=i;this.da=i-t;this.ca=r-t;this.ba=n-t},h=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",p=t.bezierThrough=function(e,t,n,i,c,p){var d={},g=[],y,b;c=typeof c==="string"?","+c+",":h;if(t==null){t=1}for(b in e[0]){g.push(b)}s.length=o.length=u.length=0;y=g.length;while(--y>-1){b=g[y];f[b]=c.indexOf(","+b+",")!==-1;d[b]=v(e,b,f[b],p)}y=s.length;while(--y>-1){s[y]=Math.sqrt(s[y]);o[y]=Math.sqrt(o[y])}if(!i){y=g.length;while(--y>-1){if(f[b]){a=d[g[y]];l=a.length-1;for(j=0;j-1){u[y]=Math.sqrt(u[y])}}y=g.length;while(--y>-1){b=g[y];m(d[b],t,n,i,f[b])}return d},d=function(e,t,n){t=t||"soft";var r={},i=t==="cubic"?3:2,s=t==="soft",o=[],u,a,f,l,h,p,d,v,m,g,y;if(s&&n){e=[n].concat(e)}if(e==null||e.length-1){m=o[p];r[m]=h=[];g=0;v=e.length;for(d=0;d1)if(d-1){if(typeof (v=e[a][t])==="string")if(v.charAt(1)==="="){e[a][t]=r[t]+Number(v.charAt(0)+v.substr(2))}}}u=e.length-2;if(u<0){i[0]=new c(e[0][t],0,0,e[u<-1?0:1][t]);return i}for(a=0;a>0||6;var n=[],r=[],i=0,s=0,o=t-1,u=[],a=[],f,l,c,h;for(f in e){w(e[f],n,t)}c=n.length;for(l=0;l>0;u[h]=a;r[h]=s;i=0;a=[]}}return{length:s,lengths:r,segments:u}},w=function(e,t,n){var r=1/n,i=e.length,s,o,u,a,f,l,c,h,p,d,v;while(--i>-1){d=e[i];u=d.a;a=d.d-u;f=d.c-u;l=d.b-u;s=o=0;for(h=1;h<=n;h++){c=r*h;p=1-c;s=o-(o=(c*c*a+3*p*(c*f+p*l))*c);v=i*n+h-1;t[v]=(t[v]||0)+s*s}}};n.constructor=t;t.API=2;n._onInitTween=function(e,t,n){this._target=e;if(t instanceof Array){t={values:t}}this._props=[];this._timeRes=t.timeResolution==null?6:parseInt(t.timeResolution);var r=t.values||[],i={},s=r[0],o=t.autoRotate||n.vars.orientToBezier,u,a,f,l,c;this._autoRotate=o?o instanceof Array?o:[["x","y","rotation",o===true?0:Number(o)||0]]:null;for(u in s){this._props.push(u)}f=this._props.length;while(--f>-1){u=this._props[f];this._overwriteProps.push(u);a=this._func[u]=typeof e[u]==="function";i[u]=!a?parseFloat(e[u]):e[u.indexOf("set")||typeof e["get"+u.substr(3)]!=="function"?u:"get"+u.substr(3)]();if(!c)if(i[u]!==r[0][u]){c=i}}this._beziers=t.type!=="cubic"&&t.type!=="quadratic"&&t.type!=="soft"?p(r,isNaN(t.curviness)?1:t.curviness,false,t.type==="thruBasic",t.correlate,c):d(r,t.type,i);this._segCount=this._beziers[u].length;if(this._timeRes){var h=b(this._beziers,this._timeRes);this._length=h.length;this._lengths=h.lengths;this._segments=h.segments;this._l1=this._li=this._s1=this._si=0;this._l2=this._lengths[0];this._curSeg=this._segments[0];this._s2=this._curSeg[0];this._prec=1/this._curSeg.length}if(o=this._autoRotate){if(!(o[0]instanceof Array)){this._autoRotate=o=[o]}f=o.length;while(--f>-1){for(l=0;l<3;l++){u=o[f][l];this._func[u]=typeof e[u]==="function"?e[u.indexOf("set")||typeof e["get"+u.substr(3)]!=="function"?u:"get"+u.substr(3)]:false}}}return true};n.setRatio=function(e){var t=this._segCount,n=this._func,r=this._target,s,o,u,a,f,l,c,h,p,d;if(!this._timeRes){s=e<0?0:e>=1?t-1:t*e>>0;l=(e-s*(1/t))*t}else{p=this._lengths;d=this._curSeg;e*=this._length;u=this._li;if(e>this._l2&&u0){while(u>0&&(this._l1=p[--u])>=e){}if(u===0&&ethis._s2&&u0){while(u>0&&(this._s1=d[--u])>=e){}if(u===0&&e-1){a=this._props[u];f=this._beziers[a][s];c=(l*l*f.da+3*o*(l*f.ca+o*f.ba))*l+f.a;if(this._round[a]){c=c+(c>0?.5:-.5)>>0}if(n[a]){r[a](c)}else{r[a]=c}}if(this._autoRotate){var v=this._autoRotate,m,g,y,b,w,E,S;u=v.length;while(--u>-1){a=v[u][2];E=v[u][3]||0;S=v[u][4]==true?1:i;f=this._beziers[v[u][0]][s];m=this._beziers[v[u][1]][s];g=f.a+(f.b-f.a)*l;b=f.b+(f.c-f.b)*l;g+=(b-g)*l;b+=(f.c+(f.d-f.c)*l-b)*l;y=m.a+(m.b-m.a)*l;w=m.b+(m.c-m.b)*l;y+=(w-y)*l;w+=(m.c+(m.d-m.c)*l-w)*l;c=Math.atan2(w-y,b-g)*S+E;if(n[a]){n[a].call(r,c)}else{r[a]=c}}}};n._roundProps=function(e,t){var n=this._overwriteProps,r=n.length;while(--r>-1){if(e[n[r]]||e.bezier||e.bezierThrough){this._round[n[r]]=t}}};n._kill=function(t){var n=this._props,r,i;for(r in _beziers){if(r in t){delete this._beziers[r];delete this._func[r];i=n.length;while(--i>-1){if(n[i]===r){n.splice(i,1)}}}}return e.prototype._kill.call(this,t)};e.activate([t]);return t},true);_gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(e,t){"use strict";var n=function(){e.call(this,"css");this._overwriteProps.pop()},r=n.prototype=new e("css");r.constructor=n;n.API=2;n.suffixMap={top:"px",right:"px",bottom:"px",left:"px",width:"px",height:"px",fontSize:"px",padding:"px",margin:"px"};var i=/[^\d\-\.]/g,s=/(\d|\-|\+|=|#|\.)*/g,o=/(\d|\.)+/g,u=/opacity *= *([^)]*)/,a=/opacity:([^;]*)/,f=/([A-Z])/g,l=/-([a-z])/gi,c=function(e,t){return t.toUpperCase()},h=/(Left|Right|Width)/i,p=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,d=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,v=Math.PI/180,m=180/Math.PI,g={},y=document,b=y.createElement("div"),w=navigator.userAgent,E,S,x,T,N=function(){var e=w.indexOf("Android"),t=y.createElement("div"),n;x=w.indexOf("Safari")!==-1&&w.indexOf("Chrome")===-1&&(e===-1||Number(w.substr(e+8,1))>3);/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(w);T=parseFloat(RegExp.$1);t.innerHTML="a";n=t.getElementsByTagName("a")[0];return n?/^0.55/.test(n.style.opacity):false}(),C=function(e){if(!e||e===""){return V.black}else if(V[e]){return V[e]}else if(typeof e==="number"){return[e>>16,e>>8&255,e&255]}else if(e.charAt(0)==="#"){if(e.length===4){var t=e.charAt(1),n=e.charAt(2),r=e.charAt(3);e="#"+t+t+n+n+r+r}e=parseInt(e.substr(1),16);return[e>>16,e>>8&255,e&255]}else{return e.match(o)||V.transparent}},k=function(e){return u.test(typeof e==="string"?e:(e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100:1},L=y.defaultView?y.defaultView.getComputedStyle:function(e,t){},A=function(e,t,n,r){if(!N&&t==="opacity"){return k(e)}else if(!r&&e.style[t]){return e.style[t]}else if(n=n||L(e,null)){e=n.getPropertyValue(t.replace(f,"-$1").toLowerCase());return e||n.length?e:n[t]}else if(e.currentStyle){n=e.currentStyle,r=n[t];if(!r&&t==="backgroundPosition"){return n[t+"X"]+" "+n[t+"Y"]}return r}return null},O=function(e,t){var n={},r;if(t=t||L(e,null)){if(r=t.length){while(--r>-1){n[t[r].replace(l,c)]=t.getPropertyValue(t[r])}}else{for(r in t){n[r]=t[r]}}}else if(t=e.currentStyle||e.style){for(r in t){n[r.replace(l,c)]=t[r]}}if(!N){n.opacity=k(e)}var i=F(e,t,false);n.rotation=i.rotation*m;n.skewX=i.skewX*m;n.scaleX=i.scaleX;n.scaleY=i.scaleY;n.x=i.x;n.y=i.y;if(n.filters!=null){delete n.filters}return n},M=function(e,t,n,r){var s={},o,u;for(u in t){if(u!=="cssText")if(u!=="length")if(isNaN(u))if(e[u]!=(o=t[u]))if(o!==B)if(typeof o==="number"||typeof o==="string"){s[u]=(o===""||o==="auto")&&typeof e[u]==="string"&&e[u].replace(i,"")!==""?0:o;if(r){r.props.push(u)}}}if(n){for(u in n){if(u!=="className"){s[u]=n[u]}}}return s},_={scaleX:1,scaleY:1,x:1,y:1,rotation:1,shortRotation:1,skewX:1,skewY:1,scale:1},D="",P="",H=function(e,t){t=t||b;var n=t.style,r,i;if(n[e]!==undefined){return e}e=e.substr(0,1).toUpperCase()+e.substr(1);r=["O","Moz","ms","Ms","Webkit"];i=5;while(--i>-1&&n[r[i]+e]===undefined){}if(i>=0){P=i===3?"ms":r[i];D="-"+P.toLowerCase()+"-";return P+e}return null},B=H("transform"),j=D+"transform",F=function(e,t,n){var r=e._gsTransform,i;if(B){i=A(e,j,t,true)}else if(e.currentStyle){i=e.currentStyle.filter.match(p);i=i&&i.length===4?i[0].substr(4)+","+Number(i[2].substr(4))+","+Number(i[1].substr(4))+","+i[3].substr(4)+","+(r?r.x:0)+","+(r?r.y:0):null}var s=(i||"").replace(/[^\d\-\.e,]/g,"").split(","),o=s.length>=6,u=o?Number(s[0]):1,a=o?Number(s[1]):0,f=o?Number(s[2]):0,l=o?Number(s[3]):1,c=1e-6,h=n?r||{skewY:0}:{skewY:0},d=h.scaleX<0;h.x=o?Number(s[4]):0;h.y=o?Number(s[5]):0;h.scaleX=Math.sqrt(u*u+a*a);h.scaleY=Math.sqrt(l*l+f*f);h.rotation=u||a?Math.atan2(a,u):h.rotation||0;h.skewX=f||l?Math.atan2(f,l)+h.rotation:h.skewX||0;if(Math.abs(h.skewX)>Math.PI/2){if(d){h.scaleX*=-1;h.skewX+=h.rotation<=0?Math.PI:-Math.PI;h.rotation+=h.rotation<=0?Math.PI:-Math.PI}else{h.scaleY*=-1;h.skewX+=h.skewX<=0?Math.PI:-Math.PI}}if(h.rotation-c)if(u||a){h.rotation=0}if(h.skewX-c)if(a||f){h.skewX=0}if(n){e._gsTransform=h}return h},I={width:["Left","Right"],height:["Top","Bottom"]},q=["marginLeft","marginRight","marginTop","marginBottom"],R=function(e,t,n){var r=parseFloat(e==="width"?t.offsetWidth:t.offsetHeight),i=I[e],s=i.length,n=n||L(t,null);while(--s>-1){r-=parseFloat(A(t,"padding"+i[s],n,true))||0;r-=parseFloat(A(t,"border"+i[s]+"Width",n,true))||0}return r},U=function(e,t,n,r,i){if(r==="px"||!r){return n}if(r==="auto"||!n){return 0}var s=h.test(t),o=e,u=b.style,a=n<0;if(a){n=-n}u.cssText="border-style:solid; border-width:0; position:absolute; line-height:0;";if(r==="%"||r==="em"||!o.appendChild){o=e.parentNode||y.body;u[s?"width":"height"]=n+r}else{u[s?"borderLeftWidth":"borderTopWidth"]=n+r}o.appendChild(b);var f=parseFloat(b[s?"offsetWidth":"offsetHeight"]);o.removeChild(b);if(f===0&&!i){f=U(e,t,n,r,true)}return a?-f:f},z=function(e,t){if(e==null||e===""||e==="auto"||e==="auto auto"){e="0 0"}t=t||{};var n=e.indexOf("left")!==-1?"0%":e.indexOf("right")!==-1?"100%":e.split(" ")[0],r=e.indexOf("top")!==-1?"0%":e.indexOf("bottom")!==-1?"100%":e.split(" ")[1];if(r==null){r="0"}else if(r==="center"){r="50%"}if(n==="center"){n="50%"}t.oxp=n.indexOf("%")!==-1;t.oyp=r.indexOf("%")!==-1;t.oxr=n.charAt(1)==="=";t.oyr=r.charAt(1)==="=";t.ox=parseFloat(n.replace(i,""));t.oy=parseFloat(r.replace(i,""));return t},W=function(e,t){return e==null?t:typeof e==="string"&&e.indexOf("=")===1?Number(e.split("=").join(""))+t:Number(e)},X=function(e,t){var n=e.indexOf("rad")===-1?v:1,r=e.indexOf("=")===1;e=Number(e.replace(i,""))*n;return r?e+t:e},V={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]};r._onInitTween=function(e,t,r){if(!e.nodeType){return false}this._target=e;this._tween=r;this._classData=this._transform=null;E=t.autoRound;var i=this._style=e.style,s=L(e,""),o,u,f;if(S)if(i.zIndex===""){f=A(e,"zIndex",s);if(f==="auto"||f===""){i.zIndex=0}}if(typeof t==="string"){o=i.cssText;u=O(e,s);i.cssText=o+";"+t;f=M(u,O(e));if(!N&&a.test(t)){f.opacity=parseFloat(RegExp.$1)}t=f;i.cssText=o}else if(t.className){o=e.className;this._classData={b:o,e:t.className.charAt(1)!=="="?t.className:t.className.charAt(0)==="+"?e.className+" "+t.className.substr(2):e.className.split(t.className.substr(2)).join(""),props:[]};if(r._duration){u=O(e,s);e.className=this._classData.e;t=M(u,O(e),t,this._classData);e.className=o}else{t={}}}this._parseVars(t,e,s,t.suffixMap||n.suffixMap);return true};r._parseVars=function(e,t,n,r){var o=this._style,u,a,f,l,c,h,p,d,v,m,g,y;for(u in e){a=e[u];if(u==="transform"||u===B){this._parseTransform(t,a,n,r);continue}else if(_[u]||u==="transformOrigin"){this._parseTransform(t,e,n,r);continue}else if(u==="alpha"||u==="autoAlpha"){u="opacity"}else if(u==="margin"||u==="padding"){g=(a+"").split(" ");v=g.length;f={};f[u+"Top"]=g[0];f[u+"Right"]=v>1?g[1]:g[0];f[u+"Bottom"]=v===4?g[2]:g[0];f[u+"Left"]=v===4?g[3]:v===2?g[1]:g[0];this._parseVars(f,t,n,r);continue}else if(u==="backgroundPosition"||u==="backgroundSize"){f=z(a);m=z(l=A(t,u,n));this._firstPT=f={_next:this._firstPT,t:o,p:u,b:l,f:false,n:"css_"+u,type:3,s:m.ox,c:f.oxr?f.ox:f.ox-m.ox,ys:m.oy,yc:f.oyr?f.oy:f.oy-m.oy,sfx:f.oxp?"%":"px",ysfx:f.oyp?"%":"px",r:!f.oxp&&e.autoRound!==false};f.e=f.s+f.c+f.sfx+" "+(f.ys+f.yc)+f.ysfx;continue}else if(u==="border"){g=(a+"").split(" ");this._parseVars({borderWidth:g[0],borderStyle:g[1]||"none",borderColor:g[2]||"#000000"},t,n,r);continue}else if(u==="bezier"){this._parseBezier(a,t,n,r);continue}else if(u==="autoRound"){continue}l=A(t,u,n);l=l!=null?l+"":"";this._firstPT=f={_next:this._firstPT,t:o,p:u,b:l,f:false,n:"css_"+u,sfx:"",r:false,type:0};if(u==="opacity")if(e.autoAlpha!=null){if(l==="1")if(A(t,"visibility",n)==="hidden"){l=f.b="0"}this._firstPT=f._prev={_next:f,t:o,p:"visibility",f:false,n:"css_visibility",r:false,type:-1,b:Number(l)!==0?"visible":"hidden",i:"visible",e:Number(a)===0?"hidden":"visible"};this._overwriteProps.push("css_visibility")}y=typeof a==="string";if(u==="color"||u==="fill"||u==="stroke"||u.indexOf("Color")!==-1||y&&!a.indexOf("rgb(")){c=C(l);h=C(a);f.e=f.i=(h.length>3?"rgba(":"rgb(")+h.join(",")+")";f.b=(c.length>3?"rgba(":"rgb(")+c.join(",")+")";f.s=Number(c[0]);f.c=Number(h[0])-f.s;f.gs=Number(c[1]);f.gc=Number(h[1])-f.gs;f.bs=Number(c[2]);f.bc=Number(h[2])-f.bs;f.type=1;if(c.length>3||h.length>3){if(N){f.as=c.length<4?1:Number(c[3]);f.ac=(h.length<4?1:Number(h[3]))-f.as;f.type=2}else{if(h[3]==0){f.e=f.i="transparent";f.type=-1}if(c[3]==0){f.b="transparent"}}}}else{p=l.replace(s,"");if(l===""||l==="auto"){if(u==="width"||u==="height"){m=R(u,t,n);p="px"}else{m=u!=="opacity"?0:1;p=""}}else{m=l.indexOf(" ")===-1?parseFloat(l.replace(i,"")):NaN}if(y){v=a.charAt(1)==="=";d=a.replace(s,"");a=a.indexOf(" ")===-1?parseFloat(a.replace(i,"")):NaN}else{v=false;d=""}if(d===""){d=r[u]||p}f.e=a||a===0?(v?a+m:a)+d:e[u];if(p!==d)if(d!=="")if(a||a===0)if(m||m===0){m=U(t,u,m,p);if(d==="%"){m/=U(t,u,100,"%")/100;if(m>100){m=100}}else if(d==="em"){m/=U(t,u,1,"em")}else{a=U(t,u,a,d);d="px"}if(v)if(a||a===0){f.e=a+m+d}}if((m||m===0)&&(a||a===0)&&(f.c=v?a:a-m)){f.s=m;f.sfx=d;if(u==="opacity"){if(!N){f.type=4;f.p="filter";f.b="alpha(opacity="+f.s*100+")";f.e="alpha(opacity="+(f.s+f.c)*100+")";f.dup=e.autoAlpha!=null;this._style.zoom=1}}else if(E!==false&&(d==="px"||u==="zIndex")){f.r=true}}else{f.type=-1;f.i=u==="display"&&f.e==="none"?f.b:f.e;f.s=f.c=0}}this._overwriteProps.push("css_"+u);if(f._next){f._next._prev=f}}};r._parseTransform=function(e,t,n,r){if(this._transform){return}var i=this._transform=F(e,n,true),s=this._style,o=1e-6,u,a,f,l,c,h;if(typeof t==="object"){u={scaleX:W(t.scaleX!=null?t.scaleX:t.scale,i.scaleX),scaleY:W(t.scaleY!=null?t.scaleY:t.scale,i.scaleY),x:W(t.x,i.x),y:W(t.y,i.y)};if(t.shortRotation!=null){u.rotation=typeof t.shortRotation==="number"?t.shortRotation*v:X(t.shortRotation,i.rotation);var p=(u.rotation-i.rotation)%(Math.PI*2);if(p!==p%Math.PI){p+=Math.PI*(p<0?2:-2)}u.rotation=i.rotation+p}else{u.rotation=t.rotation==null?i.rotation:typeof t.rotation==="number"?t.rotation*v:X(t.rotation,i.rotation)}u.skewX=t.skewX==null?i.skewX:typeof t.skewX==="number"?t.skewX*v:X(t.skewX,i.skewX);u.skewY=t.skewY==null?i.skewY:typeof t.skewY==="number"?t.skewY*v:X(t.skewY,i.skewY);if(a=u.skewY-i.skewY){u.skewX+=a;u.rotation+=a}if(u.skewY-o){u.skewY=0}if(u.skewX-o){u.skewX=0}if(u.rotation-o){u.rotation=0}if((h=t.transformOrigin)!=null){if(B){f=B+"Origin";this._firstPT=l={_next:this._firstPT,t:s,p:f,s:0,c:0,n:f,f:false,r:false,b:s[f],e:h,i:h,type:-1,sfx:""};if(l._next){l._next._prev=l}}else{z(h,i)}}}else if(typeof t==="string"&&B){c=s[B];s[B]=t;u=F(e,null,false);s[B]=c}else{return}if(!B){s.zoom=1}else if(x){S=true;if(s.WebkitBackfaceVisibility===""){s.WebkitBackfaceVisibility="hidden"}if(s.zIndex===""){c=A(e,"zIndex",n);if(c==="auto"||c===""){s.zIndex=0}}}for(f in _){if(i[f]!==u[f]||g[f]!=null)if(f!=="shortRotation")if(f!=="scale"){this._firstPT=l={_next:this._firstPT,t:i,p:f,s:i[f],c:u[f]-i[f],n:f,f:false,r:false,b:i[f],e:u[f],type:0,sfx:0};if(l._next){l._next._prev=l}this._overwriteProps.push("css_"+f)}}};r._parseBezier=function(e,t,n,r){if(!window.com.greensock.plugins.BezierPlugin){console.log("Error: BezierPlugin not loaded.");return}if(e instanceof Array){e={values:e}}var i=e.values||[],s=i.length,o=[],u=this._bezier={_pt:[]},a=u._proxy={},f=0,l=0,c={},h=s-1,p=g,d=u._plugin=new window.com.greensock.plugins.BezierPlugin,v,m,y,b,w,E;for(m=0;m-1){t=f[o];t.s=l[t.p];if(t.type===1||t.type===2){t.gs=l[t.p+"_g"];t.bs=l[t.p+"_b"];if(t.type===2){t.as=l[t.p+"_a"]}}else if(t.type===3){t.ys=l[t.p+"_y"]}}if(n._autoRotate){this._transform.rotation=l.rotation}}if(e===1&&(this._tween._time===this._tween._duration||this._tween._time===0)){while(t){t.t[t.p]=t.e;if(t.type===4)if(t.s+t.c===1){this._style.removeAttribute("filter");if(A(this._target,"filter")){t.t[t.p]=t.e}}t=t._next}}else if(e||!(this._tween._time===this._tween._duration||this._tween._time===0)){while(t){i=t.c*e+t.s;if(t.r){i=i>0?i+.5>>0:i-.5>>0}else if(i-r){i=0}if(!t.type){t.t[t.p]=i+t.sfx}else if(t.type===1){t.t[t.p]="rgb("+(i>>0)+", "+(t.gs+e*t.gc>>0)+", "+(t.bs+e*t.bc>>0)+")"}else if(t.type===2){t.t[t.p]="rgba("+(i>>0)+", "+(t.gs+e*t.gc>>0)+", "+(t.bs+e*t.bc>>0)+", "+(t.as+e*t.ac)+")"}else if(t.type===-1){t.t[t.p]=t.i}else if(t.type===3){a=t.ys+e*t.yc;if(t.r){a=a>0?a+.5>>0:a-.5>>0}t.t[t.p]=i+t.sfx+" "+a+t.ysfx}else{if(t.dup){t.t.filter=t.t.filter||"alpha(opacity=100)"}if(t.t.filter.indexOf("opacity")===-1){t.t.filter+=" alpha(opacity="+(i*100>>0)+")"}else{t.t.filter=t.t.filter.replace(u,"opacity="+(i*100>>0))}}t=t._next}}else{while(t){t.t[t.p]=t.b;if(t.type===4)if(t.s===1){this._style.removeAttribute("filter");if(A(this._target,"filter")){t.t[t.p]=t.b}}t=t._next}}if(this._transform){t=this._transform;if(B&&!t.rotation&&!t.skewX){this._style[B]=(t.x||t.y?"translate("+t.x+"px,"+t.y+"px) ":"")+(t.scaleX!==1||t.scaleY!==1?"scale("+t.scaleX+","+t.scaleY+")":"")||"translate(0px,0px)"}else{var c=B?t.rotation:-t.rotation,h=B?c-t.skewX:c+t.skewX,p=Math.cos(c)*t.scaleX,v=Math.sin(c)*t.scaleX,m=Math.sin(h)*-t.scaleY,g=Math.cos(h)*t.scaleY,y;if(p-r){p=0}if(v-r){v=0}if(m-r){m=0}if(g-r){g=0}if(B){this._style[B]="matrix("+p+","+v+","+m+","+g+","+t.x+","+t.y+")"}else if(y=this._target.currentStyle){r=v;v=-m;m=-r;var b=y.filter;this._style.filter="";var w=this._target.offsetWidth,E=this._target.offsetHeight,S=y.position!=="absolute",x="progid:DXImageTransform.Microsoft.Matrix(M11="+p+", M12="+v+", M21="+m+", M22="+g,N=t.x,C=t.y,k,L;if(t.ox!=null){k=(t.oxp?w*t.ox*.01:t.ox)-w/2;L=(t.oyp?E*t.oy*.01:t.oy)-E/2;N=k-(k*p+L*v)+t.x;C=L-(k*m+L*g)+t.y}if(!S){var O=T<8?1:-1,M,_,D;k=t.ieOffsetX||0;L=t.ieOffsetY||0;t.ieOffsetX=Math.round((w-((p<0?-p:p)*w+(v<0?-v:v)*E))/2+N);t.ieOffsetY=Math.round((E-((g<0?-g:g)*E+(m<0?-m:m)*w))/2+C);for(o=0;o<4;o++){_=q[o];M=y[_];i=M.indexOf("px")!==-1?parseFloat(M):U(this._target,_,parseFloat(M),M.replace(s,""))||0;if(i!==t[_]){D=o<2?-t.ieOffsetX:-t.ieOffsetY}else{D=o<2?k-t.ieOffsetX:L-t.ieOffsetY}this._style[_]=(t[_]=Math.round(i-D*(o===0||o===2?1:O)))+"px"}x+=", sizingMethod='auto expand')"}else{k=w/2,L=E/2;x+=", Dx="+(k-(k*p+L*v)+N)+", Dy="+(L-(k*m+L*g)+C)+")"}if(b.indexOf("DXImageTransform.Microsoft.Matrix(")!==-1){this._style.filter=b.replace(d,x)}else{this._style.filter=x+" "+b}if(e===0||e===1)if(p===1)if(v===0)if(m===0)if(g===1)if(!S||x.indexOf("Dx=0, Dy=0")!==-1)if(!u.test(b)||parseFloat(RegExp.$1)===100){this._style.removeAttribute("filter")}}}}if(this._classData){t=this._classData;if(e===1&&(this._tween._time===this._tween._duration||this._tween._time===0)){var o=t.props.length;while(--o>-1){this._style[t.props[o]]=""}this._target.className=t.e}else if(this._target.className!==t.b){this._target.className=t.b}}};r._kill=function(t){var n=t,r;if(t.autoAlpha||t.alpha){n={};for(r in t){n[r]=t[r]}n.opacity=1;if(n.autoAlpha){n.visibility=1}}return e.prototype._kill.call(this,n)};e.activate([n]);return n},true);_gsDefine("plugins.RoundPropsPlugin",["plugins.TweenPlugin"],function(e){var t=function(t,n){e.call(this,"roundProps",-1);this._overwriteProps.length=0},n=t.prototype=new e("roundProps",-1);n.constructor=t;t.API=2;n._onInitTween=function(e,t,n){this._tween=n;return true};n._onInitAllProps=function(){var e=this._tween,t=e.vars.roundProps instanceof Array?e.vars.roundProps:e.vars.roundProps.split(","),n=t.length,r={},i=e._propLookup.roundProps,s,o,u;while(--n>-1){r[t[n]]=1}n=t.length;while(--n>-1){s=t[n];o=e._firstPT;while(o){u=o._next;if(o.pg){o.t._roundProps(r,true)}else if(o.n===s){this._add(o.t,s,o.s,o.c);if(u){u._prev=o._prev}if(o._prev){o._prev._next=u}else if(_tween._firstPT===o){e._firstPT=u}o._next=o._prev=null;e._propLookup[s]=i}o=u}}return false};n._add=function(e,t,n,r){this._addTween(e,t,n,n+r,t,true);this._overwriteProps.push(t)};e.activate([t]);return t},true);_gsDefine("easing.Back",["easing.Ease"],function(e){var t=window.com.greensock,n=t._class,r=function(t,r){var i=n("easing."+t,function(){},true),s=i.prototype=new e;s.constructor=i;s.getRatio=r;return i},i=function(t,r){var i=n("easing."+t,function(e){this._p1=e||e===0?e:1.70158;this._p2=this._p1*1.525},true),s=i.prototype=new e;s.constructor=i;s.getRatio=r;s.config=function(e){return new i(e)};return i},s=i("BackOut",function(e){return(e=e-1)*e*((this._p1+1)*e+this._p1)+1}),o=i("BackIn",function(e){return e*e*((this._p1+1)*e-this._p1)}),u=i("BackInOut",function(e){return(e*=2)<1?.5*e*e*((this._p2+1)*e-this._p2):.5*((e-=2)*e*((this._p2+1)*e+this._p2)+2)}),a=r("BounceOut",function(e){if(e<1/2.75){return 7.5625*e*e}else if(e<2/2.75){return 7.5625*(e-=1.5/2.75)*e+.75}else if(e<2.5/2.75){return 7.5625*(e-=2.25/2.75)*e+.9375}else{return 7.5625*(e-=2.625/2.75)*e+.984375}}),f=r("BounceIn",function(e){if((e=1-e)<1/2.75){return 1-7.5625*e*e}else if(e<2/2.75){return 1-(7.5625*(e-=1.5/2.75)*e+.75)}else if(e<2.5/2.75){return 1-(7.5625*(e-=2.25/2.75)*e+.9375)}else{return 1-(7.5625*(e-=2.625/2.75)*e+.984375)}}),l=r("BounceInOut",function(e){var t=e<.5;if(t){e=1-e*2}else{e=e*2-1}if(e<1/2.75){e=7.5625*e*e}else if(e<2/2.75){e=7.5625*(e-=1.5/2.75)*e+.75}else if(e<2.5/2.75){e=7.5625*(e-=2.25/2.75)*e+.9375}else{e=7.5625*(e-=2.625/2.75)*e+.984375}return t?(1-e)*.5:e*.5+.5}),c=r("CircOut",function(e){return Math.sqrt(1-(e=e-1)*e)}),h=r("CircIn",function(e){return-(Math.sqrt(1-e*e)-1)}),p=r("CircInOut",function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}),d=Math.PI*2,v=function(t,r,i){var s=n("easing."+t,function(e,t){this._p1=e||1;this._p2=t||i;this._p3=this._p2/d*(Math.asin(1/this._p1)||0)},true),o=s.prototype=new e;o.constructor=s;o.getRatio=r;o.config=function(e,t){return new s(e,t)};return s},m=v("ElasticOut",function(e){return this._p1*Math.pow(2,-10*e)*Math.sin((e-this._p3)*d/this._p2)+1},.3),g=v("ElasticIn",function(e){return-(this._p1*Math.pow(2,10*(e-=1))*Math.sin((e-this._p3)*d/this._p2))},.3),y=v("ElasticInOut",function(e){return(e*=2)<1?-.5*this._p1*Math.pow(2,10*(e-=1))*Math.sin((e-this._p3)*d/this._p2):this._p1*Math.pow(2,-10*(e-=1))*Math.sin((e-this._p3)*d/this._p2)*.5+1},.45),b=r("ExpoOut",function(e){return 1-Math.pow(2,-10*e)}),w=r("ExpoIn",function(e){return Math.pow(2,10*(e-1))-.001}),E=r("ExpoInOut",function(e){return(e*=2)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*(e-1)))}),S=Math.PI/2,x=r("SineOut",function(e){return Math.sin(e*S)}),T=r("SineIn",function(e){return-Math.cos(e*S)+1}),N=r("SineInOut",function(e){return-.5*(Math.cos(Math.PI*e)-1)}),C=n("easing.SlowMo",function(e,t,n){t=t||t===0?t:.7;if(e==null){e=.7}else if(e>1){e=1}this._p=e!=1?t:0;this._p1=(1-e)/2;this._p2=e;this._p3=this._p1+this._p2;this._calcEnd=n===true},true),k=C.prototype=new e;k.constructor=C;k.getRatio=function(e){var t=e+(.5-e)*this._p;if(ethis._p3){return this._calcEnd?1-(e=(e-this._p3)/this._p1)*e:t+(e-t)*(e=(e-this._p3)/this._p1)*e*e*e}return this._calcEnd?1:t};C.ease=new C(.7,.7);k.config=C.config=function(e,t,n){return new C(e,t,n)};var L=n("easing.SteppedEase",function(e){e=e||1;this._p1=1/e;this._p2=e+1},true);k=L.prototype=new e;k.constructor=L;k.getRatio=function(e){if(e<0){e=0}else if(e>=1){e=.999999999}return(this._p2*e>>0)*this._p1};k.config=L.config=function(e){return new L(e)};n("easing.Bounce",{easeOut:new a,easeIn:new f,easeInOut:new l},true);n("easing.Circ",{easeOut:new c,easeIn:new h,easeInOut:new p},true);n("easing.Elastic",{easeOut:new m,easeIn:new g,easeInOut:new y},true);n("easing.Expo",{easeOut:new b,easeIn:new w,easeInOut:new E},true);n("easing.Sine",{easeOut:new x,easeIn:new T,easeInOut:new N},true);return{easeOut:new s,easeIn:new o,easeInOut:new u}},true)});(function(e){"use strict";var t=function(t){var n=t.split("."),r=e,i;for(i=0;i-1){if((h=f[o[a]]||new l(o[a])).gsClass){u[a]=h.gsClass}else{c++;if(r){h.sc.push(this)}}}if(c===0&&i){var p=("com.greensock."+n).split("."),d=p.pop(),v=t(p.join("."))[d]=this.gsClass=i.apply(i,u);if(s){(e.GreenSockGlobals||e)[d]=v;if(typeof define==="function"&&define.amd){define((e.GreenSockAMDPath?e.GreenSockAMDPath+"/":"")+n.split(".").join("/"),[],function(){return v})}else if(typeof module!=="undefined"&&module.exports){module.exports=v}}for(a=0;a-1){s=c("easing."+r[i],function(){},true);o=c("easing.Power"+i,function(){},true);s.easeOut=o.easeOut=new d(null,null,1,i);s.easeIn=o.easeIn=new d(null,null,2,i);s.easeInOut=o.easeInOut=new d(null,null,3,i)}c("easing.Strong",n.easing.Power4,true);n.easing.Linear.easeNone=n.easing.Linear.easeIn;u=c("events.EventDispatcher",function(e){this._listeners={};this._eventTarget=e||this}).prototype;u.addEventListener=function(e,t,n,r,i){i=i||0;var s=this._listeners[e],o=0,u,a;if(s==null){this._listeners[e]=s=[]}a=s.length;while(--a>-1){u=s[a];if(u.c===t){s.splice(a,1)}else if(o===0&&u.pr-1){if(n[r].c===t){n.splice(r,1);return}}}};u.dispatchEvent=function(e){var t=this._listeners[e];if(t){var n=t.length,r,i=this._eventTarget;while(--n>-1){r=t[n];if(r.up){r.c.call(r.s||i,{type:e,target:i})}else{r.c.call(r.s||i)}}}};var v=e.requestAnimationFrame,m=e.cancelAnimationFrame,g=Date.now||function(){return(new Date).getTime()};r=["ms","moz","webkit","o"];i=r.length;while(--i>-1&&!v){v=e[r[i]+"RequestAnimationFrame"];m=e[r[i]+"CancelAnimationFrame"]||e[r[i]+"CancelRequestAnimationFrame"]}if(!m){m=function(t){e.clearTimeout(t)}}c("Ticker",function(t,n){this.time=0;this.frame=0;var r=this,i=g(),s=n!==false,o,u,a,f,l;this.tick=function(){r.time=(g()-i)/1e3;if(!o||r.time>=l){r.frame++;l=r.time+f-(r.time-l)-5e-4;if(l<=r.time){l=r.time+.001}r.dispatchEvent("tick")}a=u(r.tick)};this.fps=function(t){if(!arguments.length){return o}o=t;f=1/(o||60);l=this.time+f;u=o===0?function(e){}:!s||!v?function(t){return e.setTimeout(t,(l-r.time)*1e3+1>>0||1)}:v;m(a);a=u(r.tick)};this.useRAF=function(e){if(!arguments.length){return s}s=e;this.fps(o)};this.fps(t)});u=n.Ticker.prototype=new n.events.EventDispatcher;u.constructor=n.Ticker;var y=c("core.Animation",function(e,t){this.vars=t||{};this._duration=this._totalDuration=e||0;this._delay=Number(this.vars.delay)||0;this._timeScale=1;this._active=this.vars.immediateRender==true;this.data=this.vars.data;this._reversed=this.vars.reversed==true;if(!L){return}if(!a){b.tick();a=true}var n=this.vars.useFrames?k:L;n.insert(this,n._time);if(this.vars.paused){this.paused(true)}}),b=y.ticker=new n.Ticker;u=y.prototype;u._dirty=u._gc=u._initted=u._paused=false;u._totalTime=u._time=0;u._rawPrevTime=-1;u._next=u._last=u._onUpdate=u._timeline=u.timeline=null;u._paused=false;u.play=function(e,t){if(arguments.length){this.seek(e,t)}this.reversed(false);return this.paused(false)};u.pause=function(e,t){if(arguments.length){this.seek(e,t)}return this.paused(true)};u.resume=function(e,t){if(arguments.length){this.seek(e,t)}return this.paused(false)};u.seek=function(e,t){return this.totalTime(Number(e),t!=false)};u.restart=function(e,t){this.reversed(false);this.paused(false);return this.totalTime(e?-this._delay:0,t!=false)};u.reverse=function(e,t){if(arguments.length){this.seek(e||this.totalDuration(),t)}this.reversed(true);return this.paused(false)};u.render=function(){};u.invalidate=function(){return this};u._enabled=function(e,t){this._gc=!e;this._active=e&&!this._paused&&this._totalTime>0&&this._totalTime-1){if(n[i]==="{self}"){n=this.vars[e+"Params"]=n.concat();n[i]=this}}}}if(e==="onUpdate"){this._onUpdate=t}}return this};u.delay=function(e){if(!arguments.length){return this._delay}if(this._timeline.smoothChildTiming){this.startTime(this._startTime+e-this._delay)}this._delay=e;return this};u.duration=function(e){if(!arguments.length){this._dirty=false;return this._duration}this._duration=this._totalDuration=e;this._uncache(true);if(this._timeline.smoothChildTiming)if(this._active)if(e!=0){this.totalTime(this._totalTime*(e/this._duration),true)}return this};u.totalDuration=function(e){this._dirty=false;return!arguments.length?this._totalDuration:this.duration(e)};u.time=function(e,t){if(!arguments.length){return this._time}if(this._dirty){this.totalDuration()}if(e>this._duration){e=this._duration}return this.totalTime(e,t)};u.totalTime=function(e,t){if(!arguments.length){return this._totalTime}if(this._timeline){if(e<0){e+=this.totalDuration()}if(this._timeline.smoothChildTiming){if(this._dirty){this.totalDuration()}if(e>this._totalDuration){e=this._totalDuration}this._startTime=(this._paused?this._pauseTime:this._timeline._time)-(!this._reversed?e:this._totalDuration-e)/this._timeScale;if(!this._timeline._dirty){this._uncache(false)}if(!this._timeline._active){var n=this._timeline;while(n._timeline){n.totalTime(n._totalTime,true);n=n._timeline}}}if(this._gc){this._enabled(true,false)}if(this._totalTime!=e){this.render(e,t,false)}}return this};u.startTime=function(e){if(!arguments.length){return this._startTime}if(e!=this._startTime){this._startTime=e;if(this.timeline)if(this.timeline._sortChildren){this.timeline.insert(this,e-this._delay)}}return this};u.timeScale=function(e){if(!arguments.length){return this._timeScale}e=e||1e-6;if(this._timeline&&this._timeline.smoothChildTiming){var t=this._pauseTime||this._pauseTime==0?this._pauseTime:this._timeline._totalTime;this._startTime=t-(t-this._startTime)*this._timeScale/e}this._timeScale=e;return this._uncache(false)};u.reversed=function(e){if(!arguments.length){return this._reversed}if(e!=this._reversed){this._reversed=e;this.totalTime(this._totalTime,true)}return this};u.paused=function(e){if(!arguments.length){return this._paused}if(e!=this._paused)if(this._timeline){if(!e&&this._timeline.smoothChildTiming){this._startTime+=this._timeline.rawTime()-this._pauseTime;this._uncache(false)}this._pauseTime=e?this._timeline.rawTime():null;this._paused=e;this._active=!this._paused&&this._totalTime>0&&this._totalTimer){n=n._prev}}if(n){e._next=n._next;n._next=e}else{e._next=this._first;this._first=e}if(e._next){e._next._prev=e}else{this._last=e}e._prev=n;if(this._timeline){this._uncache(true)}return this};u._remove=function(e,t){if(e.timeline===this){if(!t){e._enabled(false,true)}e.timeline=null;if(e._prev){e._prev._next=e._next}else if(this._first===e){this._first=e._next}if(e._next){e._next._prev=e._prev}else if(this._last===e){this._last=e._prev}if(this._timeline){this._uncache(true)}}return this};u.render=function(e,t,n){var r=this._first,i;this._totalTime=this._time=this._rawPrevTime=e;while(r){i=r._next;if(r._active||e>=r._startTime&&!r._paused){if(!r._reversed){r.render((e-r._startTime)*r._timeScale,t,false)}else{r.render((!r._dirty?r._totalDuration:r.totalDuration())-(e-r._startTime)*r._timeScale,t,false)}}r=i}};u.rawTime=function(){return this._totalTime};var E=c("TweenLite",function(e,t,n){y.call(this,t,n);if(e==null){throw"Cannot tween an undefined reference."}this.target=e;this._overwrite=this.vars.overwrite==null?C[E.defaultOverwrite]:typeof this.vars.overwrite==="number"?this.vars.overwrite>>0:C[this.vars.overwrite];var r,i,s;if((e instanceof Array||e.jquery)&&typeof e[0]==="object"){this._targets=e.slice(0);this._propLookup=[];this._siblings=[];for(i=0;i1){O(s,this,null,1,this._siblings[i])}}}else{this._propLookup={};this._siblings=A(e,this,false);if(this._overwrite===1)if(this._siblings.length>1){O(e,this,null,1,this._siblings)}}if(this.vars.immediateRender||t===0&&this._delay===0&&this.vars.immediateRender!=false){this.render(-this._delay,false,true)}},true);u=E.prototype=new y;u.constructor=E;u.kill()._gc=false;u.ratio=0;u._firstPT=u._targets=u._overwrittenProps=null;u._notifyPluginsOfEnabled=false;E.version=12;E.defaultEase=u._ease=new d(null,null,1,1);E.defaultOverwrite="auto";E.ticker=b;var S=E._plugins={},x=E._tweenLookup={},T=0,N={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,orientToBezier:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1},C={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},k=y._rootFramesTimeline=new w,L=y._rootTimeline=new w;L._startTime=b.time;k._startTime=b.frame;L._active=k._active=true;y._updateRoot=function(){L.render((b.time-L._startTime)*L._timeScale,false,false);k.render((b.frame-k._startTime)*k._timeScale,false,false);if(!(b.frame%120)){var e,t,n;for(n in x){t=x[n].tweens;e=t.length;while(--e>-1){if(t[e]._gc){t.splice(e,1)}}if(t.length===0){delete x[n]}}}};b.addEventListener("tick",y._updateRoot);var A=function(e,t,n){var r=e._gsTweenID,i,s;if(!x[r||(e._gsTweenID=r="t"+T++)]){x[r]={target:e,tweens:[]}}if(t){i=x[r].tweens;i[s=i.length]=t;if(n){while(--s>-1){if(i[s]===t){i.splice(s,1)}}}}return x[r].tweens},O=function(e,t,n,r,i){var s,o,u;if(r===1||r>=4){var a=i.length;for(s=0;s-1){if((u=i[s])===t||u._gc||u._paused){}else if(u._timeline!==t._timeline){h=h||M(t,0);if(M(u,h)===0){l[c++]=u}}else if(u._startTime<=f)if(u._startTime+u.totalDuration()/u._timeScale+1e-10>f)if(!((t._duration===0||!u._initted)&&f-u._startTime<=2e-10)){l[c++]=u}}s=c;while(--s>-1){u=l[s];if(r===2)if(u._kill(n,e)){o=true}if(r!==2||!u._firstPT&&u._initted){if(u._enabled(false,false)){o=true}}}return o},M=function(e,t){var n=e._timeline,r=n._timeScale,i=e._startTime;while(n._timeline){i+=n._startTime;r*=n._timeScale;if(n._paused){return-100}n=n._timeline}i/=r;return i>t?i-t:!e._initted&&i-t<2e-10?1e-10:(i=i+e.totalDuration()/e._timeScale/r)>t?0:i-t-1e-10};u._init=function(){if(this.vars.startAt){this.vars.startAt.overwrite=0;this.vars.startAt.immediateRender=true;E.to(this.target,0,this.vars.startAt)}var e,t,n;if(this.vars.ease instanceof d){this._ease=this.vars.easeParams instanceof Array?this.vars.ease.config.apply(this.vars.ease,this.vars.easeParams):this.vars.ease}else if(typeof this.vars.ease==="function"){this._ease=new d(this.vars.ease,this.vars.easeParams)}else{this._ease=E.defaultEase}this._easeType=this._ease._type;this._easePower=this._ease._power;this._firstPT=null;if(this._targets){e=this._targets.length;while(--e>-1){if(this._initProps(this._targets[e],this._propLookup[e]={},this._siblings[e],this._overwrittenProps?this._overwrittenProps[e]:null)){t=true}}}else{t=this._initProps(this.target,this._propLookup,this._siblings,this._overwrittenProps)}if(t){E._onPluginEvent("_onInitAllProps",this)}if(this._overwrittenProps)if(this._firstPT==null)if(typeof this.target!=="function"){this._enabled(false,false)}if(this.vars.runBackwards){n=this._firstPT;while(n){n.s+=n.c;n.c=-n.c;n=n._next}}this._onUpdate=this.vars.onUpdate;this._initted=true};u._initProps=function(e,t,n,r){var i,s,o,u,a,f;if(e==null){return false}for(i in this.vars){if(N[i]){if(i==="onStartParams"||i==="onUpdateParams"||i==="onCompleteParams"||i==="onReverseCompleteParams"||i==="onRepeatParams")if(a=this.vars[i]){s=a.length;while(--s>-1){if(a[s]==="{self}"){a=this.vars[i]=a.concat();a[s]=this}}}}else if(S[i]&&(u=new S[i])._onInitTween(e,this.vars[i],this)){this._firstPT=f={_next:this._firstPT,t:u,p:"setRatio",s:0,c:1,f:true,n:i,pg:true,pr:u._priority};s=u._overwriteProps.length;while(--s>-1){t[u._overwriteProps[s]]=this._firstPT}if(u._priority||u._onInitAllProps){o=true}if(u._onDisable||u._onEnable){this._notifyPluginsOfEnabled=true}}else{this._firstPT=t[i]=f={_next:this._firstPT,t:e,p:i,f:typeof e[i]==="function",n:i,pg:false,pr:0};f.s=!f.f?parseFloat(e[i]):e[i.indexOf("set")||typeof e["get"+i.substr(3)]!=="function"?i:"get"+i.substr(3)]();f.c=typeof this.vars[i]==="number"?this.vars[i]-f.s:typeof this.vars[i]==="string"?parseFloat(this.vars[i].split("=").join("")):0}if(f)if(f._next){f._next._prev=f}}if(r)if(this._kill(r,e)){return this._initProps(e,t,n,r)}if(this._overwrite>1)if(this._firstPT)if(n.length>1)if(O(e,this,t,this._overwrite,n)){this._kill(t,e);return this._initProps(e,t,n,r)}return o};u.render=function(e,t,n){var r=this._time,i,s,o;if(e>=this._duration){this._totalTime=this._time=this._duration;this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1;if(!this._reversed){i=true;s="onComplete"}if(this._duration===0){if(e===0||this._rawPrevTime<0)if(this._rawPrevTime!==e){n=true}this._rawPrevTime=e}}else if(e<=0){this._totalTime=this._time=0;this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0;if(r!==0||this._duration===0&&this._rawPrevTime>0){s="onReverseComplete";i=this._reversed}if(e<0){this._active=false;if(this._duration===0){if(this._rawPrevTime>=0){n=true}this._rawPrevTime=e}}else if(!this._initted){n=true}}else{this._totalTime=this._time=e;if(this._easeType){var u=e/this._duration,a=this._easeType,f=this._easePower;if(a===1||a===3&&u>=.5){u=1-u}if(a===3){u*=2}if(f===1){u*=u}else if(f===2){u*=u*u}else if(f===3){u*=u*u*u}else if(f===4){u*=u*u*u*u}if(a===1){this.ratio=1-u}else if(a===2){this.ratio=u}else if(e/this._duration<.5){this.ratio=u/2}else{this.ratio=1-u/2}}else{this.ratio=this._ease.getRatio(e/this._duration)}}if(this._time===r&&!n){return}else if(!this._initted){this._init();if(!i&&this._time){this.ratio=this._ease.getRatio(this._time/this._duration)}}if(!this._active)if(!this._paused){this._active=true}if(r===0)if(this.vars.onStart)if(this._time!==0||this._duration===0)if(!t){this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||p)}o=this._firstPT;while(o){if(o.f){o.t[o.p](o.c*this.ratio+o.s)}else{o.t[o.p]=o.c*this.ratio+o.s}o=o._next}if(this._onUpdate)if(!t){this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||p)}if(s)if(!this._gc){if(i){if(this._timeline.autoRemoveChildren){this._enabled(false,false)}this._active=false}if(!t)if(this.vars[s]){this.vars[s].apply(this.vars[s+"Scope"]||this,this.vars[s+"Params"]||p)}}};u._kill=function(e,t){if(e==="all"){e=null}if(e==null)if(t==null||t==this.target){return this._enabled(false,false)}t=t||this._targets||this.target;var n,r,i,s,o,u,a,f;if((t instanceof Array||t.jquery)&&typeof t[0]==="object"){n=t.length;while(--n>-1){if(this._kill(e,t[n])){u=true}}}else{if(this._targets){n=this._targets.length;while(--n>-1){if(t===this._targets[n]){o=this._propLookup[n]||{};this._overwrittenProps=this._overwrittenProps||[];r=this._overwrittenProps[n]=e?this._overwrittenProps[n]||{}:"all";break}}}else if(t!==this.target){return false}else{o=this._propLookup;r=this._overwrittenProps=e?this._overwrittenProps||{}:"all"}if(o){a=e||o;f=e!=r&&r!="all"&&e!=o&&(e==null||e._tempKill!=true);for(i in a){if(s=o[i]){if(s.pg&&s.t._kill(a)){u=true}if(!s.pg||s.t._overwriteProps.length===0){if(s._prev){s._prev._next=s._next}else if(s===this._firstPT){this._firstPT=s._next}if(s._next){s._next._prev=s._prev}s._next=s._prev=null}delete o[i]}if(f){r[i]=1}}}}return u};u.invalidate=function(){if(this._notifyPluginsOfEnabled){E._onPluginEvent("_onDisable",this)}this._firstPT=null;this._overwrittenProps=null;this._onUpdate=null;this._initted=this._active=this._notifyPluginsOfEnabled=false;this._propLookup=this._targets?{}:[];return this};u._enabled=function(e,t){if(e&&this._gc){if(this._targets){var n=this._targets.length;while(--n>-1){this._siblings[n]=A(this._targets[n],this,true)}}else{this._siblings=A(this.target,this,true)}}y.prototype._enabled.call(this,e,t);if(this._notifyPluginsOfEnabled)if(this._firstPT){return E._onPluginEvent(e?"_onEnable":"_onDisable",this)}return false};E.to=function(e,t,n){return new E(e,t,n)};E.from=function(e,t,n){n.runBackwards=true;if(n.immediateRender!=false){n.immediateRender=true}return new E(e,t,n)};E.fromTo=function(e,t,n,r){r.startAt=n;if(n.immediateRender){r.immediateRender=true}return new E(e,t,r)};E.delayedCall=function(e,t,n,r,i){return new E(t,0,{delay:e,onComplete:t,onCompleteParams:n,onCompleteScope:r,onReverseComplete:t,onReverseCompleteParams:n,onReverseCompleteScope:r,immediateRender:false,useFrames:i,overwrite:0})};E.set=function(e,t){return new E(e,0,t)};E.killTweensOf=E.killDelayedCallsTo=function(e,t){var n=E.getTweensOf(e),r=n.length;while(--r>-1){n[r]._kill(t,e)}};E.getTweensOf=function(e){if(e==null){return}var t,n,r,i;if((e instanceof Array||e.jquery)&&typeof e[0]==="object"){t=e.length;n=[];while(--t>-1){n=n.concat(E.getTweensOf(e[t]))}t=n.length;while(--t>-1){i=n[t];r=t;while(--r>-1){if(i===n[r]){n.splice(t,1)}}}}else{n=A(e).concat();t=n.length;while(--t>-1){if(n[t]._gc){n.splice(t,1)}}}return n};var _=c("plugins.TweenPlugin",function(e,t){this._overwriteProps=(e||"").split(",");this._propName=this._overwriteProps[0];this._priority=t||0},true);u=_.prototype;_.version=12;_.API=2;u._firstPT=null;u._addTween=function(e,t,n,r,i,s){var o;if(r!=null&&(o=typeof r==="number"||r.charAt(1)!=="="?Number(r)-n:Number(r.split("=").join("")))){this._firstPT={_next:this._firstPT,t:e,p:t,s:n,c:o,f:typeof e[t]==="function",n:i||t,r:s};if(this._firstPT._next){this._firstPT._next._prev=this._firstPT}}};u.setRatio=function(e){var t=this._firstPT,n;while(t){n=t.c*e+t.s;if(t.r){n=n+(n>0?.5:-.5)>>0}if(t.f){t.t[t.p](n)}else{t.t[t.p]=n}t=t._next}};u._kill=function(e){if(e[this._propName]!=null){this._overwriteProps=[]}else{var t=this._overwriteProps.length;while(--t>-1){if(e[this._overwriteProps[t]]!=null){this._overwriteProps.splice(t,1)}}}var n=this._firstPT;while(n){if(e[n.n]!=null){if(n._next){n._next._prev=n._prev}if(n._prev){n._prev._next=n._next;n._prev=null}else if(this._firstPT===n){this._firstPT=n._next}}n=n._next}return false};u._roundProps=function(e,t){var n=this._firstPT;while(n){if(e[this._propName]||n.n!=null&&e[n.n.split(this._propName+"_").join("")]){n.r=t}n=n._next}};E._onPluginEvent=function(e,t){var n=t._firstPT,r;if(e==="_onInitAllProps"){var i,s,o,u;while(n){u=n._next;i=s;while(i&&i.pr>n.pr){i=i._next}if(n._prev=i?i._prev:o){n._prev._next=n}else{s=n}if(n._next=i){i._prev=n}else{o=n}n=u}n=t._firstPT=s}while(n){if(n.pg)if(typeof n.t[e]==="function")if(n.t[e]()){r=true}n=n._next}return r};_.activate=function(e){var t=e.length;while(--t>-1){if(e[t].API===_.API){E._plugins[(new e[t])._propName]=e[t]}}return true};if(r=e._gsQueue){for(i=0;i1)n=1;if(r>1)r=1;if(e>1)e=1;if(t>1)t=1;if(isNaN(e))e=0;if(isNaN(t))t=0;i.finalWidth=Math.round(n*(i.totalWidth-4));i.finalHeight=Math.round(r*(i.totalHeight-4));i.finalX=Math.round(e*(i.totalWidth-2-i.finalWidth));i.finalY=Math.round(t*(i.totalHeight-2-i.finalHeight));clearTimeout(i.tweenCompleteId_to);if(s){i.isTweening_bl=true;i.tweenCompleteId_to=setTimeout(function(){if(i==null)return;i.isTweening_bl=false},200);TweenMax.killTweensOf(i.handler_sdo);TweenMax.to(i.handler_sdo,.2,{x:i.finalX,y:i.finalY,w:i.finalWidth,h:i.finalHeight})}else{i.isTweening_bl=false;TweenMax.killTweensOf(i.handler_sdo);i.handler_sdo.setX(i.finalX);i.handler_sdo.setY(i.finalY);i.handler_sdo.setWidth(i.finalWidth);i.handler_sdo.setHeight(i.finalHeight)}};i.addPannSupport=function(){i.handler_sdo.screen.style.cursor="url("+i.handMovePath_str+"), default";if(i.isMobile_bl){if(i.hasPointerEvent_bl){i.handler_sdo.screen.addEventListener("MSPointerDown",i.panStartHandler)}else{i.handler_sdo.screen.addEventListener("touchstart",i.panStartHandler)}}else if(i.handler_sdo.screen.addEventListener){i.handler_sdo.screen.addEventListener("mousedown",i.panStartHandler)}else if(i.handler_sdo.screen.attachEvent){i.handler_sdo.screen.attachEvent("onmousedown",i.panStartHandler)}};i.panStartHandler=function(r){if(r.preventDefault)r.preventDefault();if(i.isTweening_bl)return;if(!i.isMobile_bl)n.showPanDumy();var s=FWDUtils.getViewportMouseCoordinates(r);i.isDragging_bl=true;i.xPositionOnPress=i.handler_sdo.getX();i.yPositionOnPress=i.handler_sdo.getY();i.lastPresedX=s.screenX;i.lastPresedY=s.screenY;i.dispatchEvent(t.PAN_START);if(i.isMobile_bl){if(i.hasPointerEvent_bl){e.addEventListener("MSPointerMove",i.panMoveHandler);e.addEventListener("MSPointerUp",i.panEndHandler)}else{e.addEventListener("touchmove",i.panMoveHandler);e.addEventListener("touchend",i.panEndHandler)}}else{i.handler_sdo.screen.style.cursor="url("+i.handGrabPath_str+"), default";i.screen.style.cursor="url("+i.handGrabPath_str+"), default";if(e.addEventListener){e.addEventListener("mousemove",i.panMoveHandler);e.addEventListener("mouseup",i.panEndHandler)}else if(document.attachEvent){document.attachEvent("onmousemove",i.panMoveHandler);document.attachEvent("onmouseup",i.panEndHandler)}}};i.panMoveHandler=function(e){if(e.preventDefault)e.preventDefault();if(e.touches&&e.touches.length!=1)return;var n=FWDUtils.getViewportMouseCoordinates(e);i.finalX=Math.round(i.xPositionOnPress+n.screenX-i.lastPresedX);if(i.finalX<1){i.finalX=1}else if(i.finalX>=i.totalWidth-3-i.finalWidth){i.finalX=i.totalWidth-3-i.finalWidth}i.handler_sdo.setX(i.finalX);i.finalY=Math.round(i.yPositionOnPress+n.screenY-i.lastPresedY);if(i.finalY<1){i.finalY=1}else if(i.finalY>=i.totalHeight-3-i.finalHeight){i.finalY=i.totalHeight-3-i.finalHeight}i.handler_sdo.setY(i.finalY);i.dispatchEvent(t.PAN,{percentX:i.finalX/(i.totalWidth-2-i.finalWidth),percentY:i.finalY/(i.totalHeight-2-i.finalHeight)})};i.panEndHandler=function(t){i.isDragging_bl=false;if(!i.isMobile_bl)n.hidePanDumy();if(i.isMobile_bl){if(i.hasPointerEvent_bl){e.removeEventListener("MSPointerMove",i.panMoveHandler);e.removeEventListener("MSPointerUp",i.panEndHandler)}else{e.removeEventListener("touchmove",i.panMoveHandler);e.removeEventListener("touchend",i.panEndHandler)}}else{i.handler_sdo.screen.style.cursor="url("+i.handMovePath_str+"), default";i.screen.style.cursor="default";if(e.removeEventListener){e.removeEventListener("mousemove",i.panMoveHandler);e.removeEventListener("mouseup",i.panEndHandler)}else if(document.detachEvent){document.detachEvent("onmousemove",i.panMoveHandler);document.detachEvent("onmouseup",i.panEndHandler)}}};i.show=function(e){if(i.isShowed_bl)return;i.resizeAndPosition();if(e){TweenMax.to(i.mainHolder_do,1,{y:0,ease:Expo.easeInOut})}else{TweenMax.killTweensOf(i.mainHolder_do);i.mainHolder_do.setY(0)}i.isShowed_bl=true};i.hide=function(e){if(!i.isShowed_bl)return;if(i.navigatorPosition_str==t.TOP_LEFT||i.navigatorPosition_str==t.TOP_RIGHT){if(e){TweenMax.to(i.mainHolder_do,1,{y:-i.totalHeight-i.offsetY,ease:Expo.easeInOut});i.update(1,1,1,1,true)}else{TweenMax.killTweensOf(i.mainHolder_do);i.mainHolder_do.setY(-i.totalHeight-i.offsetY)}}else if(i.navigatorPosition_str==t.BOTTOM_LEFT||i.navigatorPosition_str==t.BOTTOM_RIGHT){if(e){TweenMax.to(i.mainHolder_do,1,{y:i.totalHeight+i.offsetY,ease:Expo.easeInOut});i.update(1,1,1,1,true)}else{TweenMax.killTweensOf(i.mainHolder_do);i.mainHolder_do.setY(i.totalHeight+i.offsetY)}}i.isShowed_bl=false};i.cleanMainEvents=function(){if(i.isMobile_bl){i.handler_sdo.screen.removeEventListener("touchstart",i.panStartHandler);i.handler_sdo.screen.addEventListener("MSPointerDown",i.panStartHandler);e.removeEventListener("touchmove",i.panMoveHandler);e.removeEventListener("touchend",i.panEndHandler);e.removeEventListener("MSPointerMove",i.panMoveHandler);e.removeEventListener("MSPointerUp",i.panEndHandler)}else if(i.handler_sdo.screen.removeEventListener){i.handler_sdo.screen.removeEventListener("mousedown",i.panStartHandler);e.removeEventListener("mousemove",i.panMoveHandler);e.removeEventListener("mouseup",i.panEndHandler)}else if(i.handler_sdo.screen.detachEvent){i.handler_sdo.screen.detachEvent("onmousedown",i.panStartHandler);document.detachEvent("onmousemove",i.panMoveHandler);document.detachEvent("onmouseup",i.panEndHandler)}i.screen.onmousedown=null;i.handler_sdo.screen.onmousedown=null;clearTimeout(i.tweenCompleteId_to)};i.destroy=function(){i.cleanMainEvents();if(i.hider){i.hider.removeListener(FWDHider.HIDE,i.onHiderHide)}var e=i.iamgesSdo_ar.length;for(var o=0;o100&&r<900){try{document.documentElement.removeChild(t.dumy)}catch(i){}return true}}}try{document.documentElement.removeChild(t.dumy)}catch(i){}return false}function r(){var e=["transform","msTransform","WebkitTransform","MozTransform","OTransform","KhtmlTransform"];var n;while(n=e.shift()){if(typeof t.dumy.style[n]!=="undefined"){return true}}try{document.documentElement.removeChild(t.dumy)}catch(r){}return false}var t=function(){};t.dumy=document.createElement("div");t.trim=function(e){return e.replace(/\s/gi,"")};t.trimAndFormatUrl=function(e){e=e.toLocaleLowerCase();e=e.replace(/ /g,"-");e=e.replace(/ä/g,"a");e=e.replace(/â/g,"a");e=e.replace(/â/g,"a");e=e.replace(/à/g,"a");e=e.replace(/è/g,"e");e=e.replace(/é/g,"e");e=e.replace(/ë/g,"e");e=e.replace(/ï/g,"i");e=e.replace(/î/g,"i");e=e.replace(/ù/g,"u");e=e.replace(/ô/g,"o");e=e.replace(/ù/g,"u");e=e.replace(/û/g,"u");e=e.replace(/ÿ/g,"y");e=e.replace(/ç/g,"c");e=e.replace(/œ/g,"ce");return e};t.splitAndTrim=function(e,n){var r=e.split(",");var i=r.length;for(var s=0;s0){if(e.nextElementSibling){e=e.nextElementSibling}else{for(var e=e.nextSibling;e&&e.nodeType!==1;e=e.nextSibling);}t--}else{if(e.previousElementSibling){e=e.previousElementSibling}else{for(var e=e.previousSibling;e&&e.nodeType!==1;e=e.previousSibling);}t++}}return e};t.getChildAt=function(e,n){var r=t.getChildren(e);if(n<0)n+=r.length;if(n<0)return null;return r[n]};t.getChildById=function(e){return document.getElementById(e)||undefined};t.getChildren=function(e,t){var n=[];for(var r=e.firstChild;r!=null;r=r.nextSibling){if(t){n.push(r)}else if(r.nodeType===1){n.push(r)}}return n};t.getChildrenFromAttribute=function(e,n,r){var i=[];for(var s=e.firstChild;s!=null;s=s.nextSibling){if(r&&t.hasAttribute(s,n)){i.push(s)}else if(s.nodeType===1&&t.hasAttribute(s,n)){i.push(s)}}return i.length==0?undefined:i};t.getChildFromNodeListFromAttribute=function(e,n,r){for(var i=e.firstChild;i!=null;i=i.nextSibling){if(r&&t.hasAttribute(i,n)){return i}else if(i.nodeType===1&&t.hasAttribute(i,n)){return i}}return undefined};t.getAttributeValue=function(e,n){if(!t.hasAttribute(e,n))return undefined;return e.getAttribute(n)};t.hasAttribute=function(e,t){if(e.hasAttribute){return e.hasAttribute(t)}else{var n=e.attributes[t];return n?true:false}};t.insertNodeAt=function(e,n,r){var i=t.children(e);if(r<0||r>i.length){throw new Error("invalid index!")}else{e.insertBefore(n,i[r])}};t.hasCanvas=function(){return Boolean(document.createElement("canvas"))};t.hitTest=function(e,t,n){var r=false;if(!e)throw Error("Hit test target is null!");var i=e.getBoundingClientRect();if(t>=i.left&&t<=i.left+(i.right-i.left)&&n>=i.top&&n<=i.top+(i.bottom-i.top))return true;return false};t.getScrollOffsets=function(){if(e.pageXOffset!=null)return{x:e.pageXOffset,y:e.pageYOffset};if(document.compatMode=="CSS1Compat"){return{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}}};t.getViewportSize=function(){return{w:document.documentElement.clientWidth||e.innerWidth,h:document.documentElement.clientHeight||e.innerHeight}};t.getViewportMouseCoordinates=function(e){var n=t.getScrollOffsets();if(e.touches){return{screenX:e.touches[0]==undefined?e.touches.pageX-n.x:e.touches[0].pageX-n.x,screenY:e.touches[0]==undefined?e.touches.pageY-n.y:e.touches[0].pageY-n.y}}return{screenX:e.clientX==undefined?e.pageX-n.x:e.clientX,screenY:e.clientY==undefined?e.pageY-n.y:e.clientY}};t.hasPointerEvent=function(){return Boolean(e.navigator.msPointerEnabled)}();t.isMobile=function(){if(t.hasPointerEvent&&navigator.msMaxTouchPoints>1)return true;var e=["android","webos","iphone","ipad","blackberry"];for(i in e){if(navigator.userAgent.toLowerCase().indexOf(e[i].toLowerCase())!=-1){return true}}return false}();t.isAndroid=function(){return navigator.userAgent.toLowerCase().indexOf("android".toLowerCase())!=-1}();t.isChrome=function(){return navigator.userAgent.toLowerCase().indexOf("chrome")!=-1}();t.isSafari=function(){return navigator.userAgent.toLowerCase().indexOf("safari")!=-1&&navigator.userAgent.toLowerCase().indexOf("chrome")==-1}();t.isOpera=function(){return navigator.userAgent.toLowerCase().indexOf("opera")!=-1&&navigator.userAgent.toLowerCase().indexOf("chrome")==-1}();t.isFirefox=function(){return navigator.userAgent.toLowerCase().indexOf("firefox")!=-1}();t.isIE=function(){return navigator.userAgent.toLowerCase().indexOf("msie")!=-1;}();t.isIEAndLessThen9=function(){return navigator.userAgent.toLowerCase().indexOf("msie 7")!=-1||navigator.userAgent.toLowerCase().indexOf("msie 8")!=-1}();t.isApple=function(){return navigator.appVersion.toLowerCase().indexOf("mac")!=-1;}();t.hasFullScreen=function(){return t.dumy.requestFullScreen||t.dumy.mozRequestFullScreen||t.dumy.webkitRequestFullScreen||t.dumy.msieRequestFullScreen}();t.onReady=function(e){if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){t.checkIfHasTransofrms();e()})}else{document.onreadystatechange=function(){t.checkIfHasTransofrms();if(document.readyState=="complete")e()}}};t.checkIfHasTransofrms=function(){document.documentElement.appendChild(t.dumy);t.hasTransform3d=n();t.hasTransform2d=r();t.isReadyMethodCalled_bl=true};t.disableElementSelection=function(e){try{e.style.userSelect="none"}catch(e){}try{e.style.MozUserSelect="none"}catch(e){}try{e.style.webkitUserSelect="none"}catch(e){}try{e.style.khtmlUserSelect="none"}catch(e){}try{e.style.oUserSelect="none"}catch(e){}try{e.style.msUserSelect="none"}catch(e){}try{e.msUserSelect="none"}catch(e){}e.onselectstart=function(){return false}};t.getUrlArgs=function(t){var n={};var r=t.substr(t.indexOf("?")+1)||location.search.substring(1);var i=r.split("&");for(var s=0;s=d){v=d}var m=Math.round(r*v);var g=Math.round(i*v);var y=Math.floor((t-r*v)/2+u);var b=Math.floor((n-i*v)/2+a);if(f){TweenMax.to(e,l,{x:y,y:b,w:m,h:g,delay:c,ease:h})}else{e.x=y;e.y=b;e.w=m;e.h=g}};t.isReadyMethodCalled_bl=false;e.FWDUtils=t})(window);(function(e){var t=function(n){var r=this;r.init=function(){TweenLite.ticker.useRAF(false);r.props_obj=n;r.isFullScreen_bl=false;r.mustHaveHolderDiv_bl=false;r.displayType=n.displayType.toLowerCase();if(!r.displayType)r.displayType=t.FULL_SCREEN;if(r.displayType==t.RESPONSIVE)r.mustHaveHolderDiv_bl=true;r.body=document.getElementsByTagName("body")[0];if(!r.props_obj){alert("FWDViewer constructor properties object is not defined!");return}if(!r.props_obj.divHolderId){if(r.mustHaveHolderDiv_bl){alert("Property divHolderId is not defined in the FWDViewer constructor, self property represents the div id into which the grid is added as a child!");return}}if(r.mustHaveHolderDiv_bl&&!FWDUtils.getChildById(r.props_obj.divHolderId)){alert("FWDViewer holder div is not found, please make sure that the div exsists and the id is correct! "+r.props_obj.divHolderId);return}if(r.displayType==t.FULL_SCREEN||r.displayType==t.LIGHTBOX){if(FWDUtils.isIEAndLessThen9){r.stageContainer=r.body}else{r.stageContainer=document.documentElement}}else{r.stageContainer=FWDUtils.getChildById(r.props_obj.divHolderId)}this.customContextMenu=null;this.info_do=null;this.main_do=null;this.preloader_do=null;this.navigator_do=null;this.controller_do=null;this.imageManager_do=null;this.descriptionWindow_do=null;this.hider=null;this.lightBox_do=null;this.rotateDumy_sdo=null;this.markersDumy_sdo=null;this.panDumy_sdo=null;this.backgroundColor_str=r.props_obj.backgroundColor||"transparent";this.lightBoxBackgroundColor_str=r.props_obj.lightBoxBackgroundColor||"transparent";this.viewportWidth=0;this.viewportHeight=0;this.stageWidth=0;this.stageHeight=0;this.pageXOffset=e.pageXOffset;this.pageYOffset=e.pageYOffset;this.lastScrollY;this.lastScrollX;this.lightBoxBackgroundOpacity=r.props_obj.lightBoxBackgroundOpacity||1;this.lightBoxWidth=r.props_obj.lightBoxWidth||500;this.lightBoxHeight=r.props_obj.lightBoxHeight||400;this.finalLightBoxWidth;this.finalLightBoxHeight;this.resizeHandlerId_to;this.resizeHandler2Id_to;this.lighboxAnimDoneId_to;this.startHiderWithDelayId_to;this.initPluginId_to;this.activateWithDelayImagemanagerId_to;this.isMobile_bl=FWDUtils.isMobile;this.hibernate_bl=false;if(!FWDUtils.isReadyMethodCalled_bl)FWDUtils.checkIfHasTransofrms();if(r.displayType==t.LIGHTBOX){this.initPluginId_to=setTimeout(function(){r.setupLightBox()},50)}else{this.initPluginId_to=setTimeout(function(){r.setupViewer()},50)}};r.setupViewer=function(){r.setupMainDo();r.startResizeHandler();r.setupInfo();r.setupData();if(FWDUtils.hasPointerEvent&&FWDUtils.isMobile)e.addEventListener("contextmenu",r.preventContextMenu)};r.setupMainDo=function(){r.main_do=new FWDDisplayObject("div","relative");r.main_do.getStyle().msTouchAction="none";r.main_do.getStyle().webkitTapHighlightColor="rgba(0, 0, 0, 0)";r.main_do.setBackfaceVisibility();r.main_do.setBkColor(r.backgroundColor_str);if(!FWDUtils.isMobile||FWDUtils.isMobile&&FWDUtils.hasPointerEvent)r.main_do.setSelectable(false);if(r.displayType==t.FULL_SCREEN){r.stageContainer.style.overflow="hidden";r.main_do.getStyle().position="absolute";document.documentElement.style.overflow="hidden";r.stageContainer.appendChild(r.main_do.screen)}else if(r.displayType==t.LIGHTBOX){r.main_do.getStyle().position="absolute";r.stageContainer.appendChild(r.main_do.screen)}else{r.stageContainer.appendChild(r.main_do.screen)}};r.preventContextMenu=function(e){e.preventDefault()};r.setupInfo=function(){FWDInfo.setPrototype();r.info_do=new FWDInfo};r.startResizeHandler=function(){if(e.addEventListener){e.addEventListener("resize",r.onResizeHandler);e.addEventListener("scroll",r.onScrollHandler)}else if(e.attachEvent){e.attachEvent("onresize",r.onResizeHandler);e.attachEvent("onscroll",r.onScrollHandler)}r.onResizeHandler(true);r.resizeHandlerId_to=setTimeout(function(){r.resizeHandler(true)},500)};r.stopResizeHandler=function(){if(e.removeEventListener){e.removeEventListener("resize",r.onResizeHandler);e.removeEventListener("scroll",r.onScrollHandler)}else if(e.detachEvent){e.detachEvent("onresize",r.onResizeHandler);e.detachEvent("onscroll",r.onScrollHandler)}clearTimeout(r.resizeHandlerId_to)};r.onResizeHandler=function(e){r.resizeHandler()};r.onScrollHandler=function(e){if(r.hibernate_bl)return;if(r.isFullScreen_bl||r.displayType==t.FULL_SCREEN||r.displayType==t.LIGHTBOX){r.scrollHandler()}};r.scrollHandler=function(){var e=FWDUtils.getScrollOffsets();r.pageXOffset=e.x;r.pageYOffset=e.y;if(r.displayType==t.LIGHTBOX){r.lightBox_do.setX(e.x);r.lightBox_do.setY(e.y)}else if(r.isFullScreen_bl||r.displayType==t.FULL_SCREEN){r.main_do.setX(e.x);r.main_do.setY(e.y)}};r.resizeHandler=function(){if(r.hibernate_bl)return;var e=FWDUtils.getScrollOffsets();var n=FWDUtils.getViewportSize();var i=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen;r.viewportWidth=n.w;r.viewportHeight=n.h;r.pageXOffset=e.x;r.pageYOffset=e.y;if(r.displayType==t.LIGHTBOX&&!r.isFullScreen_bl){if(r.lightBoxWidth>n.w){r.finalLightBoxWidth=n.w;r.finalLightBoxHeight=parseInt(r.lightBoxHeight*(n.w/r.lightBoxWidth))}else{r.finalLightBoxWidth=r.lightBoxWidth;r.finalLightBoxHeight=r.lightBoxHeight}r.lightBox_do.setWidth(n.w);r.lightBox_do.setHeight(n.h);r.lightBox_do.setX(r.pageXOffset);r.lightBox_do.setY(r.pageYOffset);r.lightBox_do.mainLightBox_do.setX(parseInt((n.w-r.finalLightBoxWidth)/2));r.lightBox_do.mainLightBox_do.setY(parseInt((n.h-r.finalLightBoxHeight)/2));if(r.lightBox_do.closeButton_do&&!r.lightBox_do.closeButtonIsTweening_bl){var s=parseInt((n.w+r.finalLightBoxWidth)/2-r.lightBox_do.closeButton_do.totalWidth/2);var o=parseInt((n.h-r.finalLightBoxHeight)/2-r.lightBox_do.closeButton_do.totalHeight/2);if(s+r.lightBox_do.closeButton_do.totalWidth>r.viewportWidth){s=r.viewportWidth-r.lightBox_do.closeButton_do.totalWidth}if(o<0){o=0}r.lightBox_do.closeButton_do.setX(s);r.lightBox_do.closeButton_do.setY(o)}r.main_do.setX(0);r.main_do.setY(0);r.lightBox_do.mainLightBox_do.setWidth(r.finalLightBoxWidth);r.lightBox_do.mainLightBox_do.setHeight(r.finalLightBoxHeight);r.stageWidth=r.finalLightBoxWidth;r.stageHeight=r.finalLightBoxHeight}else if(r.isFullScreen_bl||r.displayType==t.FULL_SCREEN){r.main_do.setX(e.x);r.main_do.setY(e.y);r.stageWidth=n.w;r.stageHeight=n.h}else{r.main_do.setX(0);r.main_do.setY(0);r.stageWidth=r.stageContainer.offsetWidth;r.stageHeight=r.stageContainer.offsetHeight}r.main_do.setWidth(r.stageWidth);r.main_do.setHeight(r.stageHeight);if(r.preloader_do)r.preloader_do.positionAndResize();if(r.controller_do)r.controller_do.resizeAndPosition();if(r.imageManager_do)r.imageManager_do.resizeAndPosition(true);if(r.navigator_do)r.navigator_do.resizeAndPosition();if(r.descriptionWindow_do&&r.descriptionWindow_do.isShowed_bl)r.descriptionWindow_do.resizeAndPosition()};r.setupLightBox=function(){FWDLightBox.setPrototype();r.lightBox_do=new FWDLightBox(r,r.lightBoxBackgroundColor_str,r.backgroundColor_str,r.lightBoxBackgroundOpacity,r.lightBoxWidth,r.lightBoxHeight);r.lightBox_do.addListener(FWDLightBox.CLOSE,r.lightBoxCloseHandler);r.lightBox_do.addListener(FWDLightBox.HIDE_COMPLETE,r.lightBoxHideCompleteHandler);r.lighboxAnimDoneId_to=setTimeout(r.setupViewer,1200)};r.lightBoxCloseHandler=function(){r.cancelFullScreen();r.stopResizeHandler();if(r.data)r.data.stopToLoad()};r.lightBoxHideCompleteHandler=function(){if(r.dispatchEvent)r.dispatchEvent(t.CLOSE_LIGHTBOX);r.destroy()};r.setupContextMenu=function(){FWDContextMenu.setPrototype();r.customContextMenu=new FWDContextMenu(r,r.data);r.customContextMenu.addListener(FWDController.ROTATE,r.contextMenuRotateHandler);r.customContextMenu.addListener(FWDController.PAN,r.contextMenuPanHandler);r.customContextMenu.addListener(FWDController.GOTO_NEXT_IMAGE,r.contextMenuGoToNextImageHandler);r.customContextMenu.addListener(FWDController.GOTO_PREV_IMAGE,r.contextMenuGoToPrevImageHandler);r.customContextMenu.addListener(FWDController.ZOOM_IN,r.contextMenuZoomInHandler);r.customContextMenu.addListener(FWDController.ZOOM_OUT,r.contextMenuZoomOutHandler);r.customContextMenu.addListener(FWDController.START_SLIDE_SHOW,r.contextMenuStartSlideShowHandler);r.customContextMenu.addListener(FWDController.STOP_SLIDE_SHOW,r.contextMenuStopSlideShowHandler);r.customContextMenu.addListener(FWDController.SHOW_INFO,r.contextMenuShowInfoWindow);r.customContextMenu.addListener(FWDController.GO_FULL_SCREEN,r.controllerGoFullScreen);r.customContextMenu.addListener(FWDController.GO_NORMAL_SCREEN,r.controllerGoNormalSreen)};r.contextMenuRotateHandler=function(e){r.controller_do.rotateButtonOnMouseDownHandler(e)};r.contextMenuPanHandler=function(e){r.controller_do.panButtonOnMouseDownHandler(e.e)};r.contextMenuGoToNextImageHandler=function(e){r.controller_do.nextButtonStartHandler(e)};r.contextMenuGoToPrevImageHandler=function(e){r.controller_do.prevButtonStartHandler(e)};r.contextMenuZoomInHandler=function(e){r.controller_do.zoomInStartHandler(e)};r.contextMenuZoomOutHandler=function(e){r.controller_do.zoomOutStartHandler(e)};r.contextMenuStartSlideShowHandler=function(e){r.controller_do.startSlideshow(e)};r.contextMenuShowInfoWindow=function(e){r.main_do.addChild(r.descriptionWindow_do);r.descriptionWindow_do.hide(false,true);r.descriptionWindow_do.show(r.data.infoText_str)};r.contextMenuStopSlideShowHandler=function(e){r.controller_do.stopSlideShow(e)};r.setupData=function(){FWDData.setPrototype();r.data=new FWDData(r.props_obj);r.data.addListener(FWDData.LIGHBOX_CLOSE_BUTTON_LOADED,r.onLightboxCloseButtonLoadComplete);r.data.addListener(FWDData.PRELOADER_LOAD_DONE,r.onPreloaderLoadDone);r.data.addListener(FWDData.FIRST_IMAGE_LOAD_COMPLETE,r.firstImageLoadComplete);r.data.addListener(FWDData.LOAD_ERROR,r.dataLoadError);r.data.addListener(FWDData.SKIN_PROGRESS,r.dataSkinProgressHandler);r.data.addListener(FWDData.IMAGES_PROGRESS,r.dataImagesProgressHandler);r.data.addListener(FWDData.LOAD_DONE,r.dataLoadComplete);r.data.addListener(FWDData.IMAGE_LOADED,r.onImageLoad);r.data.addListener(FWDData.IMAGES_LOAD_COMPLETE,r.dataImagesLoadComplete)};r.onLightboxCloseButtonLoadComplete=function(){if(r.displayType==t.LIGHTBOX)r.lightBox_do.setupCloseButton(r.data.mainLightboxCloseButtonN_img,r.data.mainLightboxCloseButtonS_img)};r.firstImageLoadComplete=function(){if(r.data.showNavigator_bl)r.setupNavigator();r.imageManager_do.setAlpha(0);TweenMax.to(r.imageManager_do,.6,{alpha:1});r.main_do.addChild(r.preloader_do)};r.onPreloaderLoadDone=function(){r.setupPreloader()};r.onImageLoad=function(e){r.imageManager_do.showLoadedImage(e.id)};r.dataLoadError=function(e,t){r.main_do.addChild(r.info_do);r.info_do.showText(e.text)};r.dataSkinProgressHandler=function(e){r.preloader_do.update(e.percent,"Loading skin:"+Math.round(e.percent*100)+"%")};r.dataImagesProgressHandler=function(e){r.preloader_do.update(e.percent,r.data.preloaderText_str+Math.round(e.percent*100)+"%")};r.dataLoadComplete=function(e){r.setupImageManager();r.setupDisableMarkersDumy();r.setupController();r.main_do.addChild(r.preloader_do);if(!r.isMobile_bl)r.setupContextMenu()};r.dataImagesLoadComplete=function(){r.preloader_do.hide(true);r.activateWithDelayImagemanagerId_to=setTimeout(function(){r.imageManager_do.activate()},41);if(r.data.hideController_bl){r.setupHider();r.controller_do.setupHider(r.hider);r.imageManager_do.setupHider(r.hider);if(r.navigator_do)r.navigator_do.setupHider(r.hider);r.startHiderWithDelayId_to=setTimeout(function(){r.hider.start()},r.data.hideControllerDelay)}if(r.customContextMenu)r.customContextMenu.isActive_bl=true;if(r.navigator_do)r.navigator_do.activate();r.setupDescriptionWindow();r.setupRotationDumy();r.setupPanDumy()};r.setupPreloader=function(){FWDPreloader.setPrototype();r.preloader_do=new FWDPreloader(r,r.data.mainPreloader_img,40,43,60,r.data.preloaderFontColor_str,r.data.preloaderBackgroundColor_str);r.preloader_do.addListener(FWDPreloader.HIDE_COMPLETE,r.onPreloaderHideCompleteHandler);r.preloader_do.positionAndResize();r.preloader_do.hide(false);r.preloader_do.show(true);r.main_do.addChild(r.preloader_do)};r.onPreloaderHideCompleteHandler=function(){r.main_do.removeChild(r.preloader_do);r.preloader_do.destroy();r.preloader_do=null};r.setupHider=function(){FWDHider.setPrototype();r.hider=new FWDHider(r.data.isMobile_bl,r.main_do,r.data.hideControllerDelay)};r.setupController=function(){FWDController.setPrototype();r.controller_do=new FWDController(r.data,r);r.controller_do.addListener(FWDController.MOUSE_DOWN,r.controllerOnMouseDownHandler);r.controller_do.addListener(FWDController.CHANGE_NAVIGATION_STYLE,r.setImageViewerNavigationStyleHandler);r.controller_do.addListener(FWDController.GOTO_NEXT_OR_PREV_IMAGE,r.gotoNextImageHandler);r.controller_do.addListener(FWDController.GOTO_NEXT_OR_PREV_IMAGE_COMPLETE,r.gotoNextImageCompleteHandler);r.controller_do.addListener(FWDController.DISABLE_PAN_OR_MOVE,r.disablePanOrMoveHandler);r.controller_do.addListener(FWDController.ENABLE_PAN_OR_MOVE,r.enablePanOrMoveHandler);r.controller_do.addListener(FWDController.SCROLL_BAR_UPDATE,r.controllerScrollBarUpdateHandler);r.controller_do.addListener(FWDController.ZOOM_WITH_BUTTONS,r.controllerZoomHandler);r.controller_do.addListener(FWDController.START_SLIDE_SHOW,r.controllerStartSlideshowHandler);r.controller_do.addListener(FWDController.STOP_SLIDE_SHOW,r.controllerStopSlideshowHandler);r.controller_do.addListener(FWDController.SHOW_INFO,r.controllerShowInfoHandler);r.controller_do.addListener(FWDController.GO_FULL_SCREEN,r.controllerGoFullScreen);r.controller_do.addListener(FWDController.GO_NORMAL_SCREEN,r.controllerGoNormalSreen);if(r.controller_do)r.controller_do.resizeAndPosition();r.main_do.addChild(r.controller_do)};r.controllerOnMouseDownHandler=function(){r.imageManager_do.hideToolTipWindow()};r.setImageViewerNavigationStyleHandler=function(e){r.imageManager_do.setDraggingMode(e.draggingMode);if(r.customContextMenu){if(e.draggingMode==FWDController.ROTATE){r.customContextMenu.enablePanButton()}else if(e.draggingMode==FWDController.PAN){r.customContextMenu.enableRotateButton()}}};r.gotoNextImageHandler=function(e){if(!r.data.areAllImagesLoaded_bl)return;r.imageManager_do.curId+=e.dir;r.imageManager_do.gotoImage()};r.gotoNextImageCompleteHandler=function(e){if(!r.data.areAllImagesLoaded_bl)return;r.imageManager_do.addLargeImage()};r.disablePanOrMoveHandler=function(){r.imageManager_do.disableOrEnablePanOrTouch(true);r.showMarkersDumy()};r.enablePanOrMoveHandler=function(){r.imageManager_do.disableOrEnablePanOrTouch(false);r.hideMarkersDumy()};r.controllerScrollBarUpdateHandler=function(e){r.imageManager_do.zoomInOrOutWithScrollBar(e.percent)};r.controllerZoomHandler=function(e){r.imageManager_do.zoomInOrOutWithButtons(e.dir,e.withPause)};r.controllerStartSlideshowHandler=function(e){if(r.customContextMenu)r.customContextMenu.updateSlideShowButton(1)};r.controllerStopSlideshowHandler=function(e){if(r.customContextMenu)r.customContextMenu.updateSlideShowButton(0)};r.controllerShowInfoHandler=function(){r.main_do.addChild(r.descriptionWindow_do);r.descriptionWindow_do.hide(false,true);r.descriptionWindow_do.show(r.data.infoText_str)};r.controllerGoFullScreen=function(){if(r.isFullScreen_bl)return;r.goFullScreen();r.imageManager_do.centerImage();r.controller_do.setFullScreenButtonState(0);if(r.customContextMenu)r.customContextMenu.updateFullScreenButton(1)};r.controllerGoNormalSreen=function(){if(!r.isFullScreen_bl)return;r.goNormalScreen();r.imageManager_do.centerImage();r.controller_do.setFullScreenButtonState(1);if(r.customContextMenu)r.customContextMenu.updateFullScreenButton(0)};r.setupImageManager=function(e){FWDImageManager.setPrototype();r.imageManager_do=new FWDImageManager(r.data,r);r.imageManager_do.addListener(FWDImageManager.LARGE_IMAGE_LOAD_ERROR,r.imageManagerLoadError);r.imageManager_do.addListener(FWDImageManager.SCROLL_BAR_UPDATE,r.imageManagerScrollBarUpdate);r.imageManager_do.addListener(FWDImageManager.PAN_START,r.imageManagerPanStartHandler);r.imageManager_do.addListener(FWDImageManager.ROTATE_START,r.imageManagerRotateStartHandler);r.imageManager_do.addListener(FWDImageManager.ROTATE_UPDATE,r.imageManagerRotateUpdateHandler);r.imageManager_do.addListener(FWDImageManager.SHOW_NAVIGATOR,r.imageManagerShowNavigatorHandler);r.imageManager_do.addListener(FWDImageManager.HIDE_NAVIGATOR,r.imageManagerHideNavigatorHandler);r.imageManager_do.addListener(FWDImageManager.UPDATE_NAVIGATOR,r.imageManagerUpdateNavigatorHandler);r.imageManager_do.addListener(FWDImageManager.SHOW_INFO,r.imageManagerShowInfoHandler);r.main_do.addChild(r.imageManager_do)};r.imageManagerLoadError=function(e){r.main_do.addChild(r.info_do);r.info_do.showText(e.error)};r.imageManagerScrollBarUpdate=function(e){r.controller_do.updateScrollBar(e.percent,e.animate)};r.imageManagerPanStartHandler=function(e){r.controller_do.stopSlideShow()};r.imageManagerRotateStartHandler=function(e){r.controller_do.stopSlideShow()};r.imageManagerRotateUpdateHandler=function(e){if(r.navigator_do)r.navigator_do.updateImage(e.id);if(r.main_do.contains(r.info_do))r.main_do.removeChild(r.info_do)};r.imageManagerShowNavigatorHandler=function(){r.navigator_do.show(true)};r.imageManagerHideNavigatorHandler=function(){r.navigator_do.hide(true)};r.imageManagerUpdateNavigatorHandler=function(e){r.navigator_do.update(e.percentX,e.percentY,e.percentWidth,e.percentHeight,e.animate)};r.imageManagerShowInfoHandler=function(e){r.main_do.addChild(r.descriptionWindow_do);r.descriptionWindow_do.hide(false,true);r.descriptionWindow_do.show(e.text)};r.setupNavigator=function(){FWDNavigator.setPrototype();r.navigator_do=new FWDNavigator(r,r.data);r.navigator_do.addListener(FWDNavigator.MOUSE_DOWN,r.navigatorOnMouseDownHandler);r.navigator_do.addListener(FWDNavigator.PAN_START,r.navigatorPanStartHandler);r.navigator_do.addListener(FWDNavigator.PAN,r.navigatorPanHandler);r.main_do.addChild(r.navigator_do)};r.navigatorOnMouseDownHandler=function(){r.imageManager_do.hideToolTipWindow()};r.navigatorPanStartHandler=function(e){r.controller_do.stopSlideShow()};r.navigatorPanHandler=function(e){r.imageManager_do.updateOnNavigatorPan(e.percentX,e.percentY)};r.setupDescriptionWindow=function(){FWDDescriptionWindow.setPrototype();r.descriptionWindow_do=new FWDDescriptionWindow(r,r.data);r.descriptionWindow_do.addListener(FWDDescriptionWindow.SHOW_START,r.descWindowShowStartHandler);r.descriptionWindow_do.addListener(FWDDescriptionWindow.HIDE_COMPLETE,r.descWindowHideComplteHandler)};r.descWindowShowStartHandler=function(){if(r.customContextMenu)r.customContextMenu.disable()};r.descWindowHideComplteHandler=function(){if(r.customContextMenu)r.customContextMenu.enable();r.main_do.removeChild(r.descriptionWindow_do)};this.setupRotationDumy=function(){r.rotateDumy_sdo=new FWDSimpleDisplayObject("div");if(FWDUtils.isIE)r.rotateDumy_sdo.getStyle().background="url('dumy')";r.rotateDumy_sdo.getStyle().cursor="url("+r.data.handGrabRotatePath_str+"), default";r.main_do.addChild(r.rotateDumy_sdo)};this.showRotateDumy=function(){r.rotateDumy_sdo.setWidth(r.stageWidth);r.rotateDumy_sdo.setHeight(r.stageHeight)};this.hideRotateDumy=function(){r.rotateDumy_sdo.setWidth(0);r.rotateDumy_sdo.setHeight(0)};this.setupPanDumy=function(){r.panDumy_sdo=new FWDSimpleDisplayObject("div");if(FWDUtils.isIE)r.panDumy_sdo.getStyle().background="url('dumy')";r.panDumy_sdo.getStyle().cursor="url("+r.data.handGrabPath_str+"), default";r.main_do.addChild(r.panDumy_sdo)};this.showPanDumy=function(){r.panDumy_sdo.setWidth(r.stageWidth);r.panDumy_sdo.setHeight(r.stageHeight)};this.hidePanDumy=function(){r.panDumy_sdo.setWidth(0);r.panDumy_sdo.setHeight(0)};this.setupDisableMarkersDumy=function(){r.markersDumy_sdo=new FWDSimpleDisplayObject("div");if(FWDUtils.isIE)r.markersDumy_sdo.getStyle().background="url('dumy')";r.main_do.addChild(r.markersDumy_sdo)};this.showMarkersDumy=function(){r.markersDumy_sdo.setWidth(r.stageWidth);r.markersDumy_sdo.setHeight(r.stageHeight)};this.hideMarkersDumy=function(){r.markersDumy_sdo.setWidth(0);r.markersDumy_sdo.setHeight(0)};r.goFullScreen=function(){var e=FWDUtils.getScrollOffsets();r.lastScrollX=e.x;r.lastScrollY=e.y;if(document.documentElement.requestFullScreen){document.documentElement.requestFullScreen()}else if(document.documentElement.mozRequestFullScreen){document.documentElement.mozRequestFullScreen()}else if(document.documentElement.webkitRequestFullScreen){document.documentElement.webkitRequestFullScreen()}else if(document.documentElement.msieRequestFullScreen){document.documentElement.msieRequestFullScreen()}r.main_do.getStyle().position="absolute";r.body.style.overflow="hidden";document.documentElement.style.overflow="hidden";if(FWDUtils.isIEAndLessThen9){r.body.appendChild(r.main_do.screen)}else{r.body.style.display="none";document.documentElement.appendChild(r.main_do.screen)}r.main_do.getStyle().zIndex=100000001;r.isFullScreen_bl=true;r.resizeHandler()};this.cancelFullScreen=function(){if(document.cancelFullScreen){document.cancelFullScreen()}else if(document.mozCancelFullScreen){document.mozCancelFullScreen()}else if(document.webkitCancelFullScreen){document.webkitCancelFullScreen()}else if(document.msieCancelFullScreen){document.msieCancelFullScreen()}};this.goNormalScreen=function(){r.cancelFullScreen();r.addMainDoToTheOriginalParent();r.isFullScreen_bl=false;r.resizeHandler()};this.addMainDoToTheOriginalParent=function(){if(r.displayType==t.FULL_SCREEN){if(FWDUtils.isIEAndLessThen9){r.body.appendChild(r.main_do.screen);r.body.style.display="inline"}else{document.documentElement.appendChild(r.main_do.screen);r.body.style.display="inline"}}else if(r.displayType==t.LIGHTBOX){r.stageContainer.appendChild(r.main_do.screen)}else{r.main_do.getStyle().position="relative";r.stageContainer.appendChild(r.main_do.screen)}if(r.displayType!=t.FULL_SCREEN){if(FWDUtils.isIEAndLessThen9){document.documentElement.style.overflow="auto";r.body.style.overflow="auto";r.body.style.visibility="visible"}else{document.documentElement.style.overflow="visible";r.body.style.overflow="visible";r.body.style.display="inline"}}r.stageContainer.appendChild(r.main_do.screen);r.main_do.getStyle().zIndex=0;e.scrollTo(r.lastScrollX,r.lastScrollY)};r.cleanMainEvents=function(){if(e.removeEventListener){e.removeEventListener("resize",r.onResizeHandler);e.removeEventListener("scroll",r.onScrollHandler)}else if(e.detachEvent){e.detachEvent("onresize",r.onResizeHandler);e.detachEvent("onscroll",r.onScrollHandler)}if(r.isMobile_bl){e.removeEventListener("contextmenu",r.preventContextMenu)}clearTimeout(r.resizeHandlerId_to);clearTimeout(r.resizeHandler2Id_to);clearTimeout(r.lighboxAnimDoneId_to);clearTimeout(r.startHiderWithDelayId_to);clearTimeout(r.initPluginId_to);clearTimeout(r.activateWithDelayImagemanagerId_to)};r.destroy=function(){r.cleanMainEvents();if(r.data)r.data.destroy();if(r.lightBox_do)r.lightBox_do.destroy();if(r.preloader_do)r.preloader_do.destroy();if(r.customContextMenu)r.customContextMenu.destroy();if(r.info_do)r.info_do.destroy();if(r.imageManager_do){TweenMax.killTweensOf(r.imageManager_do);r.imageManager_do.destroy()}if(r.controller_do)r.controller_do.destroy();if(r.navigator_do)r.navigator_do.destroy();if(r.hider)r.hider.destroy();if(r.descriptionWindow_do)r.descriptionWindow_do.destroy();if(r.rotateDumy_sdo)r.rotateDumy_sdo.destroy();if(r.markersDumy_sdo)r.markersDumy_sdo.destroy();if(r.panDumy_sdo)r.panDumy_sdo.destroy();try{r.main_do.screen.parentNode.removeChild(r.main_do.screen)}catch(e){}if(r.main_do){r.main_do.setInnerHTML("");r.main_do.destroy()}r.data=null;r.lightBox_do=null;r.customContextMenu=null;r.preloader_do=null;r.hider=null;r.info_do=null;r.main_do=null;r.imageManager_do=null;r.navigator_do=null;r.rotateDumy_sdo=null;r.markersDumy_sdo=null;r.panDumy_sdo=null;r=null};r.init()};t.setPrototype=function(){t.prototype=new FWDEventDispatcher};t.CLOSE_LIGHTBOX="closeLightBox";t.FULL_SCREEN="fullscreen";t.LIGHTBOX="lightbox";t.RESPONSIVE="responsive";e.FWDViewer=t})(window)