<script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.4&amp;appid=<%= Setting.get(:services, :yahoo) %>"></script>
<script type="text/javascript">
  var address = <%= @group.location.inspect %>;
  map_loaded = false;
  function load_map() {
    if(map_loaded) return;
    map_loaded = true;
    var map = new YMap($('map'));
    map.drawZoomAndCenter(address, 6);
    map.addZoomLong();
    map.setMapType(YAHOO_MAP_REG);
    var img = new YImage();
    img.src = '/images/map_marker.gif';
    img.size = new YSize(16, 28);
    var marker = new YMarker(address, img);
    map.addOverlay(marker);
    map.addTypeControl();
    map.disableKeyControls();
  }
  if(typeof(hide_map) == 'undefined' || !hide_map) {
    Element.show('map-container')
    onload = load_map;
  }
</script>

<script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.4&amp;appid=<%= Setting.get(:services, :yahoo) %>"></script>
<script type="text/javascript">
  var address = <%= @group.location.inspect %>;
  map_loaded = false;
  function load_map() {
    if(map_loaded) return;
    map_loaded = true;
    var map = new YMap($('map'));
    map.drawZoomAndCenter(address, 6);
    map.addZoomLong();
    map.setMapType(YAHOO_MAP_REG);
    var img = new YImage();
    img.src = '/images/map_marker.gif';
    img.size = new YSize(16, 28);
    var marker = new YMarker(address, img);
    map.addOverlay(marker);
    map.addTypeControl();
    map.disableKeyControls();
  }
  if(typeof(hide_map) == 'undefined' || !hide_map) {
    $('#map-container').show();
    onload = load_map;
  }
</script>

Use jQuery to show map on group page.
Use jQuery to show map on group page.
