| point.click(function () {
    var $this = $(this),
        pointw = $this.width(),
        pointh = $this.height(),
        pos = $this.position(),
        py = pos.top,
        px = pos.left,
        wrap = $this.find(".markerContent").html();
    if (sets.setCenter) {
        var center_y = -py + divh / 2 - pointh / 2,
            center_x = -px + divw / 2 - pointw / 2,
            center = map.check(center_x, center_y);
        content.animate({
            top: center.y + "px",
            left: center.x + "px"
        })
    }
    if (sets.popup) {
        $("." + sets.popupClass).remove();
        $this.after($("<div />").addClass(sets.popupClass).css({
            position: "absolute",
            zIndex: "3"
        }).html(wrap).append($("<a />").addClass("close")));
        var popup = $this.next("." + sets.popupClass),
            popupw = popup.innerWidth(),
            popuph = popup.innerHeight(),
            y = py,
            x = px;
        popup.css({
            top: y + pointh + "px",
            left: x + "px",
            marginLeft: -(popupw / 2 - pointw / 2) + "px"
        })
    } else {
        sets.onMarkerClick.call(this)
    }
    return false
}) |