var MontageService=function() {
MontageService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MontageService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return MontageService._staticInstance.get_path();},
GetCarouselTemplates:function(tagName,start,numVisible,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCarouselTemplates',true,{tagName:tagName,start:start,numVisible:numVisible},succeededCallback,failedCallback,userContext); },
GetCarouselFlickr:function(tags,start,numVisible,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCarouselFlickr',true,{tags:tags,start:start,numVisible:numVisible},succeededCallback,failedCallback,userContext); },
CheckUserNameAvailibility:function(userName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CheckUserNameAvailibility',true,{userName:userName},succeededCallback,failedCallback,userContext); },
MergeAndSave:function(usedTemplateID,deltaX,deltaY,resize,rotate,isMirror,brightness,contrast,saturation,hue,sharpness,isSepia,isMonochrome,isHalftone,sketch,cartoon,posterize,pointilize,charcoal,oilPaint,emboss,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'MergeAndSave',true,{usedTemplateID:usedTemplateID,deltaX:deltaX,deltaY:deltaY,resize:resize,rotate:rotate,isMirror:isMirror,brightness:brightness,contrast:contrast,saturation:saturation,hue:hue,sharpness:sharpness,isSepia:isSepia,isMonochrome:isMonochrome,isHalftone:isHalftone,sketch:sketch,cartoon:cartoon,posterize:posterize,pointilize:pointilize,charcoal:charcoal,oilPaint:oilPaint,emboss:emboss},succeededCallback,failedCallback,userContext); },
CropImage:function(top,left,height,width,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CropImage',true,{top:top,left:left,height:height,width:width},succeededCallback,failedCallback,userContext); },
SaveFlickrPhoto:function(url,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SaveFlickrPhoto',true,{url:url},succeededCallback,failedCallback,userContext); },
AppendPoints:function(points,brushRadius,brushShape,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AppendPoints',true,{points:points,brushRadius:brushRadius,brushShape:brushShape},succeededCallback,failedCallback,userContext); },
GetUserCompletionList:function(prefixText,count,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetUserCompletionList',false,{prefixText:prefixText,count:count,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetNeighbourList:function(city,countryCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNeighbourList',false,{city:city,countryCode:countryCode},succeededCallback,failedCallback,userContext); },
GetCommunityInfo:function(countryCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCommunityInfo',false,{countryCode:countryCode},succeededCallback,failedCallback,userContext); }}
MontageService.registerClass('MontageService',Sys.Net.WebServiceProxy);
MontageService._staticInstance = new MontageService();
MontageService.set_path = function(value) { MontageService._staticInstance.set_path(value); }
MontageService.get_path = function() { return MontageService._staticInstance.get_path(); }
MontageService.set_timeout = function(value) { MontageService._staticInstance.set_timeout(value); }
MontageService.get_timeout = function() { return MontageService._staticInstance.get_timeout(); }
MontageService.set_defaultUserContext = function(value) { MontageService._staticInstance.set_defaultUserContext(value); }
MontageService.get_defaultUserContext = function() { return MontageService._staticInstance.get_defaultUserContext(); }
MontageService.set_defaultSucceededCallback = function(value) { MontageService._staticInstance.set_defaultSucceededCallback(value); }
MontageService.get_defaultSucceededCallback = function() { return MontageService._staticInstance.get_defaultSucceededCallback(); }
MontageService.set_defaultFailedCallback = function(value) { MontageService._staticInstance.set_defaultFailedCallback(value); }
MontageService.get_defaultFailedCallback = function() { return MontageService._staticInstance.get_defaultFailedCallback(); }
MontageService.set_path("/services/montage-service.asmx");
MontageService.GetCarouselTemplates= function(tagName,start,numVisible,onSuccess,onFailed,userContext) {MontageService._staticInstance.GetCarouselTemplates(tagName,start,numVisible,onSuccess,onFailed,userContext); }
MontageService.GetCarouselFlickr= function(tags,start,numVisible,onSuccess,onFailed,userContext) {MontageService._staticInstance.GetCarouselFlickr(tags,start,numVisible,onSuccess,onFailed,userContext); }
MontageService.CheckUserNameAvailibility= function(userName,onSuccess,onFailed,userContext) {MontageService._staticInstance.CheckUserNameAvailibility(userName,onSuccess,onFailed,userContext); }
MontageService.MergeAndSave= function(usedTemplateID,deltaX,deltaY,resize,rotate,isMirror,brightness,contrast,saturation,hue,sharpness,isSepia,isMonochrome,isHalftone,sketch,cartoon,posterize,pointilize,charcoal,oilPaint,emboss,onSuccess,onFailed,userContext) {MontageService._staticInstance.MergeAndSave(usedTemplateID,deltaX,deltaY,resize,rotate,isMirror,brightness,contrast,saturation,hue,sharpness,isSepia,isMonochrome,isHalftone,sketch,cartoon,posterize,pointilize,charcoal,oilPaint,emboss,onSuccess,onFailed,userContext); }
MontageService.CropImage= function(top,left,height,width,onSuccess,onFailed,userContext) {MontageService._staticInstance.CropImage(top,left,height,width,onSuccess,onFailed,userContext); }
MontageService.SaveFlickrPhoto= function(url,onSuccess,onFailed,userContext) {MontageService._staticInstance.SaveFlickrPhoto(url,onSuccess,onFailed,userContext); }
MontageService.AppendPoints= function(points,brushRadius,brushShape,onSuccess,onFailed,userContext) {MontageService._staticInstance.AppendPoints(points,brushRadius,brushShape,onSuccess,onFailed,userContext); }
MontageService.GetUserCompletionList= function(prefixText,count,contextKey,onSuccess,onFailed,userContext) {MontageService._staticInstance.GetUserCompletionList(prefixText,count,contextKey,onSuccess,onFailed,userContext); }
MontageService.GetNeighbourList= function(city,countryCode,onSuccess,onFailed,userContext) {MontageService._staticInstance.GetNeighbourList(city,countryCode,onSuccess,onFailed,userContext); }
MontageService.GetCommunityInfo= function(countryCode,onSuccess,onFailed,userContext) {MontageService._staticInstance.GetCommunityInfo(countryCode,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('System.Drawing');
if (typeof(System.Drawing.Point) === 'undefined') {
System.Drawing.Point=gtc("System.Drawing.Point");
System.Drawing.Point.registerClass('System.Drawing.Point');
}
if (typeof(ScribblePoint) === 'undefined') {
var ScribblePoint=gtc("ScribblePoint");
ScribblePoint.registerClass('ScribblePoint');
}
if (typeof(GetAllNeighboursResult) === 'undefined') {
var GetAllNeighboursResult=gtc("GetAllNeighboursResult");
GetAllNeighboursResult.registerClass('GetAllNeighboursResult');
}
if (typeof(GetCommunityInfoResult) === 'undefined') {
var GetCommunityInfoResult=gtc("GetCommunityInfoResult");
GetCommunityInfoResult.registerClass('GetCommunityInfoResult');
}

