function AreaDescriptions() {
    
    this.maximized = true;
    
    this.resize = function() {
        if (this.maximized) {
            document.getElementById("areaDescriptionsContent").style.display = "none";
            this.maximized = false;
        }
        else {
            document.getElementById("areaDescriptionsContent").style.display = "inline";
            this.maximized = true;
        }
    }
}

AreaDescriptions.prototype = new GControl();
    
AreaDescriptions.prototype.initialize = function(map) {
    container = document.getElementById("areaDescriptions");    
    container.style.width = "200px";
    
    resizer = document.getElementById("areaDescriptionsResizer");
    var areaDescriptions = this;
    if (resizer != null) {
        resizer.onclick = function() {
            areaDescriptions.resize();
        }
    }

    map.getContainer().appendChild(container);
    return container;
}

AreaDescriptions.prototype.getDefaultPosition = function() {
    return new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(7, 7));
}
