//<![CDATA[
window.onload = onPageLoad;
var map;
function onPageLoad() {
      if (GBrowserIsCompatible()) {
 var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(25.03428, -77.37000), 6);
        map.setMapType(G_HYBRID_MAP);								
        map.setUIToDefault();
        map.openInfoWindow(map.getCenter(),
        document.createTextNode("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: '5927147169'  
};

adsManager = new GAdsManager(map, publisher_id, adsManagerOptions);
adsManager.enable();
               
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.bahamasvacationmap.com/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker1 = new GMarker (new GLatLng(26.659447, -78.52065), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker1, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker1.openInfoWindowHtml('<p class="heading07"><strong>Grand Bahama Island</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker1); 
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.bahamasvacationmap.com/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker2 = new GMarker (new GLatLng(25.066127, -77.339025), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker2, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker2.openInfoWindowHtml('<p class="heading07"><strong>Nassau</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker2); 
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.bahamasvacationmap.com/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker3 = new GMarker (new GLatLng(25.0839624, -77.3131084), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker3, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker3.openInfoWindowHtml('<p class="heading07"><strong>Paradise Island</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker3); 
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.bahamasvacationmap.com/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker4 = new GMarker (new GLatLng(24.48715, -76.37695), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker4, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker4.openInfoWindowHtml('<p class="heading07"><strong>Out Islands</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker4);  
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.bahamasvacationmap.com/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker5 = new GMarker (new GLatLng(26.529640, -78.654510), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker5, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker5.openInfoWindowHtml('<p class="heading07"><strong>Freeport</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker5); 
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.bahamasvacationmap.com/images/tourist-site.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker6 = new GMarker (new GLatLng(25.754709, -79.253807), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker6, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker6.openInfoWindowHtml('<p class="heading07"><strong>North Bimini</strong></p>');  
});  
// Add marker to map  
map.addOverlay(marker6);
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.bahamasvacationmap.com/images/hotel.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker7 = new GMarker (new GLatLng(25.10428, -78.20000), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker7, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker7.openInfoWindowHtml('<p class="heading07"><a class="e" href="http://www.tkqlhce.com/g181y1A719PTRRTWRZPRQVZSQXQ?url=http%3A%2F%2Ftravela.priceline.com%2Fcheap-hotels-nassau-bahamas-bahamas-tk-c308760-hl.hotel-reviews-hotel-guides%3Fplf%3DPCLN%26irefid%3DPLTGMERCH" rel="nofollow" onclick="window.open(this.href);return false;">Hotels In Nassau Bahamas</a><br /><a class="e" href="http://www.kqzyfj.com/3d106mu2-u1HLJJLOJRHJINRKIPI?url=http%3A%2F%2Ftravela.priceline.com%2Fcheap-hotels-paradise-island-bahamas-tk-c333914-hl.hotel-reviews-hotel-guides%3Fplf%3DPCLN%26irefid%3DPLTGMERCH" rel="nofollow" onclick="window.open(this.href);return false;">Hotels In Paradise Island Bahamas</a><br /><a class="e" href="http://www.jdoqocy.com/h166iqzwqyDHFFHKFNDFEJNGELE?url=http%3A%2F%2Ftravela.priceline.com%2Fcheap-hotels-grand-bahama-island-bahamas-tk-c327290-hl.hotel-reviews-hotel-guides%3Fplf%3DPCLN%26irefid%3DPLTGMERCH%26irefclickid%3DFREEPORTBAHAMAS" onclick="window.open(this.href);return false;">Hotels In Grand Bahama Island Bahamas</a></p>');  
});  
// Add marker to map  
map.addOverlay(marker7); 
        // 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 marker8 = new GMarker (new GLatLng(25.006127, -79.20000), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker8, 'mouseover', function() {  
  // When clicked, open an Info Window  
  marker8.openInfoWindowHtml('<p class="heading07"><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 Bahamas</a></p>');  
});  
// Add marker to map  
map.addOverlay(marker8); 
      }
    }
