if(typeof AH4PAjax == "undefined") AH4PAjax={};
if(typeof AH4PAjax.Items == "undefined") AH4PAjax.Items={};
if(typeof AH4PAjax.Items.AjaxCommon == "undefined") AH4PAjax.Items.AjaxCommon={};
AH4PAjax.Items.AjaxCommon_class = function() {};
Object.extend(AH4PAjax.Items.AjaxCommon_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {
	GetUSDPrice: function(price, moneyCode) {
		return this.invoke("GetUSDPrice", {"price":price, "moneyCode":moneyCode}, this.GetUSDPrice.getArguments().slice(2));
	},
	GetItemList: function(gameName, itemClassID) {
		return this.invoke("GetItemList", {"gameName":gameName, "itemClassID":itemClassID}, this.GetItemList.getArguments().slice(2));
	},
	GetPromotionItemList: function(gameName, type) {
		return this.invoke("GetPromotionItemList", {"gameName":gameName, "type":type}, this.GetPromotionItemList.getArguments().slice(2));
	},
	SearchItemList: function(gameName, itemClassID, itemKeys, promotion) {
		return this.invoke("SearchItemList", {"gameName":gameName, "itemClassID":itemClassID, "itemKeys":itemKeys, "promotion":promotion}, this.SearchItemList.getArguments().slice(4));
	},
	SaveItemToShoppingCart: function(itemID, quantity, promotion, cartName) {
		return this.invoke("SaveItemToShoppingCart", {"itemID":itemID, "quantity":quantity, "promotion":promotion, "cartName":cartName}, this.SaveItemToShoppingCart.getArguments().slice(4));
	},
	RemoveItemFromShoppingCart: function(itemID, cartName) {
		return this.invoke("RemoveItemFromShoppingCart", {"itemID":itemID, "cartName":cartName}, this.RemoveItemFromShoppingCart.getArguments().slice(2));
	},
	LoadShoppingCart: function(cartName) {
		return this.invoke("LoadShoppingCart", {"cartName":cartName}, this.LoadShoppingCart.getArguments().slice(1));
	},
	GetPromotionPrice: function(quantity, sumPrice) {
		return this.invoke("GetPromotionPrice", {"quantity":quantity, "sumPrice":sumPrice}, this.GetPromotionPrice.getArguments().slice(2));
	},
	GetVipPrice: function(quantity, sumPrice) {
		return this.invoke("GetVipPrice", {"quantity":quantity, "sumPrice":sumPrice}, this.GetVipPrice.getArguments().slice(2));
	},
	GetServerList: function(gameName) {
		return this.invoke("GetServerList", {"gameName":gameName}, this.GetServerList.getArguments().slice(1));
	},
	GetCharacterClassList: function(gameID) {
		return this.invoke("GetCharacterClassList", {"gameID":gameID}, this.GetCharacterClassList.getArguments().slice(1));
	},
	GetCharacterTalantList: function(classID) {
		return this.invoke("GetCharacterTalantList", {"classID":classID}, this.GetCharacterTalantList.getArguments().slice(1));
	},
	GetCharacterSlotList: function(gameID) {
		return this.invoke("GetCharacterSlotList", {"gameID":gameID}, this.GetCharacterSlotList.getArguments().slice(1));
	},
	GetDiscountInfo: function(gameName, code, cartName) {
		return this.invoke("GetDiscountInfo", {"gameName":gameName, "code":code, "cartName":cartName}, this.GetDiscountInfo.getArguments().slice(3));
	},
	UserLogin: function(email, pwd) {
		return this.invoke("UserLogin", {"email":email, "pwd":pwd}, this.UserLogin.getArguments().slice(2));
	},
	AutoLogin: function() {
		return this.invoke("AutoLogin", {}, this.AutoLogin.getArguments().slice(0));
	},
	LoginOut: function() {
		return this.invoke("LoginOut", {}, this.LoginOut.getArguments().slice(0));
	},
	ChangeMoneyCode: function(moneyCode) {
		return this.invoke("ChangeMoneyCode", {"moneyCode":moneyCode}, this.ChangeMoneyCode.getArguments().slice(1));
	},
	SubmitSpecialRequest: function(comment, email, name, phone, game, server, character) {
		return this.invoke("SubmitSpecialRequest", {"comment":comment, "email":email, "name":name, "phone":phone, "game":game, "server":server, "character":character}, this.SubmitSpecialRequest.getArguments().slice(7));
	},
	url: '/ajaxpro/AH4PAjax.Items.AjaxCommon,AH4PAjax.ashx'
}));
AH4PAjax.Items.AjaxCommon = new AH4PAjax.Items.AjaxCommon_class();


