if(typeof ImageEditor == "undefined") ImageEditor={};
ImageEditor_class = function() {};
Object.extend(ImageEditor_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {
	BuildLayers: function(appId, guid, iActiveLayer) {
		return this.invoke("BuildLayers", {"appId":appId, "guid":guid, "iActiveLayer":iActiveLayer}, this.BuildLayers.getArguments().slice(3));
	},
	Clear: function(strAppId, guid) {
		return this.invoke("Clear", {"strAppId":strAppId, "guid":guid}, this.Clear.getArguments().slice(2));
	},
	SubmitImage: function(guid, strAppId, strObjectId, x, y, width, height, layer, path, thumbpath, bResizable, bMovable, bRotatable, bFlippable, strItemId, iLowerBoundLayer, iUpperBoundLayer) {
		return this.invoke("SubmitImage", {"guid":guid, "strAppId":strAppId, "strObjectId":strObjectId, "x":x, "y":y, "width":width, "height":height, "layer":layer, "path":path, "thumbpath":thumbpath, "bResizable":bResizable, "bMovable":bMovable, "bRotatable":bRotatable, "bFlippable":bFlippable, "strItemId":strItemId, "iLowerBoundLayer":iLowerBoundLayer, "iUpperBoundLayer":iUpperBoundLayer}, this.SubmitImage.getArguments().slice(17));
	},
	SubmitBrush: function(guid, strAppId, strObjectId, xPoints, yPoints, brushWidth, brushHeight, color) {
		return this.invoke("SubmitBrush", {"guid":guid, "strAppId":strAppId, "strObjectId":strObjectId, "xPoints":xPoints, "yPoints":yPoints, "brushWidth":brushWidth, "brushHeight":brushHeight, "color":color}, this.SubmitBrush.getArguments().slice(8));
	},
	SetBrushWidth: function(guid, iLayer, brushWidth, brushHeight) {
		return this.invoke("SetBrushWidth", {"guid":guid, "iLayer":iLayer, "brushWidth":brushWidth, "brushHeight":brushHeight}, this.SetBrushWidth.getArguments().slice(4));
	},
	SubmitText: function(guid, strAppId, strObjectId, x, y, fontSize, fontFamily, color, bold, italic, underline, text) {
		return this.invoke("SubmitText", {"guid":guid, "strAppId":strAppId, "strObjectId":strObjectId, "x":x, "y":y, "fontSize":fontSize, "fontFamily":fontFamily, "color":color, "bold":bold, "italic":italic, "underline":underline, "text":text}, this.SubmitText.getArguments().slice(12));
	},
	SubmitWrapText: function(guid, strAppId, strObjectId, strItemId, x, y, fontSize, fontFamily, color, bold, italic, underline, text, wrap_width, wrap_height, layer) {
		return this.invoke("SubmitWrapText", {"guid":guid, "strAppId":strAppId, "strObjectId":strObjectId, "strItemId":strItemId, "x":x, "y":y, "fontSize":fontSize, "fontFamily":fontFamily, "color":color, "bold":bold, "italic":italic, "underline":underline, "text":text, "wrap_width":wrap_width, "wrap_height":wrap_height, "layer":layer}, this.SubmitWrapText.getArguments().slice(16));
	},
	SubmitHtml: function(guid, strAppId, strObjectId, strItemId, x, y, text, wrap_width, wrap_height, layer) {
		return this.invoke("SubmitHtml", {"guid":guid, "strAppId":strAppId, "strObjectId":strObjectId, "strItemId":strItemId, "x":x, "y":y, "text":text, "wrap_width":wrap_width, "wrap_height":wrap_height, "layer":layer}, this.SubmitHtml.getArguments().slice(10));
	},
	SubmitBubble: function(guid, strAppId, strObjectId, x, y, iWidth, iHeight, iBubbleId, fontSize, fontFamily, color, bold, italic, underline, text, strProperties, thumbpath, strItemId, iLayer) {
		return this.invoke("SubmitBubble", {"guid":guid, "strAppId":strAppId, "strObjectId":strObjectId, "x":x, "y":y, "iWidth":iWidth, "iHeight":iHeight, "iBubbleId":iBubbleId, "fontSize":fontSize, "fontFamily":fontFamily, "color":color, "bold":bold, "italic":italic, "underline":underline, "text":text, "strProperties":strProperties, "thumbpath":thumbpath, "strItemId":strItemId, "iLayer":iLayer}, this.SubmitBubble.getArguments().slice(19));
	},
	SubmitPolygon: function(guid, strAppId, strObjectId, x, y, iWidth, iHeight, iPolyId, strProperties, thumbpath) {
		return this.invoke("SubmitPolygon", {"guid":guid, "strAppId":strAppId, "strObjectId":strObjectId, "x":x, "y":y, "iWidth":iWidth, "iHeight":iHeight, "iPolyId":iPolyId, "strProperties":strProperties, "thumbpath":thumbpath}, this.SubmitPolygon.getArguments().slice(10));
	},
	SetLayerPosition: function(guid, x, y, iLayer) {
		return this.invoke("SetLayerPosition", {"guid":guid, "x":x, "y":y, "iLayer":iLayer}, this.SetLayerPosition.getArguments().slice(4));
	},
	SetProperty: function(guid, iLayer, strProperty, strValue) {
		return this.invoke("SetProperty", {"guid":guid, "iLayer":iLayer, "strProperty":strProperty, "strValue":strValue}, this.SetProperty.getArguments().slice(4));
	},
	SetProperties: function(guid, iLayer, strProperties) {
		return this.invoke("SetProperties", {"guid":guid, "iLayer":iLayer, "strProperties":strProperties}, this.SetProperties.getArguments().slice(3));
	},
	DeleteLayer: function(guid, iLayer) {
		return this.invoke("DeleteLayer", {"guid":guid, "iLayer":iLayer}, this.DeleteLayer.getArguments().slice(2));
	},
	RotateImage: function(guid, width, height, radian, iLayer) {
		return this.invoke("RotateImage", {"guid":guid, "width":width, "height":height, "radian":radian, "iLayer":iLayer}, this.RotateImage.getArguments().slice(5));
	},
	FlipImage: function(guid, width, height, iLayer) {
		return this.invoke("FlipImage", {"guid":guid, "width":width, "height":height, "iLayer":iLayer}, this.FlipImage.getArguments().slice(4));
	},
	SetImageSize: function(guid, x, y, width, height, iLayer) {
		return this.invoke("SetImageSize", {"guid":guid, "x":x, "y":y, "width":width, "height":height, "iLayer":iLayer}, this.SetImageSize.getArguments().slice(6));
	},
	SetImageAll: function(guid, x, y, width, height, radian, iLayer) {
		return this.invoke("SetImageAll", {"guid":guid, "x":x, "y":y, "width":width, "height":height, "radian":radian, "iLayer":iLayer}, this.SetImageAll.getArguments().slice(7));
	},
	BringToFront: function(guid, iLayer) {
		return this.invoke("BringToFront", {"guid":guid, "iLayer":iLayer}, this.BringToFront.getArguments().slice(2));
	},
	SendToBack: function(guid, iLayer) {
		return this.invoke("SendToBack", {"guid":guid, "iLayer":iLayer}, this.SendToBack.getArguments().slice(2));
	},
	ChangeTemplateColor: function(guid, strAppId, strTemplateArea, strColor) {
		return this.invoke("ChangeTemplateColor", {"guid":guid, "strAppId":strAppId, "strTemplateArea":strTemplateArea, "strColor":strColor}, this.ChangeTemplateColor.getArguments().slice(4));
	},
	ChangeTemplate: function(guid, template) {
		return this.invoke("ChangeTemplate", {"guid":guid, "template":template}, this.ChangeTemplate.getArguments().slice(2));
	},
	DeleteUserImage: function(guid, ImageId) {
		return this.invoke("DeleteUserImage", {"guid":guid, "ImageId":ImageId}, this.DeleteUserImage.getArguments().slice(2));
	},
	GetEditorItemsHtml: function(strAppId, guid) {
		return this.invoke("GetEditorItemsHtml", {"strAppId":strAppId, "guid":guid}, this.GetEditorItemsHtml.getArguments().slice(2));
	},
	GetEditorItemHtml: function(strAppId, strItemId) {
		return this.invoke("GetEditorItemHtml", {"strAppId":strAppId, "strItemId":strItemId}, this.GetEditorItemHtml.getArguments().slice(2));
	},
	url: '/ajaxpro/ImageEditor,App_Web_editor.ascx.a9655e9d.ashx'
}));
ImageEditor = new ImageEditor_class();


