
function addBlockControl() {
    }
    addBlockControl.prototype = new GControl();
    addBlockControl.prototype.initialize = function(map) {
    var addblock = document.createElement("div");
    var addBlockCreateDiv = document.createElement("div");
    this.setButtonStyle_(addBlockCreateDiv);
    addblock.appendChild(addBlockCreateDiv);
    GEvent.addDomListener(addBlockCreateDiv, "click", function() {
        addBlock();
    });
    map.getContainer().appendChild(addblock);
    return addblock;
    }
    addBlockControl.prototype.getDefaultPosition = function() {
        return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(9, 283));
    }
    addBlockControl.prototype.setButtonStyle_ = function(button) {
        button.style.backgroundImage = "url(images/add_block.gif)";
        button.style.backgroundRepeat = "no-repeat";
        button.style.width = "55px";
        button.style.height = "22px";
        button.style.cursor = "pointer";
    }

function clearBlockControl() {
    }
    clearBlockControl.prototype = new GControl();
    clearBlockControl.prototype.initialize = function(map) {
    var clearblock = document.createElement("div");
    var clearBlockCreateDiv = document.createElement("div");
    this.setButtonStyle_(clearBlockCreateDiv);
    clearblock.appendChild(clearBlockCreateDiv);
    GEvent.addDomListener(clearBlockCreateDiv, "click", function() {
        clearBlock();
    });
    map.getContainer().appendChild(clearblock);
    return clearblock;
    }
    clearBlockControl.prototype.getDefaultPosition = function() {
        return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(9, 317));
    }
    clearBlockControl.prototype.setButtonStyle_ = function(button) {
        button.style.backgroundImage = "url(images/clear_block.gif)";
        button.style.backgroundRepeat = "no-repeat";
        button.style.width = "55px";
        button.style.height = "22px";
        button.style.cursor = "pointer";
    }

function controllerPanel() {
    }
    controllerPanel.prototype = new GControl();
    controllerPanel.prototype.initialize = function(map) {

        // top left
        var panel = document.createElement("div");
        panel.style.width = "72px";
        panel.style.height = "350px";

        if(olderbrowsers=="yes"){panel.style.backgroundImage = "url(images/controller.gif)";
        }else{panel.style.backgroundImage = "url(images/controller.png)";}
        map.getContainer().appendChild(panel);return panel;}

    controllerPanel.prototype.getDefaultPosition = function() {
        return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(0, 0));
    }

function cornerPanel() {
    }
    cornerPanel.prototype = new GControl();
    cornerPanel.prototype.initialize = function(map) {

        // top right
        var corner = document.createElement("div");
        corner.style.width = "14px";
        corner.style.height = "350px";
        map.getContainer().appendChild(corner);return corner;}

    cornerPanel.prototype.getDefaultPosition = function() {
        return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(716, 0));
    }
    
function googleBranding() {
    }
    googleBranding.prototype = new GControl();
    googleBranding.prototype.initialize = function(map) {

        // top left
        var panel = document.createElement("div");
        panel.style.width = "62px";
        panel.style.height = "30px";

        if(olderbrowsers=="yes"){panel.style.backgroundImage = "url(images/poweredby.gif)";
        }else{panel.style.backgroundImage = "url(images/poweredby.png)";}
        map.getContainer().appendChild(panel);return panel;}

    googleBranding.prototype.getDefaultPosition = function() {
        return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(80, 317));
    }
