function BannerButtonControl() {
}

BannerButtonControl.prototype = new GControl();

BannerButtonControl.prototype.initialize = function(map) {
  var container = document.createElement("div");
  var atag = document.createElement("a");
  atag.href = "http://www.viadat.com/store-locator";
  atag.target = "_blank";
  var imgtag = document.createElement("img");
  if (sl_map_height>=300) {
	imgtag.src= add_base + "/images/map_sidefooter.png";
	} else {
	imgtag.src= add_base + "/images/map_sidefooter_sm.png";
	}
  imgtag.alt = "Lots of Locales by Viadat Creations";
  imgtag.title = imgtag.alt;
  this.setButtonStyle_(imgtag);
  container.appendChild(atag);
  atag.appendChild(imgtag);
  map.getContainer().appendChild(container);
  return container;
}

BannerButtonControl.prototype.getDefaultPosition = function() {
if (sl_map_height>=300) {
	return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(0, 82));
	} else {
	return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(0, 62));
	}
  
}

BannerButtonControl.prototype.setButtonStyle_ = function(button) {
  button.style.border = "0px";
}