// ==== The "More..." control simply accepts a mouseover to reveal the "Layer" control ===

function MoreControl(main) {
    this.main = main;
};

MoreControl.prototype = new GControl();

MoreControl.prototype.initialize = function(map) {
    var szLang = this.main.lang;
    var szMoreId = 'MoreControlMore';
    var szMore = lang[szLang][szMoreId];

    var container = document.createElement("div");
    container.id = szMoreId;
    container.style.border = "2px solid black";
    container.style.fontSize = "12px";
    container.style.fontFamily = "Arial, sans-serif";
    container.style.width="80px";
    container.style.backgroundColor = "#ffffff";
    container.style.textAlign = "center";
    container.innerHTML = szMore;
      
    map.getContainer().appendChild(container);
        
    GEvent.addDomListener(container, "mouseover", function() {
            map.addControl(fcmq.layerControl);
        });
        
        
    return container;
};
      
MoreControl.prototype.getDefaultPosition = function() {
    var oSize;
    var oOptions = options['more'];
    
    if(oOptions && oOptions['offsetx'] && oOptions['offsety']) {
        oSize = new GSize(oOptions['offsetx'], oOptions['offsety']);
    } else {
        oSize = new GSize(340, 7);
    }
    
    return new GControlPosition(G_ANCHOR_TOP_RIGHT, oSize);
};

