//<![CDATA[

    // Global Variables
    // set map variable
    var map = null;
    //set up array of locations
    var aLocations = new Array;

    /*************************** Configuration Options ***************************/
    /*PDMarker is used to display tooltips when the user hovers over the markers.
    * PDMarker is a LGPL library provided by Peter Jones. 
    * For details see http://wwww.pixeldevelopment.com/pdmarker.asp
    */
    var usePDMarker = false;

    // Create a base "tiny" red  icon that specifies the shadow, icon dimensions, etc.
    var iconsm = new GIcon();
    iconsm.image = "logo.png";
    iconsm.shadow = "logo.png";
    iconsm.iconSize = new GSize(12, 20);
    iconsm.shadowSize = new GSize(20, 18);
    iconsm.iconAnchor = new GPoint(6, 20);
    iconsm.infoWindowAnchor = new GPoint(5, 1);

    // Create a base "large" red icon that specifies the shadow, icon dimensions, etc.
    var iconbig = new GIcon();
    iconbig.image = "logo.png";
    iconbig.shadow = "logo.png";
    iconbig.iconSize = new GSize(20, 34);
    iconbig.shadowSize = new GSize(37, 34);
    iconbig.iconAnchor = new GPoint(6, 34);
    iconbig.infoWindowAnchor = new GPoint(5, 1);

    // Custom Icon
    var iconcustom = new GIcon(iconbig);
    iconcustom.shadow = '';

    function onLoad() {
      if (!GBrowserIsCompatible()) 
      {
         document.getElementById("CDmap").innerHTML = "Unglücklicherweise unterstütz Ihr Browser die ANzeige von Google Maps nicht richtig<br />Besuchen sie bitte die folgende Webseite um die Kompatibilität zu überprüfen und eine Lösung zu finden: <a href=\"http://local.google.com/support/bin/answer.py?answer=16532&topic=1499\">Google Hilfe<\/a>.";
         return;
      }

      map = new GMap2(document.getElementById("CDmap"));
      var MB = new MapBuilder(map);
      map.addControl(new GSmallMapControl());
      map.addControl(new GMapTypeControl());
      // Center the map to the default location and set map type
      map.setCenter(new GLatLng(28.920213, -13.649225), 16, map.getMapTypes()[0]);
      	  
      // Initialize variables
      var point = null;
      var footerHtml = null;
      var InfoHTML = null;
      var marker = null;
      /* Options used for PDMarker initialization:
      * label: tooltip text
      * opasity: tooltip opasity
      */
      var options = {};

      // Add locations
	
      point = new GLatLng(28.92021326839435, -13.64922523498535);
      footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(2)\"><\/a><\/div>"   + "<\/div>";

      // Define Marker
      InfoHTML = "<div class=\"IW\"><div class=\"IWContent\"><strong>Renner Bike<\/strong><br />C.C. Maritimo 25<br />Tel: (+34) 928 510612<\/div>" + footerHtml + "<\/div>";
      iconbig.image = "images/map/haus_blau.png";
      marker = createMarker(point, InfoHTML, iconbig, options);
      map.addOverlay(marker);
      aLocations[2] = new Array(marker, "Villa Golondrina", InfoHTML, point);
    }

    //]]>