var MapWebService=function() {
MapWebService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MapWebService.prototype={
GetSchoolsAjax:function(latitude,longitude,radius,succeededCallback, failedCallback, userContext) {
return this._invoke(MapWebService.get_path(), 'GetSchoolsAjax',false,{latitude:latitude,longitude:longitude,radius:radius},succeededCallback,failedCallback,userContext); },
GetRectSchoolsAjax:function(Lat1,Lon1,Lat2,Lon2,succeededCallback, failedCallback, userContext) {
return this._invoke(MapWebService.get_path(), 'GetRectSchoolsAjax',false,{Lat1:Lat1,Lon1:Lon1,Lat2:Lat2,Lon2:Lon2},succeededCallback,failedCallback,userContext); },
GetFavouriteSchoolsAjax:function(userName,succeededCallback, failedCallback, userContext) {
return this._invoke(MapWebService.get_path(), 'GetFavouriteSchoolsAjax',false,{userName:userName},succeededCallback,failedCallback,userContext); },
AddFavouriteSchoolAjax:function(userName,schoolID,succeededCallback, failedCallback, userContext) {
return this._invoke(MapWebService.get_path(), 'AddFavouriteSchoolAjax',false,{userName:userName,schoolID:schoolID},succeededCallback,failedCallback,userContext); },
DeleteFavouriteSchoolAjax:function(userName,schoolID,succeededCallback, failedCallback, userContext) {
return this._invoke(MapWebService.get_path(), 'DeleteFavouriteSchoolAjax',false,{userName:userName,schoolID:schoolID},succeededCallback,failedCallback,userContext); }}
MapWebService.registerClass('MapWebService',Sys.Net.WebServiceProxy);
MapWebService._staticInstance = new MapWebService();
MapWebService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; MapWebService._staticInstance._path = value; }
MapWebService.get_path = function() { return MapWebService._staticInstance._path; }
MapWebService.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
MapWebService._staticInstance._timeout = value; }
MapWebService.get_timeout = function() { 
return MapWebService._staticInstance._timeout; }
MapWebService.set_defaultUserContext = function(value) { 
MapWebService._staticInstance._userContext = value; }
MapWebService.get_defaultUserContext = function() { 
return MapWebService._staticInstance._userContext; }
MapWebService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; MapWebService._staticInstance._succeeded = value; }
MapWebService.get_defaultSucceededCallback = function() { 
return MapWebService._staticInstance._succeeded; }
MapWebService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; MapWebService._staticInstance._failed = value; }
MapWebService.get_defaultFailedCallback = function() { 
return MapWebService._staticInstance._failed; }
MapWebService.set_path("/Map/MapWebService.asmx");
MapWebService.GetSchoolsAjax= function(latitude,longitude,radius,onSuccess,onFailed,userContext) {MapWebService._staticInstance.GetSchoolsAjax(latitude,longitude,radius,onSuccess,onFailed,userContext); }
MapWebService.GetRectSchoolsAjax= function(Lat1,Lon1,Lat2,Lon2,onSuccess,onFailed,userContext) {MapWebService._staticInstance.GetRectSchoolsAjax(Lat1,Lon1,Lat2,Lon2,onSuccess,onFailed,userContext); }
MapWebService.GetFavouriteSchoolsAjax= function(userName,onSuccess,onFailed,userContext) {MapWebService._staticInstance.GetFavouriteSchoolsAjax(userName,onSuccess,onFailed,userContext); }
MapWebService.AddFavouriteSchoolAjax= function(userName,schoolID,onSuccess,onFailed,userContext) {MapWebService._staticInstance.AddFavouriteSchoolAjax(userName,schoolID,onSuccess,onFailed,userContext); }
MapWebService.DeleteFavouriteSchoolAjax= function(userName,schoolID,onSuccess,onFailed,userContext) {MapWebService._staticInstance.DeleteFavouriteSchoolAjax(userName,schoolID,onSuccess,onFailed,userContext); }

