var DataContainer = Class.create(); DataContainer.prototype = { initialize : function () { this.noMatchingCitiesText = '     There are no cities matching your request. Try again or click on the + to see valid destination cities.'; this.countries = [ new Country("AR","Argentina"),new Country("AU","Australia"),new Country("CA","Canada"),new Country("CL","Chile"),new Country("FJ","Fiji"),new Country("MX","Mexico"),new Country("NZ","New Zealand"),new Country("PF","French Polynesia"),new Country("US","United States") ]; this.airports = [ new Airport("ADL","Adelaide","AU",this.countries),new Airport("ABX","Albury","AU",this.countries),new Airport("ASP","Alice Springs","AU",this.countries),new Airport("ARM","Armidale","AU",this.countries),new Airport("ATL","Atlanta","US",this.countries),new Airport("AKL","Auckland","NZ",this.countries),new Airport("AUS","Austin","US",this.countries),new Airport("AVV","Avalon (Melbourne)","AU",this.countries),new Airport("AYQ","Ayers Rock (Uluru)","AU",this.countries),new Airport("BNK","Ballina (Byron)","AU",this.countries),new Airport("BOI","Boise","US",this.countries),new Airport("BOS","Boston","US",this.countries),new Airport("BNE","Brisbane","AU",this.countries),new Airport("BME","Broome","AU",this.countries),new Airport("EZE","Buenos Aires","AR",this.countries),new Airport("BDB","Bundaberg","AU",this.countries),new Airport("CNS","Cairns","AU",this.countries),new Airport("CBR","Canberra","AU",this.countries),new Airport("CUN","Cancun","MX",this.countries),new Airport("CTL","Charleville","AU",this.countries),new Airport("ORD","Chicago","US",this.countries),new Airport("CHC","Christchurch","NZ",this.countries),new Airport("CVG","Cincinnati","US",this.countries),new Airport("CFS","Coffs Harbour","AU",this.countries),new Airport("DFW","Dallas Fort Worth","US",this.countries),new Airport("DRW","Darwin","AU",this.countries),new Airport("DEN","Denver","US",this.countries),new Airport("DTW","Detroit","US",this.countries),new Airport("DPO","Devonport","AU",this.countries),new Airport("DBO","Dubbo","AU",this.countries),new Airport("EMD","Emerald","AU",this.countries),new Airport("FLG","Flagstaff","US",this.countries),new Airport("HVB","Fraser Coast (Hervey Bay)","AU",this.countries),new Airport("FAT","Fresno","US",this.countries),new Airport("GLT","Gladstone","AU",this.countries),new Airport("OOL","Gold Coast","AU",this.countries),new Airport("GOV","Gove (Nhulunbuy)","AU",this.countries),new Airport("GDL","Guadalajara","MX",this.countries),new Airport("HTI","Hamilton Island","AU",this.countries),new Airport("HBA","Hobart","AU",this.countries),new Airport("HNL","Honolulu","US",this.countries),new Airport("IND","Indianapolis","US",this.countries),new Airport("KGI","Kalgoorlie","AU",this.countries),new Airport("KTA","Karratha","AU",this.countries),new Airport("LAS","Las Vegas","US",this.countries),new Airport("LST","Launceston","AU",this.countries),new Airport("LDH","Lord Howe Island","AU",this.countries),new Airport("LAX","Los Angeles","US",this.countries),new Airport("MKY","Mackay","AU",this.countries),new Airport("MEL","Melbourne","AU",this.countries),new Airport("MEM","Memphis","US",this.countries),new Airport("MEX","Mexico City","MX",this.countries),new Airport("MIA","Miami","US",this.countries),new Airport("MQL","Mildura","AU",this.countries),new Airport("MSP","Minneapolis","US",this.countries),new Airport("MRY","Monterey (US)","US",this.countries),new Airport("MRZ","Moree","AU",this.countries),new Airport("NAN","Nadi (Fiji)","FJ",this.countries),new Airport("NAA","Narrabri","AU",this.countries),new Airport("BNA","Nashville","US",this.countries),new Airport("MSY","New Orleans","US",this.countries),new Airport("JFK","New York (JFK)","US",this.countries),new Airport("EWR","New York (Newark)","US",this.countries),new Airport("NTL","Newcastle","AU",this.countries),new Airport("ZNE","Newman","AU",this.countries),new Airport("MCO","Orlando","US",this.countries),new Airport("PPT","Papeete","PF",this.countries),new Airport("PBO","Paraburdoo","AU",this.countries),new Airport("PER","Perth","AU",this.countries),new Airport("PHE","Port Hedland","AU",this.countries),new Airport("PQQ","Port Macquarie","AU",this.countries),new Airport("PDX","Portland (Oregon)","US",this.countries),new Airport("PPP","Proserpine","AU",this.countries),new Airport("ZQN","Queenstown","NZ",this.countries),new Airport("RNO","Reno","US",this.countries),new Airport("ROK","Rockhampton","AU",this.countries),new Airport("SAN","San Diego","US",this.countries),new Airport("SFO","San Francisco","US",this.countries),new Airport("SJC","San Jose","US",this.countries),new Airport("SJD","San Jose Del Cabo","MX",this.countries),new Airport("SNA","Santa Ana","US",this.countries),new Airport("SBA","Santa Barbara","US",this.countries),new Airport("SCL","Santiago","CL",this.countries),new Airport("SEA","Seattle","US",this.countries),new Airport("STL","St Louis","US",this.countries),new Airport("MCY","Sunshine Coast","AU",this.countries),new Airport("SYD","Sydney","AU",this.countries),new Airport("TPA","Tampa","US",this.countries),new Airport("TMW","Tamworth","AU",this.countries),new Airport("YYZ","Toronto","CA",this.countries),new Airport("TSV","Townsville","AU",this.countries),new Airport("YVR","Vancouver","CA",this.countries),new Airport("WGA","Wagga Wagga","AU",this.countries),new Airport("IAD","Washington DC","US",this.countries),new Airport("WLG","Wellington","NZ",this.countries) ]; this.classes = [ new BookingClass("Y","ECO","Economy") , new BookingClass("P","PRM","Premium Economy") , new BookingClass("J","BUS","Business/First") ]; this.isSaleDate = [false]; this.travelDate = []; this.fromAirports = ["ATL","AUS","BOI","BOS","EZE","CUN","ORD","CVG","DFW","DEN","DTW","FLG","FAT","GDL","HNL","IND","LAS","LAX","MEM","MEX","MIA","MSP","MRY","BNA","MSY","JFK","EWR","MCO","PDX","RNO","SAN","SFO","SJC","SJD","SNA","SBA","SCL","SEA","STL","TPA","YYZ","YVR","IAD"]; this.popularFromAirports = null; this.toAirports = ["ADL","ABX","ASP","ARM","AKL","AVV","AYQ","BNK","BNE","BME","BDB","CNS","CBR","CTL","CHC","CFS","DRW","DPO","DBO","EMD","HVB","GLT","OOL","GOV","HTI","HBA","KGI","KTA","LST","LDH","MKY","MEL","MQL","MRZ","NAN","NAA","NTL","ZNE","PPT","PBO","PER","PHE","PQQ","PPP","ZQN","ROK","MCY","SYD","TMW","TSV","WGA","WLG"]; this.popularToAirports = ["ADL","BNE","CNS","CBR","DRW","HBA","MEL","PER","SYD"]; this.currentDate = [20091113 ]; this.matrix = 'rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr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rvrrrrvrrrrrrrrrvrrrrrrrrrrrrrrrrvrrrrrrrrrrrrvrrvrrrvvrvrvrrrvrrvvrvrvrrrrrvrrvrrvrrvrrrrrrrrvrrrvrrvrrrv'; // item 0 = valid flight - if true then this from/to combination is valid. this.VALID_FLIGHT_INDEX = 0; // item 1 = economy - if true then economy is to be available for this from/to combination this.CLASS_ECONOMY_INDEX = 1; // item 2 = premium - if true then premium economy is to be available for this from/to combination this.CLASS_PREMIUM_INDEX = 2; // item 3 = business - if true then business is to be available for this from/to combination this.CLASS_BUSINESS_INDEX = 3; // item 4 = first - if true then first is to be available for this from/to combination this.CLASS_FIRST_INDEX = 4; //For setting error Messages dynamically this.errorMsgs = null; }, getClasses : function () { return this.classes; }, getAirports : function () { return this.airports; }, getCountries : function () { return this.countries; }, getToAirports : function () { return this.toAirports; }, getFromAirports : function () { return this.fromAirports; }, getPopularFromAirports : function () { return this.popularFromAirports; }, getValidFlightIndex : function () { return this.VALID_FLIGHT_INDEX; }, getEconomyClassIndex : function () { return this.CLASS_ECONOMY_INDEX; }, getPremiumClassIndex : function () { return this.CLASS_PREMIUM_INDEX; }, getBusinessClassIndex : function () { return this.CLASS_BUSINESS_INDEX; }, getFirstClassIndex : function () { return this.CLASS_FIRST_INDEX; }, getMatrix : function () { return this.matrix; }, getIsSaleDate : function(){ return this.isSaleDate; }, getTravelDate : function(){ return this.travelDate; }, getCurrentDate : function(){ return this.currentDate; }, getnoMatchingCitiesText : function() { return this.noMatchingCitiesText; } }