if(typeof ProductWiki == "undefined") ProductWiki={};
if(typeof ProductWiki.Web == "undefined") ProductWiki.Web={};
if(typeof ProductWiki.Web.UserControls == "undefined") ProductWiki.Web.UserControls={};
if(typeof ProductWiki.Web.UserControls.Promotion == "undefined") ProductWiki.Web.UserControls.Promotion={};
ProductWiki.Web.UserControls.Promotion_class = function() {};
Object.extend(ProductWiki.Web.UserControls.Promotion_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {
	PromoteItem: function(content_type, item_id, promotion_type) {
		return this.invoke("PromoteItem", {"content_type":content_type, "item_id":item_id, "promotion_type":promotion_type}, this.PromoteItem.getArguments().slice(3));
	},
	GetPromotionStatus: function(content_type, item_id) {
		return this.invoke("GetPromotionStatus", {"content_type":content_type, "item_id":item_id}, this.GetPromotionStatus.getArguments().slice(2));
	},
	PinItem: function(content_type, item_id, node_title, Pin) {
		return this.invoke("PinItem", {"content_type":content_type, "item_id":item_id, "node_title":node_title, "Pin":Pin}, this.PinItem.getArguments().slice(4));
	},
	UnPinAll: function(content_type, item_id) {
		return this.invoke("UnPinAll", {"content_type":content_type, "item_id":item_id}, this.UnPinAll.getArguments().slice(2));
	},
	GetPinStatus: function(content_type, item_id) {
		return this.invoke("GetPinStatus", {"content_type":content_type, "item_id":item_id}, this.GetPinStatus.getArguments().slice(2));
	},
	url: '/ajaxpro/ProductWiki.Web.UserControls.Promotion,ProductWiki.Web.ashx'
}));
ProductWiki.Web.UserControls.Promotion = new ProductWiki.Web.UserControls.Promotion_class();

