//<![CDATA[

    function load() {
      if (GBrowserIsCompatible()) {
       
// var map = new GMap(document.getElementById("map"));
// map.setMapType(G_HYBRID_TYPE);
// map.addControl(new GSmallMapControl());
// map.addControl(new GMapTypeControl());

var map = new GMap(document.getElementById("map"));
        map.setMapType(G_HYBRID_TYPE);
        map.addControl(new GLargeMapControl());
        map.addControl(new GMapTypeControl());

map.setCenter(new GLatLng(30, -70), 2);

var baseIcon = new GIcon();
baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
baseIcon.iconSize = new GSize(32, 32);
baseIcon.shadowSize = new GSize(32, 32);
baseIcon.iconAnchor = new GPoint(6, 20);
baseIcon.infoWindowAnchor = new GPoint(5, 1);

// Creates a marker at the given point with the given number label
function createMarker(point, number,img) {
  var icon = new GIcon(baseIcon);
  icon.image = img;
  var marker = new GMarker(point,icon);
  GEvent.addListener(marker, "click", function() {
   map.setCenter(point,2,null);
   window.setTimeout(marker.openInfoWindowHtml( number ),1000);
    marker.openInfoWindowHtml( number );
  }); 
  return marker;
}
var bounds = map.getBounds();
var southWest = bounds.getSouthWest();
var northEast = bounds.getNorthEast();
var lngSpan = northEast.lng() - southWest.lng();
var latSpan = northEast.lat() - southWest.lat();



var texttodis = "<FONT COLOR=black size=3><B><U>Sylt,Germany</B></U><BR><object width=\"219\" height=\"181\"><param name=\"movie\" value=\"http://www.youtube.com/v/-eGyEQGXWHA&rel=1\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/-eGyEQGXWHA&rel=1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"219\" height=\"181\"></embed></object><IFRAME src=http://www.windguru.cz/int/distr_iframe.php?u=123839&s=29&c=2aa0a0ccc0 width=400 height=180></IFRAME><BR><BR>Links:<BR><a href=\"javascript:poptastic('http://www.windlords.com/germany/index.htm');\">Sylt</a>";

  var point = new GLatLng(54.9,
                          8.2);
  map.addOverlay(createMarker(point, texttodis,"http://maps.google.com/mapfiles/kml/pal3/icon40.png"));      

var texttodis = "<FONT COLOR=black size=3><B><U>Corpus Christi</B></U><BR><object width=\"219\" height=\"181\"><param name=\"movie\" value=\"http://www.youtube.com/v/SVSRG_5mWG4&rel=1\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/SVSRG_5mWG4&rel=1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"219\" height=\"181\"></embed></object><IFRAME src=http://www.windguru.cz/int/distr_iframe.php?u=123839&s=94&c=7cbd9d6d91 width=400 height=180></IFRAME><BR><B>Links:</B><BR><FONT COLOR=#0000FF><a href=\"javascript:poptastic('http://www.worldwinds.net/');\">Corpus Christi</a></FONT>";

  var point = new GLatLng(27.6352,
                         -97.2656);
  map.addOverlay(createMarker(point, texttodis,"http://maps.google.com/mapfiles/kml/pal3/icon40.png"));      


var texttodis = "<FONT COLOR=black size=3><B><U>Cape Hatteras,North Carolina</B></U><BR><object width=\"219\" height=\"181\"><param name=\"movie\" value=\"http://www.youtube.com/v/JIoZXDMHfn8&rel=1\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/JIoZXDMHfn8&rel=1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"219\" height=\"181\"></embed></object><IFRAME src=http://www.windguru.cz/int/distr_iframe.php?u=123839&s=62&c=c4fb4b0455 width=400 height=180></IFRAME><BR><BR>Links:<BR><a href=\"javascript:poptastic('http://www.oceanairsports.com/');\">Ocean Air Sports</a>";

  var point = new GLatLng(35.22,
                          -75.53);
  map.addOverlay(createMarker(point, texttodis,"http://maps.google.com/mapfiles/kml/pal3/icon40.png"));                         


var texttodis = "<FONT COLOR=black size=3><B><U>Dahab</B></U><BR><object width=\"219\" height=\"181\"><param name=\"movie\" value=\"http://www.youtube.com/v/DS6FnURRRdM&rel=1\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/DS6FnURRRdM&rel=1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"219\" height=\"181\"></embed></object><IFRAME src=http://www.windguru.cz/int/distr_iframe.php?u=123839&s=12&c=b5fd1a033f width=400 height=180></IFRAME><BR><BR>Links:<BR><a href=\"javascript:poptastic('http://www.windsurfing-dahab.com/html/dahabE.html');\">Dahab</a>";

  var point = new GLatLng(28.508280,
                          34.515579);
  map.addOverlay(createMarker(point, texttodis,"http://maps.google.com/mapfiles/kml/pal3/icon40.png"));

var texttodis = "<FONT COLOR=black size=3><B><U>Jericoacoara,Brazil</B></U><BR><object width=\"219\" height=\"181\"><param name=\"movie\" value=\"http://www.youtube.com/v/k6ScO9kGg-I&rel=1\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/k6ScO9kGg-I&rel=1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"219\" height=\"181\"></embed></object><IFRAME src=http://www.windguru.cz/int/distr_iframe.php?u=123839&s=743&c=0d6bc5692b width=400 height=180></IFRAME><BR><BR>Links:<BR><a href=\"javascript:poptastic('http://www.windsurfingcuracao.com/');\">Windsurfing Curacao!</a><BR><a href=\"javascript:poptastic('http://www.jericoacoara.com/');\">Jeri Official homepage</a>";
var point = new GLatLng(-2.79,
                          -40.51);
  map.addOverlay(createMarker(point, texttodis,"http://maps.google.com/mapfiles/kml/pal3/icon40.png"));


var texttodis = "<FONT COLOR=black size=3><B><U>Cape Verde</B></U><BR><object width=\"219\" height=\"181\"><param name=\"movie\" value=\"http://www.youtube.com/v/e8zxPZ2Yadk&rel=1\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/e8zxPZ2Yadk&rel=1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"219\" height=\"181\"></embed></object><IFRAME src=http://www.windguru.cz/int/distr_iframe.php?u=123839&s=60&c=9656f97b98   width=400 height=180></IFRAME><BR><BR>Links:<BR><a href=\"javascript:poptastic('http://www.angulocaboverde.com/');\">The Angulo Cabo Verde</a>";

  var point = new GLatLng(16.1,
                          -22.8);
  map.addOverlay(createMarker(point, texttodis,"http://maps.google.com/mapfiles/kml/pal3/icon40.png"));

var texttodis = "<FONT COLOR=black size=3><B><U>Tarifa,Spain</B></U><BR><object width=\"219\" height=\"181\"><param name=\"movie\" value=\"http://www.youtube.com/v/WcWMqgGZWuo&rel=1\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/WcWMqgGZWuo&rel=1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"219\" height=\"181\"></embed></object><IFRAME src=http://www.windguru.cz/int/distr_iframe.php?u=123669&s=43&c=d8cb873c63 width=400 height=180></IFRAME><BR><BR>Links:<BR><a href=\"javascript:poptastic('http://www.windtarifa.com/index1.html');\">Windtarifa</a>";

  var point = new GLatLng(36.015160,
                          -5.603034);
  map.addOverlay(createMarker(point, texttodis,"http://maps.google.com/mapfiles/kml/pal3/icon40.png"));


var texttodis = "<FONT COLOR=black size=3><B><U>The Gorge,Hood River</B></U><BR><object width=\"219\" height=\"181\"><param name=\"movie\" value=\"http://www.youtube.com/v/DYSmpo0-l9Q&rel=1\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/DYSmpo0-l9Q&rel=1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"219\" height=\"181\"></embed></object><IFRAME src=http://www.windguru.cz/int/distr_iframe.php?u=123839&s=95&c=70d67c39a2 width=400 height=180></IFRAME><BR><BR>Links:<BR><a href=\"javascript:poptastic('http://windsurf.gorge.net/cgwa/');\">Columbia Gorge Windsurfing Association</a><BR><a href=\"javascript:poptastic('http://www.gorgesurfshop.com/index.htm');\">Hood River</a><BR><a href=\"javascript:poptastic('http://www.el.com/to/hoodriver/');\">Welcome To THe Hood River - Oregon</a>";

  var point = new GLatLng(45.636,
                          -121.5802);
  map.addOverlay(createMarker(point, texttodis,"http://maps.google.com/mapfiles/kml/pal3/icon40.png"));


var texttodis = "<FONT COLOR=black size=3><B><U>Barbados,Caribbean islands</B></U><BR><object width=\"219\" height=\"181\"><param name=\"movie\" value=\"http://www.youtube.com/v/8jgnjhckxg0&rel=1\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/8jgnjhckxg0&rel=1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"219\" height=\"181\"></embed></object><IFRAME src=http://www.windguru.cz/int/distr_iframe.php?u=123669&s=59&c=bf0b5f81ba width=400 height=180></IFRAME><BR><BR>Links:<BR><a href=\"javascript:poptastic('http://www.irieman-talma.com/homeframe.htm');\">Irie Man's Homepage</a>";

  var point = new GLatLng(13.183550,
                          -59.534649);
  map.addOverlay(createMarker(point, texttodis,"http://maps.google.com/mapfiles/kml/pal3/icon40.png"));



 var texttodis = "<FONT COLOR=black size=3><B><U>Maui,Hawaii</B></U><BR><object width=\"219\" height=\"181\"><param name=\"movie\" value=\"http://www.youtube.com/v/rwxwhvSmZx0&rel=1\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/rwxwhvSmZx0&rel=1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"219\" height=\"181\"></embed></object><IFRAME src=http://www.windguru.cz/int/distr_iframe.php?u=123839&s=53&c=6ad579765f width=400 height=180></IFRAME><BR><BR>Links:<BR><a href=\"javascript:poptastic('http://windcam.com/');\">Maui Windcam</a><BR>"; 
var point = new GLatLng(20.9054,
                          -156.2839);
  map.addOverlay(createMarker(point, texttodis,"http://maps.google.com/mapfiles/kml/pal3/icon40.png"));} } //]]>

function poptastic(url)
{
  
var newwindow;
	newwindow=window.open(url,'name','height=800,width=1200,toolbar=yes,scrollbars=yes,resizable=yes,location=yes,menubar=yes');
	if (window.focus) {newwindow.focus()}
}