var Airline = Class.create(Model, {
   view: ({
        modelView: function() {
            var airline = this.object;
            return airlineImageElement = new Element("img", {
                src:   airline.getLogo(),
                alt:   airline.getName(),
                title: airline.getName()
            });
        }
   }),
   vendor: null,
   initialize: function() {
   },
   getCode: function() {
       return this.code;
   },
   getName: function() {
       return this.name;
   },
   getVendor: function() {
       if (this.vendor == null) {
           this.vendor = false;
           this._getStorage().getVendors().each(function(vendor) {
               var vendorAirline = vendor.getAirline();
               if (vendorAirline && vendorAirline.getCode() == this.getCode()) {
                   this.vendor = vendor;
               }
           }.bind(this));
       }
       return this.vendor;
   },
   setDetails: function(details) {
       this.details = details;
   },
   toString: function() {
       return this.getCode();
   },
   valueOf: function() {
       return this.getCode();
   },
   getLogo: function() {
       return this.logo;
   },
   getPrices: function(calculate) {
       return this._getStorage().getAirlinePrices(this, calculate);
   }
});