text: /*!
  *  filename: ej.rotator.min.js
  *  version : 15.1.0.37
  *  Copyright Syncfusion Inc. 2001 - 2017. All rights reserved.
  *  Use of this code is subject to the terms of our license.
  *  A copy of the current license can be obtained at any time by e-mailing
  *  licensing@syncfusion.com. Any infringement will be prosecuted under
  *  applicable laws. 
  */
  (function(n){typeof define=="function"&&define.amd?define(["./../common/ej.core.min","./../common/ej.data.min","./../common/ej.touch.min"],n):n()})(function(){(function(n,t){t.widget("ejRotator","ej.Rotator",{element:null,model:null,_setFirst:!1,validTags:["ul"],defaults:{cssClass:"",dataSource:null,query:null,fields:{text:"text",url:"url",linkAttribute:"linkAttribute",targetAttribute:"targetAttribute",thumbnailText:"text",thumbnailUrl:"url"},enabled:!0,displayItemsCount:"1",navigateSteps:"1",animationSpeed:600,startIndex:"0",enableTouch:!0,showPlayButton:!1,enableAutoPlay:!1,showNavigateButton:!0,slideWidth:"",slideHeight:"",frameSpace:"",isResponsive:!1,orientation:"horizontal",pagerPosition:"outside",showThumbnail:!1,showPager:!0,stopOnHover:!1,htmlAttributes:{},thumbnailSourceID:null,template:null,templateId:null,showCaption:!1,allowKeyboardNavigation:!0,enableRTL:!1,animationType:"slide",delay:500,circularMode:!0,create:null,change:null,start:null,stop:null,thumbItemClick:null,pagerClick:null,destroy:null},dataTypes:{cssClass:"string",dataSource:"data",query:"data",fields:"data",template:"string",templateId:"array",enabled:"boolean",displayItemsCount:"",navigateSteps:"",animationSpeed:"",transitionDelay:"",startIndex:"",showPlayButton:"boolean",enableAutoPlay:"boolean",slideWidth:"",slideHeight:"",frameSpace:"",isResponsive:"boolean",orientation:"enum",pagerPosition:"enum",showThumbnail:"boolean",thumbnailSourceID:"",showPager:"boolean",showCaption:"boolean",enableRTL:"boolean",allowKeyboardNavigation:"boolean",circularMode:"boolean",animationType:"string",delay:"",htmlAttributes:"data"},_init:function(){this._rtlDirection=!0;this._initialize();this.model.dataSource==null&&this._setValues();this._render();this._wireEvent();this.model.enableAutoPlay&&this.play();this.model.enabled||t.browserInfo().name!="msie"||t.browserInfo().version!="8.0"||(this._outerWrapper.addClass("e-disable").attr({"aria-disabled":!0}),this._ieEnable("addClass"))},_initialize:function(){this.element.attr("tabindex",0);this._liCount=null;this.transitionDelay=null;this._animating=!1;this._isPlaying=!1;this._interval=null;this._thumbCount=null;this._captionChange=!1;this._liSize=null;this._containerSize=null;this._thumbVal=this.model.showThumbnail;this.containerCss=this.model.orientation==t.Orientation.Horizontal?"outerWidth":"outerHeight";this.displayCss=this.model.orientation==t.Orientation.Horizontal?"left":"top";n.extend(jQuery.easing,{slowSlide:function(n,t,i,r,u){var f=(t/=u)*t;return i+r*f*f},fastSlide:function(n,t,i,r,u){var f=(t/=u)*t,e=f*t;return i+r*(e*f+-5*f*f+10*e+-10*f+5*t)},slide:function(n,t,i,r,u){var f=(t/=u)*t,e=f*t;return i+r*(6*e*f+-15*f*f+10*e)}})},_setValues:function(){this._setLicount();this._setSpeed(this.model.animationSpeed);this._setVisibleItemCount(this.model.displayItemsCount);this._setItemMove(this.model.navigateSteps);this._setFrameSpace(this.model.frameSpace);this._setSlideWidth(this.model.slideWidth);this._setSlideHeight(this.model.slideHeight);this._changeProperty();this._setInitial()},_refresh:function(){this._setValues();this._setDimension();this._changeSkin()},_reRenderControl:function(){this._undoClone();this._setLicount();this._setSpeed(this.model.animationSpeed);this._setVisibleItemCount(this.model.displayItemsCount);this._setItemMove(this.model.navigateSteps);this._setFrameSpace(this.model.frameSpace);this._setSlideWidth(this.model.slideWidth);this._setSlideHeight(this.model.slideHeight);this._changeProperty();this._cloneItem();this._createCaption();this._changeSkin();this._setRTL(!1)},_refreshControl:function(){this._setShowPager();this.model.showCaption?(this.element.siblings().hasClass("e-caption")&&this._caption.remove(),this._createCaption()):this.element.siblings().hasClass("e-caption")&&this._caption.remove();this.model.showThumbnail||this._thumbVal&&this.model.displayItemsCount==1&&this.model.navigateSteps==1?(this.element.parents(".e-in-wrap").siblings().hasClass("e-thumb")&&(this._thumb.remove(),t.isNullOrUndefined(this._thumbControl)||this._thumbControl.remove()),this._createThumb(),this.model.showThumbnail=!0):this.element.parents(".e-in-wrap").siblings().hasClass("e-thumb")&&(this._thumb.remove(),t.isNullOrUndefined(this._thumbControl)||this._thumbControl.remove());this._changeSkin();this._setRTL(!1)},_checkDataBinding:function(){var n=this.model.dataSource;n!=null&&(this.element.addClass("onloading"),t.DataManager&&n instanceof t.DataManager?this._initDataSource(n):this._renderItems(n));this._setValues()},_initDataSource:function(n){var t=this,i;i=n.executeQuery(this._getQuery());i.done(function(n){t._renderItems(n.result)}).fail(function(){t.element.removeClass("onloading")})},_getQuery:function(){var n;if(t.isNullOrUndefined(this.model.query)){n=[];queryManager=t.Query();mapper=this.model.fields;col;for(col in mapper)col!=="tableName"&&mapper[col]&&n.push(mapper[col]);n.length>0&&queryManager.select(n);this.model.dataSource.dataSource.url.match(mapper.tableName+"$")||t.isNullOrUndefined(mapper.tableName)||queryManager.from(mapper.tableName)}else queryManager=this.model.query;return queryManager},_renderItems:function(n){this.list=n;this._generateTagItems(this.list);this.element.removeClass("onloading")},_generateTagItems:function(n){var t;for(this.mapField=this._getMapper(),t=0;t<n.length;t++)this.element.append(this._generateLi(n[t],this.mapField))},_getTemplatedItems:function(){var e=this.model.templateId,u,r,f;for(i=0;i<e.length;i++)u=t.buildTag("li"),r=n("#"+this.model.templateId[i]),f=r[0]&&r[0].nodeName&&r[0].nodeName.toLowerCase()=="script"?t.getClearString(r[0].innerHTML):r,this.element.append(n(u).append(f))},_getMapper:function(){var n=this.model.fields,t={_text:null,_url:null};return t._text=n&&n.text?n.text:"text",t._url=n&&n.url?n.url:"url",t._attr=n&&n.htmlAttr?n.htmlAttr:"htmlAttr",t._linkAttribute=n&&n.linkAttribute?n.linkAttribute:"linkAttribute",t._targetAttribute=n&&n.targetAttribute?n.targetAttribute:"targetAttribute",t._thumbnailText=n&&n.thumbnailText?n.thumbnailText:"text",t._thumbnailUrl=n&&n.thumbnailUrl?n.thumbnailUrl:"url",t},_generateLi:function(i,r){var f=t.buildTag("li"),u,e;return u=t.buildTag("img"),t.isNullOrUndefined(i[r._url])||u.attr("src",i[r._url]),t.isNullOrUndefined(i[r._text])||u.attr("title",i[r._text]),t.isNullOrUndefined(i[r._linkAttribute])?this.model.template||f.append(u):(e=t.buildTag("a").attr({href:i[r._linkAttribute]}).append(u),t.isNullOrUndefined(i[r._targetAttribute])||e.attr("target","_"+i[r._targetAttribute]),f.append(e)),this.model.template&&n(f).append(this._getTemplatedString(i)),this._setAttributes(i[r._attr],u),f},_getTemplatedString:function(n){for(var t=this.model.template,i=t.indexOf("${"),r=t.indexOf("}"),u,f;i!=-1&&r!=-1;)u=t.substring(i,r+1),f=u.replace("${","").replace("}",""),t=t.replace(u,this._getField(n,f)),i=t.indexOf("${"),r=t.indexOf("}");return t},_getField:function(n,i){return t.pvt.getObject(i,n)},_generateThumbnailLi:function(n,i){var u=t.buildTag("li"),r;return r=t.buildTag("img"),t.isNullOrUndefined(n[i._thumbnailUrl])||r.attr("src",n[i._thumbnailUrl]),t.isNullOrUndefined(n[i._thumbnailText])||r.attr("title",n[i._thumbnailText]),u.append(r),u},_setAttributes:function(n,t){if(n)for(var i in n)t.attr(i,n[i])},_createWrapper:function(){this._wrapper=t.buildTag("div.e-inner e-box e-"+this.model.orientation).insertBefore(this.element);this.model.dataSource!=null&&this._checkDataBinding();this.model.templateId!=null&&(this._getTemplatedItems(),this._setValues());this._wrapper.append(this.element);this._innerWrapper=t.buildTag("div.e-in-wrap").insertBefore(this._wrapper);this._innerWrapper.append(this._wrapper);this._outerWrapper=t.buildTag("div.e-rotator-wrap e-widget "+this.model.cssClass).insertBefore(this._innerWrapper);this._outerWrapper.append(this._innerWrapper);this.model.enabled||this._outerWrapper.addClass("e-disable").attr({"aria-disabled":!0})},_refreshTagItems:function(n,t){this.model[n]=t;this.element.children("li").remove();this._checkDataBinding();this._cloneItem();this._refreshControl()},_createButtonControl:function(){this._buttonWrapper=t.buildTag("div.e-nav").insertAfter(this._wrapper);this.model.showNavigateButton&&(this._prevButton=t.buildTag("span.e-nav-btn e-icon e-previous").attr({role:"button"}).appendTo(this._buttonWrapper),this._nextButton=t.buildTag("span.e-nav-btn e-icon e-next").attr({role:"button"}).appendTo(this._buttonWrapper));this._buttonWrapper.appendTo(this._wrapper);this._createAutoPlay();this.model.showNavigateButton&&this._wireBtnEvents()},_createAutoPlay:function(){var n;if(!this.model.showPlayButton)return!1;n=this._interval!=null?"pause":"play";this._autoButton=t.buildTag("span.e-nav-btn e-icon "+n,"",{},{role:"button"}).appendTo(this._buttonWrapper);this._wireAutoPlayEvents()},_createBulletControl:function(){var n;for(this._bulletWrapper=t.buildTag("div.e-pager-wrap","",{},{role:"group","aria-label":"showPager",tabindex:"0"}).insertAfter(this._innerWrapper),this._bullet=t.buildTag("ul.e-bullet e-default"),this.model.circularMode?(n=(this._liCount-this.model.displayItemsCount*2)/this.model.navigateSteps,(this._liCount-this.model.displayItemsCount*2)%this.model.navigateSteps!=0&&n++):(n=(this._liCount-this.model.displayItemsCount)/this.model.navigateSteps+1,(this._liCount-this.model.displayItemsCount)%this.model.navigateSteps!=0&&n++),i=1;i<=n;i++)t.buildTag("li.e-icon","",{},{tabindex:"-1","aria-selected":"false"}).appendTo(this._bullet);this._bullet.appendTo(this._bulletWrapper);this._setActiveBullet();this._setPagerposition(this.model.pagerPosition);this._wireBulletEvents()},_createCaption:function(){var i;if(!this.model.showCaption)return!1;this._caption=t.buildTag("div.e-caption").append(n("<span>")).insertAfter(this._buttonWrapper);this.model.circularMode?(i=Math.round(-Math.round(this.element.position()[this.displayCss])/this._liSize),i--):i=Math.round(-Math.round(this.element.position()[this.displayCss])/this._liSize);this._setCaptionText(i)},_createThumb:function(){var r,i;if(this.model.dataSource!=null||this.model.thumbnailSourceID!=null){if(this._thumb=this.model.showPager?t.buildTag("div.e-thumb","",{},{tabindex:"0",role:"group"}).insertAfter(this._bulletWrapper):t.buildTag("div.e-thumb","",{},{tabindex:"0",role:"group"}).insertAfter(this._innerWrapper),this._thumbItems=t.buildTag("ul.e-thumb-items e-ul"),this.model.dataSource!=null)this._thumbItems.addClass("onloading"),this._generateThumbnailTagItems(this.list);else{for(i=0;i<n("#"+this.model.thumbnailSourceID).children("li").length;i++)r=n("#"+this.model.thumbnailSourceID).children("li").eq(i).clone(),r.addClass("e-thumb-ele").attr("tabindex",-1).removeAttr("style").appendTo(this._thumbItems);n("#"+this.model.thumbnailSourceID).css("display","none")}this._thumbItems.appendTo(this._thumb);this._setThumbProperty();this._setActiveThumb()}},_createThumbControl:function(){this._thumbControl=t.buildTag("div.e-thumb-nav").insertAfter(this._thumb);this._previous=t.buildTag("span.e-thumb-btn e-icon e-previous "+(this.model.enableRTL?"e-enable":"e-disable"),"",{},{"aria-disabled":this.model.enableRTL?!1:!0}).appendTo(this._thumbControl);this._next=t.buildTag("span.e-thumb-btn e-icon e-next "+(this.model.enableRTL?"e-disable":"e-enable"),"",{},{"aria-disabled":this.model.enableRTL?!0:!1}).appendTo(this._thumbControl);this._thumbControl.appendTo(this._outerWrapper);this._wireThumbEvents()},_generateThumbnailTagItems:function(n){for(var t=0;t<n.length;t++)this._thumbItems.append(this._generateThumbnailLi(n[t],this.mapField).addClass("e-thumb-ele").attr("tabindex",-1));this._thumbItems.removeClass("onloading")},_setSkin:function(n){this._outerWrapper.removeClass(this.model.cssClass).addClass(n)},_cloneItem:function(){if(this.model.circularMode){for(var n=0,i=t.buildTag("ul"),n=0;n<this.model.displayItemsCount;n++)this.element.children("li").eq(n).clone().addClass("clone").appendTo(this.element);for(n=this._liCount-this.model.displayItemsCount;n<this._liCount;n++)this.element.children("li").eq(n).clone().addClass("clone").prependTo(i);for(n=0;n<i.children("li").length;n++)i.children("li").eq(n).clone().prependTo(this.element)}this._setDimension()},_undoClone:function(){for(i=0;i<this._liCount;i++)this.element.children("li").eq(i).hasClass("clone")&&(this.element.children("li").eq(i).remove(),this._setLicount(),i--)},_setModel:function(n){var t,i=!1,r=!1;for(t in n)switch(t){case"enableAutoPlay":(this.model.enableAutoPlay=n[t])?this._autoPlay():this._setPause(!0);break;case"enableTouch":this.model.enableTouch=n[t];this._wireTouchEvents();break;case"fields":case"query":case"dataSource":case"template":this._refreshTagItems(t,n[t]);break;case"enabled":this._changeState(n[t]);break;case"slideWidth":this._setSlideWidth(n[t]);i=!0;r=!0;break;case"slideHeight":this._setSlideHeight(n[t]);i=!0;r=!0;break;case"displayItemsCount":this._undoClone();this._setVisibleItemCount(n[t]);this._cloneItem();this.model.displayItemsCount==1&&this._captionChange&&(this.model.showCaption=!0,this._captionChange=!1);i=!0;r=!0;break;case"navigateSteps":n[t]=this._validateItemMove(n[t]);this.model.navigateSteps=n[t];i=!0;r=!0;break;case"pagerPosition":this._setPagerposition(n[t]);break;case"showPager":this.model.showPager=n[t];this._setShowPager();break;case"showThumbnail":this._thumbVal=this.model.showThumbnail=n[t];i=!0;r=!0;break;case"thumbnailSourceID":this.model.thumbnailSourceID=n[t];this.model.dataSource==null&&(i=!0,r=!0);break;case"showCaption":this.model.showCaption=n[t];i=!0;r=!0;break;case"isResponsive":this.model.isResponsive=n[t];this._wireResizeEvents();break;case"orientation":this.model.orientation=n[t];this._setOrientation(n[t]);break;case"animationSpeed":this._setSpeed(n[t]);break;case"frameSpace":this._setFrameSpace(n[t]);i=!0;r=!0;break;case"showPlayButton":this.model.showPlayButton=n[t];this._setAutoplay(n[t]);this._changeSkin();break;case"startIndex":this.model.startIndex=n[t];i=!0;r=!0;break;case"allowKeyboardNavigation":this.model.allowKeyboardNavigation=n[t];this._wireKeyboardEvents();break;case"showNavigateButton":this.model.showNavigateButton=n[t];this._setSlideButton(n[t]);this._changeSkin();break;case"animationType":this.model.animationType=n[t];this._setSpeed(this.model.animationSpeed);break;case"cssClass":this._setSkin(n[t]);break;case"enableRTL":this._setRTL(!0,n[t]);break;case"circularMode":this.model.circularMode=n[t];this._reRenderControl();this._refresh();break;case"delay":this.model.delay=n[t];this._setSpeed(this.model.animationSpeed);break;case"htmlAttributes":this._addAttr(n[t])}i&&this._refresh();r&&this._refreshControl()},_setShowPager:function(){this.model.showPager?(t.isNullOrUndefined(this._bulletWrapper)||this._bulletWrapper.remove(),this._createBulletControl()):this.element.parents(".e-in-wrap").siblings().hasClass("e-pager-wrap")&&this._bulletWrapper.remove()},_setDimension:function(){this._setLicount();this._setUlInitial();this._setWidth();this._setHeight();this._setContainerPercent();this._changeProperty()},_render:function(){this._createWrapper();this._addAttr(this.model.htmlAttributes);this._cloneItem();this._createButtonControl();this._createCaption();this.model.showPager&&this._createBulletControl();this.model.showThumbnail&&this._createThumb();this._outerWrapper.find(this.element).addClass("e-ul");this._changeSkin();this._setRTL(!1)},_setWidth:function(){this._containerWidth=this.model.orientation=="horizontal"?parseInt(this.model.slideWidth)*this.model.displayItemsCount+parseInt(this.model.frameSpace)*(parseInt(this.model.displayItemsCount)-1):this.model.slideWidth;this.element.parent().css("width",this._containerWidth);this.element.parents(".e-in-wrap").css("width",this._containerWidth);this.element.parents(".e-rotator-wrap").css("width",this._containerWidth);this._changeProperty()},_setHeight:function(){this._containerHeight=this.model.orientation=="vertical"?parseInt(this.model.slideHeight)*this.model.displayItemsCount+parseInt(this.model.frameSpace)*(parseInt(this.model.displayItemsCount)-1):this.model.slideHeight;this.element.parent().css("height",this._containerHeight);this._changeProperty()},_addAttr:function(t){var i=this;n.map(t,function(n,t){t=="class"?i._outerWrapper.addClass(n):i._outerWrapper.attr(t,n);t=="disabled"&&n=="disabled"&&i.disable()})},_setUlInitial:function(){this.model.orientation==t.Orientation.Horizontal?this.element.css({width:this._liCount*this._liWidth,height:this._liHeight}):this.element.css({height:this._liCount*this._liHeight,width:this._liWidth})},_setInitial:function(){this.model.circularMode?this.element.css(this.displayCss,-(this._liSize*this.model.displayItemsCount)-(this.model.startIndex>0&&this.element.children("li").length>this.model.startIndex?this.model.startIndex:0)*this.model.navigateSteps*this._liSize):this.element.css(this.displayCss,"0")},_setBegin:function(){this.model.circularMode?this.element.css(this.displayCss,-(this._liSize*this.model.displayItemsCount)):this.element.css(this.displayCss,"0")},_setSlideWidth:function(n){isNaN(parseInt(n))?this.model.slideWidth=this._getMaxSize("width"):(n=n.toString(),this.model.slideWidth=this._checkValue(n,"width"));this.element.children("li").css("width",this.model.slideWidth);this._liWidth=this.element.children("li").outerWidth(!0)},_setSlideHeight:function(n){isNaN(parseInt(n))?this.model.slideHeight=this._getMaxSize("height"):(n=n.toString(),this.model.slideHeight=this._checkValue(n,"height"));this.element.children("li").css("height",this.model.slideHeight);this._liHeight=this.element.children("li").outerHeight(!0)},_setPagerposition:function(n){this.model.showPager&&(this._bullet.removeClass("e-default e-thumb-pos e-topleft e-topright e-bottomleft e-bottomright e-topCenter e-outside"),this._bullet.addClass("e-"+n),(n=="bottomleft"||n=="bottomright")&&this.model.showThumbnail&&(this.model.dataSource!=null||this.model.thumbnailSourceID!=null)&&this._bullet.addClass("e-thumb-pos"))},_setCaptionText:function(n){if(this.model.showCaption){var t=this.model.circularMode?++n:n;this._caption.children().html(this.element.children("li").eq(t).children("img").attr("title"))}},_setAutoplay:function(n){n?this._createAutoPlay():this._autoButton!=null&&(this._setPause(),this._autoButton.remove())},_setSlideButton:function(n){n?this._createButtonControl():(this._prevButton.remove(),this._nextButton.remove())},_setOrientation:function(n){this._wrapper.removeClass("e-"+this.model.orientation).addClass("e-"+n);this._setFrameSpace(this.model.frameSpace);this._refresh();this.model.orientation==t.Orientation.Horizontal?this.element.css({left:-(Math.round(-this.element.position().top/this._liHeight)*this._liSize),top:0}):this.element.css({top:-(Math.round(-this.element.position().left/this._liWidth)*this._liSize),left:0})},_setRTL:function(n,i){n&&this.model.showNavigateButton&&(this._unwireBtnEvents(),this.model.enableRTL=i);var r=this.model.enableRTL?"addClass":"removeClass";this.model.showPager&&this._bullet[r]("e-rtl");this.model.showCaption&&this._caption[r]("e-rtl");t.isNullOrUndefined(this._thumbItems)||this._thumbItems[r]("e-rtl");n&&this.model.showNavigateButton&&this._wireBtnEvents()},_setActiveBullet:function(){var n;this.model.circularMode?(n=Math.round(-Math.round(this.element.position()[this.displayCss])/(this._liSize*this.model.displayItemsCount)),this.model.navigateSteps<this.model.displayItemsCount&&(n=-(Math.round(this.element.position()[this.displayCss])+this._liSize*this.model.displayItemsCount)/(this._liSize*this.model.navigateSteps)),n=this.model.navigateSteps==this.model.displayItemsCount?n-1:n):n=Math.round(-Math.round(this.element.position()[this.displayCss])/(this._liSize*this.model.navigateSteps));n=n<0?-n:n;this._bullet.children().eq(Math.round(n)).addClass("e-active").attr({tabindex:0,"aria-selected":"true"})},_setActiveThumb:function(){var n;this.model.circularMode?(n=Math.round(-Math.round(this.element.position()[this.displayCss])/this._liSize),n--):(n=Math.round(Math.round(this.element.position()[this.displayCss])/this._liSize),n=n==0?n:-n);this._thumbItems.children().eq(n).addClass("e-active").attr({tabindex:0,"aria-selected":"true"});this._transferThumb(n)},_checkValue:function(t,i){return t.indexOf("%")>0&&(Math.round(parseInt(t))=="100"&&(this.model.displayItemsCount=1,this._setVisibleItemCount(this.model.displayItemsCount)),t=this._convertPercentageToPixel(n(this.element[0]).parent()[i](),parseInt(t))),t},_convertPercentageToPixel:function(n,t){return Math.round(t*n/100)},_convertPixelToPercentage:function(n,t){return Math.round(t/n*100)},_changeProperty:function(){this.containerCss=this.model.orientation==t.Orientation.Horizontal?"outerWidth":"outerHeight";this.displayCss=this.model.orientation==t.Orientation.Horizontal?"left":"top";this.model.orientation==t.Orientation.Horizontal?(this._liSize=this._liWidth,this._containerSize=this._containerWidth):(this._liSize=this._liHeight,this._containerSize=this._containerHeight)},_setFrameSpace:function(n){isNaN(parseInt(n))?this.model.frameSpace="0px":(this.model.frameSpace=n,this.model.orientation==t.Orientation.Horizontal?this.element.children("li").css({"margin-right":n,"margin-bottom":0}):this.element.children("li").css({"margin-bottom":n,"margin-right":0}))},_setLicount:function(){this._liCount=this.element.children("li").length},_setVisibleItemCount:function(n){this.model.displayItemsCount=n;this.model.navigateSteps=this.model.navigateSteps<=this.model.displayItemsCount?this.model.navigateSteps:this.model.displayItemsCount;this._checkAndSet()},_checkAndSet:function(){(this.model.displayItemsCount>1||this.model.navigateSteps>1)&&(this.model.showThumbnail&&(this.model.showThumbnail=!1),this.model.showCaption&&(this.model.showCaption=!1,this._captionChange=!0))},_changeSkin:function(){var n;this.model.displayItemsCount>1||this.model.navigateSteps>1?(this._innerWrapper.addClass("e-multiple"),this._wrapper.removeClass("e-single"),this._outerWrapper.css("width",this._innerWrapper.outerWidth(!0))):(this._innerWrapper.removeClass("e-multiple"),this._wrapper.addClass("e-single"));this.model.showPlayButton&&this._autoButton.css({left:(this._innerWrapper.outerWidth(!0)/2-this._autoButton.width()/2)/this._innerWrapper.outerWidth(!0)*100+"%",top:(this._wrapper.outerHeight(!0)/2-this._autoButton.height()/2)/this._wrapper.outerHeight(!0)*100+"%"});this.model.showNavigateButton&&(n=(this._wrapper.outerHeight(!0)/2-this._prevButton.height()/2)/this._wrapper.outerHeight(!0)*100+"%",this._prevButton.css("top",n),this._nextButton.css("top",n));this.model.showThumbnail&&(this.model.dataSource!=null||this.model.thumbnailSourceID!=null)&&this._previous!=null&&this._next!=null&&(n=this._outerWrapper.outerHeight(!0)+this._thumbItems.children("li").outerHeight(!0)/2-this._thumbItems.children("li").outerHeight(!0)-this._previous.height()/2,n=n/this._outerWrapper.outerHeight(!0)*100+"%",this._previous.css("top",n),this._next.css("top",n))},_setItemMove:function(n){this.model.navigateSteps=this._validateItemMove(n);this._checkAndSet()},_validateItemMove:function(n){return n<=this.model.displayItemsCount?n:this.model.displayItemsCount},_setPlay:function(){this.model.showPlayButton&&this._autoButton.hasClass("play")&&this._autoButton.removeClass("play").addClass("pause");this._animate=!0;this._raiseEvent("start")},_setPause:function(n){this._interval!=null&&(this.model.showPlayButton&&this._autoButton.hasClass("pause")&&this._autoButton.removeClass("pause").addClass("play"),clearInterval(this._interval),this._isInteraction=!n,this._animate=this.model.stopOnHover?!0:!1,this._interval=null,this._raiseEvent("stop"))},_setContainerPercent:function(){this._containerPercent=this._convertPixelToPercentage(this.element.parents(".e-rotator-wrap").parent().width(),this.element.parent().width())},_setSpeed:function(n){this.transitionDelay=this.model.animationType!="slideshow"?n+this.model.delay:n*2+this.model.delay},_setThumbProperty:function(){var e,u=0,f,i=this._thumbItems.children("li"),r;if(t.browserInfo().name=="msie"&&t.browserInfo().version=="8.0"&&parseFloat(n(i[0]).width())<0)return!1;for(r=0;r<i.length;r++)i[r]!=null&&(u=u+(parseFloat(i.eq(r).width())+parseFloat(i.eq(r).css("padding-left"))+Math.ceil(parseFloat(i.eq(r).css("border-left-width")))+parseFloat(i.eq(r).css("margin-left"))+parseFloat(i.eq(r).css("padding-right"))+Math.ceil(parseFloat(i.eq(r).css("border-right-width")))+parseFloat(i.eq(r).css("margin-right"))));e=Math.round(this.element.parent().outerWidth(!0)-this.element.parent().outerWidth(!0)*12/100);this._thumb.css("width",e);this._thumbCount=Math.floor(this._thumb.outerWidth()/(u/i.length));f=Math.round(this.element.parent().outerWidth(!0)*6/100+(e-this._thumbCount*(u/i.length))/2);this._thumb.css({"margin-left":f,"margin-right":f,width:Math.ceil(this._thumbCount*Math.ceil(u/i.length))});this._thumbItems.css({width:Math.ceil(u),height:this._thumbItems.children("li").outerHeight(!0)});this._checkState();this._previous.css({left:(f-this._previous.width())/2});this._next.css({right:(f-this._next.width())/2})},_checkState:function(){this._thumbCount<=this._liCount-this.model.displayItemsCount*2?this.element.parents(".e-in-wrap").siblings().hasClass("e-thumb-nav")||this._createThumbControl():this.element.parents(".e-in-wrap").siblings().hasClass("e-thumb-nav")&&this._thumbControl.remove()},_removeActiveItem:function(){this.model.showPager&&this._bullet.children().removeClass("e-active").attr({tabindex:-1,"aria-selected":"false"});this.model.showThumbnail&&this._thumbItems.children().removeClass("e-active").attr({tabindex:-1,"aria-selected":"false"})},_setActiveItem:function(n){if(this.model.showPager&&this._bullet.children().eq(n).addClass("e-active").attr({tabindex:0,"aria-selected":"true"}),this.model.showThumbnail)for(this._thumbItems.children().eq(n).addClass("e-active").attr({tabindex:0,"aria-selected":"true"}),this._transferThumb(n),i=0;i<this._thumbItems.children("li").length;i++)this._thumbItems.children("li").eq(i).hasClass("e-thumbhover")&&this._thumbItems.children("li").eq(i).removeClass("e-thumbhover")},_transferThumb:function(n){var t,i;this.model.showThumbnail&&(t=n*this._thumbItems.children("li").outerWidth(!0)- -this._thumbItems.position().left,i=-this._thumbItems.position().left+this._thumb.width(),this._thumbItems.width()-i>t?this._thumbMove(t):this._thumbMove(this._thumbItems.width()-i))},_changeThumbControl:function(n){var t;this.model.showThumbnail&&(this.model.dataSource!=null||this.model.thumbnailSourceID!=null)&&(t=this._thumbItems.children("li").length,n*this._thumbItems.children("li").outerWidth(!0)>0?this._previous!=null&&this._previous.hasClass("e-disable")&&this._previous.removeClass("e-disable").addClass("e-enable").attr({"aria-disabled":!1}):this._previous!=null&&this._previous.hasClass("e-enable")&&this._previous.removeClass("e-enable").addClass("e-disable").attr({"aria-disabled":!0}),n*this._thumbItems.children("li").outerWidth(!0)<(t-this._thumbCount)*this._thumbItems.children("li").outerWidth(!0)?this._next!=null&&this._next.hasClass("e-disable")&&this._next.removeClass("e-disable").addClass("e-enable").attr({"aria-disabled":!1}):this._next!=null&&this._next.hasClass("e-enable")&&this._next.removeClass("e-enable").addClass("e-disable").attr({"aria-disabled":!0}))},_getMaxSize:function(n){for(var t=0,r=0,i=0,u=this,i=0;i<this._liCount;i++)r=this.element.children("li").eq(i)[n](),t=r>t?r:t;return t},_calculateValue:function(){return this._convertPercentageToPixel(this._containerWidth-(this.model.displayItemsCount-1)*parseInt(this.model.frameSpace),100/this.model.displayItemsCount)},_changeState:function(n){n?this.enable():this.disable()},_findActive:function(){var t,n;if(this.model.showPager){for(n=0;n<this._bullet.children("li").length;n++)if(this._bullet.children("li").eq(n).hasClass("e-active"))return n}else if(this.model.showThumbnail){for(n=0;n<this._thumbItems.children("li").length;n++)if(this._thumbItems.children("li").eq(n).hasClass("e-active"))return n}else this.model.showPager||this.model.showThumbnail||(t=Math.round(-Math.round(this.element.position()[this.displayCss])/this._liSize),t=this.model.circularMode?t-1:t);return t},_wireEvent:function(){if(!this.model.enabled)return!1;this._wrapper.on("mouseenter",n.proxy(this._showControl,this));this._wrapper.on("mouseleave",n.proxy(this._hideControl,this));this._wireKeyboardEvents();this._wireResizeEvents();this._wireTouchEvents()},_wireTouchEvents:function(){this.model.enableTouch?this._on(this._wrapper,"swiperight swipeleft swipedown swipeup",{control:!0},this._touchOperations):this._off(this._wrapper,"swiperight swipeleft swipedown swipeup",this._touchOperations);this.model.showThumbnail&&(this.model.dataSource!=null||this.model.thumbnailSourceID!=null)&&this._on(this._thumb,"swiperight swipeleft",{control:!1},this._touchOperations)},_wireKeyboardEvents:function(){if(this.model.allowKeyboardNavigation){this._outerWrapper.on("focusin",n.proxy(this._onFocusIn,this));this._outerWrapper.on("focusout",n.proxy(this._onFocusOut,this))}else this._outerWrapper.off("focusin",n.proxy(this._onFocusIn,this)),this._outerWrapper.off("focusout",n.proxy(this._onFocusOut,this))},_wireBtnEvents:function(){if(this.model.showNavigateButton){this._prevButton.on("click",n.proxy(this.model.enableRTL?this._nextAction:this._prevAction,this));this._nextButton.on("click",n.proxy(this.model.enableRTL?this._prevAction:this._nextAction,this))}else this._unwireBtnEvents()},_unwireBtnEvents:function(){this._prevButton.off("click",n.proxy(this.model.enableRTL?this._nextAction:this._prevAction,this));this._nextButton.off("click",n.proxy(this.model.enableRTL?this._prevAction:this._nextAction,this))},_wireAutoPlayEvents:function(){this.model.showPlayButton?this._on(this._autoButton,"click",this._autoPlay):this._off(this._autoButton,"click",this._autoPlay)},_wireResizeEvents:function(){if(this.model.isResponsive)n(window).on("resize",n.proxy(this._resizeEvent,this));else n(window).off("resize",n.proxy(this._resizeEvent,this))},_wireThumbEvents:function(){this.model.showThumbnail?(this._on(this._thumbItems.children(),"click",this._thumbClick),this._on(this._next,"click",this.model.enableRTL?this._thumbPrev:this._thumbNext),this._on(this._previous,"click",this.model.enableRTL?this._thumbNext:this._thumbPrev)):(this._off(this._thumbItems.children(),"click",this._thumbClick),this._off(this._next,"click",this.model.enableRTL?this._thumbPrev:this._thumbNext),this._off(this._previous,"click",this.model.enableRTL?this._thumbNext:this._thumbPrev))},_wireBulletEvents:function(){this.model.showPager?this._on(this._bullet.children(),"click",this._bulletClick):this._off(this._bullet.children(),"click",this._bulletClick)},_thumbNext:function(){var t=this,n;if(!this.model.enabled)return!1;this[this.model.enableRTL?"_next":"_previous"].hasClass("e-disable")&&this[this.model.enableRTL?"_next":"_previous"].removeClass("e-disable").addClass("e-enable").attr({"aria-disabled":!1});n=-Math.round(this._thumbItems.position().left)+this._thumb.width();this._thumbItems.width()-n>=this._thumbItems.children("li").outerWidth(!0)&&this._thumbMove(this._thumbItems.children("li").outerWidth(!0));this._thumbItems.width()-n<=this._thumbItems.children("li").outerWidth(!0)&&this[this.model.enableRTL?"_previous":"_next"].removeClass("e-enable").addClass("e-disable").attr({"aria-disabled":!0})},_thumbMove:function(n){var t=this;t._thumbItems.animate({left:"-="+n+"px"},600,function(){t._thumbItems.stop(!0,!0)})},_thumbPrev:function(){var i=this,t,n;if(!this.model.enabled)return!1;this[this.model.enableRTL?"_previous":"_next"].hasClass("e-disable")&&this[this.model.enableRTL?"_previous":"_next"].removeClass("e-disable").addClass("e-enable").attr({"aria-disabled":!1});t=Math.round(this._thumbItems.position().left);n=this._thumbItems.children("li").outerWidth(!0);-t>=n&&this._thumbMove(-n);-t<=n&&this[this.model.enableRTL?"_next":"_previous"].removeClass("e-enable").addClass("e-disable").attr({"aria-disabled":!0})},_findLength:function(){var t=this,n;return this.model.showThumbnail&&(n=t._thumbItems.children("li").length-1),this.model.showPager&&(n=t._bullet.children("li").length-1),this.model.showPager||this.model.showThumbnail||(n=this.model.circularMode?this.element[this.containerCss]()/this._liSize-this.model.displayItemsCount*2:this.element[this.containerCss]()/this._liSize-1),n},_changeActiveState:function(n){var t=this,i,r;i=t._findActive();r=t._findLength();t._removeActiveItem();n=="prev"?i>0?(t._setActiveItem(i-1),this.model.animationType!="slideshow"&&this._setCaptionText(i-1)):(t._setActiveItem(r),this.model.animationType!="slideshow"&&this._setCaptionText(r)):i<r?(t._setActiveItem(i+1),this.model.animationType!="slideshow"&&this._setCaptionText(i+1)):(t._setActiveItem(0),this.model.animationType!="slideshow"&&this._setCaptionText(0))},_moveSlide:function(n,t){var i=this,e,o,r,u,f={};e=this.model.animationType!="slideshow"?this.model.animationType:"slideshow";o=this.model.animationType!="slideshow"?i.model.animationSpeed:0;r=i._findActive();u=i._findLength();f[this.displayCss]=i.element.position()[i.displayCss];f[this.displayCss]-=n;r=t=="next"?r<u?r+1:0:t=="prev"?r>0?r-1:u:0;this._prevIndex=r;this.model.animationType=="slideshow"&&(i.element.fadeOut(i.model.animationSpeed/2),i.model.showCaption&&i._caption.fadeOut(i.model.animationSpeed/2));i.element.animate(f,o,e,function(){t=="end"&&i._setBegin();i._animating=!1;i._setCaptionText(r);i._raiseEvent("change")});this.model.animationType=="slideshow"&&(i.element.fadeIn(i.model.animationSpeed/2),i.model.showCaption&&i._caption.fadeIn(i.model.animationSpeed/2))},_moveNext:function(){var n=this,i,r,t,u;if(n._animating=!0,this.model.circularMode){if(i=Math.round(n.element.position()[n.displayCss]),r=n.model.displayItemsCount*n._liSize-n._liCount*n._liSize,t=Math.round(n.element.position()[n.displayCss])+n.element[n.containerCss](),n._calculateItemMove(),i>r&&t-n._containerSize>n._move+parseInt(n.model.frameSpace))return{move:n._move,action:"next"};if(t-n._containerSize<=n._move+parseInt(n.model.frameSpace))return u=t-n._containerSize-parseInt(n.model.frameSpace),{move:u,action:"end"}}else{if(i=Math.round(n.element.position()[n.displayCss]),r=-(n._liCount*n._liSize),t=Math.round(n.element.position()[n.displayCss])+n.element[n.containerCss](),n._calculateItemMove(),i-n._liSize!=r)return t-n._containerSize<=n._move+parseInt(n.model.frameSpace)&&(n._move=t-n._containerSize-parseInt(n.model.frameSpace),n._move=n._move==0?i:n._move),{move:n._move,action:"next"};if(t-n._containerSize<=n._move+parseInt(n.model.frameSpace))return{move:i,action:"end"}}},_movePrev:function(){var n=this,i,u,f,r;return i=Math.round(n.element.position()[n.displayCss]),u=n.element.position()[n.displayCss],+n.element[n.containerCss](),f=n.element[n.containerCss](),n._calculateItemMove(),this.model.circularMode?u<f&&-i>n.model.displayItemsCount*n._liSize?{move:-n._move,action:"prev"}:(r=n.model.displayItemsCount*n._liSize*2+i-n._liCount*n._liSize,n._move=(n._liCount-n.model.displayItemsCount*2)%n.model.navigateSteps*n._liSize,n._move==0&&n._calculateItemMove(),n.model.orientation==t.Orientation.Horizontal?n.element.css("left",r):n.element.css("top",r),{move:-n._move,action:"prev"}):u<f&&-i>=n._liSize*n.model.navigateSteps?{move:-n._move,action:"prev"}:(r=n.model.displayItemsCount*n._liSize+i-n._liCount*n._liSize,n._move=-i<n._move&&i!=0?-i:r,{move:-n._move,action:"prev"})},_autoPlay:function(n){var t=this,i,r;if(this._isInteraction=!!n,this._interval==null){this._setPlay();r=function(){t._animating=!0;i=t._rtlDirection?t._moveNext():t._movePrev();t._moveSlide(i.move,i.action);t._changeActiveState(i.action);t._changeThumbControl(t._findActive())};function u(n,t){return setInterval(n,t)}this._animating||(this._interval=u(r,this.transitionDelay))}else this._setPause()},_nextAction:function(n){var t=this,r,u,i;this._isInteraction=!!n;u=function(){i=t._moveNext();t._moveSlide(i.move,i.action);clearInterval(r);t._changeActiveState("next");t._changeThumbControl(t._findActive())};this._interval!=null&&this._setPause();this._animating||(this._animating=!0,r=setInterval(u,""));this._prevIndex=this.getIndex()},_prevAction:function(n){var t=this,r,u,i;this._isInteraction=!!n;u=function(){i=t._movePrev();t._moveSlide(i.move,i.action);clearInterval(r);t._changeActiveState("prev");t._changeThumbControl(t._findActive())};this._interval!=null&&this._setPause();this._animating||(this._animating=!0,r=setInterval(u,""));this._prevIndex=this.getIndex()},_touchOperations:function(n){var r=!n.data.control,t,i=this.model.orientation;r?t=n.type=="swipeleft"?"left":"right":i=="horizontal"&&n.type=="swipeleft"||i=="vertical"&&n.type=="swipeup"?t="left":(i=="horizontal"&&n.type=="swiperight"||i=="vertical"&&n.type=="swipedown")&&(t="right");t=="left"?r?this._thumbNext():this.slideNext():t=="right"&&(r?this._thumbPrev():this.slidePrevious())},_resizeEvent:function(){var n,t;if(!this.model.enabled)return!1;n=Math.round(-Math.round(this.element.position().left)/this._liSize);t=Math.round(this.element.parents(".e-rotator-wrap").parent().width());this._containerWidth=this._convertPercentageToPixel(t,this._containerPercent);this._setSlideWidth(this._calculateValue().toString());this._setWidth();this.element.css("left",-(n*this._liSize));this._setUlInitial();this.model.showThumbnail&&(this.model.dataSource!=null||this.model.thumbnailSourceID!=null)&&this._setThumbProperty()},_calculateItemMove:function(){isNaN(this.model.navigateSteps)?(this.model.navigateSteps=1,this._move=this._liSize*this.model.navigateSteps):this._move=this._liSize*this.model.navigateSteps},_thumbClick:function(t){var i,r;if(this._isInteraction=!0,r=this._autoButton!=null?this._autoButton.hasClass("play")?!1:!0:this.model.enableAutoPlay?!0:!1,!this.model.enabled)return!1;this._interval!=null&&this._setPause();this._removeActiveItem();i=t.target.className=="e-thumb-ele e-thumbhover"||t.target.className=="e-thumb-ele"?this._thumbItems.children("li").index(n(t.target)):this._thumbItems.children("li").index(n(t.target).parents(".e-thumb-ele"));this._changeThumbControl(i);this._setActiveItem(i);this._raiseEvent("thumbItemClick");this.model.circularMode?this._moveSlideContent(this.element.position()[this.displayCss],-(this.model.displayItemsCount*this._liSize+i*this.model.navigateSteps*this._liSize),i,r):this._moveSlideContent(this.element.position()[this.displayCss],-(i*this.model.navigateSteps*this._liSize),i,r)},_bulletClick:function(n){var t,i,r;if(this._isInteraction=!0,r=this._autoButton!=null?this._autoButton.hasClass("play")?!1:!0:this.model.enableAutoPlay?!0:!1,!this.model.enabled)return!1;this._interval!=null&&this._setPause();this._removeActiveItem();t=this._bullet.children("").index(n.target);this._changeThumbControl(t);this._setActiveItem(t);this._raiseEvent("pagerClick");this.model.circularMode?this._moveSlideContent(this.element.position()[this.displayCss],-(this.model.displayItemsCount*this._liSize+t*this.model.navigateSteps*this._liSize),t,r):(i=t*this.model.navigateSteps*this._liSize,this.element[this.containerCss]()-this.model.displayItemsCount*this._liSize<i&&(i=this.element[this.containerCss]()-this.model.displayItemsCount*this._liSize),this._moveSlideContent(this.element.position()[this.displayCss],-i,t,r))},_moveSlideContent:function(n,t,i,r,u){var f=this,o,s,e={};s=this.model.animationType!="slideshow"?this.model.animationType:"slideshow";o=this.model.animationType!="slideshow"?f.model.animationSpeed:0;e[this.displayCss]=f.element.position()[f.displayCss];e[this.displayCss]+=t-n;this.model.animationType=="slideshow"&&(f.element.fadeOut(f.model.animationSpeed/2),f.model.showCaption&&f._caption.fadeOut(f.model.animationSpeed/2));f.element.animate(e,o,s,function(){f._setCaptionText(i);r&&setTimeout(function(){f.play()},f.model.animationSpeed)});this.model.animationType=="slideshow"&&(f.element.fadeIn(f.model.animationSpeed/2),f.model.showCaption&&f._caption.fadeIn(f.model.animationSpeed/2));this._isInteraction=!u;this._prevIndex!=i&&f._raiseEvent("change");this._prevIndex=i},_destroy:function(){this._interval!=null?this.pause():"";this._undoClone();this.element.removeAttr("style").insertAfter(this._outerWrapper).removeClass();this.element.children().removeAttr("style");this._outerWrapper.remove();n(window).off("resize",n.proxy(this._resizeEvent,this));this.element.stop()},_raiseEvent:function(n){var t={activeItemIndex:this.getIndex(),itemID:this.element.attr("id")};return(n=="start"||n=="change"||n=="stop")&&(t={activeItemIndex:this.getIndex(),itemID:this.element.attr("id"),isInteraction:this._isInteraction}),this._trigger(n,t)},_showControl:function(n){if(!this.model.enabled)return!1;this.model.showNavigateButton&&(this._prevButton.stop(!0,!0).fadeIn("slow"),this._nextButton.stop(!0,!0).fadeIn("slow"));this.model.showPlayButton&&this._autoButton.stop(!0,!0).fadeIn("slow");this.model.showCaption&&this._caption!=null&&this._caption.stop(!0,!0).fadeIn("slow");this.model.stopOnHover&&this._animate&&this.pause();n.stopPropagation()},_hideControl:function(n){if(!this.model.enabled)return!1;this.model.showNavigateButton&&(this._prevButton.stop(!0,!0).fadeOut("slow"),this._nextButton.stop(!0,!0).fadeOut("slow"));this.model.showPlayButton&&this._autoButton.stop(!0,!0).fadeOut("slow");this.model.showCaption&&this._caption!=null&&this._caption.stop(!0,!0).fadeOut("slow");this.model.stopOnHover&&this._animate&&this.play();n.stopPropagation()},_onFocusIn:function(){if(!this.model.enabled)return!1;this._outerWrapper.addClass("e-Focused");this._innerWrapper.addClass("e-shadow");n(this._outerWrapper).on("keydown",n.proxy(this._focuseHandle,this))},_onFocusOut:function(){this._outerWrapper.removeClass("e-Focused");this._innerWrapper.removeClass("e-shadow");n(this._outerWrapper).off("keydown",n.proxy(this._focuseHandle,this))},_focuseHandle:function(n){if(!this.model.enabled)return!1;if(this._outerWrapper.hasClass("e-Focused")){n.keyCode=n.altKey&&(n.keyCode==37||n.keyCode==40)?1e3:n.keyCode;n.keyCode=n.altKey&&(n.keyCode==38||n.keyCode==39)?1001:n.keyCode;switch(n.keyCode){case 37:case 40:n.preventDefault();this._prevAction();break;case 38:case 39:n.preventDefault();this._nextAction();break;case 32:n.preventDefault();this._autoPlay(!0);break;case 1e3:n.preventDefault();this._thumbPrev();this._thumbHover("prev");break;case 1001:n.preventDefault();this._thumbNext();this._thumbHover("next");break;case 13:for(n.preventDefault(),i=0;i<this._thumbItems.children("li").length;i++)this._thumbItems.children("li").eq(i).hasClass("e-thumbhover")&&this.gotoIndex(i)}}},_thumbHover:function(n){var u=this,t=null,r;for(i=0;i<this._thumbItems.children("li").length;i++)if(this._thumbItems.children("li").eq(i).hasClass("e-thumbhover")){t=i;this._thumbItems.children("li").eq(i).removeClass("e-thumbhover");break}t==null&&(t=this._findActive());r=u._findLength();n=="prev"?t>0?this._thumbItems.children().eq(--t).addClass("e-thumbhover"):this._thumbItems.children().eq(0).addClass("e-thumbhover"):t<r?this._thumbItems.children().eq(++t).addClass("e-thumbhover"):this._thumbItems.children().eq(r).addClass("e-thumbhover")},_ieEnable:function(n){this.element[n]("e-disable");this.model.showPager&&this._bulletWrapper.children("ul.e-bullet")[n]("e-disable");this.model.showThumbnail&&this._thumbItems.children("li.e-thumb-ele")[n]("e-disable");this.model.showThumbnail&&(this._next[n]("e-disable"),this._previous[n]("e-disable"))},enable:function(){this.model.enabled||(this.model.enabled=!0,this._outerWrapper.removeClass("e-disable").attr({"aria-disabled":!1}),t.browserInfo().name=="msie"&&t.browserInfo().version=="8.0"&&this._ieEnable("removeClass"),this._isPlaying&&this.play())},disable:function(){this.model.enabled&&(this.model.enabled=!1,this._outerWrapper.addClass("e-disable").attr({"aria-disabled":!0}),t.browserInfo().name=="msie"&&t.browserInfo().version=="8.0"&&this._ieEnable("addClass"),this._isPlaying=this._interval!=null?!0:!1,this._interval!=null&&this._setPause())},updateTemplateById:function(i,r){var u,e,f;this.model.templateId!=null&&(n(this.element.children()[r]).empty(),u=n("#"+i),f=u[0]&&u[0].nodeName&&u[0].nodeName.toLowerCase()=="script"?t.getClearString(u[0].innerHTML):u,n(this.element.children()[r]).append(f),this.model.circularMode&&this.element.children("li").eq(r-1).hasClass("clone")&&(n(this.element.children()[this._liCount-1]).empty(),e=u[0].nodeName.toLowerCase()=="script"?f:f.clone(),n(this.element.children()[this._liCount-1]).append(e)))},slideNext:function(){this._nextAction(!1)},slidePrevious:function(){this._prevAction(!1)},play:function(){this._interval==null&&this._autoPlay()},pause:function(){this._interval!=null&&this._setPause(!0)},getIndex:function(){var n,t,i=[];if(this.model.displayItemsCount>1){if(this.model.circularMode)for(n=Math.round(-Math.round(this.element.position()[this.displayCss])/this._liSize),n=n-this.model.displayItemsCount,t=0;t<this.model.displayItemsCount;t++)n<this._liCount-this.model.displayItemsCount*2?i.push(n++):(n=0,t--);else for(n=Math.round(Math.round(this.element.position()[this.displayCss])/this._liSize),n=n<0?n*-1:n,t=0;t<this.model.displayItemsCount;t++)i.push(n++);return i}return this._findActive()},gotoIndex:function(n){var t=this._autoButton!=null?this._autoButton.hasClass("play")?!1:!0:this.model.enableAutoPlay?!0:!1;this._interval!=null&&this._setPause();this._removeActiveItem();this.model.showThumbnail&&this._changeThumbControl(n);this._setActiveItem(n);this.model.circularMode?this._moveSlideContent(this.element.position()[this.displayCss],-(this.model.displayItemsCount*this._liSize+n*this.model.navigateSteps*this._liSize),n,t,!0):(target=n*this.model.navigateSteps*this._liSize,this.element[this.containerCss]()-this.model.displayItemsCount*this._liSize<target&&(target=this.element[this.containerCss]()-this.model.displayItemsCount*this._liSize),this._moveSlideContent(this.element.position()[this.displayCss],-target,n,t,!0))}});t.Rotator.PagerPosition={TopLeft:"topleft",TopRight:"topright",BottomLeft:"bottomleft",BottomRight:"bottomright",TopCenter:"topCenter",Outside:"outside"}})(jQuery,Syncfusion)});
  