///////////////////////////////////////////////////////////////////////////////////////
// JavaScript methods to create vertical and horizontal bar graphic masks on Google maps 
// 

// Depedency on other modules: 
//  Google maps.


//Code for Backgound Bar Behind Buttons. You only need code below this line to the next	
//--------------------------------------------------------------------------------------

function bghrzbarControl() {}
  bghrzbarControl.prototype = new GControl();
  bghrzbarControl.prototype.initialize = function(map) {
  var container = document.createElement("div");
  var bghbarDiv = document.createElement("div");
  this.setButtonStyle_(bghbarDiv);
  container.appendChild(bghbarDiv);
  bghbarDiv.appendChild(document.createElement("div"));
  map.getContainer().appendChild(container);
  return container;
}


function bgvertbarControl() {}
  bgvertbarControl.prototype = new GControl();
  bgvertbarControl.prototype.initialize = function(map) {
  var container = document.createElement("div");
  var bgvbarDiv = document.createElement("div");
  this.setButtonStyle_(bgvbarDiv);
  container.appendChild(bgvbarDiv);
  bgvbarDiv.appendChild(document.createElement("div"));
  map.getContainer().appendChild(container);
  return container;
}


function bgcorbarControl() {}
  bgcorbarControl.prototype = new GControl();
  bgcorbarControl.prototype.initialize = function(map) {
  var container = document.createElement("div");
  var bgcbarDiv = document.createElement("div");
  this.setButtonStyle_(bgcbarDiv);
  container.appendChild(bgcbarDiv);
  bgcbarDiv.appendChild(document.createElement("div"));
  map.getContainer().appendChild(container);
  return container;
}

bghrzbarControl.prototype.setButtonStyle_ = function(button) {
  //button.style.backgroundColor = "transparent";
  button.style.backgroundImage = "url(images/GM/gm_main_bar_horizontal.png)";
  button.style.backgroundRepeat ="no-repeat";
  button.style.paddingLeft = "643px";
  button.style.paddingTop = "66px";
}

bgvertbarControl.prototype.setButtonStyle_ = function(button) {
  //button.style.backgroundColor = "transparent";
  button.style.backgroundImage = "url(images/GM/gm_main_bar_vertical.png)";
  button.style.backgroundRepeat ="no-repeat";
  button.style.paddingLeft = "74px";
  button.style.paddingTop = "286px";
}


bgcorbarControl.prototype.setButtonStyle_ = function(button) {
  //button.style.backgroundColor = "transparent";
  button.style.backgroundImage = "url(images/GM/gm_main_bar_corner.png)";
  button.style.backgroundRepeat ="no-repeat";
  button.style.paddingLeft = "48px";
  button.style.paddingTop = "46px";
}

//--------------------------------------------------------------------
	
