﻿function HomeControl(controlDiv, imagePath) {

  // Set CSS styles for the DIV containing the control
  // Setting padding to 5 px will offset the control
  // from the edge of the map
  controlDiv.style.padding = '5px';

  // Set CSS for the control border
  var controlUI = document.createElement('DIV');
  controlUI.style.backgroundColor = 'white';
  controlUI.style.borderStyle = 'solid';
  controlUI.style.borderWidth = '2px';
  controlDiv.appendChild(controlUI);

  // Set CSS for the control interior
  var controlText = document.createElement('IMG');
  controlText.src = imagePath;
  controlUI.appendChild(controlText);

//  // Setup the click event listeners: simply set the map to Chicago
//  google.maps.event.addDomListener(controlUI, 'click', function() {
//    map.setCenter(chicago)
//  });
}
