if(typeof Profile == "undefined") Profile={};
Profile.ServiceManager_class = function() {};
Object.extend(Profile.ServiceManager_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {
	SetDirectionsMode: function(pageMode, includeReturnJourney) {
		return this.invoke("SetDirectionsMode", {"pageMode":pageMode, "includeReturnJourney":includeReturnJourney}, this.SetDirectionsMode.getArguments().slice(2));
	},
	TripVenueAction: function(action, venueId) {
		return this.invoke("TripVenueAction", {"action":action, "venueId":venueId}, this.TripVenueAction.getArguments().slice(2));
	},
	SetSortBy: function(sortBy) {
		return this.invoke("SetSortBy", {"sortBy":sortBy}, this.SetSortBy.getArguments().slice(1));
	},
	SetSearchOptions: function(options) {
		return this.invoke("SetSearchOptions", {"options":options}, this.SetSearchOptions.getArguments().slice(1));
	},
	FetchSearchResults: function(rebuild, currentPage, numResultsPerPage, autoWidenSearchArea, widenSearchArea, resetSearchRadius) {
		return this.invoke("FetchSearchResults", {"rebuild":rebuild, "currentPage":currentPage, "numResultsPerPage":numResultsPerPage, "autoWidenSearchArea":autoWidenSearchArea, "widenSearchArea":widenSearchArea, "resetSearchRadius":resetSearchRadius}, this.FetchSearchResults.getArguments().slice(6));
	},
	CalculateHalfway: function(sliderPos, startAddr, endAddr, segmentsArr, verticesArr, totalTime, totalDistance) {
		return this.invoke("CalculateHalfway", {"sliderPos":sliderPos, "startAddr":startAddr, "endAddr":endAddr, "segmentsArr":segmentsArr, "verticesArr":verticesArr, "totalTime":totalTime, "totalDistance":totalDistance}, this.CalculateHalfway.getArguments().slice(7));
	},
	SetAddress: function(addressType, freeTxt, latitude, longitude, street, city, postalCode, county) {
		return this.invoke("SetAddress", {"addressType":addressType, "freeTxt":freeTxt, "latitude":latitude, "longitude":longitude, "street":street, "city":city, "postalCode":postalCode, "county":county}, this.SetAddress.getArguments().slice(8));
	},
	DefineSearch: function(venueType, pageMode, resetSettings) {
		return this.invoke("DefineSearch", {"venueType":venueType, "pageMode":pageMode, "resetSettings":resetSettings}, this.DefineSearch.getArguments().slice(3));
	},
	DefineHalfwayCalculationMethod: function(method) {
		return this.invoke("DefineHalfwayCalculationMethod", {"method":method}, this.DefineHalfwayCalculationMethod.getArguments().slice(1));
	},
	DefineSliderPosition: function(pos) {
		return this.invoke("DefineSliderPosition", {"pos":pos}, this.DefineSliderPosition.getArguments().slice(1));
	},
	url: '/ajaxpro/Mhw.AjaxService.Profile.ServiceManager,Mhw.AjaxService.ashx'
}));
Profile.ServiceManager = new Profile.ServiceManager_class();

