addNamespace("Ajax");
Ajax.BlogAjax_class = Class.create();
Object.extend(Ajax.BlogAjax_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {
	Login: function(username, password) {
		return this.invoke("Login", {"username":username, "password":password}, this.Login.getArguments().slice(2));
	},
	WriteBlog: function(blogId, title, content) {
		return this.invoke("WriteBlog", {"blogId":blogId, "title":title, "content":content}, this.WriteBlog.getArguments().slice(3));
	},
	WriteReply: function(blogId, content) {
		return this.invoke("WriteReply", {"blogId":blogId, "content":content}, this.WriteReply.getArguments().slice(2));
	},
	initialize: function() {
		this.url = '/ajaxpro/Ajax.BlogAjax,Ajax.ashx';
	}
}));
Ajax.BlogAjax = new Ajax.BlogAjax_class();


