sitionLoadingImage();},_renderVerticalThumbs:function(){var B=this.get("responsiveThreshold"),E=this.get("boundingBox"),C=E.get("offsetWidth"),D;if(this.get("verticalThumbsEnabled")&&C>B){this.verticalThumbs=new A.FL.SlideshowThumbs(this._getVerticalThumbsConfig());this.add(this.verticalThumbs);this.verticalThumbs.render(E);D=this.verticalThumbs.get("boundingBox");D.addClass("fl-slideshow-vertical-thumbs");D.setStyle(this.get("verticalThumbsPosition"),0);E.append(D);if(this.get("verticalThumbsOverlay")){this.verticalThumbs.plug(A.FL.SlideshowOverlay,{hideDelay:this.get("overlayHideDelay"),hideStyle:"left"});this.frame.get("boundingBox").append(D);this.verticalThumbs.resize();}else{this.verticalThumbs.resize();this._adjustContentForVerticalThumbs();}this._bindVerticalThumbs();}},_getVerticalThumbsConfig:function(){var C=this.getAttrs(),B={columns:C.verticalThumbsColumns,rows:"auto",centerSinglePage:false,horizontalSpacing:C.verticalThumbsHorizontalSpacing,verticalSpacing:C.verticalThumbsVerticalSpacing,spaceEvenly:C.verticalThumbsSpaceEvenly,rightNavEnabled:false,leftNavEnabled:false,topNavEnabled:C.verticalThumbsTopNavEnabled,topNavButtons:C.verticalThumbsTopNavButtons,bottomNavEnabled:C.verticalThumbsBottomNavEnabled,bottomNavButtons:C.verticalThumbsBottomNavButtons,pauseOnClick:C.verticalThumbsPauseOnClick,transition:C.verticalThumbsTransition,transitionDirection:C.verticalThumbsTransitionDirection,transitionEasing:C.verticalThumbsTransitionEasing,touchSupport:true,imageConfig:{crop:C.verticalThumbsImageCrop,width:C.verticalThumbsImageWidth,height:C.verticalThumbsImageHeight}};return B;},_bindVerticalThumbs:function(){var B=this.get("boundingBox"),E=this.get("overlayHideOnMousemove"),D=this.get("verticalThumbsOverlay"),C=this.verticalThumbs;if(C&&E&&D){this.frame.once("transitionComplete",C.slideshowOverlay.hideWithTimer,C.slideshowOverlay);B.on("mousemove",A.bind(this._toggleVerticalThumbs,this));B.on("mouseenter",A.bind(this._toggleVerticalThumbs,this));}},_resizeVerticalThumbs:function(){var G=this.get("verticalThumbsEnabled"),H,I,F,C,D,E,B,J;if(G){H=this.get("verticalThumbsOverlay");I=this.get("responsiveThreshold");F=this.get("boundingBox");C=F.get("offsetWidth");D=this.get("navOverlay");E=this.get("navType");B=this._getNav();if(this.verticalThumbs&&C>I){this.verticalThumbs.get("boundingBox").setStyle("display","block");this.verticalThumbs.resize();if(!H){this._adjustContentForVerticalThumbs();}else{if(B&&D){J=B.get("boundingBox");if(E=="thumbs"){this._adjustOverlayForVerticalThumbs(J,true);this.thumbs.resize();}else{this._adjustOverlayForVerticalThumbs(J);}}}}else{if(!this.verticalThumbs&&C>I){this._renderVerticalThumbs();}else{if(this.verticalThumbs&&C<=I){this.verticalThumbs.get("boundingBox").setStyle("display","none");if(!H){this.get("contentBox").setStyles({left:"auto",position:"relative",right:"auto",width:"auto"});}}}}}},_toggleVerticalThumbs:function(){if(this.verticalThumbs){if(this.verticalThumbs.slideshowOverlay._visible){this.verticalThumbs.slideshowOverlay.hideWithTimer();}else{this.verticalThumbs.slideshowOverlay.show();}}},_adjustContentForVerticalThumbs:function(){var E=this.get("boundingBox"),C=this.verticalThumbs.get("boundingBox"),B=this.get("verticalThumbsPosition"),G=this.get("contentBox"),F=B=="left"?"right":"left",D=E.get("offsetWidth")-C.get("offsetWidth");G.setStyle("position","absolute");G.setStyle(F,0);G.setStyle("width",D);},_adjustOverlayForVerticalThumbs:function(F,C){var H=this.get("verticalThumbsEnabled"),I=this.get("verticalThumbsOverlay"),E=null,D=null,G=typeof C==="undefined"?"":"margin-",B=0;if(this.verticalThumbs&&H&&I){E=this.verticalThumbs.get("boundingBox");B=E.get("offsetWidth");D=this.get("verticalThumbsPosition");if(D=="left"){F.setStyle(G+"left",B+"px");}else{F.setStyle(G+"right",B+"px");}}},_renderFrame:function(){this.frame=new A.FL.SlideshowFrame({imageConfig:{loadGroup:"main",loadPriority:true,crop:this.get("crop"),cropHorizontalsOnly:this.get("cropHorizontalsOnly"),position:this.get("position"),protect:this.get("protect"),upsize:this.get("upsize"),showVideoButton:this.get("navOverlay")},touchSupport:true});this.add(this.frame);this.frame.render(this.get("contentBox"));this.frame.get("boundingBox").addClass("fl-slideshow-main-image");this._setPlayingTimerEvent(this.frame,"transitionComplete");this._loadingImageContainer=this.frame.get("contentBox");},_resizeFrame:function(D,B){var C=this.get("navOverlay"),E=this._getNav();if(E&&!C){B-=parseInt(E.get("boundingBox").getComputedStyle("height"),10);}this.frame.resize(D,B);},_loadFrame:function(G){var E=this.imageInfo.index,D=this.albumInfo.images,C=E+1>=D.length?0:E+1,F=this.frame.get("width"),B=this.frame.get("height"); this.frame.load(G.imageInfo);A.FL.SlideshowImageLoader.removeGroup("main-preload");this._nextImagePreloader.preload(D[C],F,B);},_frameClick:function(){var B=this.get("clickAction"),C=this.get("clickActionUrl");if(B=="url"){window.location.href=C;}else{if(B=="gallery"){window.location.href=this.imageInfo.link;}}},_initMiniNav:function(){var B=[];if(!("ontouchstart" in window)){B.push("prev");}if(this._hasNavButton("thumbs")||this.get("navType")=="thumbs"){B.push("thumbs");}if(this._hasNavButton("caption")){B.push("caption");}if(this._hasNavButton("social")){B.push("social");}if(this._hasNavButton("buy")){B.push("buy");}if(this._hasNavButton("play")){B.push("play");}if(this._hasNavButton("fullscreen")&&!("ontouchstart" in window)){B.push("fullscreen");}if(!("ontouchstart" in window)){B.push("next");}this._initialNavSettings={buttons:this.get("navButtons"),buttonsLeft:this.get("navButtonsLeft"),buttonsRight:this.get("navButtonsRight"),type:this.get("navType")};this._set("navButtons",B);this._set("navButtonsLeft",[]);this._set("navButtonsRight",[]);this._set("navType","buttons");},_renderNavAndThumbs:function(){var C=this.get("navType"),D=false,E,B;if(C=="buttons"||C=="thumbs"){E=this.get("boundingBox").get("offsetWidth");B=this.get("responsiveThreshold");if(E<=B&&this._initialNavSettings===null){this._initMiniNav();D=true;}else{if(E>B&&this._initialNavSettings!==null){this._set("navButtons",this._initialNavSettings.buttons);this._set("navButtonsLeft",this._initialNavSettings.buttonsLeft);this._set("navButtonsRight",this._initialNavSettings.buttonsRight);this._set("navType",this._initialNavSettings.type);this._initialNavSettings=null;D=true;}}if(D||this.nav===null){this._renderNav();}if(D||this.thumbs===null){this._renderThumbs();}else{if(this._thumbsEnabled()){this._resizeThumbs();}}if(D&&this.caption!==null){this._syncCaption();}if(D&&this.social!==null){this._syncSocial();}}},_renderNav:function(){var D=this.frame.get("boundingBox"),E=null,B=this.get("navOverlay"),C=this.get("navPosition");this._destroyNav();if(this.get("navType")=="buttons"){this.nav=new A.FL.SlideshowNav({buttons:this.get("navButtons"),buttonsLeft:this.get("navButtonsLeft"),buttonsRight:this.get("navButtonsRight")});this.add(this.nav);this.nav.render(this.get("contentBox"));E=this.nav.get("boundingBox");if(B){this.nav.plug(A.FL.SlideshowOverlay,{hideDelay:this.get("overlayHideDelay")});E.setStyle("position","absolute");E.setStyle(C,"0px");}if(C=="top"){D.insert(E,"before");}else{D.insert(E,"after");}E.addClass("fl-slideshow-main-nav");}},_destroyNav:function(){if(this.nav!==null){if(this.nav.slideshowOverlay){this.nav.slideshowOverlay.destroy();}this.nav.get("boundingBox").remove();this.remove(this.nav);try{this.nav.destroy(true);}catch(B){}this.nav=null;}},_getNav:function(){var B=this.get("navType");if(B=="buttons"){return this.nav;}else{if(B=="thumbs"){return this.thumbs;}else{return null;}}},_toggleNav:function(){var B=this._getNav();if(B.slideshowOverlay){if(B.slideshowOverlay._visible){B.slideshowOverlay.hideWithTimer();}else{B.slideshowOverlay.show();}}},_renderImageNav:function(){var B;if(this.get("imageNavEnabled")){if("ontouchstart" in window){this._set("imageNavEnabled",false);}else{B=this.get("boundingBox");this.imageNavLeft=new A.FL.SlideshowNav({buttons:["prev"],useFontIcons:false});this.imageNavRight=new A.FL.SlideshowNav({buttons:["next"],useFontIcons:false});this.add(this.imageNavLeft);this.add(this.imageNavRight);this.imageNavLeft.render(this.frame.get("boundingBox"));this.imageNavRight.render(this.frame.get("boundingBox"));this.imageNavLeft.plug(A.FL.SlideshowOverlay,{hideDelay:this.get("overlayHideDelay")});this.imageNavRight.plug(A.FL.SlideshowOverlay,{hideDelay:this.get("overlayHideDelay")});if(this.get("overlayHideOnMousemove")){this.frame.once("transitionComplete",this.imageNavLeft.slideshowOverlay.hideWithTimer,this.imageNavLeft.slideshowOverlay);this.frame.once("transitionComplete",this.imageNavRight.slideshowOverlay.hideWithTimer,this.imageNavRight.slideshowOverlay);B.on("mousemove",A.bind(this._toggleImageNav,this));B.on("mouseenter",A.bind(this._toggleImageNav,this));}this.imageNavLeft.get("boundingBox").addClass("fl-slideshow-image-nav-left");this.imageNavRight.get("boundingBox").addClass("fl-slideshow-image-nav-right");}}},_positionImageNav:function(){var D=this.imageNavLeft.get("boundingBox"),E=this.imageNavRight.get("boundingBox"),B=D.get("offsetHeight"),C=this.frame.get("boundingBox").get("offsetHeight"),G=C/2-B/2,F={top:G+"px",display:"block"};D.setStyles(F);E.setStyles(F);this._adjustOverlayForVerticalThumbs(D);this._adjustOverlayForVerticalThumbs(E);},_toggleImageNav:function(){if(this.imageNavLeft.slideshowOverlay._visible){this.imageNavLeft.slideshowOverlay.hideWithTimer();}else{this.imageNavLeft.slideshowOverlay.show();}if(this.imageNavRight.slideshowOverlay._visible){this.imageNavRight.slideshowOverlay.hideWithTimer();}else{this.imageNavRight.slideshowOverlay.show();}},_renderMouseNav:function(){if(this.get("mouseNavEnabled")&&!("ontouchstart" in window)&&!window.navigator.msPointerEnabled){this.plug(A.FL.SlideshowMouseNav,{trigger:this.frame.get("boundingBox")});}},_thumbsEnabled:function(){var B=this.get("navType");if(B=="thumbs"){return true;}if((B=="buttons"||B=="custom")&&this._hasNavButton("thumbs")){return true;}else{return false;}},_renderThumbs:function(){var E,C,D,B;this._destroyThumbs();if(this._thumbsEnabled()){E=this.frame.get("boundingBox");C=this.get("navOverlay");D=this.get("navPosition");B=this.get("navType");this.thumbs=new A.FL.SlideshowThumbs(this._getThumbsConfig());try{this.add(this.thumbs);}catch(F){}if(B=="buttons"||B=="custom"){this.thumbs.plug(A.FL.SlideshowOverlay,{hideDelay:this.get("overlayHideDelay"),hideStyle:"left",visible:false});}else{if(B=="thumbs"&&C){this.thumbs.plug(A.FL.SlideshowOverlay,{hideDelay:this.get("overlayHideDelay"),hideStyle:"left"});}}this.thumbs.render(this.get("contentBox"));if(D=="top"){E.insert(this.thumbs.get("boundingBox"),"before"); }else{E.insert(this.thumbs.get("boundingBox"),"after");}if(this.get("thumbsHideOnClick")&&B!="thumbs"){this.thumbs.on("imageClick",A.bind(this._hideThumbsOnImageClick,this));}this._syncThumbs();}},_destroyThumbs:function(){if(this.thumbs!==null){if(this.thumbs.slideshowOverlay){this.thumbs.slideshowOverlay.destroy();}this.thumbs.get("boundingBox").remove();this.remove(this.thumbs);try{this.thumbs.destroy(true);}catch(B){}this.thumbs=null;}},_syncThumbs:function(){var D=this.thumbs.get("boundingBox"),E=this.get("navOverlay"),F=this.get("navPosition"),C=this.get("navType"),B="padding"+F.charAt(0).toUpperCase()+F.slice(1),G=0;if(C=="buttons"){G=parseInt(this.nav.get("boundingBox").getComputedStyle("height"),10);D.setStyle("position","absolute");if(E){D.setStyle(B,G+"px");D.setStyle(F,"0px");}else{D.setStyle(F,G+"px");}}if(C=="custom"||(C=="thumbs"&&E)){D.setStyle("position","absolute");D.setStyle(F,"0px");}this.thumbs.resize();},_getThumbsConfig:function(){var E=this.getAttrs(),B=this.get("navType"),D={crop:E.thumbsImageCrop,width:E.thumbsImageWidth,height:E.thumbsImageHeight},C={columns:"auto",rows:1,horizontalSpacing:E.thumbsHorizontalSpacing,verticalSpacing:E.thumbsVerticalSpacing,spaceEvenly:E.thumbsSpaceEvenly,centerSinglePage:E.thumbsCenterSinglePage,pauseOnClick:E.thumbsPauseOnClick,transition:E.thumbsTransition,transitionDirection:E.thumbsTransitionDirection,transitionEasing:E.thumbsTransitionEasing,leftNavButtons:E.navButtonsLeft,rightNavButtons:E.navButtonsRight,imageConfig:D,touchSupport:true};if(B=="buttons"||B=="custom"){if("ontouchstart" in window){C.leftNavEnabled=false;C.rightNavEnabled=false;}else{C.centerSinglePage=false;C.leftNavButtons=["prevPage"];C.rightNavButtons=["nextPage"];}}return C;},_resizeThumbs:function(){if(this.thumbs){this.thumbs.resize();}},_toggleThumbs:function(){this._toggleOverlay(this.thumbs.slideshowOverlay);},_hideThumbsOnImageClick:function(){if(this.thumbs.slideshowOverlay){this.thumbs.slideshowOverlay._focus=false;this.thumbs.slideshowOverlay.enable();this.thumbs.slideshowOverlay.hide();if(this.nav&&this.nav.slideshowOverlay){this.nav.slideshowOverlay.enable();}}},_renderCaption:function(){if(this._hasNavButton("caption")){this.caption=new A.FL.SlideshowCaption({lessLinkText:this.get("captionLessLinkText"),moreLinkText:this.get("captionMoreLinkText"),textLength:this.get("captionTextLength"),stripTags:this.get("captionStripTags")});this.add(this.caption);this.caption.plug(A.FL.SlideshowOverlay,{hideDelay:this.get("overlayHideDelay"),visible:false,closeButton:true});this._syncCaption();}},_syncCaption:function(){var G=this.caption.get("boundingBox"),C=this.get("navOverlay"),D=this.get("navPosition"),E=this._getNav(),B="padding"+D.charAt(0).toUpperCase()+D.slice(1),F=0;G.setStyle("position","absolute");if(E){F=parseInt(E.get("boundingBox").getComputedStyle("height"),10);}if(E&&C){G.setStyle(B,F+"px");G.setStyle(D,"0px");}else{G.setStyle(D,F+"px");}},_toggleCaption:function(){this._toggleOverlay(this.caption.slideshowOverlay);},_renderSocial:function(){if(this._hasNavButton("social")){this.social=new A.FL.SlideshowSocial();this.add(this.social);this.social.plug(A.FL.SlideshowOverlay,{hideDelay:this.get("overlayHideDelay"),visible:false,closeButton:true});this._syncSocial();}},_syncSocial:function(){var D=this.social.get("boundingBox"),C=this.get("navOverlay"),E=this.get("navPosition"),F=this._getNav(),B="padding"+E.charAt(0).toUpperCase()+E.slice(1),G=0;D.setStyle("position","absolute");if(F){G=parseInt(F.get("boundingBox").getComputedStyle("height"),10);}if(F&&C){D.setStyle(B,G+"px");D.setStyle(E,"0px");}else{D.setStyle(E,G+"px");}},_toggleSocial:function(){this._toggleOverlay(this.social.slideshowOverlay);},_toggleOverlay:function(C){var B=this.get("navType"),D=this._getNav();if(C._visible){if(D&&D.slideshowOverlay){D.slideshowOverlay.enable();}C.enable();C.hide();}else{if(D&&D.slideshowOverlay){D.slideshowOverlay.disable();}C.show();C.disable();}if(this.thumbs&&B!="thumbs"&&this.thumbs.slideshowOverlay!==C){this.thumbs.slideshowOverlay.enable();this.thumbs.slideshowOverlay.hide();}if(this.caption&&this.caption.slideshowOverlay!==C){this.caption.slideshowOverlay.enable();this.caption.slideshowOverlay.hide();}if(this.social&&this.social.slideshowOverlay!==C){this.social.slideshowOverlay.enable();this.social.slideshowOverlay.hide();}},_overlayCloseClick:function(){if(this.nav&&this.nav.slideshowOverlay){this.nav.slideshowOverlay.enable();}if(this.thumbs&&this.thumbs.slideshowOverlay){this.thumbs.slideshowOverlay.enable();}if(this.caption){this.caption.slideshowOverlay.enable();}if(this.social){this.social.slideshowOverlay.enable();}if(this.imageNavLeft){this.imageNavLeft.slideshowOverlay.enable();this.imageNavRight.slideshowOverlay.enable();}},_hideAllOverlays:function(){if(this.nav&&this.nav.slideshowOverlay&&this.nav.slideshowOverlay._visible){this.nav.slideshowOverlay.enable();this.nav.slideshowOverlay.hideWithTimer();}if(this.thumbs&&this.thumbs.slideshowOverlay&&this.thumbs.slideshowOverlay._visible){this.thumbs.slideshowOverlay.enable();this.thumbs.slideshowOverlay.hideWithTimer();}if(this.caption&&this.caption.slideshowOverlay._visible){this.caption.slideshowOverlay.enable();this.caption.slideshowOverlay.hideWithTimer();}if(this.social&&this.social.slideshowOverlay._visible){this.social.slideshowOverlay.enable();this.social.slideshowOverlay.hideWithTimer();}if(this.imageNavLeft){this.imageNavLeft.slideshowOverlay.enable();this.imageNavLeft.slideshowOverlay.hideWithTimer();this.imageNavRight.slideshowOverlay.enable();this.imageNavRight.slideshowOverlay.hideWithTimer();}},_checkOverlaysOnMouseenter:function(){var B=this.get("navType"),D=this.get("navOverlay"),E=this._getNav(),C=false;if(this.thumbs&&B!="thumbs"&&this.thumbs.slideshowOverlay._visible){C=true;this.thumbs.slideshowOverlay.disable();}else{if(this.caption&&this.caption.slideshowOverlay._visible){C=true;this.caption.slideshowOverlay.disable();}else{if(this.social&&this.social.slideshowOverlay._visible){C=true; this.social.slideshowOverlay.disable();}}}if(E&&C&&D){E.slideshowOverlay.disable();}},_hasNavButton:function(C){var B=this.get("navType");if(B=="buttons"||B=="thumbs"||B=="custom"){if(A.Array.indexOf(this.get("navButtons"),C)>-1){return true;}else{if(A.Array.indexOf(this.get("navButtonsLeft"),C)>-1){return true;}else{if(A.Array.indexOf(this.get("navButtonsRight"),C)>-1){return true;}else{return false;}}}}else{return false;}},_removeNavButton:function(D){var G=this.get("navButtons"),B=this.get("navButtonsLeft"),F=this.get("navButtonsRight"),C=this.get("verticalThumbsTopNavButtons"),E=this.get("verticalThumbsBottomNavButtons");if(A.Array.indexOf(G,D)>-1){G.splice(A.Array.indexOf(G,D),1);}if(A.Array.indexOf(B,D)>-1){B.splice(A.Array.indexOf(B,D),1);}if(A.Array.indexOf(F,D)>-1){F.splice(A.Array.indexOf(F,D),1);}if(A.Array.indexOf(C,D)>-1){C.splice(A.Array.indexOf(C,D),1);}if(A.Array.indexOf(E,D)>-1){E.splice(A.Array.indexOf(E,D),1);}this._set("navButtons",G);this._set("navButtonsLeft",B);this._set("navButtonsRight",F);this._set("verticalThumbsTopNavButtons",C);this._set("verticalThumbsBottomNavButtons",E);}},{CSS_PREFIX:"fl-slideshow",ATTRS:{clickAction:{value:"none"},clickActionUrl:{value:""},crop:{value:false},cropHorizontalsOnly:{value:false},loadingImageAlwaysEnabled:{value:true},position:{value:"center center"},protect:{value:true},upsize:{value:true},transition:{value:"fade"},transitionDuration:{value:1},transitionEasing:{value:"ease-out"},kenBurnsZoom:{value:1.2},navType:{value:"none"},navPosition:{value:"bottom"},navOverlay:{value:false},navButtons:{value:[]},navButtonsLeft:{value:[]},navButtonsRight:{value:[]},overlayHideOnMousemove:{value:true},overlayHideDelay:{value:3000},imageNavEnabled:{value:false},mouseNavEnabled:{value:false},thumbsHideOnClick:{value:true},thumbsHorizontalSpacing:{value:15},thumbsVerticalSpacing:{value:15},thumbsSpaceEvenly:{value:true},thumbsCenterSinglePage:{value:true},thumbsPauseOnClick:{value:false},thumbsTransition:{value:"slideHorizontal"},thumbsTransitionDuration:{value:0.8},thumbsTransitionEasing:{value:"ease-out"},thumbsImageCrop:{value:true},thumbsImageWidth:{value:50},thumbsImageHeight:{value:50},captionLessLinkText:{value:"Read Less"},captionMoreLinkText:{value:"Read More"},captionTextLength:{value:200},captionStripTags:{value:false},verticalThumbsEnabled:{value:false},verticalThumbsPosition:{value:"left"},verticalThumbsOverlay:{value:false},verticalThumbsColumns:{value:1},verticalThumbsTopNavEnabled:{value:false},verticalThumbsTopNavButtons:{value:["prevPage","nextPage"]},verticalThumbsBottomNavEnabled:{value:true},verticalThumbsBottomNavButtons:{value:["prevPage","nextPage"]},verticalThumbsHorizontalSpacing:{value:15},verticalThumbsVerticalSpacing:{value:15},verticalThumbsSpaceEvenly:{value:false},verticalThumbsPauseOnClick:{value:false},verticalThumbsImageCrop:{value:true},verticalThumbsImageWidth:{value:75},verticalThumbsImageHeight:{value:75},verticalThumbsTransition:{value:"slideVertical"},verticalThumbsTransitionDuration:{value:0.8},verticalThumbsTransitionEasing:{value:"ease-out"},googlePlusButtonEnabled:{value:true},likeButtonEnabled:{value:true},pinterestButtonEnabled:{value:true},tweetButtonEnabled:{value:true}}});},"2.0.0",{requires:["anim","event-mouseenter","plugin","transition","fl-event-move","fl-slideshow-css","fl-slideshow-base","fl-utils","sm-fonticon"]});YUI.add("fl-slideshow-album-loader",function(A){A.namespace("FL").SlideshowAlbumLoader=A.Base.create("fl-slideshow-album-loader",A.Base,[],{_source:null,load:function(B){this._source=B;this.fire("start");this[A.FL.SlideshowAlbumLoader.TYPES[B.type]].call(this);},_loadComplete:function(B){B=this._randomize(B);this.fire("complete",B);},_randomize:function(C){var B;if(this.get("randomize")){C.albumInfo.images.sort(function(){return 0.5-Math.random();});for(B=0;B"+E.images[G].caption+"");F=L.one("iframe");if(F){E.images[G].iframe=F.getAttribute("src");E.images[G].caption=E.images[G].caption.replace(/.*<\/iframe>/gi,"");}}}this._loadComplete({"albumInfo":E});},_loadUrls:function(){var B={},C=0;B.index=this._source.index;B.title=this._source.title?this._source.title:"";B.images=[];for(;C=this.albumInfo.images.length?0:B;this.lastImageIndex=this.imageIndex;this.imageIndex=B;this.imageInfo=this.albumInfo.images[B];this.fire("imageLoadComplete",{"imageInfo":this.imageInfo});},prevImage:function(){if(this.get("pauseOnNextOrPrev")){this.pause();}this.loadImage(this.imageIndex-1);this.fire("prevImage");},nextImage:function(){if(this.get("pauseOnNextOrPrev")){this.pause();}this.loadImage(this.imageIndex+1);this.fire("nextImage");},_onKey:function(B){switch(B.keyCode){case 37:this.prevImage();break;case 39:this.nextImage();break;}},resize:function(){var E=this.get("stretchy"),D=this.get("stretchyType"),C=parseInt(A.one("body").get("winWidth"),10),B=this.get("responsiveThreshold");if(C>B&&E&&D=="window"){this._stretchyWindowResize();}else{if((C<=B)||(E&&D=="ratio")){this._stretchyRatioResize();}else{this._standardResize();}}this.fire("resize");},_standardResize:function(){var I=this.get("stretchy"),G=this.get("stretchyType"),H=this.get("boundingBox"),F=H.get("parentNode"),C=parseInt(F.getComputedStyle("height"),10),E=parseInt(F.getComputedStyle("width"),10),B=this.get("height"),D=this.get("width");if(H.hasClass("fl-fullscreen-active")){this._stretchyWindowResize();return;}else{if(I&&G=="contain"){H.setStyle("height",C+"px");H.setStyle("width",E+"px");}else{if(!A.Lang.isNumber(B)){this._stretchyRatioResize();return;}else{H.setStyle("height",B+"px");if(D){H.setStyle("width",D+"px");}else{H.setStyle("width",E+"px");}}}}},_stretchyWindowResize:function(){var G=this.get("boundingBox"),E=this.get("stretchyVerticalSpace"),D=parseInt(G.getStyle("paddingTop"),10),F=parseInt(G.getStyle("paddingBottom"),10),B=parseInt(A.one("body").get("winHeight"),10),C="";if(G.hasClass("fl-fullscreen-active")){E=0;C=parseInt(A.one("body").get("winWidth"),10)+"px";}B=(B-D-F-E)+"px";G.setStyle("height",B);G.setStyle("width",C);},_stretchyRatioResize:function(){var G=this.get("boundingBox"),J=G.get("parentNode"),H=0,F=this.get("stretchyRatio"),L=parseInt(G.getStyle("paddingTop"),10),C=parseInt(G.getStyle("paddingBottom"),10),I=parseInt(J.getComputedStyle("width"),10),E=parseInt(A.one("body").get("winHeight"),10),D=parseInt(A.one("body").get("winWidth"),10),K=I*F,B="";if(G.hasClass("fl-fullscreen-active")){K=E;B=D;}K=(K-L-C-H)+"px";G.setStyle("height",K);G.setStyle("width",B);},_delayResize:function(){if(this._resizeTimer){this._resizeTimer.cancel();}this._resizeTimer=A.later(300,this,this.resize);},play:function(){this._playingTimer=A.later(this.get("speed"),this,this._playingTimerComplete);this.fire("played");this._playing=true;},pause:function(){this._playingTimerCancel();this.fire("paused");this._playing=false;},_setPlayingTimerEvent:function(C,B){this._playingTimerEvent={"obj":C,"e":B};},_playingTimerStart:function(B){this._playingTimerCancel();if(!B&&this._playingTimerEvent!==null){this._playingTimerEvent.obj.once("fl-slideshow-base|"+this._playingTimerEvent.e,A.bind(this._playingTimerStart,this));}else{this._playingTimer=A.later(this.get("speed"),this,this._playingTimerComplete);}},_playingTimerComplete:function(){this.loadImage(this.imageIndex+1);this.fire("playingTimerComplete");},_playingTimerCancel:function(){if(this._playingTimer){this._playingTimer.cancel();}if(this._playingTimerEvent){this._playingTimerEvent.obj.detach("fl-slideshow-base|"+this._playingTimerEvent.e);}},_renderLoadingImage:function(){var C={lines:11,length:6,width:2,radius:7,color:"",speed:1,trail:60,shadow:false},B=A.merge(C,this.get("loadingImageSettings"));if(this.get("loadingImageEnabled")){if(B.color===""){B.color=this._colorToHex(A.one("body").getStyle("color"));}this._loadingImage=new A.FL.Spinner(B);this._loadingImageWrap=A.Node.create('
');this._loadingImageWrap.setStyles({position:"absolute","z-index":"1000"});}},_showLoadingImage:function(){if(this._loadingImage&&!this._loadingImageVisible){this._loadingImageVisible=true;this._loadingImage.spin();this._loadingImageWrap.insert(this._loadingImage.el); if(this._loadingImageContainer!==null){this._loadingImageContainer.insert(this._loadingImageWrap);}else{this.get("contentBox").insert(this._loadingImageWrap);}this._positionLoadingImage();}},_showLoadingImageWithDelay:function(){if(this._loadingImage){this._loadingImageTimer=A.later(1000,this,this._showLoadingImage);}},_hideLoadingImage:function(){if(this._loadingImageTimer){this._loadingImageTimer.cancel();this._loadingImageTimer=null;}if(this._loadingImage&&this._loadingImageVisible){this._loadingImageVisible=false;this._loadingImage.stop();this._loadingImageWrap.remove();}},_positionLoadingImage:function(){if(this._loadingImage&&this._loadingImageVisible){var F=this._loadingImageWrap,B=parseInt(F.getComputedStyle("height"),10),G=parseInt(F.getComputedStyle("width"),10),E=F.get("parentNode"),C=parseInt(E.getComputedStyle("height"),10),D=parseInt(E.getComputedStyle("width"),10),I=(D-G)/2,H=(C-B)/2;F.setStyles({left:I+"px",top:H+"px"});A.one(this._loadingImage.el).setStyles({left:"50%",top:"50%"});}},_colorToHex:function(C){var F,G,E,B,D;if(C.substr(0,1)==="#"){return C;}F=/(.*?)rgb\((\d+), (\d+), (\d+)\)/.exec(C);if(null===F){return"#000";}G=parseInt(F[2],10);E=parseInt(F[3],10);B=parseInt(F[4],10);D=B|(E<<8)|(G<<16);D=D.toString(16);if(D==="0"){D="000";}return F[1]+"#"+D;}},{CSS_PREFIX:"fl-slideshow-base",ATTRS:{color:{value:"dark",writeOnce:true},source:{value:[],setter:function(C){if(C.constructor==Object){C=[C];}for(var B=0;B0){return false;}if(F=="transform"&&A.UA.ie>0&&A.UA.ie<10){return false;}if(F=="transform"&&navigator.userAgent.match(/Trident/)){return false;}if(typeof E=="undefined"){return false;}if(typeof E[F]=="string"){return true;}F=F.charAt(0).toUpperCase()+F.substr(1);for(;D<]/g,function(e){switch(e){case'"':return""";case"&":return"&";case"<":return"<";case">":return">"}})};CSSLint.addFormatter({id:"checkstyle-xml",name:"Checkstyle XML format",startFormat:function(){return''},endFormat:function(){return""},readError:function(t,n){return''},formatResults:function(t,n){var r=t.messages,i=[],s=function(e){return!!e&&"name"in e?"net.csslint."+e.name.replace(/\s/g,""):""};return r.length>0&&(i.push(''),CSSLint.Util.forEach(r,function(t){t.rollup||i.push('')}),i.push("")),i.join("")}})}(),CSSLint.addFormatter({id:"compact",name:"Compact, 'porcelain' format",startFormat:function(){return""},endFormat:function(){return""},formatResults:function(e,t,n){var r=e.messages,i="";n=n||{};var s=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};return r.length===0?n.quiet?"":t+": Lint Free!":(CSSLint.Util.forEach(r,function(e){e.rollup?i+=t+": "+s(e.type)+" - "+e.message+"\n":i+=t+": "+"line "+e.line+", col "+e.col+", "+s(e.type)+" - "+e.message+" ("+e.rule.id+")\n"}),i)}}),CSSLint.addFormatter({id:"csslint-xml",name:"CSSLint XML format",startFormat:function(){return''},endFormat:function(){return""},formatResults:function(e,t){var n=e.messages,r=[],i=function(e){return!e||e.constructor!==String?"":e.replace(/\"/g,"'").replace(/&/g,"&").replace(//g,">")};return n.length>0&&(r.push(''),CSSLint.Util.forEach(n,function(e){e.rollup?r.push(''):r.push('')}),r.push("")),r.join("")}}),CSSLint.addFormatter({id:"junit-xml",name:"JUNIT XML format",startFormat:function(){return''},endFormat:function(){return""},formatResults:function(e,t){var n=e.messages,r=[],i={error:0,failure:0},s=function(e){return!!e&&"name"in e?"net.csslint."+e.name.replace(/\s/g,""):""},o=function(e){return!e||e.constructor!==String?"":e.replace(/\"/g,"'").replace(//g,">")};return n.length>0&&(n.forEach(function(e){var t=e.type==="warning"?"error":e.type;e.rollup||(r.push(''),r.push("<"+t+' message="'+o(e.message)+'">"),r.push(""),i[t]+=1)}),r.unshift(''),r.push("")),r.join("")}}),CSSLint.addFormatter({id:"lint-xml",name:"Lint XML format",startFormat:function(){return''},endFormat:function(){return""},formatResults:function(e,t){var n=e.messages,r=[],i=function(e){return!e||e.constructor!==String?"":e.replace(/\"/g,"'").replace(/&/g,"&").replace(//g,">")};return n.length>0&&(r.push(''),CSSLint.Util.forEach(n,function(e){e.rollup?r.push(''):r.push('')}),r.push("")),r.join("")}}),CSSLint.addFormatter({id:"text",name:"Plain Text",startFormat:function(){return""},endFormat:function(){return""},formatResults:function(e,t,n){var r=e.messages,i="";n=n||{};if(r.length===0)return n.quiet?"":"\n\ncsslint: No errors in "+t+".";i="\n\ncsslint: There ",r.length===1?i+="is 1 problem":i+="are "+r.length+" problems",i+=" in "+t+".";var s=t.lastIndexOf("/"),o=t;return s===-1&&(s=t.lastIndexOf("\\")),s>-1&&(o=t.substring(s+1)),CSSLint.Util.forEach(r,function(e,t){i=i+"\n\n"+o,e.rollup?(i+="\n"+(t+1)+": "+e.type,i+="\n"+e.message):(i+="\n"+(t+1)+": "+e.type+" at line "+e.line+", col "+e.col,i+="\n"+e.message,i+="\n"+e.evidence)}),i}}),module.exports.CSSLint=CSSLint}),define("ace/mode/css_worker",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/worker/mirror","ace/mode/css/csslint"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/lang"),s=e("../worker/mirror").Mirror,o=e("./css/csslint").CSSLint,u=t.Worker=function(e){s.call(this,e),this.setTimeout(400),this.ruleset=null,this.setDisabledRules("ids|order-alphabetical"),this.setInfoRules("adjoining-classes|qualified-headings|zero-units|gradients|import|outline-none|vendor-prefix")};r.inherits(u,s),function(){this.setInfoRules=function(e){typeof e=="string"&&(e=e.split("|")),this.infoRules=i.arrayToMap(e),this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.setDisabledRules=function(e){if(!e)this.ruleset=null;else{typeof e=="string"&&(e=e.split("|"));var t={};o.getRules().forEach(function(e){t[e.id]=!0}),e.forEach(function(e){delete t[e]}),this.ruleset=t}this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.onUpdate=function(){var e=this.doc.getValue();if(!e)return this.sender.emit("annotate",[]);var t=this.infoRules,n=o.verify(e,this.ruleset);this.sender.emit("annotate",n.messages.map(function(e){return{row:e.line-1,column:e.col-1,text:e.message,type:t[e.rule.id]?"info":e.type,rule:e.rule.name}}))}}.call(u.prototype)}),define("ace/lib/es5-shim",["require","exports","module"],function(e,t,n){function r(){}function w(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(t){}}function H(e){return e=+e,e!==e?e=0:e!==0&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}function B(e){var t=typeof e;return e===null||t==="undefined"||t==="boolean"||t==="number"||t==="string"}function j(e){var t,n,r;if(B(e))return e;n=e.valueOf;if(typeof n=="function"){t=n.call(e);if(B(t))return t}r=e.toString;if(typeof r=="function"){t=r.call(e);if(B(t))return t}throw new TypeError}Function.prototype.bind||(Function.prototype.bind=function(t){var n=this;if(typeof n!="function")throw new TypeError("Function.prototype.bind called on incompatible "+n);var i=u.call(arguments,1),s=function(){if(this instanceof s){var e=n.apply(this,i.concat(u.call(arguments)));return Object(e)===e?e:this}return n.apply(t,i.concat(u.call(arguments)))};return n.prototype&&(r.prototype=n.prototype,s.prototype=new r,r.prototype=null),s});var i=Function.prototype.call,s=Array.prototype,o=Object.prototype,u=s.slice,a=i.bind(o.toString),f=i.bind(o.hasOwnProperty),l,c,h,p,d;if(d=f(o,"__defineGetter__"))l=i.bind(o.__defineGetter__),c=i.bind(o.__defineSetter__),h=i.bind(o.__lookupGetter__),p=i.bind(o.__lookupSetter__);if([1,2].splice(0).length!=2)if(!function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t=[],n;t.splice.apply(t,e(20)),t.splice.apply(t,e(26)),n=t.length,t.splice(5,0,"XXX"),n+1==t.length;if(n+1==t.length)return!0}())Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):e==void 0?e=0:e<0&&(e=Math.max(n+e,0)),e+ta)for(h=l;h--;)this[f+h]=this[a+h];if(s&&e===c)this.length=c,this.push.apply(this,i);else{this.length=c+s;for(h=0;h>>0;if(a(t)!="[object Function]")throw new TypeError;while(++s>>0,s=Array(i),o=arguments[1];if(a(t)!="[object Function]")throw new TypeError(t+" is not a function");for(var u=0;u>>0,s=[],o,u=arguments[1];if(a(t)!="[object Function]")throw new TypeError(t+" is not a function");for(var f=0;f>>0,s=arguments[1];if(a(t)!="[object Function]")throw new TypeError(t+" is not a function");for(var o=0;o>>0,s=arguments[1];if(a(t)!="[object Function]")throw new TypeError(t+" is not a function");for(var o=0;o>>0;if(a(t)!="[object Function]")throw new TypeError(t+" is not a function");if(!i&&arguments.length==1)throw new TypeError("reduce of empty array with no initial value");var s=0,o;if(arguments.length>=2)o=arguments[1];else do{if(s in r){o=r[s++];break}if(++s>=i)throw new TypeError("reduce of empty array with no initial value")}while(!0);for(;s>>0;if(a(t)!="[object Function]")throw new TypeError(t+" is not a function");if(!i&&arguments.length==1)throw new TypeError("reduceRight of empty array with no initial value");var s,o=i-1;if(arguments.length>=2)s=arguments[1];else do{if(o in r){s=r[o--];break}if(--o<0)throw new TypeError("reduceRight of empty array with no initial value")}while(!0);do o in this&&(s=t.call(void 0,s,r[o],o,n));while(o--);return s});if(!Array.prototype.indexOf||[0,1].indexOf(1,2)!=-1)Array.prototype.indexOf=function(t){var n=g&&a(this)=="[object String]"?this.split(""):F(this),r=n.length>>>0;if(!r)return-1;var i=0;arguments.length>1&&(i=H(arguments[1])),i=i>=0?i:Math.max(0,r+i);for(;i>>0;if(!r)return-1;var i=r-1;arguments.length>1&&(i=Math.min(i,H(arguments[1]))),i=i>=0?i:r-Math.abs(i);for(;i>=0;i--)if(i in n&&t===n[i])return i;return-1};Object.getPrototypeOf||(Object.getPrototypeOf=function(t){return t.__proto__||(t.constructor?t.constructor.prototype:o)});if(!Object.getOwnPropertyDescriptor){var y="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(t,n){if(typeof t!="object"&&typeof t!="function"||t===null)throw new TypeError(y+t);if(!f(t,n))return;var r,i,s;r={enumerable:!0,configurable:!0};if(d){var u=t.__proto__;t.__proto__=o;var i=h(t,n),s=p(t,n);t.__proto__=u;if(i||s)return i&&(r.get=i),s&&(r.set=s),r}return r.value=t[n],r}}Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(t){return Object.keys(t)});if(!Object.create){var b;Object.prototype.__proto__===null?b=function(){return{__proto__:null}}:b=function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(t,n){var r;if(t===null)r=b();else{if(typeof t!="object")throw new TypeError("typeof prototype["+typeof t+"] != 'object'");var i=function(){};i.prototype=t,r=new i,r.__proto__=t}return n!==void 0&&Object.defineProperties(r,n),r}}if(Object.defineProperty){var E=w({}),S=typeof document=="undefined"||w(document.createElement("div"));if(!E||!S)var x=Object.defineProperty}if(!Object.defineProperty||x){var T="Property description must be an object: ",N="Object.defineProperty called on non-object: ",C="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(t,n,r){if(typeof t!="object"&&typeof t!="function"||t===null)throw new TypeError(N+t);if(typeof r!="object"&&typeof r!="function"||r===null)throw new TypeError(T+r);if(x)try{return x.call(Object,t,n,r)}catch(i){}if(f(r,"value"))if(d&&(h(t,n)||p(t,n))){var s=t.__proto__;t.__proto__=o,delete t[n],t[n]=r.value,t.__proto__=s}else t[n]=r.value;else{if(!d)throw new TypeError(C);f(r,"get")&&l(t,n,r.get),f(r,"set")&&c(t,n,r.set)}return t}}Object.defineProperties||(Object.defineProperties=function(t,n){for(var r in n)f(n,r)&&Object.defineProperty(t,r,n[r]);return t}),Object.seal||(Object.seal=function(t){return t}),Object.freeze||(Object.freeze=function(t){return t});try{Object.freeze(function(){})}catch(k){Object.freeze=function(t){return function(n){return typeof n=="function"?n:t(n)}}(Object.freeze)}Object.preventExtensions||(Object.preventExtensions=function(t){return t}),Object.isSealed||(Object.isSealed=function(t){return!1}),Object.isFrozen||(Object.isFrozen=function(t){return!1}),Object.isExtensible||(Object.isExtensible=function(t){if(Object(t)===t)throw new TypeError;var n="";while(f(t,n))n+="?";t[n]=!0;var r=f(t,n);return delete t[n],r});if(!Object.keys){var L=!0,A=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],O=A.length;for(var M in{toString:null})L=!1;Object.keys=function I(e){if(typeof e!="object"&&typeof e!="function"||e===null)throw new TypeError("Object.keys called on a non-object");var I=[];for(var t in e)f(e,t)&&I.push(t);if(L)for(var n=0,r=O;nMaori
  • Marathi
  • Mongolian
  • Burmese
  • Nepali
  • Norwegian
  • Pashto
  • Persian
  • Punjabi
  • Serbian
  • Sesotho
  • Sinhala
  • Slovak
  • Slovenian
  • Somali
  • Samoan