function FullScreenControl(gsize) {
  this.gsize = gsize;
}
FullScreenControl.prototype = new GControl();

// Creates a one DIV for each of the buttons and places them in a container
// DIV which is returned as our control element. We add the control to
// to the map container and return the element for the map class to
// position properly.
FullScreenControl.prototype.initialize = function(map) {
  var container = document.createElement("div");
  container.onmouseover = function() {
    showHelpText(helpFullScreen);
  };
  container.onmouseout = function() {
    hideHelpText();
  };

  var button = document.createElement('img');
  button.className = 'map_control_img';
  button.src = 'img/fullscreen.gif';
  //this.setButtonStyle(button);
  container.appendChild(button);
  
  GEvent.addDomListener(button, "click", function() {
    showFullScreen();
  });
  
  map.getContainer().appendChild(container);
  return container;
}

// By default, the control will appear in the top left corner of the
// map with 7 pixels of padding.
FullScreenControl.prototype.getDefaultPosition = function() {
  return new GControlPosition(G_ANCHOR_TOP_LEFT, this.gsize);//new GSize(10, 10));
}

function MapControls(gsize) {
  this.gsize = gsize;
}

MapControls.prototype = new GControl();
MapControls.prototype.initialize = function(map) {
  var container = document.createElement('div');
  container.onmouseover = function() {
    showHelpText(helpZoom);
  };
  container.onmouseout = function() {
    hideHelpText();
  };

  var zoomIn = document.createElement('img');
  zoomIn.src = 'img/zoom_in.gif';
  zoomIn.className = 'map_control_img';
  GEvent.addDomListener(zoomIn, "click", function() {
    map.zoomIn();
  });
  container.appendChild(zoomIn);
  container.appendChild(document.createTextNode(' '));

  var zoomOut = document.createElement('img');
  zoomOut.src = 'img/zoom_out.gif';
  zoomOut.className = 'map_control_img';
  GEvent.addDomListener(zoomOut, "click", function() {
    map.zoomOut();
  });
  container.appendChild(zoomOut);
  container.appendChild(document.createTextNode(' '));
  
  var maptypeMap = document.createElement('img');
  maptypeMap.src = 'img/maptype_map.gif';
  maptypeMap.className = 'map_control_img';
  GEvent.addDomListener(maptypeMap, "click", function() {
    map.setMapType(G_NORMAL_MAP);
  });
  container.appendChild(maptypeMap);    
  container.appendChild(document.createTextNode(' '));

  var maptypeSatellite = document.createElement('img');
  maptypeSatellite.src = 'img/maptype_satellite.gif';
  maptypeSatellite.className = 'map_control_img';
  GEvent.addDomListener(maptypeSatellite, "click", function() {
    map.setMapType(G_SATELLITE_MAP);
  });
  container.appendChild(maptypeSatellite);   
  container.appendChild(document.createTextNode(' '));

  var maptypeHybrid = document.createElement('img');
  maptypeHybrid.src = 'img/maptype_hybrid.gif';
  maptypeHybrid.className = 'map_control_img';
  GEvent.addDomListener(maptypeHybrid, "click", function() {
    map.setMapType(G_HYBRID_MAP);
  });
  container.appendChild(maptypeHybrid);     

  map.getContainer().appendChild(container);
  return container;
}

MapControls.prototype.getDefaultPosition = function() {
  return new GControlPosition(G_ANCHOR_TOP_RIGHT, this.gsize);//new GSize(10, 10));
}
