function Minimizeable(obj){

    
    obj.addOnMinimize = function(action){ obj.addSubscriber("minimize",action); };

    obj.minimize = function(){
        if(obj.isMinimizeable()){
            this.minimized = true;
            //this.style.display = "none";
        }
    };

    obj.isMinimizeable = function(){
        return this.minimizeable;
    };

    obj.unminimize = function(){
        if(obj.isMinimizeable()){
            this.minimized = false;
            this.style.display = "block";
        }
    };

    obj.isMinimized = function(){
        return this.minimized;
    };

    return obj;

}

