if(typeof WagWorld == "undefined") WagWorld={};
if(typeof WagWorld.Web == "undefined") WagWorld.Web={};
if(typeof WagWorld.Web.AjaxUtility == "undefined") WagWorld.Web.AjaxUtility={};
WagWorld.Web.AjaxUtility_class = function() {};
Object.extend(WagWorld.Web.AjaxUtility_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {
	InsertNewBusiness: function(name, address1, address2, city, state, phoneAreaCode, phonePrefix, phoneSuffix, category, latitude, longitude, website, description, photoId) {
		return this.invoke("InsertNewBusiness", {"name":name, "address1":address1, "address2":address2, "city":city, "state":state, "phoneAreaCode":phoneAreaCode, "phonePrefix":phonePrefix, "phoneSuffix":phoneSuffix, "category":category, "latitude":latitude, "longitude":longitude, "website":website, "description":description, "photoId":photoId}, this.InsertNewBusiness.getArguments().slice(14));
	},
	GetResultPaneLocations: function(resultObject) {
		return this.invoke("GetResultPaneLocations", {"resultObject":resultObject}, this.GetResultPaneLocations.getArguments().slice(1));
	},
	GetMapLocations: function(businessObject) {
		return this.invoke("GetMapLocations", {"businessObject":businessObject}, this.GetMapLocations.getArguments().slice(1));
	},
	SetLocationCookie: function(latitude, longitude, location, keyword) {
		return this.invoke("SetLocationCookie", {"latitude":latitude, "longitude":longitude, "location":location, "keyword":keyword}, this.SetLocationCookie.getArguments().slice(4));
	},
	SelectLocationCookie: function() {
		return this.invoke("SelectLocationCookie", {}, this.SelectLocationCookie.getArguments().slice(0));
	},
	IsAuthenticated: function() {
		return this.invoke("IsAuthenticated", {}, this.IsAuthenticated.getArguments().slice(0));
	},
	GetSingleLocation: function(id) {
		return this.invoke("GetSingleLocation", {"id":id}, this.GetSingleLocation.getArguments().slice(1));
	},
	TellFriendAboutSpot: function(businessId, toEmail, fromName, optionalMessage) {
		return this.invoke("TellFriendAboutSpot", {"businessId":businessId, "toEmail":toEmail, "fromName":fromName, "optionalMessage":optionalMessage}, this.TellFriendAboutSpot.getArguments().slice(4));
	},
	TellFriendAboutSite: function(toEmail, fromName, fromEmail, optionalMessage) {
		return this.invoke("TellFriendAboutSite", {"toEmail":toEmail, "fromName":fromName, "fromEmail":fromEmail, "optionalMessage":optionalMessage}, this.TellFriendAboutSite.getArguments().slice(4));
	},
	RequestRemoval: function(context, id, fromEmail, reasonForRemoval) {
		return this.invoke("RequestRemoval", {"context":context, "id":id, "fromEmail":fromEmail, "reasonForRemoval":reasonForRemoval}, this.RequestRemoval.getArguments().slice(4));
	},
	SendFeedback: function(fromEmail, message) {
		return this.invoke("SendFeedback", {"fromEmail":fromEmail, "message":message}, this.SendFeedback.getArguments().slice(2));
	},
	SendToMobile: function(businessId, messageServiceId, mobileNumber) {
		return this.invoke("SendToMobile", {"businessId":businessId, "messageServiceId":messageServiceId, "mobileNumber":mobileNumber}, this.SendToMobile.getArguments().slice(3));
	},
	SendForgottenPassword: function(email) {
		return this.invoke("SendForgottenPassword", {"email":email}, this.SendForgottenPassword.getArguments().slice(1));
	},
	LogUserIn: function(email, password, rememberMe) {
		return this.invoke("LogUserIn", {"email":email, "password":password, "rememberMe":rememberMe}, this.LogUserIn.getArguments().slice(3));
	},
	RegisterUser: function(firstName, lastName, nickname, dogName, emailAddress, password, password2, emailOptIn) {
		return this.invoke("RegisterUser", {"firstName":firstName, "lastName":lastName, "nickname":nickname, "dogName":dogName, "emailAddress":emailAddress, "password":password, "password2":password2, "emailOptIn":emailOptIn}, this.RegisterUser.getArguments().slice(8));
	},
	AddSpotToFavorites: function(businessId) {
		return this.invoke("AddSpotToFavorites", {"businessId":businessId}, this.AddSpotToFavorites.getArguments().slice(1));
	},
	SelectCurrentLocation: function() {
		return this.invoke("SelectCurrentLocation", {}, this.SelectCurrentLocation.getArguments().slice(0));
	},
	AddBusinessReview: function(id, headline, body, rating) {
		return this.invoke("AddBusinessReview", {"id":id, "headline":headline, "body":body, "rating":rating}, this.AddBusinessReview.getArguments().slice(4));
	},
	SetAuthenticationTicket: function(userName) {
		return this.invoke("SetAuthenticationTicket", {"userName":userName}, this.SetAuthenticationTicket.getArguments().slice(1));
	},
	EditSpot: function(spotObject) {
		return this.invoke("EditSpot", {"spotObject":spotObject}, this.EditSpot.getArguments().slice(1));
	},
	AddSpot: function(businessObject, review, rating, headline, photoKey) {
		return this.invoke("AddSpot", {"businessObject":businessObject, "review":review, "rating":rating, "headline":headline, "photoKey":photoKey}, this.AddSpot.getArguments().slice(5));
	},
	ConfirmPhotoAdd: function(businessId) {
		return this.invoke("ConfirmPhotoAdd", {"businessId":businessId}, this.ConfirmPhotoAdd.getArguments().slice(1));
	},
	PromotionThankYouSubmit: function(street1, street2, city, state, zip) {
		return this.invoke("PromotionThankYouSubmit", {"street1":street1, "street2":street2, "city":city, "state":state, "zip":zip}, this.PromotionThankYouSubmit.getArguments().slice(5));
	},
	CleanseInitialQueryString: function(queryString) {
		return this.invoke("CleanseInitialQueryString", {"queryString":queryString}, this.CleanseInitialQueryString.getArguments().slice(1));
	},
	RetrieveTotalUsers: function() {
		return this.invoke("RetrieveTotalUsers", {}, this.RetrieveTotalUsers.getArguments().slice(0));
	},
	ClearRecentlyViewed: function() {
		return this.invoke("ClearRecentlyViewed", {}, this.ClearRecentlyViewed.getArguments().slice(0));
	},
	RemoveFavorite: function(businessId) {
		return this.invoke("RemoveFavorite", {"businessId":businessId}, this.RemoveFavorite.getArguments().slice(1));
	},
	RemoveReview: function(reviewId) {
		return this.invoke("RemoveReview", {"reviewId":reviewId}, this.RemoveReview.getArguments().slice(1));
	},
	RemovePhoto: function(photoId) {
		return this.invoke("RemovePhoto", {"photoId":photoId}, this.RemovePhoto.getArguments().slice(1));
	},
	RemoveSpot: function(spotId) {
		return this.invoke("RemoveSpot", {"spotId":spotId}, this.RemoveSpot.getArguments().slice(1));
	},
	GetSpotNamesByKeywordAndLocation: function(keyword, location) {
		return this.invoke("GetSpotNamesByKeywordAndLocation", {"keyword":keyword, "location":location}, this.GetSpotNamesByKeywordAndLocation.getArguments().slice(2));
	},
	GetResultsAdvanced: function(resultObject) {
		return this.invoke("GetResultsAdvanced", {"resultObject":resultObject}, this.GetResultsAdvanced.getArguments().slice(1));
	},
	GetLatitudeLongitude: function(keyword, location) {
		return this.invoke("GetLatitudeLongitude", {"keyword":keyword, "location":location}, this.GetLatitudeLongitude.getArguments().slice(2));
	},
	url: '/ajaxpro/WagWorld.Web.AjaxUtility,WagWorld.Web.ashx'
}));
WagWorld.Web.AjaxUtility = new WagWorld.Web.AjaxUtility_class();

