NDSPartners = Class.create({
	currentAmount: null,

	initialize: function(currentAmount) {
	    this.currentAmount = currentAmount;
	    if (this.currentAmount == null) {
	        this.currentAmount = 1;
	    }
	    this.showPartners(this.currentAmount);
	},
	showPartners: function(howMany) {
        howMany = new Number(howMany);
        
	    if (howMany >= 1 && howMany <= 5) {
	        // show <howMany> partners
	        for (var i=2; i<=howMany; i++) {
	            $('partner' + i).removeClassName("hidden");
	        }
	        
	        /* hide the rest */
	        if (howMany < 5) {
	            for (var j=howMany+1; j<=5; j++) {
	                //alert(j);
	                $('partner' + j).addClassName("hidden");
	            }
	        }
	    }
	    
	    this.currentAmount = howMany;
	}
});
var ndsPartners;