if(typeof Iteam == "undefined") Iteam={};
if(typeof Iteam.Trex == "undefined") Iteam.Trex={};
if(typeof Iteam.Trex.Web == "undefined") Iteam.Trex.Web={};
if(typeof Iteam.Trex.Web.Site == "undefined") Iteam.Trex.Web.Site={};
Iteam.Trex.Web.Site.Backend_class = function() {};
Object.extend(Iteam.Trex.Web.Site.Backend_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {
	Logout: function() {
		return this.invoke("Logout", {}, this.Logout.getArguments().slice(0));
	},
	Login: function(username, password, savePassword) {
		return this.invoke("Login", {"username":username, "password":password, "savePassword":savePassword}, this.Login.getArguments().slice(3));
	},
	AddToCart: function(itemId, quantity) {
		return this.invoke("AddToCart", {"itemId":itemId, "quantity":quantity}, this.AddToCart.getArguments().slice(2));
	},
	GetCart: function() {
		return this.invoke("GetCart", {}, this.GetCart.getArguments().slice(0));
	},
	AlterCartItem: function(cartItemId, newAmount) {
		return this.invoke("AlterCartItem", {"cartItemId":cartItemId, "newAmount":newAmount}, this.AlterCartItem.getArguments().slice(2));
	},
	ReportSupportIssue: function(emailAddress, subject, message) {
		return this.invoke("ReportSupportIssue", {"emailAddress":emailAddress, "subject":subject, "message":message}, this.ReportSupportIssue.getArguments().slice(3));
	},
	LostPassword: function(emailAddress) {
		return this.invoke("LostPassword", {"emailAddress":emailAddress}, this.LostPassword.getArguments().slice(1));
	},
	NewsletterSignUp: function(emailAddress, subscribe) {
		return this.invoke("NewsletterSignUp", {"emailAddress":emailAddress, "subscribe":subscribe}, this.NewsletterSignUp.getArguments().slice(2));
	},
	DownloadProduct: function(productDownloadId) {
		return this.invoke("DownloadProduct", {"productDownloadId":productDownloadId}, this.DownloadProduct.getArguments().slice(1));
	},
	ChangeCartCurrency: function(currencyId) {
		return this.invoke("ChangeCartCurrency", {"currencyId":currencyId}, this.ChangeCartCurrency.getArguments().slice(1));
	},
	ChangePassword: function(newPassword, oldPassword) {
		return this.invoke("ChangePassword", {"newPassword":newPassword, "oldPassword":oldPassword}, this.ChangePassword.getArguments().slice(2));
	},
	PurchaseSound: function(soundId) {
		return this.invoke("PurchaseSound", {"soundId":soundId}, this.PurchaseSound.getArguments().slice(1));
	},
	SaveSound: function(soundId, doSave) {
		return this.invoke("SaveSound", {"soundId":soundId, "doSave":doSave}, this.SaveSound.getArguments().slice(2));
	},
	CreatePromoUser: function(email, promoCode) {
		return this.invoke("CreatePromoUser", {"email":email, "promoCode":promoCode}, this.CreatePromoUser.getArguments().slice(2));
	},
	AddUserPromotionCredits: function(email, promoCode) {
		return this.invoke("AddUserPromotionCredits", {"email":email, "promoCode":promoCode}, this.AddUserPromotionCredits.getArguments().slice(2));
	},
	SaveSoundList: function(soundListName, soundIds) {
		return this.invoke("SaveSoundList", {"soundListName":soundListName, "soundIds":soundIds}, this.SaveSoundList.getArguments().slice(2));
	},
	CreateUser: function(email, newsletter) {
		return this.invoke("CreateUser", {"email":email, "newsletter":newsletter}, this.CreateUser.getArguments().slice(2));
	},
	SendSound: function(soundId, phoneNumber) {
		return this.invoke("SendSound", {"soundId":soundId, "phoneNumber":phoneNumber}, this.SendSound.getArguments().slice(2));
	},
	url: '/ajaxpro/Iteam.Trex.Web.Site.Backend,Site.ashx'
}));
Iteam.Trex.Web.Site.Backend = new Iteam.Trex.Web.Site.Backend_class();

