//<![CDATA[
window.onload = onPageLoad;
var map;
function onPageLoad() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(38.178341, 15.553090), 7);
        map.setMapType(G_HYBRID_MAP);								
        map.setUIToDefault();
        map.openInfoWindow(map.getCenter(),
        document.createTextNode("Messina - Move the mouse over the markers"));
var publisher_id = 'pub-7036741240318833';
var adsManagerOptions = {
  maxAdsOnMap : 2,
  style: 'adunit',
  // The channel field is optional - replace this field with a channel number 
  // for Google AdSense tracking
  channel: '6445278715'  
};

adsManager = new GAdsManager(map, publisher_id, adsManagerOptions);
adsManager.enable(); 
          
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.travelmapofsicily.com/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker1 = new GMarker (new GLatLng(38.121311, 13.358450), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker1, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker1.openInfoWindowHtml('<p class="heading08"><strong>Palermo</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker1);
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.travelmapofsicily.com/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker2 = new GMarker (new GLatLng(38.018349, 12.513660), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker2, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker2.openInfoWindowHtml('<p class="heading08"><strong>Trapani</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker2);        
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.travelmapofsicily.com/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker3 = new GMarker (new GLatLng(37.854111, 15.292330), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker3, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker3.openInfoWindowHtml('<p class="heading08"><strong>Taormina</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker3); 
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.travelmapofsicily.com/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker4 = new GMarker (new GLatLng(36.925529, 14.730650), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker4, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker4.openInfoWindowHtml('<p class="heading08"><strong>Ragusa</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker4);
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.travelmapofsicily.com/images/resort-location.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker5 = new GMarker (new GLatLng(38.178341, 15.553090), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker5, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker5.openInfoWindowHtml('<p class="heading08"><strong>Messina</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker5);
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.travelmapofsicily.com/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker6 = new GMarker (new GLatLng(37.511459, 15.067440), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker6, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker6.openInfoWindowHtml('<p class="heading08"><strong>Catania</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker6);
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.travelmapofsicily.com/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker7 = new GMarker (new GLatLng(37.310841, 13.576380), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker7, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker7.openInfoWindowHtml('<p class="heading08"><strong>Agrigento</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker7);
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.travelmapofsicily.com/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker8 = new GMarker (new GLatLng(38.4936623, 14.9272044), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker8, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker8.openInfoWindowHtml('<p class="heading08"><strong>Lipari Islands</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker8);
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.travelmapofsicily.com/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker9 = new GMarker (new GLatLng(36.785262, 11.9918779), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker9, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker9.openInfoWindowHtml('<p class="heading08"><strong>Pantelleria Islands</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker9);
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.travelmapofsicily.com/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker10 = new GMarker (new GLatLng(37.7990835, 12.434233), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker10, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker10.openInfoWindowHtml('<p class="heading08"><strong>Marsala</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker10);  
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.travelmapofsicily.com/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker11 = new GMarker (new GLatLng(37.7990835, 12.434233), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker11, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker11.openInfoWindowHtml('<p class="heading08"><strong>Gela</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker11);       
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.travelmapofsicily.com/images/hotel.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker12 = new GMarker (new GLatLng(37.40793, 13.85000), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker12, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker12.openInfoWindowHtml('<p class="heading08"><a class="a" href="http://www.travelmapofsicily.com/promotions/hotel-deals-messina-sicily-gta-hotels.html" rel="follow" onclick="window.open(this.href);return false;">Hotels In Messina, Sicily</a></p>');  
});  
// Add marker to map  
map.addOverlay(marker12);    
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.seychellesholidaysmap.com/images/map-plane.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker13 = new GMarker (new GLatLng(37.40793, 14.25000), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker13, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker13.openInfoWindowHtml('<p class="heading08"><a class="a" href="http://www.myhoteltraveldeals.com/airplane-tickets/airplane-tickets-priceline.asp" rel="follow" onclick="window.open(this.href);return false;">International Flights To Sicily Italy By Priceline</a><br /><a class="a" href="http://www.myhoteltraveldeals.com/airplane-tickets/airplane-tickets-cheapoair.asp" rel="follow" onclick="window.open(this.href);return false;">Local/International Flights To Italy By ChepOAir</a></p>');  
});  
// Add marker to map  
map.addOverlay(marker13); 
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.travelmapofsicily.com/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker14 = new GMarker (new GLatLng(38.032570, 14.013820), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker14, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker14.openInfoWindowHtml('<p class="heading08"><strong>Cefalu</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker14);       
      }
    }
