if(typeof GBNews == "undefined") GBNews={};
if(typeof GBNews.BusinessObjectLayer == "undefined") GBNews.BusinessObjectLayer={};
GBNews.BusinessObjectLayer.AjaxMethod_class = function() {};
Object.extend(GBNews.BusinessObjectLayer.AjaxMethod_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {
	GetNewsJSon: function(type) {
		return this.invoke("GetNewsJSon", {"type":type}, this.GetNewsJSon.getArguments().slice(1));
	},
	GetNextNewsJSon: function(type, publishDate) {
		return this.invoke("GetNextNewsJSon", {"type":type, "publishDate":publishDate}, this.GetNextNewsJSon.getArguments().slice(2));
	},
	SetCookieHoursValue: function(type, hours) {
		return this.invoke("SetCookieHoursValue", {"type":type, "hours":hours}, this.SetCookieHoursValue.getArguments().slice(2));
	},
	UpdateRating: function(id, type) {
		return this.invoke("UpdateRating", {"id":id, "type":type}, this.UpdateRating.getArguments().slice(2));
	},
	UpdateStatus: function(id, isPublished) {
		return this.invoke("UpdateStatus", {"id":id, "isPublished":isPublished}, this.UpdateStatus.getArguments().slice(2));
	},
	DeleteNews: function(id) {
		return this.invoke("DeleteNews", {"id":id}, this.DeleteNews.getArguments().slice(1));
	},
	url: '/ajaxpro/GBNews.BusinessObjectLayer.AjaxMethod,GBNews.BusinessObjectLayer.ashx'
}));
GBNews.BusinessObjectLayer.AjaxMethod = new GBNews.BusinessObjectLayer.AjaxMethod_class();

