﻿// usage: log('inside coolFunc',this,arguments);
// http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
var host = "http://www.travelclub.co.uk/";
window.log = function () {
  log.history = log.history || [];   // store logs to an array for reference
  log.history.push(arguments);
  if (this.console) {
    console.log(Array.prototype.slice.call(arguments));
  }
};

var Constants = new function () {
  this.QSKeyHotelCode = "hotelcode";
  this.QSKeyCountryCode = "countrycode";
  this.QSKeyCityCode = "citycode";
  this.QSKeyResortCode = "resortcode";
  this.QSKeyDuration = "duration";
  this.QSKeyDestinationCode = "destinationcode";
  this.QSKeyLocationCode = "locationcode";
  this.QSKeyCheckInDate = "checkindate";
  this.QSKeyStarRating = "starrating";
  this.QSKeyBoardBasisID = "boardbasisid";
  this.QSKeyRoomsRequired = "roomsrequired";
  this.QSKeyAdults = "adults";
  this.QSKeyChildren = "children";
  this.QSKeyOccupancyStatus = "occupancystatus";
  this.QSKeySearchFor = "searchfor";
  this.QSKeyFlightID = "flightid";
  this.QSKeyHotelID = "hotelid";
  this.QSKeyRoomIDArr = new Array();
  this.QSKeyRoomIDArr[0] = "room1id";
  this.QSKeyRoomIDArr[1] = "room2id";
  this.QSKeyRoomIDArr[2] = "room3id";
  this.QSKeyVariance = "variance";
  this.QSKeyOfferID = "Offerid";
  this.QSKeyDepartureDate = "departuredate";
  this.QSKeyDepartureCode = "departurecode";
  this.QSKeyDepartureGroupID = "departuregroupid";
  this.QSKeyCampaignCode = "cc";
  this.QSKeyIsOnTest = "isontest";
  this.QSKeyVideoPath = "videopath";
  this.QSKeyref = "ref"
  this.QSKeyXMLServiceStatus = "xmlservicestatus"
  this.QSKeyFlightServiceSupplierCode = "flightservicesuppliercode"
  this.QSKeyCheckXMLServices = "checkxmlservices"
  this.QSKeyGDSID = "gdsid";
  this.QSKeyAccommodationID = "accommodationid";
  this.QSTabName = "tabname";
  this.QSSearchRequestId = "searchrequestid";
  this.TabGeneral = "overview";
  this.QSccValue = "cc";
  this.QSSessionID = "sessionid";
  this.QSKeyCheckOutDate = "checkoutdate";

  this.QS_IS_INITIAL_REQUEST = "isinitialrequest";
  this.QS_PAGE_ID = "pageid";
  this.QS_PAGE_PARAM = "pageparam";
  this.QS_BOARDBASIS = "boardbasis";
  this.QS_DEP_AIRPORT = "depairport";
  this.QS_DURATION = "duration";
  this.QS_STAR_RATING = "starrating";
  this.QS_DEALTYPE = "dealtype";
  this.QS_PAGENUMBER = "pageno";
  this.QS_MOVE = "move";
  this.QS_NO_OF_COL = "noofcol";

  this.PageNameHotelSearchResults = "hotelsearch";
  this.PageNameCountryDetail = "country";
  this.PageNameCityDetail = "city";
  this.PageNameResortDetail = "resort";
  this.PageNameHotelDetail = "hoteldetail.aspx";
  this.PageNameFlightSearchResults = "flightsearch";
  this.PageNameOfferDetails = "offerdetails.aspx";
  this.PageProtocol = "http";

  this.OnlineBookingHost = "https://secure.travelclub.co.uk/";
  //this.OnlineBookingHost = "http://192.168.1.84/";
  this.PageNameOnlineBookingSummery = "bookingsummary.aspx";
  this.PageSecureProtocol = "https";
  this.hostUrl = "http://www.travelclub.co.uk/";
  this.DefaultNumbersOfRooms = 1;
  this.DefaultNumberOfAdults = 2;
  this.DefaultNumberOfChildren = 0;
  this.DefaultDuration = 7;
  this.DefaultStarRating = 0;
  this.DefaultOccupancyStatus = "1|1,2,0,0,0,0|";
  this.DefaultDepartureCode = "LGW";

  this.DealTypeFlight = "Flight";
  this.DealTypeHotel = "Hotel";
  this.DealTypeFlightAndHotel = "FlightAndHotel";

  this.DealTypeIDFlight = "1";
  this.DealTypeIDHotel = "2";
  this.DealTypeIDFlightAndHotel = "3";

  this.MessagePriceGridLoading = "Please wait as we retrieve your prices.";
  this.MessageFlightResultsGridLoading = "Please wait whilst we search prices and availability.";
  this.MessageHotelResultsGridLoading = "Please wait whilst we search prices and availability.";
  this.MessageHotelResultsSelectRoomRate = "Please make sure you have selected a rate for each room you wish to book.";
  this.MessageNoDealsFound = "<p style='color: red'>We could not find any deals. Please refine the filters.</p>";
  this.CssClass = "landingpageclass";
  this.MessageForDateCompare = "Check out date should be greater than check in date";

  this.default_Selected_Resort = "All Resorts";
  this.default_Selected_StarRating = "Any Rating";
  this.default_Selected_Board = "Any Board";

  this.AjaxKeyRotatingDeals = "RotaingDeals";
  this.AjaxKeyPriceGrid = "PriceGrid";
  this.AjaxKeyHotDealsPriceGrid = "HotDealsPriceGrid";
  this.DaysArray = new Array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');
  this.ShortDaysArray = new Array('Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su');

  this.AjaxKeyFlightSearchNextPage = "FlightSearchNextPage";
  this.AjaxKeyFlightSearchPreviousPage = "FlightSearchPreviousPage";
  this.AjaxKeyFlightSearchGotoPage = "FlightSearchGotoPage";
  this.AjaxKeyFlightSearchSortBy = "FlightSearchSortBy";
  this.AjaxKeyFlightSearchFilterBy = "FlightSearchFilterBy";
  this.AjaxKeyFlightSearchInsertSearchResult = "FlightSearchInsertSearchResult";
	this.AjaxKeyFlightSearchFILTERBYNOOFSTOPS = "FilterByNoOfStops";
  this.AjaxKeyFlightSearchFILTERBYNOOFSTOPSWITHOPERATOR = "FilterByNoOfStopsWithOperator";

  this.AjaxKeyHotelSearchNextPage = "HotelSearchNextPage";
  this.AjaxKeyHotelSearchPreviousPage = "HotelSearchPreviousPage";
  this.AjaxKeyHotelSearchGotoPage = "HotelSearchGotoPage";
  this.AjaxKeyHotelSearchSortBy = "HotelSearchSortBy";
  this.AjaxKeyHotelSearchFilterBy = "HotelSearchFilterBy";
  this.AjaxKeySearchBoxButton = "SearchButtonClicked";
  this.SessionExpireMessage = "Session has expired. Please wait as we reload your search.";
  this.AjaxKeySiteSignOnCreateUser = "SiteSignOnCreateUser";
  this.AjaxKeySiteSignOnSignIn = "SiteSignIn";
  this.AjaxKeySiteSignOnSignOut = "SiteSignOut";

  this.FlightSearch_ShowAllFlightColumnName = "All";
  this.AjaxKeySelectedHotelSaveAndRedirect = "SelectedHotelSaveAndRedirect";
  this.AJAX_KEY_PRICE_ALERT = "InsertPriceAlert";
  this.MessagePriceAlertLoading = "Please wait as we save your price alert details";

  this.default_Airport_Code = "1_-1";
  this.default_Airport_Desc = "Flying from...";
}
 
    

