var GalleryService=function() {
GalleryService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
GalleryService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return GalleryService._staticInstance.get_path();},
GetChNode4Gallery:function(p_parent,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetChNode4Gallery',false,{p_parent:p_parent},succeededCallback,failedCallback,userContext); },
GetPeriods4Gallery:function(p_gallery,p_year,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPeriods4Gallery',false,{p_gallery:p_gallery,p_year:p_year},succeededCallback,failedCallback,userContext); },
AddComment4Img:function(p_id_img,p_comment,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddComment4Img',false,{p_id_img:p_id_img,p_comment:p_comment},succeededCallback,failedCallback,userContext); },
RefreshComment:function(p_id_img,p_num_pg,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RefreshComment',false,{p_id_img:p_id_img,p_num_pg:p_num_pg},succeededCallback,failedCallback,userContext); },
SendMail4Img:function(p_id_img,p_mess,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SendMail4Img',false,{p_id_img:p_id_img,p_mess:p_mess},succeededCallback,failedCallback,userContext); }}
GalleryService.registerClass('GalleryService',Sys.Net.WebServiceProxy);
GalleryService._staticInstance = new GalleryService();
GalleryService.set_path = function(value) { GalleryService._staticInstance.set_path(value); }
GalleryService.get_path = function() { return GalleryService._staticInstance.get_path(); }
GalleryService.set_timeout = function(value) { GalleryService._staticInstance.set_timeout(value); }
GalleryService.get_timeout = function() { return GalleryService._staticInstance.get_timeout(); }
GalleryService.set_defaultUserContext = function(value) { GalleryService._staticInstance.set_defaultUserContext(value); }
GalleryService.get_defaultUserContext = function() { return GalleryService._staticInstance.get_defaultUserContext(); }
GalleryService.set_defaultSucceededCallback = function(value) { GalleryService._staticInstance.set_defaultSucceededCallback(value); }
GalleryService.get_defaultSucceededCallback = function() { return GalleryService._staticInstance.get_defaultSucceededCallback(); }
GalleryService.set_defaultFailedCallback = function(value) { GalleryService._staticInstance.set_defaultFailedCallback(value); }
GalleryService.get_defaultFailedCallback = function() { return GalleryService._staticInstance.get_defaultFailedCallback(); }
GalleryService.set_path("/GALLERY/GalleryService.asmx");
GalleryService.GetChNode4Gallery= function(p_parent,onSuccess,onFailed,userContext) {GalleryService._staticInstance.GetChNode4Gallery(p_parent,onSuccess,onFailed,userContext); }
GalleryService.GetPeriods4Gallery= function(p_gallery,p_year,onSuccess,onFailed,userContext) {GalleryService._staticInstance.GetPeriods4Gallery(p_gallery,p_year,onSuccess,onFailed,userContext); }
GalleryService.AddComment4Img= function(p_id_img,p_comment,onSuccess,onFailed,userContext) {GalleryService._staticInstance.AddComment4Img(p_id_img,p_comment,onSuccess,onFailed,userContext); }
GalleryService.RefreshComment= function(p_id_img,p_num_pg,onSuccess,onFailed,userContext) {GalleryService._staticInstance.RefreshComment(p_id_img,p_num_pg,onSuccess,onFailed,userContext); }
GalleryService.SendMail4Img= function(p_id_img,p_mess,onSuccess,onFailed,userContext) {GalleryService._staticInstance.SendMail4Img(p_id_img,p_mess,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Resp4TreeGallery) === 'undefined') {
var Resp4TreeGallery=gtc("Resp4TreeGallery");
Resp4TreeGallery.registerClass('Resp4TreeGallery');
}
