//<![CDATA[
window.onload = onPageLoad;
var map;

function onPageLoad() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(9.50324, -84.29260), 9);
        map.setUIToDefault();
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 marker1 = new GMarker (new GLatLng(9.74892, -83.75343)) 
// Adding a click-event to the marker  
GEvent.addListener(marker1, 'click', function() {  
  // When clicked, open an Info Window  
  marker1.openInfoWindowHtml('<a class="g" href="http://www.tkqlhce.com/click-3115451-10619014?url=http%3A%2F%2Fwww.gtahotels.com%2Frdcj.php%3Fcountry%3Dcosta_rica&cjsku=costa_rica" onclick="window.open(this.href);return false;">Costa Rica Hotels</a>');  
});  
// Add marker to map  
map.addOverlay(marker1); 
        // Creating a new marker  
var marker2 = new GMarker(new GLatLng(9.50324, -84.29260))  
// Adding a click-event to the marker  
GEvent.addListener(marker2, 'click', function() {  
  // When clicked, open an Info Window  
  marker2.openInfoWindowHtml('<a class="g" href="http://www.tkqlhce.com/click-3115451-10619015?url=http%3A%2F%2Fwww.gtahotels.com%2Frdcj.php%3Fcity%3Dpacific_central_coast&cjsku=PYCV" rel="nofollow" onclick="window.open(this.href);return false;">Pacific Central Coast Hotels</a>');  
});  
// Add marker to map  
map.addOverlay(marker2); 
        // 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 marker3 = new GMarker (new GLatLng(9.927128, -84.022012), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker3, 'click', function() {  
  // When clicked, open an Info Window  
  marker3.openInfoWindowHtml('<a class="g" href="http://www.jdoqocy.com/click-3115451-10392998" rel="nofollow" onclick="window.open(this.href);return false;">International Flights to Costa Rica Powered by Priceline</a>');  
});  
// Add marker to map  
map.addOverlay(marker3); 
      }
    }