$(document).ready(

  function()
  {
    if (!GBrowserIsCompatible()) { return false; }
    
    var mapOB = document.getElementById("map");
    mapOB.style.width = "620px"
    var map = new GMap2(mapOB);
    
    map.addControl(new GLargeMapControl());
    map.addControl(new GMapTypeControl());
    map.setCenter(new GLatLng(map_markers.nuaoffice.lat, map_markers.nuaoffice.lng), 16);
    
    
    for(var a in map_markers)
    {
      var icn               = new GIcon();
      icn.image             = map_markers[a].icon.path;
      icn.shadow            = map_markers[a].icon.shadow;
      icn.iconAnchor        = new GPoint( map_markers[a].icon.width/2,   map_markers[a].icon.height);
      icn.iconSize          = new GSize(map_markers[a].icon.width, map_markers[a].icon.height);
      icn.shadowSize        = new GSize(map_markers[a].icon.width, map_markers[a].icon.height);


      var mrk = new GMarker(new GLatLng(map_markers[a].lat, map_markers[a].lng), icn);
      map.addOverlay(mrk);
    }
    
    GMap2.prototype.wheelZoom = function(event) {
      if(event.cancelable)
        event.preventDefault();
      if((event.detail || -event.wheelDelta) < 0)
        map.zoomIn();
      else 
        map.zoomOut();
      return false; 
    }
    GEvent.addDomListener(mapOB, "DOMMouseScroll", map.wheelZoom);
    GEvent.addDomListener(mapOB, "mousewheel", map.wheelZoom); 

  }

);