var WServiceMethods=function() {
WServiceMethods.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
WServiceMethods.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return WServiceMethods._staticInstance.get_path();},
FindDocs2:function(prefix,kindOfSearch,urlPathPrefix,lang,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'FindDocs2',false,{prefix:prefix,kindOfSearch:kindOfSearch,urlPathPrefix:urlPathPrefix,lang:lang},succeededCallback,failedCallback,userContext); },
ChangeCulture:function(lang,docUrlPath,nodeAlias,nodeClassName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ChangeCulture',false,{lang:lang,docUrlPath:docUrlPath,nodeAlias:nodeAlias,nodeClassName:nodeClassName},succeededCallback,failedCallback,userContext); },
GetOffersForOtherLocations:function(query,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetOffersForOtherLocations',false,{query:query},succeededCallback,failedCallback,userContext); },
SaveAgencyIdToCookie:function(agencyId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SaveAgencyIdToCookie',false,{agencyId:agencyId},succeededCallback,failedCallback,userContext); }}
WServiceMethods.registerClass('WServiceMethods',Sys.Net.WebServiceProxy);
WServiceMethods._staticInstance = new WServiceMethods();
WServiceMethods.set_path = function(value) { WServiceMethods._staticInstance.set_path(value); }
WServiceMethods.get_path = function() { return WServiceMethods._staticInstance.get_path(); }
WServiceMethods.set_timeout = function(value) { WServiceMethods._staticInstance.set_timeout(value); }
WServiceMethods.get_timeout = function() { return WServiceMethods._staticInstance.get_timeout(); }
WServiceMethods.set_defaultUserContext = function(value) { WServiceMethods._staticInstance.set_defaultUserContext(value); }
WServiceMethods.get_defaultUserContext = function() { return WServiceMethods._staticInstance.get_defaultUserContext(); }
WServiceMethods.set_defaultSucceededCallback = function(value) { WServiceMethods._staticInstance.set_defaultSucceededCallback(value); }
WServiceMethods.get_defaultSucceededCallback = function() { return WServiceMethods._staticInstance.get_defaultSucceededCallback(); }
WServiceMethods.set_defaultFailedCallback = function(value) { WServiceMethods._staticInstance.set_defaultFailedCallback(value); }
WServiceMethods.get_defaultFailedCallback = function() { return WServiceMethods._staticInstance.get_defaultFailedCallback(); }
WServiceMethods.set_path("/CMSTemplates/CMS_YB2/WServiceMethods.asmx");
WServiceMethods.FindDocs2= function(prefix,kindOfSearch,urlPathPrefix,lang,onSuccess,onFailed,userContext) {WServiceMethods._staticInstance.FindDocs2(prefix,kindOfSearch,urlPathPrefix,lang,onSuccess,onFailed,userContext); }
WServiceMethods.ChangeCulture= function(lang,docUrlPath,nodeAlias,nodeClassName,onSuccess,onFailed,userContext) {WServiceMethods._staticInstance.ChangeCulture(lang,docUrlPath,nodeAlias,nodeClassName,onSuccess,onFailed,userContext); }
WServiceMethods.GetOffersForOtherLocations= function(query,onSuccess,onFailed,userContext) {WServiceMethods._staticInstance.GetOffersForOtherLocations(query,onSuccess,onFailed,userContext); }
WServiceMethods.SaveAgencyIdToCookie= function(agencyId,onSuccess,onFailed,userContext) {WServiceMethods._staticInstance.SaveAgencyIdToCookie(agencyId,onSuccess,onFailed,userContext); }
