if(typeof Iteam == "undefined") Iteam={};
if(typeof Iteam.Trex == "undefined") Iteam.Trex={};
if(typeof Iteam.Trex.Ajax == "undefined") Iteam.Trex.Ajax={};
Iteam.Trex.Ajax.Admin_class = function() {};
Object.extend(Iteam.Trex.Ajax.Admin_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));
	},
	LostPassword: function(emailAddress) {
		return this.invoke("LostPassword", {"emailAddress":emailAddress}, this.LostPassword.getArguments().slice(1));
	},
	ChangePassword: function(newPlaintextPassword, oldPlaintextPassword) {
		return this.invoke("ChangePassword", {"newPlaintextPassword":newPlaintextPassword, "oldPlaintextPassword":oldPlaintextPassword}, this.ChangePassword.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));
	},
	url: '/ajaxpro/Iteam.Trex.Ajax.Admin,Site.ashx'
}));
Iteam.Trex.Ajax.Admin = new Iteam.Trex.Ajax.Admin_class();


