// JavaScript Document

/*** vars ***/
var map;
var latlng = new google.maps.LatLng(45.443783,8.613335);

// key
//ABQIAAAA4zTfCkrAqarGR7UA_vni6BQpwXIKcdpxt_xKx8gLL2MYQsxojBTdsAsxDj4XblIpPOYyPF9G9Xnsig



/*$(window).bind("orientationchange",function(e) {
	setTimeout("resizeGoogleMaps()",100);
});*/
		
function initializeMap() {
		  
  
	/* options */
	var myOptions = {
		zoom: 17,
		center: latlng,
		scrollwheel:false,
		navigationControl: true,
		navigationControlOptions: {
		  style: google.maps.NavigationControlStyle.DEFAULT,
		 position: google.maps.ControlPosition.LEFT_TOP
		},
		mapTypeControl: true,
		scaleControl: true,
		streetViewControl:true,
		mapTypeId: google.maps.MapTypeId.SATELLITE
	};
  
	map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
  
	

	/**** add marker ***/
	var marker_image = new google.maps.MarkerImage('img/contacts/google_maps_marker.png',
      new google.maps.Size(53, 53),
      new google.maps.Point(0,0),
      new google.maps.Point(25, 25));
	
	var marker = new google.maps.Marker({
		position: latlng,
		title:"neotokio!",
		icon: marker_image
	});
	
	
	// To add the marker to the map, call setMap();
	marker.setMap(map);
	resizeGoogleMaps();
}


function resizeGoogleMaps(){
	google.maps.event.trigger(map, 'resize');			
}

