var Chevrons;(function(n){function e(n,t,i){return new f(n,t,i)}var r="disabled",u="hidden",t="darkchv",i="exp",f=function(){function n(n,t,r){var u=this;this.controlId=n;this.prevSlideBtn=t;this.nextSlideBtn=r;this.onPrevClick(function(){var n="slideexp_slideprev",t="Prev",r=Lib.CssClass.contains(u.prevSlideBtn,i);r&&(Lib.CssClass.remove(u.prevSlideBtn,i),n="slideexp_expandleft",t="ExpandLeft");sj_evt.fire(n,u.controlId);Log.Log(t,"SlideExp","Chevron")});this.onNextClick(function(){var n="slideexp_slidenext",t="Next",r=Lib.CssClass.contains(u.nextSlideBtn,i);r&&(Lib.CssClass.remove(u.nextSlideBtn,i),n="slideexp_expandright",t="ExpandRight");sj_evt.fire(n,u.controlId);Log.Log(t,"SlideExp","Chevron")});this.onMouseOver(function(){sj_evt.fire("slideexp_pauseautoslide",u.controlId)});this.onMouseOut(function(){sj_evt.fire("slideexp_resumeautoslide",u.controlId)});sj_evt.bind("slideexp_leftmost",function(n){u.isForMe(n)&&(u.disablePrev(!0),u.disableNext(!1))});sj_evt.bind("slideexp_rightmost",function(n){u.isForMe(n)&&(u.disablePrev(!1),u.disableNext(!0))});sj_evt.bind("slideexp_middle",function(n){u.isForMe(n)&&(u.disablePrev(!1),u.disableNext(!1))});sj_evt.bind("slideexp_leftrightmost",function(n){u.isForMe(n)&&(u.disablePrev(!0),u.disableNext(!0))});sj_evt.bind("slideexp_mouseover_show",function(n){u.isForMe(n)&&u.show()});sj_evt.bind("slideexp_mouseout_hide",function(n){u.isForMe(n)&&u.hide()});sj_evt.bind("slideexp_mouseover_dark",function(n){u.isForMe(n)&&u.changToDark()});sj_evt.bind("slideexp_mouseout_light",function(n){u.isForMe(n)&&u.changToLight()})}return n.prototype.onPrevClick=function(n){this.prevSlideBtn!=null&&this.nextSlideBtn!=null&&n&&sj_be(this.prevSlideBtn,"click",n)},n.prototype.onNextClick=function(n){this.prevSlideBtn!=null&&this.nextSlideBtn!=null&&n&&sj_be(this.nextSlideBtn,"click",n)},n.prototype.onMouseOver=function(n){this.prevSlideBtn!=null&&this.nextSlideBtn!=null&&n&&(sj_be(this.prevSlideBtn,"mouseover",n),sj_be(this.nextSlideBtn,"mouseover",n))},n.prototype.onMouseOut=function(n){this.prevSlideBtn!=null&&this.nextSlideBtn!=null&&n&&(sj_be(this.prevSlideBtn,"mouseout",n),sj_be(this.nextSlideBtn,"mouseout",n))},n.prototype.show=function(){this.setHidden(!1)},n.prototype.changToDark=function(){this.prevSlideBtn!=null&&this.nextSlideBtn!=null&&(Lib.CssClass.add(this.prevSlideBtn,t),Lib.CssClass.add(this.nextSlideBtn,t))},n.prototype.hide=function(){this.setHidden(!0)},n.prototype.changToLight=function(){this.prevSlideBtn!=null&&this.nextSlideBtn!=null&&(Lib.CssClass.remove(this.prevSlideBtn,t),Lib.CssClass.remove(this.nextSlideBtn,t))},n.prototype.disablePrev=function(n){this.prevSlideBtn!=null&&this.updateClassIf(this.prevSlideBtn,n,r)},n.prototype.disableNext=function(n){this.nextSlideBtn!=null&&this.updateClassIf(this.nextSlideBtn,n,r)},n.prototype.setHidden=function(n){this.prevSlideBtn!=null&&this.nextSlideBtn!=null&&(this.updateClassIf(this.prevSlideBtn,n,u),this.updateClassIf(this.nextSlideBtn,n,u))},n.prototype.updateClassIf=function(n,t,i){t?Lib.CssClass.add(n,i):Lib.CssClass.remove(n,i)},n.prototype.isForMe=function(n){return n[1]===this.controlId},n}();n.init=e;sj_evt.fire("chevrons_init",f)})(Chevrons||(Chevrons={}))