
Raphael.fn.draw_pin = function(x, y, width, height) {
    var pinheight = 12;
    var path = 'M ' + x + ',' + (y) + ' ';
    path += 's 0 -' + pinheight + ' -';
    path += (width/2) + ' -' + pinheight + ' ';
    path += 'v -' + height + ' h ' + width + ' v ' + height + ' ';
    path += 's -' + (width/2) + ' 0 -';
    path += (width/2) + ' ' + pinheight + ' z';
    
    return this.path(path).attr({
        'stroke-opacity': 1,
        'stroke-width': 1,
        'stroke': '#dbdbdb',
        'fill': '#fff',
        'opacity': 1
    });
}

