function initialize() {
 
  var vlLatlng = new google.maps.LatLng(60.978278,24.559681);  
  var vlOptions = {
    zoom: 11,
    center: vlLatlng,
    mapTypeId: google.maps.MapTypeId.ROADMAP
  }
      
  var map = new google.maps.Map(document.getElementById("vl_map_canvas"), vlOptions);
  var marker = new google.maps.Marker({map: map, position:map.getCenter()});    
  
}


function initialize_wide() {
 	
		 var vl2Latlng = new google.maps.LatLng(60.978278,24.559681);  
		 var vl2Options = {
		    zoom: 15,
		    center: vl2Latlng,
		    mapTypeId: google.maps.MapTypeId.ROADMAP
		  }
		      
		 var map = new google.maps.Map(document.getElementById("map_canvas_wide"), vl2Options);
		 //var marker = new google.maps.Marker({map: map, position:map.getCenter()});    
		
		// Old school API V2
		//var map2 = new GMap2(document.getElementById("map_canvas_wide"), {size: new GSize(900,600)});
		//map2.setCenter(new GLatLng(61.171668,24.557445), 15);
		
		//var point = new GLatLng(60.978278,24.559681);
        //var icon = new GMarker(point);
		
		//map2.addOverlay(icon); 
    	//map2.setUIToDefault();

		showMap();	
	
	function showMap() {
		tb_show('','TB_inline?height=600&width=900&inlineId=mapContainer','null');
		 var vl2Latlng = new google.maps.LatLng(60.978278,24.559681);  
		 var vl2Options = {
		    zoom: 13,
		    center: vl2Latlng,
		    mapTypeId: google.maps.MapTypeId.ROADMAP
		  }
		 var map = new google.maps.Map(document.getElementById("map_canvas_wide"), vl2Options);
		google.maps.event.trigger(map, "resize");
		 var marker = new google.maps.Marker({map: map, position:map.getCenter()});  
		//map2.setCenter(new GLatLng(60.978278,24.559681), 15);
	}
 }








  
function loadScript() {
  var script = document.createElement("script");
  script.type = "text/javascript";
  script.src = "http://maps.google.com/maps/api/js?sensor=false&callback=initialize";
  document.body.appendChild(script);
}
  
window.onload = loadScript;
