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