if(typeof Soda == "undefined") Soda={};
if(typeof Soda.Ajax == "undefined") Soda.Ajax={};
Soda.Ajax.Polls_class = function() {};
Object.extend(Soda.Ajax.Polls_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {
	GetAvailable: function() {
		return this.invoke("GetAvailable", {}, this.GetAvailable.getArguments().slice(0));
	},
	Get: function(id) {
		return this.invoke("Get", {"id":id}, this.Get.getArguments().slice(1));
	},
	RegisterVoteEx: function(pollID, optionID, w, prms) {
		return this.invoke("RegisterVoteEx", {"pollID":pollID, "optionID":optionID, "w":w, "prms":prms}, this.RegisterVoteEx.getArguments().slice(4));
	},
	GetResultsClassic: function(pollID) {
		return this.invoke("GetResultsClassic", {"pollID":pollID}, this.GetResultsClassic.getArguments().slice(1));
	},
	GetActualPolls: function(pollID) {
		return this.invoke("GetActualPolls", {"pollID":pollID}, this.GetActualPolls.getArguments().slice(1));
	},
	GetResults: function(pollID) {
		return this.invoke("GetResults", {"pollID":pollID}, this.GetResults.getArguments().slice(1));
	},
	RegisterVote: function(pollID, optionID) {
		return this.invoke("RegisterVote", {"pollID":pollID, "optionID":optionID}, this.RegisterVote.getArguments().slice(2));
	},
	RegisterVoteClassic: function(pollID, optionID) {
		return this.invoke("RegisterVoteClassic", {"pollID":pollID, "optionID":optionID}, this.RegisterVoteClassic.getArguments().slice(2));
	},
	GetPollsPage: function(idNav, pageNo) {
		return this.invoke("GetPollsPage", {"idNav":idNav, "pageNo":pageNo}, this.GetPollsPage.getArguments().slice(2));
	},
	url: '/ajaxpro/Soda.Ajax.Polls,Soda.ashx'
}));
Soda.Ajax.Polls = new Soda.Ajax.Polls_class();

