﻿function ComponentArt_MultiPage(id){this.DomElementId=id;this.element=this.DomElement=document.getElementById(this.DomElementId);if(window.ComponentArt_Atlas){ComponentArt.Web.UI.MultiPage.initializeBase(this,[this.element]);}this.ClientControlId=this.Id=id;this.Pages=new Array();this.StateField=document.getElementById(id+"_SelectedIndex");this.SelectedPage=null;}ComponentArt_MultiPage.prototype.PublicProperties=[["NumPages",Number,1,1],["Pages",Array,1],["SelectedPage",ComponentArt.Web.UI.PageView,1],["Transition",Number],["TransitionDuration",Number]];ComponentArt_MultiPage.prototype.PublicMethods=[["AddPage",,null,[["page",Object]]],["Disable"],["DisablePage",,null,[["id",String]]],["Enable"],["FindPageById",,Object,[["id",String]]],["GetPage",,Object,[["index",Number]]],["GetPageIndex"],["GoFirst"],["GoLast"],["GoNext",,null,[["wrap",Boolean]]],["GoPrevious",,null,[["wrap",Boolean]]],["SetPageIndex",,null,[["index",Number]]],["SetPageId",,null,[["id",String]]]];_qEE(ComponentArt_MultiPage);window.ComponentArt.Web.UI.MultiPage=window.ComponentArt_MultiPage;if(window.ComponentArt_Atlas){ComponentArt.Web.UI.MultiPage.registerClass("ComponentArt.Web.UI.MultiPage",Sys.UI.Control);if(Sys.TypeDescriptor){Sys.TypeDescriptor.addType("componentArtWebUI","multiPage",ComponentArt.Web.UI.MultiPage);}}ComponentArt_MultiPage.prototype.GetProperty=function(_2){return this[_2];};ComponentArt_MultiPage.prototype.SetProperty=function(_3,_4){this[_3]=_4;};ComponentArt_MultiPage.prototype.AddPage=function(_5){_5.ParentMultiPage=this;this.Pages[this.Pages.length]=_5;};ComponentArt_MultiPage.prototype.ConvertPageToIndex=function(_6){for(var _7=0;_7<this.Pages.length;_7++){if(this.Pages[_7]==_6){return _7;}}return -1;};ComponentArt_MultiPage.prototype.Disable=function(){this.DomElement.disabled=true;for(var _8=0;_8<this.Pages.length;_8++){this.Pages[_8].Disable();}};ComponentArt_MultiPage.prototype.DisablePage=function(id){var _a=this.FindPageById(id);_a.Disable();};ComponentArt_MultiPage.prototype.Enable=function(){this.DomElement.disabled=false;for(var _b=0;_b<this.Pages.length;_b++){this.Pages[_b].Enable();}};ComponentArt_MultiPage.prototype.FindPageById=function(id){for(var i=0;i<this.Pages.length;i++){if(this.Pages[i].Id==id||this.Pages[i].DomElementId==id){return this.Pages[i];}}return null;};ComponentArt_MultiPage.prototype.GetPage=function(_e){if(_e>=0&&_e<this.Pages.length){return this.Pages[_e];}else{return null;}};ComponentArt_MultiPage.prototype.GetPageIndex=function(){if(this.SelectedPage){return this.ConvertPageToIndex(this.SelectedPage);}else{return -1;}};ComponentArt_MultiPage.prototype.GoFirst=function(){this.SetPageIndex(0);};ComponentArt_MultiPage.prototype.GoLast=function(){this.SetPageIndex(this.NumPages()-1);};ComponentArt_MultiPage.prototype.GoNext=function(_f){var _10=this.GetPageIndex();if(_10>=this.NumPages()-1){if(_f){this.GoFirst();}}else{this.SetPageIndex(_10+1);}};ComponentArt_MultiPage.prototype.GoPrevious=function(_11){var _12=this.GetPageIndex();if(_12<=0){if(_11){this.GoLast();}}else{this.SetPageIndex(_12-1);}};ComponentArt_MultiPage.prototype.NumPages=ComponentArt_MultiPage.prototype.get_numPages=function(){return this.Pages.length;};ComponentArt_MultiPage.prototype.SetPageIndex=function(_13,_14){if(_13>=0&&_13<this.Pages.length){this.Pages[_13].Show(_14);}};ComponentArt_MultiPage.prototype.SetPageId=function(id){var _16=this.FindPageById(id);if(_16){_16.Show();}};function ComponentArt_PageView(_17,id){this.element=this.DomElement=document.getElementById(_17);if(window.ComponentArt_Atlas){ComponentArt.Web.UI.PageView.initializeBase(this,[this.element]);}this.ParentMultiPage=null;this.Id=id;this.DomElementId=_17;}ComponentArt_PageView.prototype.PublicProperties=[["Id",1],["ParentMultiPage",1]];ComponentArt_PageView.prototype.PublicMethods=[["Disable"],["Enable"],["Show"]];_qEE(ComponentArt_PageView);window.ComponentArt.Web.UI.PageView=window.ComponentArt_PageView;if(window.ComponentArt_Atlas){ComponentArt.Web.UI.PageView.registerClass("ComponentArt.Web.UI.PageView",Sys.UI.Control);if(Sys.TypeDescriptor){Sys.TypeDescriptor.addType("componentArtWebUI","pageView",ComponentArt.Web.UI.PageView);}}ComponentArt_PageView.prototype.GetProperty=function(_19){return this[_19];};ComponentArt_PageView.prototype.SetProperty=function(_1a,_1b){this[_1a]=_1b;};ComponentArt_PageView.prototype.DisableRecurse=function(_1c){for(var i=0;i<_1c.length;i++){if(_1c[i].nodeName=="SELECT"||_1c[i].nodeName=="INPUT"||_1c[i].nodeName=="TEXTBOX"){_1c[i].disabled=true;}else{if(_1c[i].childNodes.length>0){this.DisableRecurse(_1c[i].childNodes);}}}};ComponentArt_PageView.prototype.Disable=function(){this.DomElement.disabled=true;this.DisableRecurse(this.DomElement.childNodes);};ComponentArt_PageView.prototype.EnableRecurse=function(_1e){for(var i=0;i<_1e.length;i++){if(_1e[i].nodeName=="SELECT"||_1e[i].nodeName=="INPUT"||_1e[i].nodeName=="TEXTBOX"){_1e[i].disabled=false;}else{if(_1e[i].childNodes.length>0){this.EnableRecurse(_1e[i].childNodes);}}}};ComponentArt_PageView.prototype.Enable=function(){this.DomElement.disabled=false;this.EnableRecurse(this.DomElement.childNodes);};ComponentArt_PageView.prototype.Show=function(_20){if(!_20&&this.ParentMultiPage&&this.ParentMultiPage.AutoPostBack){__doPostBack(this.ParentMultiPage.ControlId,this.ParentMultiPage.ConvertPageToIndex(this));return;}this.DomElement=this.element=document.getElementById(this.DomElementId);if(this.ParentMultiPage){if((this.ParentMultiPage.Transition>0||this.ParentMultiPage.TransitionCustomFilter)&&this.ParentMultiPage.TransitionDuration>0&&cart_browser_transitions){var _21=ComponentArt_EffectiveTransitionString(this.ParentMultiPage.Transition,this.ParentMultiPage.TransitionCustomFilter);this.ParentMultiPage.DomElement.runtimeStyle.filter=_21;this.ParentMultiPage.DomElement.filters[0].apply();if(this.ParentMultiPage.SelectedPage){this.ParentMultiPage.SelectedPage.DomElement.style.display="none";}this.DomElement.style.display="";this.ParentMultiPage.DomElement.filters[0].play(this.ParentMultiPage.TransitionDuration/1000);}else{if(this.ParentMultiPage.SelectedPage){this.ParentMultiPage.SelectedPage.DomElement.style.display="none";}this.DomElement.style.display="";}this.ParentMultiPage.SelectedPage=this;}if(this.ParentMultiPage.StateField){this.ParentMultiPage.StateField.value=this.ParentMultiPage.ConvertPageToIndex(this);}};var ComponentArt_MultiPage_Kernel_Loaded=true;

if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();