var UIService=function() {
UIService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
UIService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return UIService._staticInstance.get_path();},
HandleEvent:function(dialogID,dialogTypeID,dialogParams,dialogState,controlID,eventName,siteState,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'HandleEvent',false,{dialogID:dialogID,dialogTypeID:dialogTypeID,dialogParams:dialogParams,dialogState:dialogState,controlID:controlID,eventName:eventName,siteState:siteState},succeededCallback,failedCallback,userContext); },
RebuildState:function(siteState,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RebuildState',false,{siteState:siteState},succeededCallback,failedCallback,userContext); }}
UIService.registerClass('UIService',Sys.Net.WebServiceProxy);
UIService._staticInstance = new UIService();
UIService.set_path = function(value) { UIService._staticInstance.set_path(value); }
UIService.get_path = function() { return UIService._staticInstance.get_path(); }
UIService.set_timeout = function(value) { UIService._staticInstance.set_timeout(value); }
UIService.get_timeout = function() { return UIService._staticInstance.get_timeout(); }
UIService.set_defaultUserContext = function(value) { UIService._staticInstance.set_defaultUserContext(value); }
UIService.get_defaultUserContext = function() { return UIService._staticInstance.get_defaultUserContext(); }
UIService.set_defaultSucceededCallback = function(value) { UIService._staticInstance.set_defaultSucceededCallback(value); }
UIService.get_defaultSucceededCallback = function() { return UIService._staticInstance.get_defaultSucceededCallback(); }
UIService.set_defaultFailedCallback = function(value) { UIService._staticInstance.set_defaultFailedCallback(value); }
UIService.get_defaultFailedCallback = function() { return UIService._staticInstance.get_defaultFailedCallback(); }
UIService.set_path("/UIService.asmx");
UIService.HandleEvent= function(dialogID,dialogTypeID,dialogParams,dialogState,controlID,eventName,siteState,onSuccess,onFailed,userContext) {UIService._staticInstance.HandleEvent(dialogID,dialogTypeID,dialogParams,dialogState,controlID,eventName,siteState,onSuccess,onFailed,userContext); }
UIService.RebuildState= function(siteState,onSuccess,onFailed,userContext) {UIService._staticInstance.RebuildState(siteState,onSuccess,onFailed,userContext); }
