function MiramapaCargandoMapa() {
	this.objMiramapa = null;
}


MiramapaCargandoMapa.prototype = new GControl();

MiramapaCargandoMapa.prototype.initialize = function(map) {
  var container = document.createElement("div");
  	  container.id = "containerCargando";

  this.objMiramapa = document.createElement("div");
  this.objMiramapa.id = "cargandoMapa";
  this.setButtonStyle_(this.objMiramapa);

  this.setVisible(false);

  container.appendChild(this.objMiramapa);
  
  map.getContainer().appendChild(container);
  return container;
}
MiramapaCargandoMapa.prototype.setVisible = function(sw){
	
	if(sw)this.objMiramapa.style.display = "block";
	else this.objMiramapa.style.display = "none";
	
}
MiramapaCargandoMapa.prototype.setButtonStyle_ = function(button) {
	  button.style.padding = "0px";
	  button.style.marginBottom = "0px";
	  button.style.position = "absolute"
	  button.style.width = "100%";
	  button.style.height = "100%";
	  button.style.top = "0px";
	  button.style.left = "0px";
	  button.style.backgroundImage = "url(/miramapa/imagenes/ajax-loader-2.gif)";
	  button.style.backgroundColor = "#ffffff";
}
