function MapContextMenuActions(callback) { mode = 'sync'; if (callback) { mode = 'async'; } this.className = 'MapContextMenuActions'; this.dispatcher = new HTML_AJAX_Dispatcher(this.className,mode,callback,'/index.php?widget=ajaxscript&','JSON'); } MapContextMenuActions.prototype = { Sync: function() { this.dispatcher.Sync(); }, Async: function(callback) { this.dispatcher.Async(callback); }, createUserPOI: function() { return this.dispatcher.doCall('createUserPOI',arguments); }, removeUserPOI: function() { return this.dispatcher.doCall('removeUserPOI',arguments); }, createAmbushPOI: function() { return this.dispatcher.doCall('createAmbushPOI',arguments); }, removeAmbushPOI: function() { return this.dispatcher.doCall('removeAmbushPOI',arguments); }, updateDynamicPOI: function() { return this.dispatcher.doCall('updateDynamicPOI',arguments); }, setMyPosition: function() { return this.dispatcher.doCall('setMyPosition',arguments); }, getTrackList: function() { return this.dispatcher.doCall('getTrackList',arguments); }, getTrack: function() { return this.dispatcher.doCall('getTrack',arguments); }, getFavTrack: function() { return this.dispatcher.doCall('getFavTrack',arguments); }, setMapState: function() { return this.dispatcher.doCall('setMapState',arguments); }, setPOIVote: function() { return this.dispatcher.doCall('setPOIVote',arguments); }, delFavTrack: function() { return this.dispatcher.doCall('delFavTrack',arguments); } } function WallActions(callback) { mode = 'sync'; if (callback) { mode = 'async'; } this.className = 'WallActions'; this.dispatcher = new HTML_AJAX_Dispatcher(this.className,mode,callback,'/index.php?widget=ajaxscript&','JSON'); } WallActions.prototype = { Sync: function() { this.dispatcher.Sync(); }, Async: function(callback) { this.dispatcher.Async(callback); }, showNewMessageForm: function() { return this.dispatcher.doCall('showNewMessageForm',arguments); }, showNewPOIForm: function() { return this.dispatcher.doCall('showNewPOIForm',arguments); }, showNewTrackForm: function() { return this.dispatcher.doCall('showNewTrackForm',arguments); }, showNewCommentForm: function() { return this.dispatcher.doCall('showNewCommentForm',arguments); }, showEditMessageForm: function() { return this.dispatcher.doCall('showEditMessageForm',arguments); }, saveNewWallComment: function() { return this.dispatcher.doCall('saveNewWallComment',arguments); }, saveNewWallPOI: function() { return this.dispatcher.doCall('saveNewWallPOI',arguments); }, saveNewWallTrack: function() { return this.dispatcher.doCall('saveNewWallTrack',arguments); }, saveNewWallMessage: function() { return this.dispatcher.doCall('saveNewWallMessage',arguments); }, deleteWallObject: function() { return this.dispatcher.doCall('deleteWallObject',arguments); }, deleteWallComment: function() { return this.dispatcher.doCall('deleteWallComment',arguments); }, reloadMessages: function() { return this.dispatcher.doCall('reloadMessages',arguments); }, showWallComments: function() { return this.dispatcher.doCall('showWallComments',arguments); }, getWallUserPOI: function() { return this.dispatcher.doCall('getWallUserPOI',arguments); }, getWallTrack: function() { return this.dispatcher.doCall('getWallTrack',arguments); }, updateWallObject: function() { return this.dispatcher.doCall('updateWallObject',arguments); }, getCommonWallObjects: function() { return this.dispatcher.doCall('getCommonWallObjects',arguments); } } function CommonActions(callback) { mode = 'sync'; if (callback) { mode = 'async'; } this.className = 'CommonActions'; this.dispatcher = new HTML_AJAX_Dispatcher(this.className,mode,callback,'/index.php?widget=ajaxscript&','JSON'); } CommonActions.prototype = { Sync: function() { this.dispatcher.Sync(); }, Async: function(callback) { this.dispatcher.Async(callback); }, setStatus: function() { return this.dispatcher.doCall('setStatus',arguments); } } function MapActions(callback) { mode = 'sync'; if (callback) { mode = 'async'; } this.className = 'MapActions'; this.dispatcher = new HTML_AJAX_Dispatcher(this.className,mode,callback,'/index.php?widget=ajaxscript&','JSON'); } MapActions.prototype = { Sync: function() { this.dispatcher.Sync(); }, Async: function(callback) { this.dispatcher.Async(callback); }, getSpeedMap: function() { return this.dispatcher.doCall('getSpeedMap',arguments); }, getMapAreaBound: function() { return this.dispatcher.doCall('getMapAreaBound',arguments); }, reloadPhotoAlbum: function() { return this.dispatcher.doCall('reloadPhotoAlbum',arguments); }, sendQuickMessage: function() { return this.dispatcher.doCall('sendQuickMessage',arguments); } }