if (typeof Car != "function") { function Car() { this.carType = null; this.carClass = null; } } if (typeof Location != "function") { function Location() { this.id = null; this.name = null; } } if (typeof Flight != "function") { function Flight() { this.legs = null; } } if (typeof Transfer != "function") { function Transfer() { this.insurance = null; this.holiday = null; this.returnTransfer = null; this.dateRange = null; this.price = null; this.forcedAttribute = null; this.name = null; this.pickupPoint = null; this.errata = null; this.visibilityAttribute = null; this.supplier = null; this.dropOffPoint = null; } } if (typeof Location != "function") { function Location() { this.id = null; this.name = null; } } if (typeof Hotel != "function") { function Hotel() { this.roomGroup = null; this.name = null; } } if (typeof SearchResults != "function") { function SearchResults() { this.totalResults = null; this.page = null; this.holidays = null; } } if (typeof Holiday != "function") { function Holiday() { this.yb = null; this.cf = null; } } // Provide a default path to dwr.engine if (dwr == null) var dwr = {}; if (dwr.engine == null) dwr.engine = {}; if (DWREngine == null) var DWREngine = dwr.engine; if (Searcher == null) var Searcher = {}; Searcher._path = '/virgin-portlets/dwr'; Searcher.search = function(callback) { dwr.engine._execute(Searcher._path, 'Searcher', 'search', callback); } Searcher.getLocationsByType = function(p0, p1, p2, p3, p4, p5, callback) { dwr.engine._execute(Searcher._path, 'Searcher', 'getLocationsByType', p0, p1, p2, p3, p4, p5, callback); }