function initialize() {
      if (GBrowserIsCompatible()) {          
var map = new GMap2(document.getElementById("map_canvas")); 
map.setCenter(new GLatLng(40.55747,8.313367), 16);
//icon defionition for latino 	 
var latinoIcon = new GIcon(G_DEFAULT_ICON); 	 
latinoIcon.image = "media/markers/marker1.png"; 	 
latinoIcon.iconSize = new GSize(20, 34); 	 
latinoIcon.shadowSize = new GSize(0, 0); 	 
latinoIcon.iconAnchor = new GPoint(10, 30); 
//icon defionition for jamaica 	 
var jamaicaIcon = new GIcon(G_DEFAULT_ICON); 	 
jamaicaIcon.image = "media/markers/marker2.png"; 	 
jamaicaIcon.iconSize = new GSize(20, 34); 	 
jamaicaIcon.shadowSize = new GSize(0, 0); 	 
jamaicaIcon.iconAnchor = new GPoint(10, 30); 
//icon definition for arca	 
var arcaIcon = new GIcon(G_DEFAULT_ICON); 	 
arcaIcon.image = "media/markers/marker3.png"; 	 
arcaIcon.iconSize = new GSize(20, 34); 	 
arcaIcon.shadowSize = new GSize(0, 0); 	 
arcaIcon.iconAnchor = new GPoint(10, 30); 
//icon definition for baronda 	 
var barondaIcon = new GIcon(G_DEFAULT_ICON); 	 
barondaIcon.image = "media/markers/marker4.png"; 	 
barondaIcon.iconSize = new GSize(20, 34); 	 
barondaIcon.shadowSize = new GSize(0, 0); 	 
barondaIcon.iconAnchor = new GPoint(10, 30); 	   
//icon definition for loco 	 
var locoIcon = new GIcon(G_DEFAULT_ICON); 	 
locoIcon.image = "media/markers/marker5.png"; 	 
locoIcon.iconSize = new GSize(20, 34); 	 
locoIcon.shadowSize = new GSize(0, 0); 	 
locoIcon.iconAnchor = new GPoint(10, 30); 	   
//icon definition for diva 	 
var divaIcon = new GIcon(G_DEFAULT_ICON); 	 
divaIcon.image = "media/markers/marker6.png"; 	 
divaIcon.iconSize = new GSize(20, 34); 	 
divaIcon.shadowSize = new GSize(0, 0); 	 
divaIcon.iconAnchor = new GPoint(10, 30); 	
//icon defionition for mill	 
var millIcon = new GIcon(G_DEFAULT_ICON); 	 
millIcon.image = "media/markers/marker7.png"; 	 
millIcon.iconSize = new GSize(20, 34); 	 
millIcon.shadowSize = new GSize(0, 0); 	 
millIcon.iconAnchor = new GPoint(10, 30); 
var mapTypeControl = new GMapTypeControl(); 
var topRight = new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(10,10));          
var bottomRight = new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(10,10));  	 	 	 
//var marker = new GMarker(point);  	          
//this function constructs the info box 	  

function createMarker(point,html) {          
var marker = new GMarker(point, markerOptions);          
GEvent.addListener(marker, "click", function() {            
marker.openInfoWindowHtml(html);         });          
return marker;       	}  	 
function createMarker2(point) {          
var marker = new GMarker(point, markerOptions);          
return marker;       	}  
   //map.addOverlay(marker); 	 
//map.addOverlay(marker, markerOptions);  
//create latino marker 	 
markerOptions = { icon:latinoIcon }; 
var point = new GLatLng(40.559527,8.312673); 	 
var marker = createMarker(point,'<div style="width:240px; height:117px"><b>Café Latino</b><BR><div style="font-size:11px"><i>Bastioni Magellano 10</i></div><P style="font-size:9.5px">Upmarket bar/café located on a corner of the walls with nice ambience and a good selection of cocktails. Large outside seating area has good views over the marina. </div>')    
map.addOverlay(marker);  
//create jamaica marker 	 
markerOptions = { icon:jamaicaIcon }; 
var point = new GLatLng(40.557430,8.313208); 	 
var marker = createMarker(point,'<div style="width:240px; height:117px"><b>Jamaica Inn</b><BR><div style="font-size:11px"><i>Via Principe Umberto 57</i></div><P style="font-size:9.5px">Dark wood panelled Irish bar with friendly staff and a good selection of beers on tap including Guinness. There is some outside seating across the road and a simple menu available. </div>')    
map.addOverlay(marker); 
//create arca marker 	 
markerOptions = { icon:arcaIcon }; 	 
var point = new GLatLng(40.554278,8.315853); 	 
var marker = createMarker(point,'<div style="width:240px; height:102px"><b>L Arca</b><BR><div style="font-size:11px"><i>Lungomare Dante 6</i></div><P style="font-size:9.5px"><!-- google_ad_section_start -->Just south of the old town on the seafront<!-- google_ad_section_end -->. This large spacious bar has outside seating, table football and live music.</div>')    
map.addOverlay(marker); 
//create baronda marker 	 
markerOptions = { icon:barondaIcon }; 
var point = new GLatLng(40.556878,8.313453); 	 
var marker = createMarker(point,'<div style="width:240px; height:102px"><b>Baronda</b><BR><div style="font-size:11px"><i>Piazza della Misericordia 14</i></div><P style="font-size:9.5px">Stylish bar with a wide range of cocktails. DJs provide the music and there is space to dance. Snacks available.</div>')    
map.addOverlay(marker); 
//create loco marker 	 
markerOptions = { icon:locoIcon }; 	 
var point = new GLatLng(40.554908,8.316103); 	 
var marker = createMarker(point,'<div style="width:240px; height:150px"><b>Poco Loco</b><BR><div style="font-size:11px"><i>Via Gramsci 8</i></div><P style="font-size:9.5px">Poco Loco is a bar/club/restaurant set over 2 floors. Visitors can enjoy cocktails, beer, wine and pizza by the metre on the ground floor whilst on the 1st floor there is live music and a ten pin bowling alley. An internet cafe is open daily from 07:00 to 19:00.</div>')    
map.addOverlay(marker); 
//create diva marker 	 
markerOptions = { icon:divaIcon };
var point = new GLatLng(40.558945,8.313990); 	 
var marker = createMarker(point,'<div style="width:240px; height:102px"><b>Diva Café</b><BR><div style="font-size:11px"><i>Piazza Municipio 1</i></div><P style="font-size:9.5px">Fashionable and relaxed bar located just off Piazza Civica. The outside terrace looks out onto the cobbled Piazza Municipio.</div>')    
map.addOverlay(marker); 
//create cartier marker 	 
markerOptions = { icon:millIcon }; 
var point = new GLatLng(40.557526,8.313783); 	 
var marker = createMarker(point,'<div style="width:240px; height:135px"><b>Mill Pub</b><BR><div style="font-size:11px"><i>Via Maiorca 37</i></div><P style="font-size:9.5px">Intimate and friendly Italian bar set in an old stone vaulted building. A good range of sardinian wines, draught beers and cocktails. Live music in the summer and a big screen for concerts and sporting events. </div>')    
map.addOverlay(marker); 
//map.addOverlay(new GMarker(point, markerOptions));          	 	 
//add zoom controls 	 
map.addControl(mapTypeControl, topRight); 	  
GEvent.addListener(map, "dblclick", function() {
            map.removeControl(mapTypeControl);            
map.addControl(new GMapTypeControl(), bottomRight);         });          
map.addControl(new GLargeMapControl()); 	 }      }