var CarDataContainer = Class.create(); CarDataContainer.prototype = { initialize : function () { this.countries = [new Country("AU","Australia"),new Country("AT","Austria"),new Country("BE","Belgium"),new Country("CA","Canada"),new Country("CL","Chile"),new Country("CN","China"),new Country("CR","Costa Rica"),new Country("CZ","Czech Republic"),new Country("DK","Denmark"),new Country("FJ","Fiji"),new Country("FI","Finland"),new Country("FR","France"),new Country("PF","French Polynesia"),new Country("DE","Germany"),new Country("GR","Greece"),new Country("HK","Hong Kong"),new Country("HU","Hungary"),new Country("IN","India"),new Country("ID","Indonesia"),new Country("IE","Ireland"),new Country("IL","Israel"),new Country("IT","Italy"),new Country("JP","Japan"),new Country("JO","Jordan"),new Country("KR","Korea"),new Country("MY","Malaysia"),new Country("MX","Mexico"),new Country("NL","Netherlands"),new Country("NC","New Caledonia"),new Country("NZ","New Zealand"),new Country("NF","Norfolk Island"),new Country("NO","Norway"),new Country("PG","Papua New Guinea"),new Country("PH","Philippines"),new Country("PL","Poland"),new Country("PT","Portugal"),new Country("SG","Singapore"),new Country("ZA","South Africa"),new Country("ES","Spain"),new Country("SE","Sweden"),new Country("CH","Switzerland"),new Country("TH","Thailand"),new Country("TR","Turkey"),new Country("GB","United Kingdom"),new Country("US","United States"),new Country("VU","Vanuatu"),new Country("VN","Vietnam")]; this.airports = [new Airport("ABX","Albury","AU",this.countries),new Airport("ABZ","Aberdeen","GB",this.countries),new Airport("ACE","Lanzarote","ES",this.countries),new Airport("ADL","Adelaide","AU",this.countries),new Airport("AGP","Malaga","ES",this.countries),new Airport("AKL","Auckland","NZ",this.countries),new Airport("AMM","Amman","JO",this.countries),new Airport("AMS","Amsterdam","NL",this.countries),new Airport("ARM","Armidale","AU",this.countries),new Airport("ARN","Stockholm","SE",this.countries),new Airport("ASP","Alice Springs","AU",this.countries),new Airport("ATH","Athens","GR",this.countries),new Airport("AVV","Avalon (Melbourne)","AU",this.countries),new Airport("AYQ","Ayers Rock (Uluru)","AU",this.countries),new Airport("BCI","Barcaldine","AU",this.countries),new Airport("BCN","Barcelona","ES",this.countries),new Airport("BDB","Bundaberg","AU",this.countries),new Airport("BFS","Belfast","GB",this.countries),new Airport("BHM","Birmingham","US",this.countries),new Airport("BHX","Birmingham","GB",this.countries),new Airport("BIO","Bilbao","ES",this.countries),new Airport("BKK","Bangkok","TH",this.countries),new Airport("BKQ","Blackall","AU",this.countries),new Airport("BLQ","Bologna","IT",this.countries),new Airport("BLT","Blackwater","AU",this.countries),new Airport("BME","Broome","AU",this.countries),new Airport("BNE","Brisbane","AU",this.countries),new Airport("BNK","Ballina (Byron)","AU",this.countries),new Airport("BOM","Mumbai","IN",this.countries),new Airport("BOS","Boston","US",this.countries),new Airport("BRU","Brussels","BE",this.countries),new Airport("BUD","Budapest","HU",this.countries),new Airport("BWT","Burnie","AU",this.countries),new Airport("CBR","Canberra","AU",this.countries),new Airport("CDG","Paris","FR",this.countries),new Airport("CFS","Coffs Harbour","AU",this.countries),new Airport("CGK","Jakarta","ID",this.countries),new Airport("CGN","Cologne","DE",this.countries),new Airport("CHC","Christchurch","NZ",this.countries),new Airport("CNS","Cairns","AU",this.countries),new Airport("CPH","Copenhagen","DK",this.countries),new Airport("CTL","Charleville","AU",this.countries),new Airport("CTS","Sapporo","JP",this.countries),new Airport("CUN","Cancun","MX",this.countries),new Airport("DBO","Dubbo","AU",this.countries),new Airport("DEL","Delhi","IN",this.countries),new Airport("DEN","Denver","US",this.countries),new Airport("DFW","Dallas Fort Worth","US",this.countries),new Airport("DPO","Devonport","AU",this.countries),new Airport("DPS","Denpasar (Bali)","ID",this.countries),new Airport("DRW","Darwin","AU",this.countries),new Airport("DUB","Dublin","IE",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("EWR","New York (Newark)","US",this.countries),new Airport("FCO","Rome","IT",this.countries),new Airport("FRA","Frankfurt","DE",this.countries),new Airport("FUE","Fuerteventura Is","ES",this.countries),new Airport("FUK","Fukuoka","JP",this.countries),new Airport("GDL","Guadalajara","MX",this.countries),new Airport("GLA","Glasgow","GB",this.countries),new Airport("GLT","Gladstone","AU",this.countries),new Airport("GOV","Gove (Nhulunbuy)","AU",this.countries),new Airport("GRX","Granada","ES",this.countries),new Airport("GTE","Groote Eylandt","AU",this.countries),new Airport("GVA","Geneva","CH",this.countries),new Airport("HAJ","Hanover","DE",this.countries),new Airport("HAM","Hamburg","DE",this.countries),new Airport("HBA","Hobart","AU",this.countries),new Airport("HEL","Helsinki","FI",this.countries),new Airport("HID","Horn Island","AU",this.countries),new Airport("HKG","Hong Kong","HK",this.countries),new Airport("HNL","Honolulu","US",this.countries),new Airport("HTI","Hamilton Island","AU",this.countries),new Airport("HVB","Fraser Coast (Hervey Bay)","AU",this.countries),new Airport("IAD","Washington DC","US",this.countries),new Airport("IBZ","Ibiza","ES",this.countries),new Airport("ICN","Seoul","KR",this.countries),new Airport("INV","Inverness","GB",this.countries),new Airport("ISA","Mount Isa","AU",this.countries),new Airport("IST","Istanbul","TR",this.countries),new Airport("IVR","Inverell","AU",this.countries),new Airport("JFK","New York (JFK)","US",this.countries),new Airport("JNB","Johannesburg","ZA",this.countries),new Airport("KGI","Kalgoorlie","AU",this.countries),new Airport("KIX","Osaka (Kansai)","JP",this.countries),new Airport("KNX","Kununurra","AU",this.countries),new Airport("KTA","Karratha","AU",this.countries),new Airport("KUL","Kuala Lumper (KUL)","MY",this.countries),new Airport("LAS","Las Vegas","US",this.countries),new Airport("LAX","Los Angeles","US",this.countries),new Airport("LCG","La Coruna","ES",this.countries),new Airport("LCY","London","GB",this.countries),new Airport("LDH","Lord Howe Island","AU",this.countries),new Airport("LEI","Almeria","ES",this.countries),new Airport("LEN","Leon","ES",this.countries),new Airport("LGA","New York","US",this.countries),new Airport("LGW","London (Gatwick)","GB",this.countries),new Airport("LHR","London (Heathrow)","GB",this.countries),new Airport("LIN","Milan (Linate)","IT",this.countries),new Airport("LIS","Lisbon","PT",this.countries),new Airport("LPA","Gran Canaria","ES",this.countries),new Airport("LRE","Longreach","AU",this.countries),new Airport("LST","Launceston","AU",this.countries),new Airport("LYS","Lyon","FR",this.countries),new Airport("MAD","Madrid","ES",this.countries),new Airport("MAH","Menorca","ES",this.countries),new Airport("MAN","Manchester","GB",this.countries),new Airport("MBH","Maryborough","AU",this.countries),new Airport("MCO","Orlando","US",this.countries),new Airport("MCY","Sunshine Coast","AU",this.countries),new Airport("MEL","Melbourne","AU",this.countries),new Airport("MEX","Mexico City","MX",this.countries),new Airport("MGB","Mt Gambier","AU",this.countries),new Airport("MHU","Mount Hotham","AU",this.countries),new Airport("MIA","Miami","US",this.countries),new Airport("MKY","Mackay","AU",this.countries),new Airport("MNL","Manila","PH",this.countries),new Airport("MQL","Mildura","AU",this.countries),new Airport("MRZ","Moree","AU",this.countries),new Airport("MSP","Minneapolis","US",this.countries),new Airport("MSY","New Orleans","US",this.countries),new Airport("MUC","Munich","DE",this.countries),new Airport("NAA","Narrabri","AU",this.countries),new Airport("NAN","Nadi (Fiji)","FJ",this.countries),new Airport("NAP","Naples","IT",this.countries),new Airport("NCE","Nice","FR",this.countries),new Airport("NCL","Newcastle (UK)","GB",this.countries),new Airport("NGO","Nagoya","JP",this.countries),new Airport("NLK","Norfolk Island","NF",this.countries),new Airport("NOU","Noumea","NC",this.countries),new Airport("NRT","Tokyo","JP",this.countries),new Airport("NTL","Newcastle","AU",this.countries),new Airport("NUE","Nuremburg","DE",this.countries),new Airport("OOL","Gold Coast","AU",this.countries),new Airport("OPO","Porto","PT",this.countries),new Airport("ORD","Chicago","US",this.countries),new Airport("ORK","Cork","IE",this.countries),new Airport("OSL","Oslo","NO",this.countries),new Airport("OVD","Asturias","ES",this.countries),new Airport("PBO","Paraburdoo","AU",this.countries),new Airport("PDX","Portland","US",this.countries),new Airport("PEK","Beijing","CN",this.countries),new Airport("PER","Perth","AU",this.countries),new Airport("PHE","Port Hedland","AU",this.countries),new Airport("PNA","Pamplona","ES",this.countries),new Airport("POM","Port Moresby","PG",this.countries),new Airport("PPP","Proserpine","AU",this.countries),new Airport("PPT","Papeete","PF",this.countries),new Airport("PQQ","Port Macquarie","AU",this.countries),new Airport("PRG","Prague","CZ",this.countries),new Airport("PVG","Shanghai","CN",this.countries),new Airport("RMA","Roma","AU",this.countries),new Airport("ROK","Rockhampton","AU",this.countries),new Airport("ROT","Rotorua","NZ",this.countries),new Airport("SAN","San Diego","US",this.countries),new Airport("SCL","Santiago","CL",this.countries),new Airport("SCQ","Santiago De Compo","ES",this.countries),new Airport("SDR","Santander","ES",this.countries),new Airport("SEA","Seattle","US",this.countries),new Airport("SFO","San Francisco","US",this.countries),new Airport("SGN","Ho Chi Minh City","VN",this.countries),new Airport("SIN","Singapore","SG",this.countries),new Airport("SJC","San Jose","US",this.countries),new Airport("SJD","San Jose Del Cabo","MX",this.countries),new Airport("SJI","San Jose","PH",this.countries),new Airport("SJO","San Jose","CR",this.countries),new Airport("SNN","Shannon","IE",this.countries),new Airport("STL","St Louis","US",this.countries),new Airport("STR","Stuttgart","DE",this.countries),new Airport("SUV","Suva (Fiji)","FJ",this.countries),new Airport("SYD","Sydney","AU",this.countries),new Airport("TFS","Tenerife","ES",this.countries),new Airport("TLV","Tel Aviv","IL",this.countries),new Airport("TMW","Tamworth","AU",this.countries),new Airport("TRO","Taree","AU",this.countries),new Airport("TSV","Townsville","AU",this.countries),new Airport("TXL","Berlin","DE",this.countries),new Airport("UEE","Queenstown","AU",this.countries),new Airport("VGO","Vigo","ES",this.countries),new Airport("VIE","Vienna","AT",this.countries),new Airport("VLC","Valencia","ES",this.countries),new Airport("VLI","Port Vila","VU",this.countries),new Airport("WAW","Warsaw","PL",this.countries),new Airport("WEI","Weipa","AU",this.countries),new Airport("WGA","Wagga Wagga","AU",this.countries),new Airport("WIC","Wick","GB",this.countries),new Airport("WLG","Wellington","NZ",this.countries),new Airport("WSG","Washington","US",this.countries),new Airport("WYA","Whyalla","AU",this.countries),new Airport("XRY","Jerez Frontera","ES",this.countries),new Airport("YOW","Ottawa","CA",this.countries),new Airport("YQB","Quebec","CA",this.countries),new Airport("YUL","Montreal","CA",this.countries),new Airport("YVR","Vancouver","CA",this.countries),new Airport("YWG","Winnipeg","CA",this.countries),new Airport("YYC","Calgary","CA",this.countries),new Airport("YYZ","Toronto","CA",this.countries),new Airport("ZBL","Biloela (Thangool)","AU",this.countries),new Airport("ZNE","Newman","AU",this.countries),new Airport("ZQN","Queenstown","NZ",this.countries),new Airport("ZRH","Zurich","CH",this.countries)]; this.fromAirports = ["ABZ","ADL","ABX","ASP","LEI","AMM","AMS","ARM","ATH","AKL","AVV","AYQ","BNK","BKK","BCI","BCN","PEK","BFS","TXL","BIO","ZBL","BHX","BHM","BKQ","BLT","BLQ","BOS","BNE","BME","BRU","BUD","BDB","BWT","CNS","YYC","CBR","CUN","CTL","ORD","CHC","CFS","CGN","CPH","ORK","DFW","DRW","DEL","DPS","DEN","DPO","DBO","DUB","DUS","EDI","EMD","FRA","HVB","FUE","FUK","GVA","GLT","GLA","OOL","GOV","LPA","GRX","GTE","GDL","HAM","HTI","HAJ","HEL","SGN","HBA","HKG","HNL","HID","IBZ","IVR","INV","IST","CGK","XRY","JNB","KGI","KTA","KUL","KNX","LCG","ACE","LAS","LST","LEN","LIS","LGW","LHR","LCY","LRE","LDH","LAX","LYS","MKY","MAD","AGP","MAN","MNL","MBH","MEL","MAH","MEX","MIA","LIN","MQL","MSP","YUL","MRZ","MHU","ISA","MGB","BOM","MUC","NAN","NGO","NAP","NAA","MSY","JFK","LGA","EWR","NTL","NCL","ZNE","NCE","NLK","NOU","NUE","MCO","KIX","OSL","YOW","OVD","PNA","PPT","PBO","CDG","PER","PHE","PQQ","POM","VLI","PDX","OPO","PRG","PPP","YQB","ZQN","UEE","ROK","RMA","FCO","ROT","SAN","SFO","SJO","SJI","SJD","SJC","SDR","SCL","SCQ","CTS","SEA","ICN","PVG","SNN","SIN","STL","ARN","STR","MCY","SUV","SYD","TMW","TRO","TLV","TFS","NRT","YYZ","TSV","VLC","YVR","VIE","VGO","WGA","WAW","WSG","IAD","WEI","WLG","WYA","WIC","YWG","ZRH"]; this.toAirports = ["ABZ","ADL","ABX","ASP","LEI","AMM","AMS","ARM","ATH","AKL","AVV","AYQ","BNK","BKK","BCI","BCN","PEK","BFS","TXL","BIO","ZBL","BHX","BHM","BKQ","BLT","BLQ","BOS","BNE","BME","BRU","BUD","BDB","BWT","CNS","YYC","CBR","CUN","CTL","ORD","CHC","CFS","CGN","CPH","ORK","DFW","DRW","DEL","DPS","DEN","DPO","DBO","DUB","DUS","EDI","EMD","FRA","HVB","FUE","FUK","GVA","GLT","GLA","OOL","GOV","LPA","GRX","GTE","GDL","HAM","HTI","HAJ","HEL","SGN","HBA","HKG","HNL","HID","IBZ","IVR","INV","IST","CGK","XRY","JNB","KGI","KTA","KUL","KNX","LCG","ACE","LAS","LST","LEN","LIS","LGW","LHR","LCY","LRE","LDH","LAX","LYS","MKY","MAD","AGP","MAN","MNL","MBH","MEL","MAH","MEX","MIA","LIN","MQL","MSP","YUL","MRZ","MHU","ISA","MGB","BOM","MUC","NAN","NGO","NAP","NAA","MSY","JFK","LGA","EWR","NTL","NCL","ZNE","NCE","NLK","NOU","NUE","MCO","KIX","OSL","YOW","OVD","PNA","PPT","PBO","CDG","PER","PHE","PQQ","POM","VLI","PDX","OPO","PRG","PPP","YQB","ZQN","UEE","ROK","RMA","FCO","ROT","SAN","SFO","SJO","SJI","SJD","SJC","SDR","SCL","SCQ","CTS","SEA","ICN","PVG","SNN","SIN","STL","ARN","STR","MCY","SUV","SYD","TMW","TRO","TLV","TFS","NRT","YYZ","TSV","VLC","YVR","VIE","VGO","WGA","WAW","WSG","IAD","WEI","WLG","WYA","WIC","YWG","ZRH"]; this.carCompany = [["AL","All"],["ZI","Avis "],["ZD","Budget "],["ZE","Hertz "],["ZT","Thrifty "]]; }, // below are the getters for each piece of data within this object getAirports : function () { return this.airports; }, getCountries : function () { return this.countries; }, getToAirports : function () { return this.toAirports; }, getFromAirports : function () { return this.fromAirports; }, getCarCompany : function(){ return this.carCompany; } }