if(typeof Amway == "undefined") Amway={};
if(typeof Amway.Core == "undefined") Amway.Core={};
if(typeof Amway.Core.Web == "undefined") Amway.Core.Web={};
if(typeof Amway.Core.Web.UI == "undefined") Amway.Core.Web.UI={};
if(typeof Amway.Core.Web.UI.Common == "undefined") Amway.Core.Web.UI.Common={};
Amway.Core.Web.UI.Common.AmwayErrorControl_class = function() {};
Object.extend(Amway.Core.Web.UI.Common.AmwayErrorControl_class.prototype, Object.extend(new Ajax.AjaxClass(), {
	RefreshErrorControl: function(notificationType, message, isPhrase) {
		return this.invoke("RefreshErrorControl", {"notificationType":notificationType, "message":message, "isPhrase":isPhrase}, this.RefreshErrorControl.getArguments().slice(3));
	},
	ShowErrorMessages: function(notificationType, errorCodesOrMessages, isErrorCodes) {
		return this.invoke("ShowErrorMessages", {"notificationType":notificationType, "errorCodesOrMessages":errorCodesOrMessages, "isErrorCodes":isErrorCodes}, this.ShowErrorMessages.getArguments().slice(3));
	},
	ShowDomainErrorMessages: function(notificationType, domainErrors) {
		return this.invoke("ShowDomainErrorMessages", {"notificationType":notificationType, "domainErrors":domainErrors}, this.ShowDomainErrorMessages.getArguments().slice(2));
	},
	url: 'http://www.amway.ca/Shop/error/ajax/ajax/Amway.Core.Web.UI.Common.AmwayErrorControl,Amway.Core.Web.Impl.ashx'
}));
Amway.Core.Web.UI.Common.AmwayErrorControl = new Amway.Core.Web.UI.Common.AmwayErrorControl_class();
Amway.Core.Web.UI.Common.AmwayPopupControl_class = function() {};
Object.extend(Amway.Core.Web.UI.Common.AmwayPopupControl_class.prototype, Object.extend(new Ajax.AjaxClass(), {
	GetDynamicContent: function(contentSrc, contentParams, loadControl, showLP) {
		return this.invoke("GetDynamicContent", {"contentSrc":contentSrc, "contentParams":contentParams, "loadControl":loadControl, "showLP":showLP}, this.GetDynamicContent.getArguments().slice(4));
	},
	url: 'http://www.amway.ca/Shop/error/ajax/ajax/Amway.Core.Web.UI.Common.AmwayPopupControl,Amway.Core.Web.Impl.ashx'
}));
Amway.Core.Web.UI.Common.AmwayPopupControl = new Amway.Core.Web.UI.Common.AmwayPopupControl_class();
if(typeof Amway.Core.Web.UI.Navigation == "undefined") Amway.Core.Web.UI.Navigation={};
Amway.Core.Web.UI.Navigation.CountryControl_class = function() {};
Object.extend(Amway.Core.Web.UI.Navigation.CountryControl_class.prototype, Object.extend(new Ajax.AjaxClass(), {
	GetPopupContent: function() {
		return this.invoke("GetPopupContent", {}, this.GetPopupContent.getArguments().slice(0));
	},
	url: 'http://www.amway.ca/Shop/error/ajax/ajax/Amway.Core.Web.UI.Navigation.CountryControl,Amway.Core.Web.Impl.ashx'
}));
Amway.Core.Web.UI.Navigation.CountryControl = new Amway.Core.Web.UI.Navigation.CountryControl_class();
if(typeof Amway.Core.Web.UI.Cart == "undefined") Amway.Core.Web.UI.Cart={};
Amway.Core.Web.UI.Cart.CartNavigationControl_class = function() {};
Object.extend(Amway.Core.Web.UI.Cart.CartNavigationControl_class.prototype, Object.extend(new Ajax.AjaxClass(), {
	PopuplateCartItemCount: function() {
		return this.invoke("PopuplateCartItemCount", {}, this.PopuplateCartItemCount.getArguments().slice(0));
	},
	url: 'http://www.amway.ca/Shop/error/ajax/ajax/Amway.Core.Web.UI.Cart.CartNavigationControl,Amway.Core.Web.Impl.ashx'
}));
Amway.Core.Web.UI.Cart.CartNavigationControl = new Amway.Core.Web.UI.Cart.CartNavigationControl_class();
Amway.Core.Web.UI.Cart.CartAddItemController_class = function() {};
Object.extend(Amway.Core.Web.UI.Cart.CartAddItemController_class.prototype, Object.extend(new Ajax.AjaxClass(), {
	AddItems: function(items, DestinationType, destinationId, organizationID) {
		return this.invoke("AddItems", {"items":items, "DestinationType":DestinationType, "destinationId":destinationId, "organizationID":organizationID}, this.AddItems.getArguments().slice(4));
	},
	url: 'http://www.amway.ca/Shop/error/ajax/ajax/Amway.Core.Web.UI.Cart.CartAddItemController,Amway.Core.Web.Impl.ashx'
}));
Amway.Core.Web.UI.Cart.CartAddItemController = new Amway.Core.Web.UI.Cart.CartAddItemController_class();
Amway.Core.Web.UI.Common.AmwayAjaxErrorControl_class = function() {};
Object.extend(Amway.Core.Web.UI.Common.AmwayAjaxErrorControl_class.prototype, Object.extend(new Ajax.AjaxClass(), {
	LogAjaxError: function(errorMessage) {
		return this.invoke("LogAjaxError", {"errorMessage":errorMessage}, this.LogAjaxError.getArguments().slice(1));
	},
	url: 'http://www.amway.ca/Shop/error/ajax/ajax/Amway.Core.Web.UI.Common.AmwayAjaxErrorControl,Amway.Core.Web.Impl.ashx'
}));
Amway.Core.Web.UI.Common.AmwayAjaxErrorControl = new Amway.Core.Web.UI.Common.AmwayAjaxErrorControl_class();

