if(typeof Carnival == "undefined") Carnival={};
if(typeof Carnival.Web == "undefined") Carnival.Web={};
if(typeof Carnival.Web.Controls == "undefined") Carnival.Web.Controls={};
Carnival.Web.Controls.QuickSearch_class = function() {};
Object.extend(Carnival.Web.Controls.QuickSearch_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {
	GetMonthYears: function(regionCode, subRegionCode, durationRangeCode, portCode) {
		return this.invoke("GetMonthYears", {"regionCode":regionCode, "subRegionCode":subRegionCode, "durationRangeCode":durationRangeCode, "portCode":portCode}, this.GetMonthYears.getArguments().slice(4));
	},
	GetDestinations: function(monthYear, durationRangeCode, portCode) {
		return this.invoke("GetDestinations", {"monthYear":monthYear, "durationRangeCode":durationRangeCode, "portCode":portCode}, this.GetDestinations.getArguments().slice(3));
	},
	GetEmbarkPort: function(regionCode, subRegionCode, monthYear, durationRangeCode) {
		return this.invoke("GetEmbarkPort", {"regionCode":regionCode, "subRegionCode":subRegionCode, "monthYear":monthYear, "durationRangeCode":durationRangeCode}, this.GetEmbarkPort.getArguments().slice(4));
	},
	GetDurations: function(regionCode, subRegionCode, monthYear, portCode) {
		return this.invoke("GetDurations", {"regionCode":regionCode, "subRegionCode":subRegionCode, "monthYear":monthYear, "portCode":portCode}, this.GetDurations.getArguments().slice(4));
	},
	OnSearchClientCB: function(monthyear, destinationText, destinationValue, departurePortText, departurePortValue, cruiseLengthCode, sControlStyle) {
		return this.invoke("OnSearchClientCB", {"monthyear":monthyear, "destinationText":destinationText, "destinationValue":destinationValue, "departurePortText":departurePortText, "departurePortValue":departurePortValue, "cruiseLengthCode":cruiseLengthCode, "sControlStyle":sControlStyle}, this.OnSearchClientCB.getArguments().slice(7));
	},
	url: '/ajaxpro/Carnival.Web.Controls.QuickSearch,Carnival.Web.ashx'
}));
Carnival.Web.Controls.QuickSearch = new Carnival.Web.Controls.QuickSearch_class();

