/* $Id$
 * Copyright (c) 2003 WorldTicket A/S
 * All rights reserved.
 */

function BergenAirRule() {
        this.ADULT = 0;
        this.CHILD = 1;
}

BergenAirRule.prototype = new Rule();

BergenAirRule.prototype.apply = function() {
    var adult = this.handlers[this.ADULT];
    var child = this.handlers[this.CHILD];
         
    child.setMax(adult.getValue());
}

BergenAirRule.prototype.init = function() {    
    for (var a = 0; a < this.handlers.length; a++) {
        this.handlers[a].setMax(10);
    }
    
    this.apply()
}


