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("AT","Austria"),new Country("AU","Australia"),new Country("CH","Switzerland"),new Country("DE","Germany"),new Country("DK","Denmark"),new Country("ES","Spain"),new Country("FR","France"),new Country("GB","United Kingdom"),new Country("HK","Hong Kong"),new Country("HU","Hungary"),new Country("ID","Indonesia"),new Country("IN","India"),new Country("IT","Italy"),new Country("NC","New Caledonia"),new Country("NL","Netherlands"),new Country("NO","Norway"),new Country("NZ","New Zealand"),new Country("PH","Philippines"),new Country("SE","Sweden"),new Country("SG","Singapore"),new Country("TH","Thailand"),new Country("VN","Vietnam"),new Country("VU","Vanuatu") ]; this.airports = [ new Airport("ABZ","Aberdeen","GB",this.countries),new Airport("ADL","Adelaide","AU",this.countries),new Airport("ABX","Albury","AU",this.countries),new Airport("ASP","Alice Springs","AU",this.countries),new Airport("AMS","Amsterdam","NL",this.countries),new Airport("ARM","Armidale","AU",this.countries),new Airport("AKL","Auckland","NZ",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("BKK","Bangkok","TH",this.countries),new Airport("BCN","Barcelona","ES",this.countries),new Airport("TXL","Berlin","DE",this.countries),new Airport("BNE","Brisbane","AU",this.countries),new Airport("BME","Broome","AU",this.countries),new Airport("BUD","Budapest","HU",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("CTL","Charleville","AU",this.countries),new Airport("CHC","Christchurch","NZ",this.countries),new Airport("CFS","Coffs Harbour","AU",this.countries),new Airport("CGN","Cologne","DE",this.countries),new Airport("CPH","Copenhagen","DK",this.countries),new Airport("DRW","Darwin","AU",this.countries),new Airport("DPO","Devonport","AU",this.countries),new Airport("DBO","Dubbo","AU",this.countries),new Airport("DUS","Dusseldorf","DE",this.countries),new Airport("EDI","Edinburgh","GB",this.countries),new Airport("EMD","Emerald","AU",this.countries),new Airport("FRA","Frankfurt","DE",this.countries),new Airport("HVB","Fraser Coast (Hervey Bay)","AU",this.countries),new Airport("GVA","Geneva","CH",this.countries),new Airport("GLT","Gladstone","AU",this.countries),new Airport("GLA","Glasgow","GB",this.countries),new Airport("OOL","Gold Coast","AU",this.countries),new Airport("GOV","Gove (Nhulunbuy)","AU",this.countries),new Airport("HAM","Hamburg","DE",this.countries),new Airport("HTI","Hamilton Island","AU",this.countries),new Airport("HAJ","Hanover","DE",this.countries),new Airport("SGN","Ho Chi Minh City","VN",this.countries),new Airport("HBA","Hobart","AU",this.countries),new Airport("HKG","Hong Kong","HK",this.countries),new Airport("CGK","Jakarta","ID",this.countries),new Airport("KGI","Kalgoorlie","AU",this.countries),new Airport("KTA","Karratha","AU",this.countries),new Airport("LST","Launceston","AU",this.countries),new Airport("LHR","London (Heathrow)","GB",this.countries),new Airport("LDH","Lord Howe Island","AU",this.countries),new Airport("LYS","Lyon","FR",this.countries),new Airport("MKY","Mackay","AU",this.countries),new Airport("MAD","Madrid","ES",this.countries),new Airport("MAN","Manchester","GB",this.countries),new Airport("MNL","Manila","PH",this.countries),new Airport("MEL","Melbourne","AU",this.countries),new Airport("MQL","Mildura","AU",this.countries),new Airport("MRZ","Moree","AU",this.countries),new Airport("BOM","Mumbai","IN",this.countries),new Airport("MUC","Munich","DE",this.countries),new Airport("NAA","Narrabri","AU",this.countries),new Airport("NTL","Newcastle","AU",this.countries),new Airport("NCL","Newcastle (UK)","GB",this.countries),new Airport("ZNE","Newman","AU",this.countries),new Airport("NCE","Nice","FR",this.countries),new Airport("NOU","Noumea","NC",this.countries),new Airport("NUE","Nuremburg","DE",this.countries),new Airport("OSL","Oslo","NO",this.countries),new Airport("PBO","Paraburdoo","AU",this.countries),new Airport("CDG","Paris","FR",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("VLI","Port Vila","VU",this.countries),new Airport("PPP","Proserpine","AU",this.countries),new Airport("ZQN","Queenstown","NZ",this.countries),new Airport("ROK","Rockhampton","AU",this.countries),new Airport("FCO","Rome","IT",this.countries),new Airport("SIN","Singapore","SG",this.countries),new Airport("ARN","Stockholm","SE",this.countries),new Airport("STR","Stuttgart","DE",this.countries),new Airport("MCY","Sunshine Coast","AU",this.countries),new Airport("SYD","Sydney","AU",this.countries),new Airport("TMW","Tamworth","AU",this.countries),new Airport("TSV","Townsville","AU",this.countries),new Airport("VIE","Vienna","AT",this.countries),new Airport("WGA","Wagga Wagga","AU",this.countries),new Airport("WLG","Wellington","NZ",this.countries),new Airport("ZRH","Zurich","CH",this.countries) ]; this.classes = [ ]; this.isSaleDate = [false]; this.travelDate = []; this.fromAirports = ["SIN"]; this.popularFromAirports = null; this.toAirports = ["ABZ","ADL","ABX","ASP","AMS","ARM","AKL","AVV","AYQ","BNK","BKK","BCN","TXL","BNE","BME","BUD","BDB","CNS","CBR","CTL","CHC","CFS","CGN","CPH","DRW","DPO","DBO","DUS","EDI","EMD","FRA","HVB","GVA","GLT","GLA","OOL","GOV","HAM","HTI","HAJ","HBA","SGN","HKG","CGK","KGI","KTA","LST","LHR","LDH","LYS","MKY","MAD","MAN","MNL","MEL","MQL","MRZ","BOM","MUC","NAA","NTL","NCL","ZNE","NCE","NOU","NUE","OSL","PBO","CDG","PER","PHE","PQQ","VLI","PPP","ZQN","ROK","FCO","SIN","ARN","STR","MCY","SYD","TMW","TSV","VIE","WGA","WLG","ZRH"]; this.popularToAirports = [null]; this.currentDate = [20091118 ]; this.matrix = 'rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrvrrrrrrvrrrrrrrrrrrrrrrrrrrrrrrrrrvrrrrrr'; // 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; } }