addNamespace("Viking.Templates.Documents.ProductSelector");
Viking.Templates.Documents.ProductSelector.Products_class = Class.create();
Viking.Templates.Documents.ProductSelector.Products_class.prototype = (new AjaxPro.Request()).extend({
	DisplayCategories: function(categoryid, callback) {
		return this.invoke("DisplayCategories", {"categoryid":categoryid}, callback);
	},
	DisplayProducts: function(page, documentId, categoryIds, freetext, callback) {
		return this.invoke("DisplayProducts", {"page":page, "documentId":documentId, "categoryIds":categoryIds, "freetext":freetext}, callback);
	},
	DisplayProductsByIds: function(documentId, prodcutsIds, callback) {
		return this.invoke("DisplayProductsByIds", {"documentId":documentId, "prodcutsIds":prodcutsIds}, callback);
	},
	DisplayProductByDirection: function(page, documentId, categoryIds, freetext, direction, callback) {
		return this.invoke("DisplayProductByDirection", {"page":page, "documentId":documentId, "categoryIds":categoryIds, "freetext":freetext, "direction":direction}, callback);
	},
	SearchDealers: function(ProductId, CountryId, ZipCode, callback) {
		return this.invoke("SearchDealers", {"ProductId":ProductId, "CountryId":CountryId, "ZipCode":ZipCode}, callback);
	},
	initialize: function() {
		this.url = "/ajaxpro/Viking.Templates.Documents.ProductSelector.Products,Viking.ashx";
	}
})
Viking.Templates.Documents.ProductSelector.Products = new Viking.Templates.Documents.ProductSelector.Products_class();

