﻿    
function createMarker(point, address, type) {

    var icon = new GIcon(G_DEFAULT_ICON);
    if(type == "blue"){
        icon.image = "http://www.google.com/intl/en_us/mapfiles/ms/micons/blue-dot.png";
        icon.iconSize = new GSize(32,32);
        icon.shahowSize = new GSize(56,32);
        icon.iconAnchor = new GPoint(16,32);
        icon.infoWindowAnchor = new GPoint(16,0);
        
    }

    var marker = new GMarker(point, icon);

    GEvent.addListener(marker, 'click', function() {
    marker.openInfoWindowHtml(address);
    });

    return marker;
}