
var g_lat = 46.948387;
var g_lng = 7.440233;
var g_map = null;
var g_zoom = 14;

function initialize () {
  var latlng = new google.maps.LatLng (g_lat, g_lng);
  var myOptions = {
    zoom: g_zoom,
    center: latlng,
    mapTypeId: google.maps.MapTypeId.ROADMAP,
    mapTypeControl: false,
    navigationControl: true,
    navigationControlOptions: {style: google.maps.NavigationControlStyle.SMALL}
  };
  
  g_map = new google.maps.Map (document.getElementById ("map"), myOptions);

  var image = new google.maps.MarkerImage ("http://www.google.com/intl/en_us/mapfiles/arrow.png",
    // This marker is 39 px wide by 34 px tall
    new google.maps.Size (39, 34),
    // The origin for this image is 0,0
    new google.maps.Point (0,0),
    // The anchor for this image is the base of the flagpole at 17, 39
    new google.maps.Point (12, 34));
  var shadow = new google.maps.MarkerImage ("http://www.google.com/intl/en_us/mapfiles/arrowshadow.png",
    // The shadow image is larger in the horizontal dimension
    // while the position and offset are the same as for the main image.
    new google.maps.Size (39, 34),
    new google.maps.Point (0,0),
    new google.maps.Point (12, 34));

  var latlng_n = new google.maps.LatLng (46.959306, 7.434794);
  var html_n = "<b>colo |:| bern nord</b><br />Hochfeldstrasse<br />3012 Bern";
  var infowindow_n = new google.maps.InfoWindow ({content: html_n});

  var marker_n = new google.maps.Marker ({
    position: latlng_n,
    icon: image, 
    shadow: shadow, 
    map: g_map,
    title: 'colo |:| bern nord'
  });

  google.maps.event.addListener (marker_n, 'click', function() {
    infowindow_n.open (g_map, marker_n);
  });

  var latlng_s = new google.maps.LatLng (46.93633, 7.430438);
  var html_s = "<b>colo |:| bern sued</b><br />Chutzenstrasse<br />3007 Bern";
  var infowindow_s = new google.maps.InfoWindow ({content: html_s});

  var marker_s = new google.maps.Marker ({
    position: latlng_s,
    icon: image, 
    shadow: shadow,
    map: g_map,
    title: 'colo |:| bern sued'
  });

  google.maps.event.addListener (marker_s, 'click', function() {
    infowindow_s.open (g_map, marker_s);
  });
  
}



