  var map = null;
  var myLatlng = null;
  var centerlatlng = null;  
  function initialize() {
    myLatlng = new google.maps.LatLng(46.84040537971109, 6.845823526382446); // 46.84054114875364,6.844503879547119
    centerlatlng = new google.maps.LatLng(46.84040537971109, 6.845823526382446);    
    var myOptions = {
      zoom: 10,
      center: centerlatlng,
      mapTypeId: google.maps.MapTypeId.HYBRID,
      navigationControl: true,
      mapTypeControl: true,
      scaleControl: true,
      scrollwheel:true
      
    }
    var icon_diams = new google.maps.MarkerImage('public/laprairie/images/poi.png',
          // This marker is 20 pixels wide by 32 pixels tall.
          new google.maps.Size(16, 16),
          // 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 0,32.
          new google.maps.Point(8, 8));
    map = new google.maps.Map(document.getElementById("situation"), myOptions);
    var marker = new google.maps.Marker({
        position: myLatlng, 
        map: map, 
        title: "La Prairie",
        icon: icon_diams
    });
  }
  
  
 $(document).ready(function(){
    initialize();   
    $('#whole_map').click(function(){
       map.set_center(centerlatlng);
       map.set_zoom(10);
       map.set_mapTypeId(google.maps.MapTypeId.HYBRID);
    });
    $('#detail_map').click(function(){
       map.set_center(centerlatlng);
       map.set_zoom(16);
       map.set_mapTypeId(google.maps.MapTypeId.SATELLITE);
    });
    $('#swiss_map').click(function(){
       var swiss = new google.maps.LatLng(46.9, 8.34);
       map.set_center(swiss);
       map.set_zoom(8);
       map.set_mapTypeId(google.maps.MapTypeId.HYBRID);
    });             
 });
