﻿        // Creates a marker at the given point with the given address,color,link
        function createMarker(point, address, color, link) {
        
          var split = address.split("/");
          var customIcon = new GIcon(baseIcon);
          
          customIcon.image = "images/Map/mm_20_"+color+".png";
        
          markerOption = new Object();
          markerOption.icon = customIcon;
          markerOption.title = split[0];

          var marker = new GMarker(point, markerOption);
          GEvent.addListener(marker, "click", function() {window.location.replace(link)});  
          
          return marker;
        }
