Type.registerNamespace("uSwitch.Web.UI.Composite");uSwitch.Web.UI.Composite.LogoAnimationPanel=function(a){uSwitch.Web.UI.Composite.LogoAnimationPanel.initializeBase(this,[a]);this._sets=null;this._switchSetDelegate=null;this._interval=1000};uSwitch.Web.UI.Composite.LogoAnimationPanel.prototype={get_Interval:function(){return this._interval},set_Interval:function(a){this._interval=a},initialize:function(){uSwitch.Web.UI.Composite.LogoAnimationPanel.callBaseMethod(this,"initialize");var a=$(this.get_element()).find("div[class*='set']");a.each(function(b){a[b]=$(a[b])});this._sets=$(a);if(this._sets.length>1){this._sets.each(function(b,c){if(b>0){c.hide()}});this._currentSet=0;this._switchSetDelegate=Function.createDelegate(this,this._switchSet);setTimeout(this._switchSetDelegate,this.get_Interval())}},_switchSet:function(){var b=this._sets[this._currentSet];this._currentSet++;if(this._currentSet==this._sets.length){this._currentSet=0}var a=this._sets[this._currentSet];var c=this;b.fadeOut(1000,function(){b.hide();a.fadeIn(1000,function(){setTimeout(c._switchSetDelegate,c.get_Interval())})})},dispose:function(){uSwitch.Web.UI.Composite.LogoAnimationPanel.callBaseMethod(this,"dispose");if(this._switchSetDelegate!=null){delete this._switchSetDelegate}}};uSwitch.Web.UI.Composite.LogoAnimationPanel.registerClass("uSwitch.Web.UI.Composite.LogoAnimationPanel",Sys.UI.Control);if(typeof(Sys)!=="undefined"){Sys.Application.notifyScriptLoaded()};
