if(typeof ZinEngine == "undefined") ZinEngine={};
if(typeof ZinEngine.EngineMethods == "undefined") ZinEngine.EngineMethods={};
ZinEngine.EngineMethods_class = function() {};
Object.extend(ZinEngine.EngineMethods_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {
	UseBagItem: function(slot, itemID, uniqueID) {
		return this.invoke("UseBagItem", {"slot":slot, "itemID":itemID, "uniqueID":uniqueID}, this.UseBagItem.getArguments().slice(3));
	},
	Login: function(username, password, verification, confirmVerification) {
		return this.invoke("Login", {"username":username, "password":password, "verification":verification, "confirmVerification":confirmVerification}, this.Login.getArguments().slice(4));
	},
	Validate_Existence: function(type, value) {
		return this.invoke("Validate_Existence", {"type":type, "value":value}, this.Validate_Existence.getArguments().slice(2));
	},
	VerifyCode: function(code) {
		return this.invoke("VerifyCode", {"code":code}, this.VerifyCode.getArguments().slice(1));
	},
	GetCooldownTimer: function(width, height) {
		return this.invoke("GetCooldownTimer", {"width":width, "height":height}, this.GetCooldownTimer.getArguments().slice(2));
	},
	HasDisallowedName: function(name) {
		return this.invoke("HasDisallowedName", {"name":name}, this.HasDisallowedName.getArguments().slice(1));
	},
	GetString: function(tag) {
		return this.invoke("GetString", {"tag":tag}, this.GetString.getArguments().slice(1));
	},
	GetFormRequireString: function(tag, isSelect) {
		return this.invoke("GetFormRequireString", {"tag":tag, "isSelect":isSelect}, this.GetFormRequireString.getArguments().slice(2));
	},
	Profile_ChangeTitle: function(titleID) {
		return this.invoke("Profile_ChangeTitle", {"titleID":titleID}, this.Profile_ChangeTitle.getArguments().slice(1));
	},
	SwitchProfileTab: function(tab, id, isProfilePage) {
		return this.invoke("SwitchProfileTab", {"tab":tab, "id":id, "isProfilePage":isProfilePage}, this.SwitchProfileTab.getArguments().slice(3));
	},
	SetDefaultIconTab: function(iconTab) {
		return this.invoke("SetDefaultIconTab", {"iconTab":iconTab}, this.SetDefaultIconTab.getArguments().slice(1));
	},
	GetEmotionList: function(emotDir) {
		return this.invoke("GetEmotionList", {"emotDir":emotDir}, this.GetEmotionList.getArguments().slice(1));
	},
	Submit_FastPost: function(areaID, title, tag, body) {
		return this.invoke("Submit_FastPost", {"areaID":areaID, "title":title, "tag":tag, "body":body}, this.Submit_FastPost.getArguments().slice(4));
	},
	Submit_CreatePost: function(areaID, title, tag, body, attachmentID, options, allowMultipleVotes) {
		return this.invoke("Submit_CreatePost", {"areaID":areaID, "title":title, "tag":tag, "body":body, "attachmentID":attachmentID, "options":options, "allowMultipleVotes":allowMultipleVotes}, this.Submit_CreatePost.getArguments().slice(7));
	},
	Submit_EditPost: function(postID, title, tag, body) {
		return this.invoke("Submit_EditPost", {"postID":postID, "title":title, "tag":tag, "body":body}, this.Submit_EditPost.getArguments().slice(4));
	},
	Submit_FastReply: function(postID, body, bodyLength) {
		return this.invoke("Submit_FastReply", {"postID":postID, "body":body, "bodyLength":bodyLength}, this.Submit_FastReply.getArguments().slice(3));
	},
	Submit_CreateRound: function(postID, body, bodyLength, attachmentID) {
		return this.invoke("Submit_CreateRound", {"postID":postID, "body":body, "bodyLength":bodyLength, "attachmentID":attachmentID}, this.Submit_CreateRound.getArguments().slice(4));
	},
	Submit_EditRound: function(postID, sortOrder, body, bodyLength) {
		return this.invoke("Submit_EditRound", {"postID":postID, "sortOrder":sortOrder, "body":body, "bodyLength":bodyLength}, this.Submit_EditRound.getArguments().slice(4));
	},
	Submit_Vote: function(postID, options) {
		return this.invoke("Submit_Vote", {"postID":postID, "options":options}, this.Submit_Vote.getArguments().slice(2));
	},
	Insert_Pictures: function(attachmentID) {
		return this.invoke("Insert_Pictures", {"attachmentID":attachmentID}, this.Insert_Pictures.getArguments().slice(1));
	},
	HideRound: function(postID, sortOrder, note) {
		return this.invoke("HideRound", {"postID":postID, "sortOrder":sortOrder, "note":note}, this.HideRound.getArguments().slice(3));
	},
	DeletePost: function(postID, note) {
		return this.invoke("DeletePost", {"postID":postID, "note":note}, this.DeletePost.getArguments().slice(2));
	},
	StickPost: function(postID, note) {
		return this.invoke("StickPost", {"postID":postID, "note":note}, this.StickPost.getArguments().slice(2));
	},
	LockPost: function(postID, note) {
		return this.invoke("LockPost", {"postID":postID, "note":note}, this.LockPost.getArguments().slice(2));
	},
	ValuePost: function(postID, note) {
		return this.invoke("ValuePost", {"postID":postID, "note":note}, this.ValuePost.getArguments().slice(2));
	},
	StaticPost: function(postID, note) {
		return this.invoke("StaticPost", {"postID":postID, "note":note}, this.StaticPost.getArguments().slice(2));
	},
	MovePost: function(postID, targetAreaID, note) {
		return this.invoke("MovePost", {"postID":postID, "targetAreaID":targetAreaID, "note":note}, this.MovePost.getArguments().slice(3));
	},
	ColorPost: function(color, postID, note) {
		return this.invoke("ColorPost", {"color":color, "postID":postID, "note":note}, this.ColorPost.getArguments().slice(3));
	},
	BanUser: function(userID, note) {
		return this.invoke("BanUser", {"userID":userID, "note":note}, this.BanUser.getArguments().slice(2));
	},
	CleanSignature: function(userID) {
		return this.invoke("CleanSignature", {"userID":userID}, this.CleanSignature.getArguments().slice(1));
	},
	AddMoney: function(userID, money) {
		return this.invoke("AddMoney", {"userID":userID, "money":money}, this.AddMoney.getArguments().slice(2));
	},
	SendPM: function(receiver, subject, body) {
		return this.invoke("SendPM", {"receiver":receiver, "subject":subject, "body":body}, this.SendPM.getArguments().slice(3));
	},
	NPC_Talk: function(npcID, dialogID) {
		return this.invoke("NPC_Talk", {"npcID":npcID, "dialogID":dialogID}, this.NPC_Talk.getArguments().slice(2));
	},
	NPC_Ask: function(type, npcID) {
		return this.invoke("NPC_Ask", {"type":type, "npcID":npcID}, this.NPC_Ask.getArguments().slice(2));
	},
	NPC0001_Ask_Title: function() {
		return this.invoke("NPC0001_Ask_Title", {}, this.NPC0001_Ask_Title.getArguments().slice(0));
	},
	NPC0002_Ask_TournamentPrize: function() {
		return this.invoke("NPC0002_Ask_TournamentPrize", {}, this.NPC0002_Ask_TournamentPrize.getArguments().slice(0));
	},
	GuildManage_SetRankName: function(rank, rankName) {
		return this.invoke("GuildManage_SetRankName", {"rank":rank, "rankName":rankName}, this.GuildManage_SetRankName.getArguments().slice(2));
	},
	GuildManage_Approve: function(gamerID, accept) {
		return this.invoke("GuildManage_Approve", {"gamerID":gamerID, "accept":accept}, this.GuildManage_Approve.getArguments().slice(2));
	},
	GuildManage_ChangeGuildRank: function(gamerID, guildRank) {
		return this.invoke("GuildManage_ChangeGuildRank", {"gamerID":gamerID, "guildRank":guildRank}, this.GuildManage_ChangeGuildRank.getArguments().slice(2));
	},
	GuildManage_TransferLeader: function(gamerID) {
		return this.invoke("GuildManage_TransferLeader", {"gamerID":gamerID}, this.GuildManage_TransferLeader.getArguments().slice(1));
	},
	GuildManage_KickMember: function(gamerID) {
		return this.invoke("GuildManage_KickMember", {"gamerID":gamerID}, this.GuildManage_KickMember.getArguments().slice(1));
	},
	JoinGuild: function(guildID) {
		return this.invoke("JoinGuild", {"guildID":guildID}, this.JoinGuild.getArguments().slice(1));
	},
	QuitGuild: function() {
		return this.invoke("QuitGuild", {}, this.QuitGuild.getArguments().slice(0));
	},
	FormGuild: function() {
		return this.invoke("FormGuild", {}, this.FormGuild.getArguments().slice(0));
	},
	DisbandGuild: function() {
		return this.invoke("DisbandGuild", {}, this.DisbandGuild.getArguments().slice(0));
	},
	GuildManage_ManageUI: function(gamerID) {
		return this.invoke("GuildManage_ManageUI", {"gamerID":gamerID}, this.GuildManage_ManageUI.getArguments().slice(1));
	},
	url: '/ajaxpro/ZinEngine.EngineMethods,Zin.Engine.ashx'
}));
ZinEngine.EngineMethods = new ZinEngine.EngineMethods_class();

