//<![CDATA[
window.onload = onPageLoad;
var map;

function onPageLoad() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(10.34194, -84.448143), 7);
        map.setMapType(G_HYBRID_MAP);								
        map.setUIToDefault();
        map.openInfoWindow(map.getCenter(),
        document.createTextNode("Monteverde Region - 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: '5781541510'  
};

adsManager = new GAdsManager(map, publisher_id, adsManagerOptions);
adsManager.enable(); 

        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.costaricavacationmap.net/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker1 = new GMarker (new GLatLng(10.63065, -85.440079), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker1, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker1.openInfoWindowHtml('<p class="heading05"><strong>Liberia</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker1); 			
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.costaricavacationmap.net/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker2 = new GMarker (new GLatLng(10.62889, -85.68649), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker2, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker2.openInfoWindowHtml('<p class="heading05"><strong>Golfo De Papagayo</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker2); 			          
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.costaricavacationmap.net/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker3 = new GMarker (new GLatLng(9.95, -83.35), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker3, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker3.openInfoWindowHtml('<p class="heading05"><strong>Playa Hermosa</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker3); 
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.costaricavacationmap.net/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker4 = new GMarker (new GLatLng(9.40436, -84.15974), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker4, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker4.openInfoWindowHtml('<p class="heading05"><strong>Manuel Antonio</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker4); 
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.costaricavacationmap.net/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker5 = new GMarker (new GLatLng(9.927128, -84.082012), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker5, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker5.openInfoWindowHtml('<p class="heading05"><strong>San Jose</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker5); 
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.costaricavacationmap.net/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker6 = new GMarker (new GLatLng(10.4957971, -85.354965), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker6, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker6.openInfoWindowHtml('<p class="heading05"><strong>Guanacaste</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker6); 
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.costaricavacationmap.net/images/resort-location.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker7 = new GMarker (new GLatLng(10.3166, -84.8333), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker7, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker7.openInfoWindowHtml('<p class="heading05"><strong>Arenal Volcano &amp; Monteverde Regions</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker7);  
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.costaricavacationmap.net/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker8 = new GMarker (new GLatLng(10.2992746, -85.8371058), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker8, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker8.openInfoWindowHtml('<p class="heading05"><strong>Tamarindo</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker8); 
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.costaricavacationmap.net/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker9 = new GMarker (new GLatLng(10.4936791, -84.8515804), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker9, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker9.openInfoWindowHtml('<p class="heading05"><strong>Lake Arenal</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker9); 
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.costaricavacationmap.net/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker10 = new GMarker (new GLatLng(10.53642, -83.51669), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker10, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker10.openInfoWindowHtml('<p class="heading05"><strong>Tortuguero</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker10);
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.costaricavacationmap.net/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker11 = new GMarker (new GLatLng(9.861212, -85.482109), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker11, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker11.openInfoWindowHtml('<p class="heading05"><strong>Carillo</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker11); 
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.costaricavacationmap.net/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker12 = new GMarker (new GLatLng(9.6202396, -84.6217487), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker12, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker12.openInfoWindowHtml('<p class="heading05"><strong>Jaco</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker12);
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.costaricavacationmap.net/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker13 = new GMarker (new GLatLng(9.2169531, -83.336188), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker13, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker13.openInfoWindowHtml('<p class="heading05"><strong>Puntarenas</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker13);
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.costaricavacationmap.net/images/hotel.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker14 = new GMarker (new GLatLng(9.74892, -83.75343), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker14, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker14.openInfoWindowHtml('<p class="heading05"><a class="e" href="http://www.costaricavacationmap.net/promotions/costa-rica-hotel-deals-priceline.html" rel="follow" onclick="window.open(this.href);return false;">Hotels In Costa Rica</a></p>');  
});  
// Add marker to map  
map.addOverlay(marker14); 
        // 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 marker15 = new GMarker (new GLatLng(9.707128, -83.022012), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker15, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker15.openInfoWindowHtml('<p class="heading05"><a class="e" href="http://www.myhoteltraveldeals.com/airplane-tickets/airplane-tickets-priceline.asp" rel="follow" onclick="window.open(this.href);return false;">International Flights To Costa Rica</a></p>');  
});  
// Add marker to map  
map.addOverlay(marker15); 
      }
    }
