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, fullName, subscribe) {
		return this.invoke("NewsletterSignUp", {"emailAddress":emailAddress, "fullName":fullName, "subscribe":subscribe}, this.NewsletterSignUp.getArguments().slice(3));
	},
	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(newPlaintextPassword, oldPlaintextPassword) {
		return this.invoke("ChangePassword", {"newPlaintextPassword":newPlaintextPassword, "oldPlaintextPassword":oldPlaintextPassword}, 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, name, companyName, street, city, state, country, zip, phone) {
		return this.invoke("CreateUser", {"email":email, "newsletter":newsletter, "name":name, "companyName":companyName, "street":street, "city":city, "state":state, "country":country, "zip":zip, "phone":phone}, this.CreateUser.getArguments().slice(10));
	},
	GetNavigationRef: function(recordRef) {
		return this.invoke("GetNavigationRef", {"recordRef":recordRef}, this.GetNavigationRef.getArguments().slice(1));
	},
	GetPageNavigationRef: function(path) {
		return this.invoke("GetPageNavigationRef", {"path":path}, this.GetPageNavigationRef.getArguments().slice(1));
	},
	MovePage: function(categoryId, newOwnerId, newIndex) {
		return this.invoke("MovePage", {"categoryId":categoryId, "newOwnerId":newOwnerId, "newIndex":newIndex}, this.MovePage.getArguments().slice(3));
	},
	GetPageNodes: function(categoryId) {
		return this.invoke("GetPageNodes", {"categoryId":categoryId}, this.GetPageNodes.getArguments().slice(1));
	},
	SendSound: function(soundId, phoneNumber) {
		return this.invoke("SendSound", {"soundId":soundId, "phoneNumber":phoneNumber}, this.SendSound.getArguments().slice(2));
	},
	ApplyForOffer: function(offerKey) {
		return this.invoke("ApplyForOffer", {"offerKey":offerKey}, this.ApplyForOffer.getArguments().slice(1));
	},
	SoundEffectsCount: function(categoryId, recursive) {
		return this.invoke("SoundEffectsCount", {"categoryId":categoryId, "recursive":recursive}, this.SoundEffectsCount.getArguments().slice(2));
	},
	SoundEffectsCategorySearch: function(categoryId, keyword) {
		return this.invoke("SoundEffectsCategorySearch", {"categoryId":categoryId, "keyword":keyword}, this.SoundEffectsCategorySearch.getArguments().slice(2));
	},
	url: '/ajaxpro/Iteam.Trex.Web.Site.Backend,westarmusic-com.ashx'
}));
Iteam.Trex.Web.Site.Backend = new Iteam.Trex.Web.Site.Backend_class();

